李志伟 3 years ago
parent
commit
b49e200239

+ 12
- 12
src/hotel/pages/landlord/addRoom/addRoom.jsx View File

@@ -173,8 +173,8 @@ export default withLayout((props) => {
173 173
       <view className='index-navbar'>
174 174
         <CustomNav title={hotelName} />
175 175
       </view>
176
-      <view className='roomDetail' style={{ height: '100%', overflow: "hidden", }} >
177
-        <scroll-view scrollY style={{ height: '100%' }}>
176
+      <view className='roomDetail' style={{ height: '100%', display: 'flex', flexDirection: 'column', overflow: 'hidden' }} >
177
+        <scroll-view scrollY style={{ height: '100%', position: 'relative', overflow: "hidden", flex: 'auto' }}>
178 178
           <View id='det'>
179 179
             <Popup show={showCutover} onClose={onClose}>
180 180
               <View className='editword'>
@@ -237,15 +237,15 @@ export default withLayout((props) => {
237 237
               </mp-cell>
238 238
             </mp-cells>
239 239
             {roomId ? <>
240
-                <view className='weui-cells__title'>其他指引</view>
241
-                {
242
-                  extend == '' ? null :
243
-                    <>
244
-                      {extend.map((item) => (
245
-                        <Extend key={item.extId} item={item} setReset={setReset} />
246
-                      ))}
247
-                    </>
248
-                }
240
+              <view className='weui-cells__title'>其他指引</view>
241
+              {
242
+                extend == '' ? null :
243
+                  <>
244
+                    {extend.map((item) => (
245
+                      <Extend key={item.extId} item={item} setReset={setReset} />
246
+                    ))}
247
+                  </>
248
+              }
249 249
             </> : null
250 250
             }
251 251
           </mp-form>
@@ -260,8 +260,8 @@ export default withLayout((props) => {
260 260
             </View>
261 261
           </> : null
262 262
           }
263
-          <Button className='button-OK' onClick={sumbit}>确定</Button>
264 263
         </scroll-view>
264
+        <Button className='button-OK' onClick={sumbit}>确定</Button>
265 265
       </view>
266 266
     </view>
267 267
   )

+ 3
- 5
src/hotel/pages/landlord/addRoom/addRoom.less View File

@@ -54,11 +54,11 @@
54 54
       }
55 55
     }
56 56
   }
57
-
57
+}
58 58
   .button-OK {
59
-    height: 92px;
59
+    flex: none;
60 60
     background: #274291;
61
-    margin: 60px 0 30px 0;
61
+    margin: 30px 0 20px 0;
62 62
     letter-spacing: 5px;
63 63
     line-height: 92px;
64 64
     border-radius: 12px;
@@ -66,5 +66,3 @@
66 66
     font-weight: bold;
67 67
     color: #fff;
68 68
   }
69
-
70
-}