瀏覽代碼

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

吃个甘蔗嚼一年 3 年之前
父節點
當前提交
e044e948fe

+ 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
   }

+ 12
- 15
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
   }
174
       <view className='index-navbar'>
173
       <view className='index-navbar'>
175
         <CustomNav title={hotelName} />
174
         <CustomNav title={hotelName} />
176
       </view>
175
       </view>
177
-      <view className='roomDetail' style={{ height: '100%', overflow: "hidden", }} >
178
-        <scroll-view scrollY style={{ height: '87%' }}>
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' }}>
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>
243
-                {
244
-                  extend == '' ? null :
245
-                    <view>
246
-                      {extend.map((item) => (
247
-                        <Extend key={item.extId} item={item} setReset={setReset} />
248
-                      ))}
249
-                    </view>
250
-                }
251
-              </view>
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
+              }
252
             </> : null
249
             </> : null
253
             }
250
             }
254
           </mp-form>
251
           </mp-form>
263
             </View>
260
             </View>
264
           </> : null
261
           </> : null
265
           }
262
           }
266
-          <Button className='button-OK' onClick={sumbit}>确定</Button>
267
         </scroll-view>
263
         </scroll-view>
264
+        <Button className='button-OK' onClick={sumbit}>确定</Button>
268
       </view>
265
       </view>
269
     </view>
266
     </view>
270
   )
267
   )

+ 8
- 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
   }
57
+}
58
   .button-OK {
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
-
59
+    flex: none;
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: 30px 0 20px 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
-}

+ 5
- 3
src/pages/index/tabs/Guide.jsx 查看文件

3
 import MoreGuide from "@/components/MoreGuide";
3
 import MoreGuide from "@/components/MoreGuide";
4
 import BossCard from '@/components/BossCard'
4
 import BossCard from '@/components/BossCard'
5
 import SpinBox from "@/components/Spin/SpinBox";
5
 import SpinBox from "@/components/Spin/SpinBox";
6
-
6
+import {Image } from "@tarojs/components";
7
 import GPS from '@/assets/icons/GuideCheck/GPS.png'
7
 import GPS from '@/assets/icons/GuideCheck/GPS.png'
8
 import copy_logo from '@/assets/icons/GuideCheck/copy_logo.png'
8
 import copy_logo from '@/assets/icons/GuideCheck/copy_logo.png'
9
 import Cup from '@/assets/icons/GuideCheck/Cup.png'
9
 import Cup from '@/assets/icons/GuideCheck/Cup.png'
145
       }
145
       }
146
     })
146
     })
147
   }
147
   }
148
-
148
+  const goIndex=()=>{
149
+    Taro.redirectTo({url:'/pages/index/index'})
150
+  }
149
   return (
151
   return (
150
     <scroll-view scrollY style={{ height: '100%' }}  >
152
     <scroll-view scrollY style={{ height: '100%' }}  >
151
       <view className='Guide-Home-box'>
153
       <view className='Guide-Home-box'>
256
         <view style={{ marginTop: '10rpx', paddingBottom: '60rpx' }}>
258
         <view style={{ marginTop: '10rpx', paddingBottom: '60rpx' }}>
257
           {(spackage || []).map((item, index) => <BossCard det={item} st={parseFloat(item.score.toFixed(1))} key={(index)} trackClick={trackClick} taRoomContent={taRoomContent} item={item} />)}
259
           {(spackage || []).map((item, index) => <BossCard det={item} st={parseFloat(item.score.toFixed(1))} key={(index)} trackClick={trackClick} taRoomContent={taRoomContent} item={item} />)}
258
         </view>
260
         </view>
259
-        {/* <Image src={} /> */}
261
+        <Image mode='widthFix' style={{width:'100%'}} src='http://yz-shigongli.oss-cn-shanghai.aliyuncs.com/images/hotel_guide_help.png' onClick={goIndex}/>
260
       </view>
262
       </view>
261
     </scroll-view>
263
     </scroll-view>
262
   )
264
   )