李志伟 3 年前
父节点
当前提交
31daa98a58

二进制
src/assets/icons/landlord/delete.png 查看文件


+ 2
- 2
src/hotel/components/HouseManage/houseManage.jsx 查看文件

@@ -25,7 +25,7 @@ export default React.forwardRef((props, ref) => {
25 25
   const mounted = useRef(false)
26 26
 
27 27
   const handelClick = () => {
28
-    Taro.navigateTo({ url: `/hotel/pages/landlord/addRoom/addRoom?hotelId=${hotel.hotelId}&hotelName=${hotel.hotelName}` });
28
+    Taro.navigateTo({ url: `/hotel/pages/landlord/addRoom2/addRoom?hotelId=${hotel.hotelId}&hotelName=${hotel.hotelName}` });
29 29
   }
30 30
   const handelDelete = (val) => {
31 31
     Taro.showModal({
@@ -47,7 +47,7 @@ export default React.forwardRef((props, ref) => {
47 47
     })
48 48
   }
49 49
   const handelDetail = (val) => {
50
-    Taro.navigateTo({ url: `/hotel/pages/landlord/addRoom/addRoom?hotelId=${hotel.hotelId}&hotelName=${hotel.hotelName}&roomId=${val.roomId}` });
50
+    Taro.navigateTo({ url: `/hotel/pages/landlord/addRoom2/addRoom?hotelId=${hotel.hotelId}&hotelName=${hotel.hotelName}&roomId=${val.roomId}` });
51 51
   }
52 52
 
53 53
   const [showCutover, setShowCutover] = useState(false)

+ 1
- 1
src/hotel/components/HouseManage/houseManage.less 查看文件

@@ -33,12 +33,12 @@
33 33
   height: 88px;
34 34
   background: #274291;
35 35
   border-radius: 12px;
36
-  font-family: DengXian;
37 36
   font-weight: bold;
38 37
   color: #FFFFFF;
39 38
   text-align: center;
40 39
   line-height: 88px;
41 40
   position: absolute;
41
+  letter-spacing: 5px;
42 42
   bottom: 18px;
43 43
   image{
44 44
     width: 32px;

+ 43
- 0
src/hotel/pages/components/Extend/index.jsx 查看文件

@@ -0,0 +1,43 @@
1
+import { useState } from 'react';
2
+import Taro from '@tarojs/taro';
3
+import del from '@/assets/icons/landlord/delete.png'
4
+import { View,Text, Image } from '@tarojs/components';
5
+import { update } from '@/services/landlord'
6
+import './style.less'
7
+
8
+export default (props) => {
9
+  const { item } = props
10
+  const [eimg, seteImg] = useState(item.content)
11
+  const handerChange = () => {
12
+    Taro.chooseImage({
13
+      count: 1,
14
+      success: function (res) {
15
+        seteImg(res.tempFilePaths[0])
16
+        update(item.targetId, res.tempFilePaths[0]).then(() => { })
17
+      }
18
+    })
19
+  }
20
+  const detele=[
21
+    {
22
+      src: del, // icon的路径
23
+      extClass:'det'
24
+    }
25
+  ]
26
+  const handelDelete=()=>{
27
+    seteImg()
28
+    console.log("11111111111111111")
29
+  }
30
+  return (
31
+    <View>
32
+      {
33
+        item.contentType == 'image' ?
34
+          <mp-slideview  buttons={detele} icon onbuttontap={handelDelete}>
35
+            <Image src={eimg} mode='widthFix' style={{ width: '100%',display:'block' }} onClick={handerChange}/>
36
+          </mp-slideview> 
37
+          :
38
+          item.contentType == 'text' ?
39
+            <View className='storezn'>{item.content}</View> : null
40
+      }
41
+    </View>
42
+  )
43
+}

+ 9
- 0
src/hotel/pages/components/Extend/style.less 查看文件

@@ -0,0 +1,9 @@
1
+.storezn{
2
+  font-size: 28px;    
3
+  color: #202020;
4
+  line-height: 54px;
5
+  margin-bottom: 40px;
6
+  text-align: justify;
7
+}
8
+.det{
9
+}

+ 2
- 1
src/hotel/pages/landlord/addRoom/addRoom.config.js 查看文件

@@ -4,6 +4,7 @@ export default {
4 4
   usingComponents: {
5 5
     "mp-cells": "weui-miniprogram/cells/cells",
6 6
     "mp-cell": "weui-miniprogram/cell/cell",
7
-    "mp-form": "weui-miniprogram/form/form"
7
+    "mp-form": "weui-miniprogram/form/form",
8
+    "mp-slideview": "weui-miniprogram/slideview/slideview",
8 9
   }
9 10
 }

+ 68
- 35
src/hotel/pages/landlord/addRoom/addRoom.jsx 查看文件

@@ -2,8 +2,11 @@ import withLayout from '@/layouts'
2 2
 import Taro from '@tarojs/taro'
3 3
 import CustomNav from '@/components/CustomNav'
4 4
 import { useEffect, useState } from "react"
5
-import './addRoom.less'
5
+import { Button, Label } from '@tarojs/components'
6 6
 import { saveRoom, getRoomDetail, updateRoom } from '@/services/landlord'
7
+import { getExtendContent } from "@/services/home";
8
+import Extend from "../../components/Extend";
9
+import './addRoom.less'
7 10
 
8 11
 
9 12
 export default withLayout((props) => {
@@ -54,52 +57,82 @@ export default withLayout((props) => {
54 57
       })
55 58
     }
56 59
   }
60
+  const [extend, setExtend] = useState([]);
57 61
 
58 62
   useEffect(() => {
59 63
     if (roomId) {
60 64
       getRoomDetail(roomId).then((res) => {
61 65
         setRoomModel(res)
62 66
       })
67
+      getExtendContent('room', roomId).then((res) => {
68
+        setExtend(res.records || []);
69
+      })
63 70
     }
64
-  }, [])
71
+  }, [roomId])//这个地方写这个单词的目的是   因为编辑时roomId有可能还没加载成功
65 72
 
66 73
 
67 74
 
68 75
   return (
69 76
     <view className='page-index'>
70
-      <CustomNav title={hotelName} />
71
-      <view className='from-room'  >
72
-        <mp-form models={roomModel} >
73
-          <mp-cells title='请填写新增的房源信息' footer='  ' >
74
-            <mp-cell title='房屋名称:' extClass='font'>
75
-              <input onInput={(e) => setRoomModel({ ...roomModel, roomName: e.detail.value })} value={roomModel.roomName} placeholder='请输入房屋名称(必填)' />
76
-            </mp-cell>
77
-            <mp-cell title='位置信息:' extClass='font'>
78
-              <input onInput={(e) => setRoomModel({ ...roomModel, address: e.detail.value })} value={roomModel.address} placeholder='请输入房屋位置(必填)' />
79
-            </mp-cell>
80
-            <mp-cell title='定位经纬度:' extClass='font'>
81
-              <label onClick={onRoomMap}>{roomModel.location == '' ? '房间定位(必填)' : roomModel.location}</label>
82
-            </mp-cell>
83
-            <mp-cell title='停车场位置:' extClass='font'>
84
-              <input onInput={(e) => setRoomModel({ ...roomModel, parkingAddress: e.detail.value })} value={roomModel.parkingAddress} placeholder='请输入停车场位置' />
85
-            </mp-cell>
86
-            <mp-cell title='定位经纬度:' extClass='font'>
87
-              <label onClick={onParkMap}>{roomModel.parkingLocation == '' ? '停车场定位' : roomModel.parkingLocation}</label>
88
-            </mp-cell>
89
-            <mp-cell title='Wi-Fi名称:' extClass='font'>
90
-              <input onInput={(e) => setRoomModel({ ...roomModel, wifiName: e.detail.value })} value={roomModel.wifiName} placeholder='请输入wifi名称' />
91
-            </mp-cell>
92
-            <mp-cell title='Wi-Fi密码:' extClass='font'>
93
-              <input onInput={(e) => setRoomModel({ ...roomModel, wifiPassword: e.detail.value })} value={roomModel.wifiPassword} placeholder='请输入wifi密码' />
94
-            </mp-cell>
95
-            <mp-cell title='权重:' extClass='font'>
96
-              <input type='number' value={roomModel.weight} onInput={(e) => setRoomModel({ ...roomModel, weight: e.detail.value })} placeholder='请输入权重(必填)' />
97
-            </mp-cell>
98
-            <mp-cell>
99
-              <button className='button-OK' onClick={sumbit}>确定</button>
100
-            </mp-cell>
101
-          </mp-cells>
102
-        </mp-form>
77
+      <view className="index-navbar">
78
+        <CustomNav title={hotelName} />
79
+      </view>
80
+      <view className='from-room' style={{ height: '100%', overflow: "hidden", }} >
81
+        <scroll-view scrollY style={{ height: '100%' }}>
82
+          <mp-form models={roomModel} >
83
+            <mp-cells title='房屋名称' footer='  ' >
84
+              <mp-cell extClass='font'>
85
+                <input onInput={(e) => setRoomModel({ ...roomModel, roomName: e.detail.value })} value={roomModel.roomName} placeholder='请输入房屋名称(必填)' />
86
+              </mp-cell>
87
+            </mp-cells>
88
+            <mp-cells title='房屋位置'>
89
+              <mp-cell extClass='font'>
90
+                <input onInput={(e) => setRoomModel({ ...roomModel, address: e.detail.value })} value={roomModel.address} placeholder='请输入房屋位置(必填)' />
91
+              </mp-cell>
92
+              <mp-cell extClass='font'>
93
+                <label onClick={onRoomMap}>{roomModel.location == '' ? '房间定位(必填)' : roomModel.location}</label>
94
+              </mp-cell>
95
+              </mp-cells>
96
+            <mp-cells title='停车场位置'>
97
+              <mp-cell extClass='font'>
98
+                <input onInput={(e) => setRoomModel({ ...roomModel, parkingAddress: e.detail.value })} value={roomModel.parkingAddress} placeholder='请输入停车场位置' />
99
+              </mp-cell>
100
+              <mp-cell title='停车场经纬度:' extClass='font'>
101
+                <label onClick={onParkMap}>{roomModel.parkingLocation == '' ? '停车场定位' : roomModel.parkingLocation}</label>
102
+              </mp-cell>              
103
+              </mp-cells>
104
+            <mp-cells title='WiFi'>
105
+              <mp-cell title='Wi-Fi名称:' extClass='font'>
106
+                <input onInput={(e) => setRoomModel({ ...roomModel, wifiName: e.detail.value })} value={roomModel.wifiName} placeholder='请输入wifi名称' />
107
+              </mp-cell>
108
+              <mp-cell title='Wi-Fi密码:' extClass='font'>
109
+                <input onInput={(e) => setRoomModel({ ...roomModel, wifiPassword: e.detail.value })} value={roomModel.wifiPassword} placeholder='请输入wifi密码' />
110
+              </mp-cell>                          
111
+              </mp-cells>
112
+            <mp-cells title='权重'>
113
+              <mp-cell  extClass='font'>
114
+                <input type='number' value={roomModel.weight} onInput={(e) => setRoomModel({ ...roomModel, weight: e.detail.value })} placeholder='请输入权重(必填)' />
115
+              </mp-cell>
116
+                             
117
+              </mp-cells>
118
+            <mp-cells title='更多指引'>              
119
+              {
120
+                extend == '' ? null :
121
+                  <mp-cell >
122
+                    {extend.map((item) => (
123
+                      <Extend key={item.extId} item={item} />
124
+                    ))}
125
+                  </mp-cell>
126
+              }
127
+              <mp-cell extClass='adds'>
128
+                <Button className='add'>增加文字</Button><Button className='add'>增加图片</Button>
129
+              </mp-cell>
130
+              <mp-cell>
131
+                <Button className='button-OK' onClick={sumbit}>确定</Button>
132
+              </mp-cell>
133
+            </mp-cells>
134
+          </mp-form>
135
+        </scroll-view>
103 136
       </view>
104 137
     </view>
105 138
   )

+ 25
- 18
src/hotel/pages/landlord/addRoom/addRoom.less 查看文件

@@ -2,22 +2,29 @@
2 2
   width: 100%;
3 3
   box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
4 4
   border-radius: 24px;
5
-  
6
-}
7
-.weui-agree .weui-agree__text {
8
-  display: inline;
9
-}
10
-button {
11
-  width: calc(100% - 60px);
12
-  height: 92px;
13
-  background: #1A3B83;
14
-  margin: 0 auto;
15
-  line-height: 92px;
16
-  border-radius: 12px;
17
-  font-size: 40px;
18
-  color: #ffffff;
19
-}
20
-.font{
21
-  font-size: 28px;
5
+  .button-OK {
6
+    width: calc(100% - 60px);
7
+    height: 92px;
8
+    background: #1A3B83;
9
+    margin: 0 auto;
10
+    line-height: 92px;
11
+    border-radius: 12px;
12
+    font-size: 40px;
13
+    color: #ffffff;
14
+  }
15
+  .font{
16
+    font-size: 28px;
22 17
     color: #202020;
23
-}
18
+  }
19
+  .adds{
20
+    text-align: center;
21
+    .add{
22
+      display: inline-block;
23
+      width: 40%;
24
+      height: 92px;
25
+      border-radius: 12px;
26
+      font-size: 40px;
27
+      margin: 0 5%;
28
+    }
29
+  }  
30
+}

+ 10
- 0
src/hotel/pages/landlord/addRoom2/addRoom.config.js 查看文件

@@ -0,0 +1,10 @@
1
+export default {
2
+  navigationBarTitleText: '',
3
+  navigationStyle: 'custom',
4
+  usingComponents: {
5
+    "mp-cells": "weui-miniprogram/cells/cells",
6
+    "mp-cell": "weui-miniprogram/cell/cell",
7
+    "mp-form": "weui-miniprogram/form/form",
8
+    "mp-slideview": "weui-miniprogram/slideview/slideview",
9
+  }
10
+}

+ 133
- 0
src/hotel/pages/landlord/addRoom2/addRoom.jsx 查看文件

@@ -0,0 +1,133 @@
1
+import withLayout from '@/layouts'
2
+import Taro from '@tarojs/taro'
3
+import CustomNav from '@/components/CustomNav'
4
+import { View, Text, Image, Input, Button, Label } from '@tarojs/components';
5
+import { useEffect, useState } from "react"
6
+import { saveRoom, getRoomDetail, updateRoom } from '@/services/landlord'
7
+import { getExtendContent } from "@/services/home";
8
+import Extend from "../../components/Extend";
9
+import './addRoom.less'
10
+
11
+
12
+export default withLayout((props) => {
13
+  const { hotelId, hotelName, roomId } = props.router.params
14
+  const [roomModel, setRoomModel] = useState({
15
+    hotelId,
16
+    roomName: '',
17
+    address: '',
18
+    location: '',
19
+    parkingAddress: '',
20
+    parkingLocation: '',
21
+    wifiName: '',
22
+    wifiPassword: '',
23
+    weight: '',
24
+  })
25
+  const onRoomMap = () => {
26
+    Taro.chooseLocation().then((res) => {
27
+      setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude })
28
+
29
+    })
30
+  }
31
+  const onParkMap = () => {
32
+    Taro.chooseLocation().then((res) => {
33
+      setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude })
34
+
35
+    })
36
+  }
37
+  const sumbit = () => {
38
+    if (
39
+      roomModel.roomName != '' &&
40
+      roomModel.address != '' &&
41
+      roomModel.location != '' &&
42
+      roomModel.weight != ''
43
+    ) {
44
+      const seveices = roomId ? updateRoom : saveRoom
45
+      seveices(roomModel, roomId).then(() => {
46
+        Taro.showModal({
47
+          title: roomId ? '修改成功' : '保存成功',
48
+          showCancel: false
49
+        }).then(() => {
50
+          Taro.navigateBack()
51
+        })
52
+      })
53
+    } else {
54
+      Taro.showToast({
55
+        title: '有必填项未填哦',
56
+        icon: 'none',
57
+      })
58
+    }
59
+  }
60
+  const [extend, setExtend] = useState([]);
61
+
62
+  useEffect(() => {
63
+    if (roomId) {
64
+      getRoomDetail(roomId).then((res) => {
65
+        setRoomModel(res)
66
+      })
67
+      getExtendContent('room', roomId).then((res) => {
68
+        setExtend(res.records || []);
69
+      })
70
+    }
71
+  }, [roomId])//这个地方写这个单词的目的是   因为编辑时roomId有可能还没加载成功
72
+
73
+
74
+
75
+  return (
76
+    <view className='page-index'>
77
+      <view className="index-navbar">
78
+        <CustomNav title={hotelName} />
79
+      </view>
80
+      <view className='roomDetail' style={{ height: '100%', overflow: "hidden", }} >
81
+        <scroll-view scrollY style={{ height: '100%' }}>
82
+          <mp-form models={roomModel} >
83
+            <mp-cells title='房屋名称' footer='' ext-class='cells' >
84
+              <mp-cell>
85
+                <Input style={{fontWeight:'bold'}} onInput={(e) => setRoomModel({ ...roomModel, roomName: e.detail.value })} value={roomModel.roomName} placeholder='请输入房屋名称(必填)' />
86
+              </mp-cell>
87
+            </mp-cells>
88
+            <mp-cells title='房屋位置'>
89
+              <mp-cell>
90
+                <Input style={{color:'#000',fontWeight:'bold',marginBottom:'13px'}} onInput={(e) => setRoomModel({ ...roomModel, address: e.detail.value })} value={roomModel.address} placeholder='请输入房屋位置(必填)' />
91
+                <Label style={{ color: '#666'}} onClick={onRoomMap}>{roomModel.location == '' ? '房间定位(必填)' : roomModel.location}</Label>
92
+              </mp-cell>
93
+            </mp-cells>
94
+            <mp-cells title='停车场位置'>
95
+              <mp-cell>
96
+                <Input onInput={(e) => setRoomModel({ ...roomModel, parkingAddress: e.detail.value })} value={roomModel.parkingAddress} placeholder='请输入停车场位置' />
97
+                <Label style={{ color: '#666', lineHeight: '30px' }} onClick={onParkMap}>{roomModel.parkingLocation == '' ? '停车场定位' : roomModel.parkingLocation}</Label>
98
+              </mp-cell>
99
+            </mp-cells>
100
+            <mp-cells title='WiFi信息'>
101
+              <mp-cell>
102
+                <View style={{color:'#666'}}>
103
+                <Input style={{display:'inline-block',background:'#fff',width:'20%'}} value='名称:' disabled/><Input style={{display:'inline-block',width:'80%'}} onInput={(e) => setRoomModel({ ...roomModel, wifiName: e.detail.value })} value={roomModel.wifiName} placeholder='请输入wifi名称' />             
104
+                <Input style={{display:'inline-block',background:'#fff',width:'20%'}} value='密码:' disabled/><Input  style={{display:'inline-block',width:'80%'}} onInput={(e) => setRoomModel({ ...roomModel, wifiPassword: e.detail.value })} value={roomModel.wifiPassword} placeholder='请输入wifi密码' />
105
+              </View>
106
+              </mp-cell>
107
+            </mp-cells>
108
+            <mp-cells title='权重'>
109
+              <mp-cell>
110
+                <input type='number' value={roomModel.weight} onInput={(e) => setRoomModel({ ...roomModel, weight: e.detail.value })} placeholder='请输入权重(必填)' />
111
+              </mp-cell>
112
+
113
+            </mp-cells>
114
+            <mp-cells title='其他指引'>
115
+              {
116
+                extend == '' ? null :
117
+                  <mp-cell >
118
+                    {extend.map((item) => (
119
+                      <Extend key={item.extId} item={item} />
120
+                    ))}
121
+                  </mp-cell>
122
+              }
123
+              <mp-cell extClass='adds'>
124
+                <Button className='add'>增加文字</Button><Button className='add'>增加图片</Button>
125
+                <Button className='button-OK' onClick={sumbit}>确定</Button>
126
+              </mp-cell>
127
+            </mp-cells>
128
+          </mp-form>
129
+        </scroll-view>
130
+      </view>
131
+    </view>
132
+  )
133
+})

