李志伟 3 年 前
コミット
a1bfb87be0
共有2 個のファイルを変更した20 個の追加4 個の削除を含む
  1. 8
    3
      src/hotel/pages/landlord/addRoom/addRoom.jsx
  2. 12
    1
      src/hotel/pages/landlord/addRoom/addRoom.less

+ 8
- 3
src/hotel/pages/landlord/addRoom/addRoom.jsx ファイルの表示

@@ -189,17 +189,22 @@ export default withLayout((props) => {
189 189
             </mp-cells>
190 190
             <mp-cells title='房屋位置'>
191 191
               <mp-cell>
192
-                <Input style={{ color: '#000', fontWeight: 'bold', marginBottom: '13px' }} onInput={(e) => setRoomModel({ ...roomModel, address: e.detail.value })} value={roomModel.address} placeholder='请输入房屋位置(必填)' />
193
-                <Label style={{ color: '#666' }} onClick={onRoomMap}>{isError(roomModel.location) ? '房间定位(必填)' : roomModel.location}</Label>
192
+                <View className='roomloc'>
193
+                <Input style={{ color: '#000', fontWeight: 'bold'}} onInput={(e) => setRoomModel({ ...roomModel, address: e.detail.value })} value={roomModel.address} placeholder='请输入房屋位置(必填)' />
194
+                <Label style={{display:'none' }} onClick={onRoomMap}>{isError(roomModel.location) ? '房间定位(必填)' : roomModel.location}</Label>
194 195
                 <Image className='location' src={GPS} onClick={onRoomMap} />
196
+                </View>
195 197
               </mp-cell>
196 198
             </mp-cells>
197 199
             {
198 200
               paddress != '' ?
199 201
                 <mp-cells title='停车场位置'>
200 202
                   <mp-cell>
203
+                  <View className='roomloc'>
201 204
                     <Input onInput={(e) => setRoomModel({ ...roomModel, parkingAddress: e.detail.value })} value={roomModel.parkingAddress} placeholder='请输入停车场位置' />
202
-                    <Label style={{ color: '#666', lineHeight: '30px' }} onClick={onParkMap}>{isError(roomModel.parkingLocation) ? '停车场定位' : roomModel.parkingLocation}</Label>
205
+                    <Label style={{ color: '#666', lineHeight: '30px',display:'none' }} onClick={onParkMap}>{isError(roomModel.parkingLocation) ? '停车场定位' : roomModel.parkingLocation}</Label>
206
+                    <Image className='location' src={GPS} onClick={onParkMap} />
207
+                    </View>
203 208
                   </mp-cell>
204 209
                 </mp-cells> : null
205 210
             }

+ 12
- 1
src/hotel/pages/landlord/addRoom/addRoom.less ファイルの表示

@@ -9,7 +9,18 @@
9 9
     font-size: 30px;
10 10
     margin-top: 40px;
11 11
   }
12
-
12
+  .roomloc{
13
+    position: relative;
14
+    .location{
15
+      width: 50px;
16
+      height: 50px;
17
+      position:absolute;
18
+      right: 0;
19
+      top: -2px;
20
+      z-index: 999;
21
+    }
22
+  }
23
+  
13 24
   .adds {
14 25
     width: 100%;
15 26
     background-color: #fff;