Parcourir la source

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

吃个甘蔗嚼一年 il y a 3 ans
Parent
révision
13a21f9160

+ 20
- 20
src/hotel/components/HouseManage/houseManage.jsx Voir le fichier

150
     setShowCutover3(false)
150
     setShowCutover3(false)
151
   }
151
   }
152
   return (
152
   return (
153
-    <view>
154
-      <view style={{ padding: '0 30rpx', height: '100%' }}>
155
-        <ToggleRole role='hotel' showCutover={showCutover3} maskClosable={showCutover3} onClose={onClose3} />
156
-        <View>
157
-          <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择民宿" value={hotel?.hotelId} kv={['hotelName', 'hotelId']} dicts={hotelList} onChange={handleHotelChange} /></view>
158
-          <view onClick={ShowMoldeOn3} className='User-info-cutover'>
159
-            <image className='User-info-cutover-image' src={cutoverUser} />
160
-          </view>
161
-        </View>
153
+    <View style={{ padding: '0 30rpx', height: '100%', display: 'flex', flexDirection: 'column' }}>
154
+      <ToggleRole role='hotel' showCutover={showCutover3} maskClosable={showCutover3} onClose={onClose3} />
155
+      <View style={{ flex: 'none' }}>
156
+        <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择民宿" value={hotel?.hotelId} kv={['hotelName', 'hotelId']} dicts={hotelList} onChange={handleHotelChange} /></view>
157
+        <view onClick={ShowMoldeOn3} className='User-info-cutover'>
158
+          <image className='User-info-cutover-image' src={cutoverUser} />
159
+        </view>
160
+      </View>
161
+      <View style={{ flex: 'none' }}>
162
         <SearchBar placeholder='请输入房源名搜索' onBlur={onSearch} />
162
         <SearchBar placeholder='请输入房源名搜索' onBlur={onSearch} />
163
-        <ShareRoom showCutover={showCutover} onClose={onClose} room={room} onFinish={handleFinish} />
164
-        <ShareCard showCutover={showCard} onClose={onClose2} />
163
+      </View>
164
+      <ShareRoom showCutover={showCutover} onClose={onClose} room={room} onFinish={handleFinish} />
165
+      <ShareCard showCutover={showCard} onClose={onClose2} />
166
+      <View style={{ flex: 'auto', overflow: 'hidden', position: 'relative' }}>
165
         <List
167
         <List
166
-          style={{ height: 'calc(100vh - 290px)' }}
168
+          style={{ height: '100%' }}
167
           request={getRoomList}
169
           request={getRoomList}
168
           params={queryParams}
170
           params={queryParams}
169
           onDataChange={setDetail}
171
           onDataChange={setDetail}
170
           refresherEnabled={false}
172
           refresherEnabled={false}
171
-
172
           noData="暂无房源信息"
173
           noData="暂无房源信息"
173
         >
174
         >
174
           <view className='waterfall'>
175
           <view className='waterfall'>
185
             }
186
             }
186
           </view>
187
           </view>
187
         </List>
188
         </List>
188
-      </view>
189
-      <view className='addHouse' onClick={handelClick}>
190
-        <image className='addImg' src={addImg} />添加房源
191
-      </view>
192
-
193
-    </view>
189
+      </View>
190
+      <View className='addHouse' onClick={handelClick} style={{ flex: 'none' }}>
191
+        <Image className='addImg' src={addImg} />添加房源
192
+      </View>
193
+    </View>
194
   )
194
   )
195
-})
195
+})

+ 1
- 1
src/hotel/components/HouseManage/houseManage.less Voir le fichier

51
   }
51
   }
52
 }
52
 }
53
 .addHouse{
53
 .addHouse{
54
-  margin: 0 30px 50px;
54
+  margin-bottom:50px;
55
   height: 88px;
55
   height: 88px;
56
   background: #274291;
56
   background: #274291;
57
   border-radius: 12px;
57
   border-radius: 12px;

+ 0
- 13
src/hotel/pages/components/Extend/style.less Voir le fichier

50
     text-align: justify;
50
     text-align: justify;
51
     white-space: pre-wrap;
51
     white-space: pre-wrap;
52
   }
52
   }
53
-  // .weui-slideview__btn__wrp{
54
-  //   background: #FFFFFF;
55
-  //   box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
56
-  //   border-radius: 12px;
57
-  //   margin: 5px 5px 5px 20px;
58
-  //   height: 97%;
59
-  //   width: 67px;
60
-  // }
61
-  // .weui-slideview__btn{
62
-  //   width: 44px;
63
-  //   height: 44px;
64
-  //   line-height: 44px;
65
-  // }
66
   Textarea{
53
   Textarea{
67
     height: 300px;
54
     height: 300px;
68
     width: 100%;
55
     width: 100%;

+ 1
- 12
src/hotel/pages/landlord/addRoom/addRoom.jsx Voir le fichier

32
   const [paddress, setpAddress] = useState()
32
   const [paddress, setpAddress] = useState()
33
   const [wifiName, setwifiName] = useState()
33
   const [wifiName, setwifiName] = useState()
34
 
34
 
35
-  const tipsMap = () => {
36
-    Taro.showToast({
37
-      title: '位置信息添加成功',
38
-      icon: 'success',
39
-      duration: 2000
40
-    })
41
-  }
42
-
43
-
44
   const onRoomMap = () => {
35
   const onRoomMap = () => {
45
     Taro.chooseLocation().then((res) => {
36
     Taro.chooseLocation().then((res) => {
46
       setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name })
37
       setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name })
47
     })
38
     })
48
   }
39
   }
49
-
50
-
51
-
40
+  
52
   const onParkMap = () => {
41
   const onParkMap = () => {
53
     Taro.chooseLocation().then((res) => {
42
     Taro.chooseLocation().then((res) => {
54
       setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude, pkLocName: res.name })
43
       setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude, pkLocName: res.name })