+ 36
- 0
src/hotel/pages/landlord/addRoom2/addRoom.less 查看文件

@@ -0,0 +1,36 @@
1
+.roomDetail{
2
+  padding: 30px;
3
+  background-color: #F8F8F8;
4
+  .weui-cells__title{
5
+    font-size: 34px;
6
+  }
7
+  .weui-cells_after-title{
8
+    border-radius: 50px;
9
+    font-size: 30px;
10
+    margin-top: 40px;
11
+  }  
12
+  .adds{
13
+    text-align: center;
14
+    .add{
15
+      display: inline-block;
16
+      width: 35%;
17
+      height: 78px;
18
+      line-height: 78px;
19
+      border-radius: 12px;
20
+      letter-spacing: 5px;
21
+      margin: 0 7%;
22
+      background: #274291;
23
+      color: #fff;
24
+    }
25
+  }  
26
+  .button-OK {
27
+    width: calc(100% - 60px);
28
+    height: 88px;
29
+    background: #274291;
30
+    margin: 10px auto;
31
+    letter-spacing: 5px;
32
+    line-height: 88px;
33
+    border-radius: 12px;
34
+    color: #fff;
35
+  }
36
+}

+ 7
- 5
src/hotel/pages/landlord/landlord.jsx 查看文件

@@ -1,12 +1,12 @@
1 1
 import React, { useState, useEffect, useRef } from 'react'
