吃个甘蔗嚼一年 hace 3 años
padre
commit
466eba59b3

+ 1
- 0
src/pages/MineUserAll/RefundMoney/CheckRefund/style.less Ver fichero

@@ -405,6 +405,7 @@
405 405
       background: #274291;
406 406
       border-radius: 12px;
407 407
       color: @whiteColor;
408
+      margin-bottom: 2em;
408 409
     }
409 410
   }
410 411
 

+ 3
- 0
src/pages/MineUserAll/RefundMoney/index.jsx Ver fichero

@@ -28,6 +28,7 @@ export default withLayout((props) => {
28 28
   const getList = () => {
29 29
     setFirst(false)
30 30
     setHasNextPage(false);
31
+    Taro.showLoading()
31 32
     getOrderSub({
32 33
       pageNum,
33 34
       pageSize: 10,
@@ -39,6 +40,8 @@ export default withLayout((props) => {
39 40
       );
40 41
       setHasNextPage(res.current < res.pages);
41 42
       setPull(false);
43
+      Taro.hideLoading();
44
+
42 45
     });
43 46
   };
44 47
 

+ 1
- 1
src/pages/PayOrder/Card/index.jsx Ver fichero

@@ -41,7 +41,7 @@ export default (props) => {
41 41
           <text className='title-money-payOrder'>
42 42
             ¥{formatPrice(item.actualPrice || item.unitPrice)}元
43 43
             <text className='title-money-2-payOrder'>
44
-              门市价{item.standardPrice}元
44
+              门市价{(item.standardPrice / 100).toFixed(2)}元
45 45
             </text>
46 46
           </text>
47 47
           <view className='title-time-payOrder'>

+ 3
- 0
src/pages/RoomOrder/components/RoomForm/index.jsx Ver fichero

@@ -27,7 +27,9 @@ export default (props) => {
27 27
 
28 28
 
29 29
   return (
30
+
30 31
     <View className='from-room'  >
32
+
31 33
       <mp-form >
32 34
         <mp-cells title='入住人信息填写' footer='  '>
33 35
           <mp-cell prop='customerName' title='姓名:' extClass=''>
@@ -39,5 +41,6 @@ export default (props) => {
39 41
         </mp-cells>
40 42
       </mp-form>
41 43
     </View>
44
+
42 45
   )
43 46
 }

+ 19
- 12
src/pages/RoomOrder/index.jsx Ver fichero

@@ -23,7 +23,7 @@ export default withLayout((props) => {
23 23
   }
24 24
 
25 25
   const handleSubmit = (e) => {
26
-    
26
+
27 27
     // 订阅消息
28 28
     withSubscribeMessage('hotel_check_out', () => {
29 29
       for (let i = 0, len = formData.length; i < len; i++) {
@@ -36,12 +36,12 @@ export default withLayout((props) => {
36 36
           return;
37 37
         }
38 38
       }
39
-  
39
+
40 40
       personSubmit(roomOrderId, formData).then(a => {
41 41
         Taro.navigateBack({
42 42
           delta: 1
43 43
         })
44
-      })      
44
+      })
45 45
     })
46 46
 
47 47
   }
@@ -57,17 +57,24 @@ export default withLayout((props) => {
57 57
 
58 58
   const FormCard = new Array(CarNumber).fill(0)
59 59
   return (
60
-    <view>
60
+    <view className='scroll-www'>
61
+
61 62
       <CustomNav title={taRoomContent?.roomName} />
62
-      {
63
-        FormCard.map((_, index) => {
64
-          return (
65
-            <RoomForm key={(index)} onChange={(e) => handleChange(e, index)} />
66
-          )
67
-        })
68
-      }
69
-      <button className='button-OK' onClick={handleSubmit} >确定</button>
63
+
64
+      <scroll-view scroll-y style='height: calc(100vh - 176rpx);' >
65
+
66
+        {
67
+          FormCard.map((_, index) => {
68
+            return (
69
+
70
+              <RoomForm key={(index)} onChange={(e) => handleChange(e, index)} />
71
+            )
72
+          })
73
+        }
74
+        <button className='button-OK' onClick={handleSubmit} >确定</button>
75
+      </scroll-view>
70 76
 
71 77
     </view>
78
+
72 79
   )
73 80
 })

+ 3
- 2
src/pages/RoomOrder/style.less Ver fichero

@@ -1,11 +1,12 @@
1 1
 button {
2 2
   width: calc(100% - 60px);
3 3
   height: 92px;
4
-  background: #1A3B83;
4
+  background: #1a3b83;
5 5
   margin: 0 auto;
6 6
   line-height: 92px;
7 7
   border-radius: 12px;
8 8
   font-size: 40px;
9 9
   color: #ffffff;
10 10
   margin-top: 2em;
11
-}
11
+  margin-bottom: 4em;
12
+}

+ 1
- 0
src/pages/details/foodDetails/foodDetails.jsx Ver fichero

@@ -240,6 +240,7 @@ export default withLayout((props) => {
240 240
                 <view
241 241
                   style={{
242 242
                     position: "relative",
243
+                    marginTop: '5em',
243 244
                     display: extend == "" ? "none" : "",
244 245
                   }}
245 246
                 >

+ 2
- 2
src/pages/details/mjDetails/sceneryDetails.jsx Ver fichero

@@ -110,7 +110,7 @@ export default withLayout((props) => {
110 110
               {
111 111
                 imglist.map((item) =>
112 112
                   <SwiperItem>
113
-                    <image src={item.url}  mode='aspectFit' className='storeImage' >
113
+                    <image src={item.url} mode='aspectFit' className='storeImage' >
114 114
                       <view className='tpPage'>
115 115
                         <text>{index + 1}/{imglist.length}</text>
116 116
                       </view>
@@ -152,7 +152,7 @@ export default withLayout((props) => {
152 152
               <image src={showMore} className='moreTip' />
153 153
             </view>
154 154
           </view>
155
-          <view style={{ position: 'relative', display: recommend == '' ? 'none' : '' }}>
155
+          <view style={{ position: 'relative', marginTop: '6em', display: recommend == '' ? 'none' : '' }}>
156 156
             <view className='title'>
157 157
               <image src={titlems} />老板推荐好吃的
158 158
             </view>

+ 5
- 5
src/pages/index/tabs/Guide.jsx Ver fichero

@@ -24,7 +24,6 @@ export default (props) => {
24 24
   const [spackage, setPackage] = useState([])
25 25
 
26 26
   const { roomId: rid } = useModel('hotel')
27
-  console.log("🚀 ~ file: Guide.jsx ~ line 27 ~ rid", rid)
28 27
 
29 28
   if (!roomId && rid) {
30 29
     roomId = rid
@@ -60,18 +59,19 @@ export default (props) => {
60 59
   }
61 60
 
62 61
 
63
-  useDidShow(() => {
62
+  useEffect(() => {
64 63
     if (roomOrderId) {
65 64
       goToRoomForm(roomOrderId).then((res) => {
66
-        if (res.status !== 0) {
65
+        console.log("🚀 ~ file: Guide.jsx ~ line 65 ~ goToRoomForm ~ res", res)
66
+
67
+        if (res.status !== 1 && res.personNum > 0) {
67 68
           Taro.navigateTo({
68 69
             url: `/pages/RoomOrder/index?roomOrderId=${roomOrderId}&status=${res.status}&roomId=${roomId}`,
69 70
           })
70
-
71 71
         }
72 72
       })
73 73
     }
74
-  })
74
+  }, [roomId, roomOrderId])
75 75
 
76 76
 
77 77
   useEffect(() => {