浏览代码

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

Your Name 3 年前
父节点
当前提交
d04f5cfad7

+ 1
- 1
config/prod.js 查看文件

3
     NODE_ENV: '"production"'
3
     NODE_ENV: '"production"'
4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
-    HOST: '"https://sgl-v2.njyunzhi.com"',
6
+    HOST: '"https://sgl-v2-test.njyunzhi.com"',
7
     OSS: '"yz-shigongli.oss-accelerate.aliyuncs.com"',
7
     OSS: '"yz-shigongli.oss-accelerate.aliyuncs.com"',
8
   },
8
   },
9
   mini: {},
9
   mini: {},

+ 1
- 1
project.config.json 查看文件

2
   "miniprogramRoot": "./dist",
2
   "miniprogramRoot": "./dist",
3
   "projectname": "miniapp",
3
   "projectname": "miniapp",
4
   "description": "十公里",
4
   "description": "十公里",
5
-  "appid": "wx06a7372d48d56843",
5
+  "appid": "wx835627a9b9b3932a",
6
   "setting": {
6
   "setting": {
7
     "urlCheck": true,
7
     "urlCheck": true,
8
     "es6": false,
8
     "es6": false,

+ 1
- 0
src/components/SlideView/style.less 查看文件

10
 
10
 
11
   .slideview-content {
11
   .slideview-content {
12
     min-width: 100%;
12
     min-width: 100%;
13
+    width: 100%;
13
     display: inline-block;
14
     display: inline-block;
14
     vertical-align: middle;
15
     vertical-align: middle;
15
   }
16
   }

+ 3
- 6
src/hotel/pages/landlord/addRoom/addRoom.jsx 查看文件

34
 
34
 
35
   const onRoomMap = () => {
35
   const onRoomMap = () => {
36
     Taro.chooseLocation().then((res) => {
36
     Taro.chooseLocation().then((res) => {
37
-      console.log("🚀 ~ file: addRoom.jsx ~ line 37 ~ Taro.chooseLocation ~ res", res)
38
       setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name, address: res.address })
37
       setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name, address: res.address })
39
     })
38
     })
40
   }
39
   }
175
         <CustomNav title={hotelName} />
174
         <CustomNav title={hotelName} />
176
       </view>
175
       </view>
177
       <view className='roomDetail' style={{ height: '100%', overflow: "hidden", }} >
176
       <view className='roomDetail' style={{ height: '100%', overflow: "hidden", }} >
178
-        <scroll-view scrollY style={{ height: '87%' }}>
177
+        <scroll-view scrollY style={{ height: '100%' }}>
179
           <View id='det'>
178
           <View id='det'>
180
             <Popup show={showCutover} onClose={onClose}>
179
             <Popup show={showCutover} onClose={onClose}>
181
               <View className='editword'>
180
               <View className='editword'>
238
               </mp-cell>
237
               </mp-cell>
239
             </mp-cells>
238
             </mp-cells>
240
             {roomId ? <>
239
             {roomId ? <>
241
-              <view>
242
                 <view className='weui-cells__title'>其他指引</view>
240
                 <view className='weui-cells__title'>其他指引</view>
243
                 {
241
                 {
244
                   extend == '' ? null :
242
                   extend == '' ? null :
245
-                    <view>
243
+                    <>
246
                       {extend.map((item) => (
244
                       {extend.map((item) => (
247
                         <Extend key={item.extId} item={item} setReset={setReset} />
245
                         <Extend key={item.extId} item={item} setReset={setReset} />
248
                       ))}
246
                       ))}
249
-                    </view>
247
+                    </>
250
                 }
248
                 }
251
-              </view>
252
             </> : null
249
             </> : null
253
             }
250
             }
254
           </mp-form>
251
           </mp-form>

+ 10
- 22
src/hotel/pages/landlord/addRoom/addRoom.less 查看文件

23
   }
23
   }
24
 
24
 
25
   .adds {
25
   .adds {
26
-    width: 100%;
27
     background-color: #fff;
26
     background-color: #fff;
28
     border-radius: 12px;
27
     border-radius: 12px;
29
     font-weight: bold;
28
     font-weight: bold;
36
     }
35
     }
37
     .add {
36
     .add {
38
       position: absolute;
37
       position: absolute;
39
-      right: 90px;
38
+      right: 30px;
40
       height: 60px;
39
       height: 60px;
41
       top: calc(50% - 30px);
40
       top: calc(50% - 30px);
42
       width: 170px;
41
       width: 170px;
55
       }
54
       }
56
     }
55
     }
57
   }
56
   }
58
-  .button-OK {
59
-    // height: 92px;
60
-    // background: #274291;
61
-    // margin: 60px 0 30px 0;
62
-    // letter-spacing: 5px;
63
-    // line-height: 92px;
64
-    // border-radius: 12px;
65
-    // font-size: 30px;
66
-    // font-weight: bold;
67
-    // color: #fff;
68
-    /* height: 95rpx; */
69
 
57
 
58
+  .button-OK {
59
+    height: 92px;
70
     background: #274291;
60
     background: #274291;
71
-    margin: 60rpx 0 30rpx 0;
72
-    letter-spacing: 5rpx;
73
-    line-height: 92rpx;
74
-    border-radius: 12rpx;
75
-    font-size: 30rpx;
61
+    margin: 60px 0 30px 0;
62
+    letter-spacing: 5px;
63
+    line-height: 92px;
64
+    border-radius: 12px;
65
+    font-size: 30px;
76
     font-weight: bold;
66
     font-weight: bold;
77
     color: #fff;
67
     color: #fff;
78
-    position: fixed;
79
-    top: 37em;
80
-    width: 23em;
81
   }
68
   }
82
-}
69
+
70
+}