Browse Source

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

张延森 3 years ago
parent
commit
75fd3214e9

+ 2
- 2
src/pages/RoomOrder/index.jsx View File

45
       //   url: `/pages/index/index?tab=1&roomId=${roomId}`
45
       //   url: `/pages/index/index?tab=1&roomId=${roomId}`
46
       // })
46
       // })
47
       personSubmit(roomOrderId, formData).then(a => {
47
       personSubmit(roomOrderId, formData).then(a => {
48
-        Taro.reLaunch({
49
-          url: `/pages/index/index?tab=1&roomId=${roomId}`
48
+        Taro.navigateBack({
49
+          delta: 1
50
         })
50
         })
51
       })
51
       })
52
     })
52
     })

+ 2
- 2
src/pages/details/foodDetails/foodDetails.jsx View File

243
                 <view
243
                 <view
244
                   style={{
244
                   style={{
245
                     position: "relative",
245
                     position: "relative",
246
-                    marginTop: '5em',
246
+                    marginTop: '1em',
247
                     display: extend == "" ? "none" : "",
247
                     display: extend == "" ? "none" : "",
248
                   }}
248
                   }}
249
                 >
249
                 >
250
-                  <view className='title'>
250
+                  <view className='title' style={{ margin: '50px 0 0 0' }} >
251
                     <image src={titlezs} />
251
                     <image src={titlezs} />
252
                     <text>本店指南</text>
252
                     <text>本店指南</text>
253
                   </view>
253
                   </view>

+ 1
- 3
src/pages/details/foodDetails/foodDetails.less View File

89
         font-size: 24px;
89
         font-size: 24px;
90
         color: #666666;
90
         color: #666666;
91
         padding-left: 34px;
91
         padding-left: 34px;
92
-        padding-bottom: 40px;
93
         .zhuandao {
92
         .zhuandao {
94
           width: 14px;
93
           width: 14px;
95
           height: 24px;
94
           height: 24px;
103
   }
102
   }
104
 }
103
 }
105
 .title {
104
 .title {
106
-  margin: 59px 0 41px 0;
107
   image {
105
   image {
108
     width: 30px;
106
     width: 30px;
109
     height: 30px;
107
     height: 30px;
181
   text-align: center;
179
   text-align: center;
182
   padding: 40px 0 68px 0;
180
   padding: 40px 0 68px 0;
183
   background-color: #f8f8f8;
181
   background-color: #f8f8f8;
184
-}
182
+}

+ 1
- 5
src/pages/details/mjDetails/sceneryDetails.jsx View File

46
   //指南当前页数
46
   //指南当前页数
47
   const [epage, setepage] = useState(2)
47
   const [epage, setepage] = useState(2)
48
   const extendMore = () => {
48
   const extendMore = () => {
49
-    setLoading(true)
50
     setepage(epage + 1)
49
     setepage(epage + 1)
51
     getExtendContent('tourist', id, { pageNum: epage }).then((res) => {
50
     getExtendContent('tourist', id, { pageNum: epage }).then((res) => {
52
       setExtend([...extend, ...res.records])
51
       setExtend([...extend, ...res.records])
53
       setNewextNum(newextNum + res.records.length)
52
       setNewextNum(newextNum + res.records.length)
54
       setLoading(false)
53
       setLoading(false)
55
-    }).catch(e => {
56
-      setLoading(false)
57
-
58
     })
54
     })
59
   }
55
   }
60
 
56
 
177
           <view className='bottom'>这是我的底线</view>
173
           <view className='bottom'>这是我的底线</view>
178
         </scroll-view>
174
         </scroll-view>
179
       </SpinBox>
175
       </SpinBox>
180
-      
176
+
181
       <view className='index-tabber weui-tabbar' style={{ background: '#fff' }}>
177
       <view className='index-tabber weui-tabbar' style={{ background: '#fff' }}>
182
         <view className='weui-tabbar__item'>
178
         <view className='weui-tabbar__item'>
183
           <Button openType='share' className='purebtn'><TabIcon icon={share} text='分享' /></Button>
179
           <Button openType='share' className='purebtn'><TabIcon icon={share} text='分享' /></Button>

+ 1
- 1
src/pages/details/mjDetails/sceneryDetails.less View File

108
   }
108
   }
109
 }
109
 }
110
 .title {
110
 .title {
111
-  margin: 60px 0 40px 0;
111
+  margin: 40px 0 40px 0;
112
   font-size: 34px;
112
   font-size: 34px;
113
   font-weight: bold;
113
   font-weight: bold;
114
   color: #202020;
114
   color: #202020;

+ 1
- 1
src/pages/index/tabs/Guide.jsx View File

59
     if (roomOrderId) {
59
     if (roomOrderId) {
60
       goToRoomForm(roomOrderId).then((res) => {
60
       goToRoomForm(roomOrderId).then((res) => {
61
         if (res.status !== 1 && res.personNum > 0) {
61
         if (res.status !== 1 && res.personNum > 0) {
62
-          Taro.reLaunch({
62
+          Taro.navigateTo({
63
             url: `/pages/RoomOrder/index?roomOrderId=${roomOrderId}&status=${res.status}&roomId=${roomId}`,
63
             url: `/pages/RoomOrder/index?roomOrderId=${roomOrderId}&status=${res.status}&roomId=${roomId}`,
64
           })
64
           })
65
         }
65
         }