ソースを参照

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

吃个甘蔗嚼一年 3 年 前
コミット
e044e948fe

+ 1
- 1
config/prod.js ファイルの表示

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

+ 1
- 1
project.config.json ファイルの表示

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

+ 1
- 0
src/components/SlideView/style.less ファイルの表示

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

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

@@ -34,7 +34,6 @@ export default withLayout((props) => {
34 34
 
35 35
   const onRoomMap = () => {
36 36
     Taro.chooseLocation().then((res) => {
37
-      console.log("🚀 ~ file: addRoom.jsx ~ line 37 ~ Taro.chooseLocation ~ res", res)
38 37
       setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name, address: res.address })
39 38
     })
40 39
   }
@@ -174,8 +173,8 @@ export default withLayout((props) => {
174 173
       <view className='index-navbar'>
175 174
         <CustomNav title={hotelName} />
176 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 178
           <View id='det'>
180 179
             <Popup show={showCutover} onClose={onClose}>
181 180
               <View className='editword'>
@@ -238,17 +237,15 @@ export default withLayout((props) => {
238 237
               </mp-cell>
239 238
             </mp-cells>
240 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 249
             </> : null
253 250
             }
254 251
           </mp-form>
@@ -263,8 +260,8 @@ export default withLayout((props) => {
263 260
             </View>
264 261
           </> : null
265 262
           }
266
-          <Button className='button-OK' onClick={sumbit}>确定</Button>
267 263
         </scroll-view>
264
+        <Button className='button-OK' onClick={sumbit}>确定</Button>
268 265
       </view>
269 266
     </view>
270 267
   )

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

@@ -23,7 +23,6 @@
23 23
   }
24 24
 
25 25
   .adds {
26
-    width: 100%;
27 26
     background-color: #fff;
28 27
     border-radius: 12px;
29 28
     font-weight: bold;
@@ -36,7 +35,7 @@
36 35
     }
37 36
     .add {
38 37
       position: absolute;
39
-      right: 90px;
38
+      right: 30px;
40 39
       height: 60px;
41 40
       top: calc(50% - 30px);
42 41
       width: 170px;
@@ -55,28 +54,15 @@
55 54
       }
56 55
     }
57 56
   }
57
+}
58 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 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 66
     font-weight: bold;
77 67
     color: #fff;
78
-    position: fixed;
79
-    top: 37em;
80
-    width: 23em;
81 68
   }
82
-}

+ 5
- 3
src/pages/index/tabs/Guide.jsx ファイルの表示

@@ -3,7 +3,7 @@ import Taro, { useDidShow } from '@tarojs/taro'
3 3
 import MoreGuide from "@/components/MoreGuide";
4 4
 import BossCard from '@/components/BossCard'
5 5
 import SpinBox from "@/components/Spin/SpinBox";
6
-
6
+import {Image } from "@tarojs/components";
7 7
 import GPS from '@/assets/icons/GuideCheck/GPS.png'
8 8
 import copy_logo from '@/assets/icons/GuideCheck/copy_logo.png'
9 9
 import Cup from '@/assets/icons/GuideCheck/Cup.png'
@@ -145,7 +145,9 @@ export default (props) => {
145 145
       }
146 146
     })
147 147
   }
148
-
148
+  const goIndex=()=>{
149
+    Taro.redirectTo({url:'/pages/index/index'})
150
+  }
149 151
   return (
150 152
     <scroll-view scrollY style={{ height: '100%' }}  >
151 153
       <view className='Guide-Home-box'>
@@ -256,7 +258,7 @@ export default (props) => {
256 258
         <view style={{ marginTop: '10rpx', paddingBottom: '60rpx' }}>
257 259
           {(spackage || []).map((item, index) => <BossCard det={item} st={parseFloat(item.score.toFixed(1))} key={(index)} trackClick={trackClick} taRoomContent={taRoomContent} item={item} />)}
258 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 262
       </view>
261 263
     </scroll-view>
262 264
   )