2
-import Taro,{ useRouter,useShareAppMessage } from '@tarojs/taro'
2
+import Taro, { useRouter, useShareAppMessage } from '@tarojs/taro'
3 3
 import TabBar from '@/components/CustTabBar'
4 4
 import incomeImg from '@/assets/icons/landlord/money.png'
5 5
 import onincomeImg from '@/assets/icons/landlord/moneyON.png'
6 6
 import houseImg from '@/assets/icons/landlord/roomOff.png'
7 7
 import onhouseImg from '@/assets/icons/landlord/roomON.png'
8 8
 import withLayout from '@/layouts'
9
-import { getHotelManage,  getNowHotelManage } from '@/services/landlord'
9
+import { getHotelManage, getNowHotelManage } from '@/services/landlord'
10 10
 import NoData from '@/components/NoData'
11 11
 import CustomNav from '@/components/CustomNav'
12 12
 import { withSubscribeMessage } from '@/utils/subscribeMessage'
@@ -68,10 +68,12 @@ export default withLayout((props) => {
68 68
 
69 69
   return (
70 70
     <view className='page-index'>
71
-      <CustomNav title={hotel?.hotelName} logo={hotel?.logo} />
71
+      <view className="index-navbar">
72
+        <CustomNav title={hotel?.hotelName} logo={hotel?.logo} />
73
+      </view>
72 74
       <view className='index-container'>
73
-        {currentTab === 0 && <Income hotelList={hotelList} hotel={hotel}  account={account} onHotelChange={handleHotelChange} />}
74
-        {hotel?.hotelId?currentTab === 1 && <HouseManage hotel={hotel} ref={houseRef} disabled={!hotel.hotelId}/>:<NoData />}
75
+        {currentTab === 0 && <Income hotelList={hotelList} hotel={hotel} account={account} onHotelChange={handleHotelChange} />}
76
+        {hotel?.hotelId ? currentTab === 1 && <HouseManage hotel={hotel} ref={houseRef} disabled={!hotel.hotelId} /> : <NoData />}
75 77
       </view>
76 78
       <view className='index-tabbar'>
77 79
         <TabBar extClass='custom-tabbar bottomTab' current={currentTab} onChange={handleTabChange}>

+ 23
- 21
src/hotel/pages/landlord/roomOrder/roomOrder.jsx 查看文件

@@ -44,34 +44,36 @@ export default withLayout((props) => {
44 44
   }
45 45
   return (
46 46
     <View style={{ padding: '0 30px' }}>
47
-      <CustomNav title={roomName ? roomName : '房间名'} />
47
+      <view className="index-navbar">
48
+        <CustomNav title={roomName ? roomName : '房间名'} />
49
+      </view>
48 50
       <scroll-view scrollY style={{ height: 'calc(100vh - 65px)' }}>
49 51
 
50 52
         {
51
-          detail.length==0?<View className='houseCard'>暂无入住人数据</View>
52
-           :detail.map((item) =>
53
-            <View className='houseCard'>
54
-              {
55
-                (item.personList||[]).map((item2) =>
56
-                  <View className='operation'>
57
-                    <View style={{display:'inline-block'}} onClick={()=>CopyName(item2.customerName)}>
58
-                      <Label>{item2.customerName}</Label>
59
-                      <Image src={copy} />
53
+          detail.length == 0 ? <View className='houseCard'>暂无入住人数据</View>
54
+            : detail.map((item) =>
55
+              <View className='houseCard'>
56
+                {
57
+                  (item.personList || []).map((item2) =>
58
+                    <View className='operation'>
59
+                      <View style={{ display: 'inline-block' }} onClick={() => CopyName(item2.customerName)}>
60
+                        <Label>{item2.customerName}</Label>
61
+                        <Image src={copy} />
62
+                      </View>
63
+                      <View style={{ display: 'inline-block', marginLeft: '40rpx' }} onClick={() => CopyPhone(item2.customerPhone)}>
64
+                        <Label>{item2.customerPhone}</Label>
65
+                        <Image src={copy} />
66
+                      </View>
60 67
                     </View>
61
-                    <View style={{display:'inline-block',marginLeft:'40rpx'}} onClick={()=>CopyPhone(item2.customerPhone)}>
62
-                      <Label>{item2.customerPhone}</Label>
63
-                      <Image src={copy} />
64
-                    </View>
65
-                  </View>
66 68
 
67
-                )
68
-              }              
69
-              <View className='operation'>入住时间:{item.startDate}  -  {item.endDate}</View>
69
+                  )
70
+                }
71
+                <View className='operation'>入住时间:{item.startDate}  -  {item.endDate}</View>
70 72
 
71
-            </View>
72
-          )
73
+              </View>
74
+            )
73 75
         }
74
-        
76
+
75 77
       </scroll-view>
76 78
     </View>
77 79
   )

+ 4
- 0
src/routes.js 查看文件

@@ -80,6 +80,10 @@ const hotelPages = [
80 80
     title: '新增房源',
81 81
     page: 'pages/landlord/addRoom/addRoom',
82 82
   },
83
+  {
84
+    title: '新增房源2',
85
+    page: 'pages/landlord/addRoom2/addRoom',
86
+  },
83 87
   {
84 88
     title: '查看入住人',
85 89
     page: 'pages/landlord/roomOrder/roomOrder',

+ 9
- 1
src/services/landlord.js 查看文件

@@ -87,4 +87,12 @@ export const shareRoom = (data) => request('/roomOrder', { method: 'post', data
87 87
 * @param {*} id 
88 88
 * @returns 
89 89
 */
90
-export const getRoomOrderList = (params) => request('/roomOrder', { params })
90
+export const getRoomOrderList = (params) => request('/roomOrder', { params })
91
+
92
+
93
+/**
94
+ * 修改房源更多指引信息
95
+ * @param {*} data 
96
+ * @returns 
97
+ */
98
+ export const update = (id, data) => request(`/taExtendContent/${id}`, { method: 'put', data })

+ 3
- 1
src/shop/pages/spread/spreadIndex.jsx 查看文件

@@ -116,7 +116,9 @@ export default withLayout((props) => {
116 116
 
117 117
   return (
118 118
     <view className='page-index'>
119
-      <CustomNav title={shop?.shopName} />
119
+      <view className="index-navbar">
120
+        <CustomNav title={shop?.shopName} />
121
+      </view>
120 122
       <view className='index-container'>
121 123
         {currentTab === 0 && <ShopKeeper isVerified={isVerified} shopId={shopId} amountType={amountType} setVer={setVer} onVarifiedTwo={onVarifiedTwo} onVarified={onVarified} verifiedOrder={verifiedOrder} shopList={shopList} shop={shop} onHotelChange={handleHotelChange} shopMoney={shopMoney} />
122 124
         }

+ 0
- 2
src/utils/hooks/useRouter.js 查看文件

@@ -41,7 +41,5 @@ export default () => {
41 41
       }
42 42
     }
43 43
   }, [qrCode, scene])
44
-
45
-  console.log('-----------routerRef.current---------------', routerRef.current)
46 44
   return routerRef.current
47 45
 }