浏览代码

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

张延森 3 年前
父节点
当前提交
9e5b4b12ee

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

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

+ 1
- 0
src/app.less 查看文件

@@ -42,6 +42,7 @@
42 42
   background: transparent;
43 43
   border: none;
44 44
   outline: none;
45
+  line-height: 88px;
45 46
 
46 47
   &::after {
47 48
     border: none;

+ 3
- 1
src/components/CollectList/MyCollect/index.jsx 查看文件

@@ -17,6 +17,8 @@ export default (props) => {
17 17
   const targetType = item.targetType
18 18
   const star = parseFloat(((item.sweetScore + item.environmentScore + item.serviceScore) / 3).toFixed(1));
19 19
 
20
+
21
+
20 22
   const handleDetail = () => {
21 23
     targetType == "shop_package" ? Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.shopId}` })
22 24
       : targetType == "tourist" ? Taro.navigateTo({ url: `/pages/details/mjDetails/sceneryDetails?id=${item.targetId}` })
@@ -66,7 +68,7 @@ export default (props) => {
66 68
                 />
67 69
                 <CouponMedia.Body >
68 70
                   <View className='cpn-card-text'>
69
-                    {item.lng}
71
+                    {(item.title).toString().length > 25 ? (item.title).substring(0, 25) + '...' : (item.title)}
70 72
                   </View>
71 73
                   <View className='cpn-card-text' style={{ marginTop: '10rpx' }}>
72 74
                     <Text className='cpn-card-text_mn'>¥{`${formatPrice(item.averagePrice)}元`}</Text>

+ 1
- 1
src/components/CompoentsOrder/OrderCard/index.jsx 查看文件

@@ -117,7 +117,7 @@ export default (props) => {
117 117
       }
118 118
       {
119 119
         //待支付可以左滑删除
120
-        item.status === 0 ? <SlideView del onDelete={() => handeDelete(item)} >
120
+        item.status === 0 ? <SlideView del onDelete={() => handeDelete(item)}  className='dzf'>
121 121
           <CouponCard onClick={() => { Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.shopId}` }) }} action={PayAction}>
122 122
             <CouponMedia>
123 123
               <CouponMedia.Header

+ 5
- 1
src/components/CompoentsOrder/OrderCard/style.less 查看文件

@@ -41,7 +41,11 @@
41 41
     }
42 42
   }
43 43
 }
44
-
44
+.dzf{
45
+  .slideview-content{
46
+    margin:20px 0;
47
+  }
48
+}
45 49
 .OrderNumber {
46 50
   font-size: 20px;
47 51
   color: #666666;

+ 1
- 4
src/components/CompoentsOrder/complete/index.jsx 查看文件

@@ -1,11 +1,8 @@
1 1
 import React, { useState, useEffect } from "react";
2
-import Taro, { useDidShow, AtSwipeAction } from "@tarojs/taro";
2
+import Taro, { useDidShow } from "@tarojs/taro";
3 3
 import { getOrderSub, deleteOrder } from "@/services/payOrder";
4
-import { View } from "@tarojs/components";
5 4
 import NoData from '@/components/NoData'
6 5
 import SpinBox from "@/components/Spin/SpinBox";
7
-
8
-import ico_delete from '../../../assets/icons/ProCard/ico_delete.png'
9 6
 import AlreadyUsed from "../AlreadyUsed";
10 7
 import OrderCard from '../OrderCard'
11 8
 import "./style.less";

+ 0
- 2
src/components/CouponCard/Media/style.less 查看文件

@@ -1,7 +1,5 @@
1
-
2 1
 .coupun-media {
3 2
   display: flex;
4
-
5 3
   &_header {
6 4
     flex: none;
7 5
     box-sizing: border-box;

+ 27
- 24
src/components/ShopUnused/index.jsx 查看文件

@@ -1,7 +1,6 @@
1 1
 import Taro from '@tarojs/taro'
2
-import { useState, useEffect } from 'react'
3 2
 import { compressImage } from '@/utils'
4
-
3
+import { View, Text,Image } from '@tarojs/components'
5 4
 import formatTimes from '@/utils/formatTime'
6 5
 
7 6
 
@@ -11,28 +10,32 @@ import './style.less'
11 10
 export default (props) => {
12 11
   const { item } = props
13 12
 
14
-
15
-
16
-  useEffect(() => {
17
-
18
-  }, [])
19
-
20 13
   return (
21
-    <view className='orderCard'>
22
-      <view style={{ overflow: 'hidden' }}>
23
-        <view className='orderId'>订单编号:{item.orderId}</view>
24
-        <view className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:mm')}</view>
25
-      </view>
26
-      <view className='order'>
27
-        <image className='orderImg' src={compressImage(item.poster)} mode='aspectFit' />
28
-        <view className='orderRight'>
29
-          <view className='foodName'>{item.description}</view>
30
-          <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>{((item.actualPrice / 100) - (item.cashback / 100) - (item.commissionCharge / 100)).toFixed(2)}</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
31
-          <view>已下单:等待客户上门就餐</view>
32
-        </view>
33
-        <view className='line' />
34
-        <view className='phone'>客户手机:<text>{item.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</text></view>
35
-      </view>
36
-    </view>
14
+    <View className='orderCard2'>
15
+      <View className='hardtop'>
16
+        <View className='orderId'>订单编号:{item.orderId}</View>
17
+        <View className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:mm')}</View>
18
+      </View>
19
+      <View className='order'>
20
+        <View className='orderTop'>
21
+          <Image className='orderImg' src={compressImage(item.poster)} mode='aspectFit' />
22
+          <View className='orderRight'>
23
+            <View className='foodName'>{item.description}</View>
24
+            <View className='price'>
25
+              <Text className='priceleft'>
26
+                合计金额:¥
27
+                <Text style={{ fontSize: '24rpx' }}>
28
+                  {((item.actualPrice / 100) - (item.cashback / 100) - (item.commissionCharge / 100)).toFixed(2)}
29
+                </Text>元
30
+              </Text>
31
+              <Text className='pnum'>数量:1张</Text>
32
+            </View>
33
+            <View className='tips'>已下单:等待客户上门就餐</View>
34
+          </View>
35
+        </View>
36
+        <View className='line' />
37
+        <View className='phone'>客户手机:{item.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</View>
38
+      </View>
39
+    </View>
37 40
   )
38 41
 }

+ 55
- 68
src/components/ShopUnused/style.less 查看文件

@@ -1,89 +1,76 @@
1
-.orderCard {
2
-  margin-bottom: 20px;
3
-  .orderId {
4
-    font-size: 20px;
1
+.orderCard2{
2
+  .hardtop{
5 3
     color: #666666;
6
-    line-height: 44px;
7
-    float: left;
8
-    margin: 60px 0 0 0;
9
-  }
10
-  .orderTime {
4
+    line-height: 44px;    
11 5
     font-size: 20px;
12
-    color: #666666;
13
-    line-height: 44px;
14
-    float: right;
15
-    margin: 60px 0 0 0;
6
+    position: relative;
7
+    margin: 20px 0;
8
+    .orderId{
9
+      display: inline-block;
10
+    }
11
+    .orderTime{
12
+      position: absolute;
13
+      right: 30px;
14
+      display: inline-block;
15
+      justify-self: right;
16
+    }
16 17
   }
17
-  .order {
18
-    background: #ffffff;
18
+  .order{
19 19
     box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
20 20
     border-radius: 12px;
21 21
     padding: 20px;
22
-    .orderImg {
23
-      width: 194px;
24
-      height: 194px;
25
-      border-radius: 22px;
26
-      float: left;
27
-      margin: 0 26px 0 0;
28
-    }
29
-    .orderRight {
30
-      .foodName {
31
-        font-size: 24px;
32
-        color: #333333;
33
-        margin-top: 40px;
22
+    margin: 0 5px;
23
+    .orderTop{
24
+      display: flex;
25
+      .orderImg{
26
+        flex: none;
27
+        width: 194px;
28
+        height: 194px;
29
+        margin-right: 25px;
30
+        margin-bottom: 30px;
34 31
       }
35
-      .price {
36
-        font-size: 20px;
37
-        font-weight: bold;
38
-        color: #202020;
39
-        margin: 0 0 10px 0;
40
-        .pnum {
32
+      .orderRight{
33
+        flex: auto;
34
+        .foodName{
35
+          font-size: 24px;
41 36
           color: #333333;
42
-          font-weight: 400;
43
-          margin-left: 47px;
37
+          line-height: 40px;
38
+          margin-top: 30px;
39
+        }
40
+        .price{
41
+          font-size: 20px;
42
+          font-weight: bold;
43
+          color: #202020;
44
+          line-height: 44px;
45
+          display: flex;
46
+          .priceleft{
47
+            flex: 1;
48
+          }
49
+          .pnum {
50
+            color: #333333;
51
+            flex: 1;
52
+            font-weight: 400;
53
+          }
54
+        }
55
+        .tips{
56
+          font-size: 20px;
57
+          font-weight: bold;
58
+          color: #FF3434;
59
+          line-height: 44px;
44 60
         }
45
-      }
46
-      .price + view {
47
-        font-size: 20px;
48
-        font-weight: bold;
49
-        color: #ff3434;
50
-        line-height: 44px;
51
-        margin-bottom: 35px;
52
-        height: 19px;
53 61
       }
54 62
     }
55
-    .line {
56
-      margin-top: 30px;
57
-
63
+    .line{
58 64
       width: 100%;
59 65
       height: 2px;
60 66
       background: #000;
61 67
       opacity: 0.1;
68
+      margin-bottom: 30px;
62 69
     }
63
-    .phone {
64
-      font-size: 24px;
65
-      color: #666666;
66
-      line-height: 44px;
67
-      height: 23px;
68
-      margin: 37px 0;
69
-    }
70
-    .button-OK {
71
-      width: 160px;
72
-      height: 40px;
73
-      background: #1a3b83;
74
-      line-height: 40px;
75
-      border-radius: 12px;
76
-      font-size: 23px;
77
-      color: #ffffff;
78
-      position: relative;
79
-      right: -8em;
80
-      top: -2em;
81
-    }
82
-    .tripTime {
70
+    .phone{
83 71
       font-size: 24px;
84 72
       color: #666666;
85 73
       line-height: 44px;
86
-      margin-bottom: 30px;
87 74
     }
88 75
   }
89
-}
76
+}

+ 44
- 11
src/components/ShopUsed/index.jsx 查看文件

@@ -1,6 +1,6 @@
1 1
 import Taro from '@tarojs/taro'
2 2
 import { setGetVerifiedOrder } from '@/services/shopBoss'
3
-import { View, Text, Image } from '@tarojs/components'
3
+import { View, Text, Image,Button } from '@tarojs/components'
4 4
 import { compressImage } from '@/utils'
5 5
 import { useState } from 'react'
6 6
 import formatTimes from '@/utils/formatTime'
@@ -31,26 +31,59 @@ export default (props) => {
31 31
 
32 32
 
33 33
   return (
34
-    <View className='orderCard'>
35
-      <View style={{ overflow: 'hidden' }}>
34
+    // <View className='orderCard'>
35
+    //   <View style={{ overflow: 'hidden' }}>
36
+    //     <View className='orderId'>订单编号:{item.orderId}</View>
37
+    //     <View className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:mm') || ''}</View>
38
+    //   </View>
39
+    //   <View className='order'>
40
+    //     <Image className='orderImg' src={compressImage(item.poster)} mode='aspectFit' />
41
+    //     <View className='orderRight'>
42
+    //       <View className='foodName'>{item.description}</View>
43
+    //       <View className='price'>合计金额:¥<Text style={{ fontSize: '24rpx' }}>{((item.actualPrice / 100) - (item.cashback / 100) - (item.commissionCharge / 100)).toFixed(2)}</Text>元 <Text className='pnum'>数量:<Text>1</Text>张</Text> </View>
44
+    //     </View>
45
+    //     <View className='veri_Date' > 核销时间:{formatTimes(item.verifiedDate, 'yyyy-MM-dd hh:mm')}</View>
46
+    //     <View className='line' />
47
+    //     <View className='phone'>客户手机:<Text>{item.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</Text>
48
+    //       {
49
+    //         !item.isConfirmVerified && <button className='Button-OK' onClick={confirmOrder} style={{ display: buttonStyle }}  >确认核销</button>
50
+    //       }
51
+    //     </View>
52
+    //   </View>
53
+    // </View>
54
+
55
+    <View className='orderCard3'>
56
+      <View className='hardtop'>
36 57
         <View className='orderId'>订单编号:{item.orderId}</View>
37
-        <View className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:mm') || ''}</View>
58
+        <View className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:mm')}</View>
38 59
       </View>
39 60
       <View className='order'>
40
-        <Image className='orderImg' src={compressImage(item.poster)} mode='aspectFit' />
41
-        <View className='orderRight'>
42
-          <View className='foodName'>{item.description}</View>
43
-          <View className='price'>合计金额:¥<Text style={{ fontSize: '24rpx' }}>{((item.actualPrice / 100) - (item.cashback / 100) - (item.commissionCharge / 100)).toFixed(2)}</Text>元 <Text className='pnum'>数量:<Text>1</Text>张</Text> </View>
61
+        <View className='orderTop'>
62
+          <Image className='orderImg' src={compressImage(item.poster)} mode='aspectFit' />
63
+          <View className='orderRight'>
64
+            <View className='foodName'>{item.description}</View>
65
+            <View className='price'>
66
+              <Text className='priceleft'>
67
+                合计金额:¥
68
+                <Text style={{ fontSize: '24rpx' }}>
69
+                  {((item.actualPrice / 100) - (item.cashback / 100) - (item.commissionCharge / 100)).toFixed(2)}
70
+                </Text>元
71
+              </Text>
72
+              <Text className='pnum'>数量:1张</Text>
73
+            </View>
74
+            <View className='veri_Date' > 核销时间:{formatTimes(item.verifiedDate, 'yyyy-MM-dd hh:mm')}</View>
75
+          </View>
44 76
         </View>
45
-        <View className='veri_Date' > 核销时间:{formatTimes(item.verifiedDate, 'yyyy-MM-dd hh:mm')}</View>
46 77
         <View className='line' />
47
-        <View className='phone'>客户手机:<Text>{item.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</Text>
78
+        <View className='phone'>
79
+          客户手机:{item.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}
48 80
           {
49
-            !item.isConfirmVerified && <button className='Button-OK' onClick={confirmOrder} style={{ display: buttonStyle }}  >确认核销</button>
81
+            !item.isConfirmVerified && <Button className='Button-OK' onClick={confirmOrder} style={{ display: buttonStyle }}  >确认核销</Button>
50 82
           }
51 83
         </View>
52 84
       </View>
53 85
     </View>
86
+
54 87
   )
55 88
 }
56 89
 

+ 68
- 84
src/components/ShopUsed/style.less 查看文件

@@ -1,104 +1,88 @@
1
-.orderCard {
2
-  margin-bottom: 20px;
3
-  .orderId {
4
-    font-size: 20px;
1
+.orderCard3{
2
+  .hardtop{
5 3
     color: #666666;
6
-    line-height: 44px;
7
-    float: left;
8
-    margin: 60px 0 32px 0;
9
-  }
10
-  .orderTime {
4
+    line-height: 44px;    
11 5
     font-size: 20px;
12
-    color: #666666;
13
-    line-height: 44px;
14
-    float: right;
15
-    margin: 60px 0 32px 0;
6
+    position: relative;
7
+    margin: 20px 0;
8
+    .orderId{
9
+      display: inline-block;
10
+    }
11
+    .orderTime{
12
+      position: absolute;
13
+      right: 30px;
14
+      display: inline-block;
15
+      justify-self: right;
16
+    }
16 17
   }
17
-  .order {
18
-    background: #ffffff;
18
+  .order{
19 19
     box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
20 20
     border-radius: 12px;
21 21
     padding: 20px;
22
-    .orderImg {
23
-      width: 194px;
24
-      height: 194px;
25
-      border-radius: 22px;
26
-      float: left;
27
-      margin: 0 26px 30px 0;
28
-    }
29
-    .orderRight {
30
-      .foodName {
31
-        font-size: 24px;
32
-        color: #333333;
22
+    margin: 0 5px;
23
+    .orderTop{
24
+      display: flex;
25
+      .orderImg{
26
+        flex: none;
27
+        width: 194px;
28
+        height: 194px;
29
+        margin-right: 25px;
30
+        margin-bottom: 30px;
33 31
       }
34
-      .price {
35
-        font-size: 20px;
36
-        font-weight: bold;
37
-        color: #202020;
38
-        line-height: 44px;
39
-        height: 19px;
40
-        .pnum {
32
+      .orderRight{
33
+        flex: auto;
34
+        .foodName{
35
+          font-size: 24px;
41 36
           color: #333333;
42
-          font-weight: 400;
43
-          margin-left: 47px;
37
+          line-height: 40px;
38
+          margin-top: 30px;
39
+        }
40
+        .price{
41
+          font-size: 20px;
42
+          font-weight: bold;
43
+          color: #202020;
44
+          line-height: 44px;
45
+          display: flex;
46
+          .priceleft{
47
+            flex: 1;
48
+          }
49
+          .pnum {
50
+            color: #333333;
51
+            flex: 1;
52
+            font-weight: 400;
53
+          }
54
+        }        
55
+        .veri_Date {
56
+          color: red;
57
+          letter-spacing: 1px;
58
+          font-size: 30px;
44 59
         }
45
-      }
46
-      .price + view {
47
-        font-size: 20px;
48
-        font-weight: bold;
49
-        color: #ff3434;
50
-        line-height: 44px;
51
-        margin-bottom: 35px;
52
-        height: 19px;
53 60
       }
54 61
     }
55
-    .veri_Date {
56
-      color: red;
57
-      letter-spacing: 1px;
58
-      font-size: 30px;
59
-      padding-top: 20px;
60
-    }
61
-    .line {
62
-      margin-top: 30px;
63
-
62
+    .line{
64 63
       width: 100%;
65 64
       height: 2px;
66 65
       background: #000;
67 66
       opacity: 0.1;
68
-      margin-top: 30px;
69
-    }
70
-    .phone {
71
-      font-size: 24px;
72
-      color: #666666;
73
-      line-height: 44px;
74
-      height: 23px;
75
-      margin: 37px 0;
76
-      // .Button-OK{
77
-      //   font-size: 28px;
78
-      //   color: #C0C8D3;
79
-      //   line-height: 34px;
80
-      //   text-align: center;
81
-      //   padding:40px 0 100px 0;
82
-      // }
67
+      margin-bottom: 30px;
83 68
     }
84
-
85
-    .tripTime {
69
+    .phone{
86 70
       font-size: 24px;
87 71
       color: #666666;
88
-      line-height: 44px;
89
-      margin-bottom: 30px;
72
+      line-height: 44px;  
73
+      position: relative;  
74
+      button {
75
+        width: 160px;
76
+        position: absolute;
77
+        right: 60px;
78
+        top: 0;
79
+        height: 40px;
80
+        background: #1a3b83;
81
+        line-height: 40px;
82
+        border-radius: 12px;
83
+        font-size: 23px;
84
+        color: #ffffff;
85
+      }
90 86
     }
91 87
   }
92
-}
93
-button {
94
-  width: 160px;
95
-  height: 40px;
96
-  background: #1a3b83;
97
-  line-height: 40px;
98
-  border-radius: 12px;
99
-  font-size: 23px;
100
-  color: #ffffff;
101
-  position: relative;
102
-  right: -8em;
103
-  top: -2em;
104
-}
88
+}

+ 1
- 1
src/components/SlideView/index.jsx 查看文件

@@ -56,7 +56,7 @@ export default (props) => {
56 56
             const { height } = res[0]
57 57
             if (height && height !== contentHeightRef.current) {
58 58
               setActStyle({
59
-                height: `calc(${height}px - 10px)`,
59
+                height: `calc(${height}px - 30px)`,
60 60
               })
61 61
               contentHeightRef.current = height
62 62
             }

+ 1
- 1
src/components/tip/index.less 查看文件

@@ -1,7 +1,7 @@
1 1
 .tip{
2 2
   padding:23px 0 22px 31px;
3 3
   height: 70px;
4
-
4
+  flex: none;
5 5
   .tipicon{
6 6
     width: 17px;
7 7
     height: 19px;

+ 8
- 6
src/hotel/components/shareRoom/ShareRoom.jsx 查看文件

@@ -1,10 +1,9 @@
1
-import React from 'react'
2
-import Popup from '@/components/Popup'
1
+import React, { useState } from 'react'
3 2
 import Taro from '@tarojs/taro'
4 3
 import { Input, Button, View, Picker, Label } from '@tarojs/components'
4
+import Popup from '@/components/Popup'
5 5
 import { shareRoom } from '@/services/landlord'
6 6
 import './ShareRoom.less'
7
-import { useState } from 'react'
8 7
 
9 8
 
10 9
 export default (props) => {
@@ -12,6 +11,8 @@ export default (props) => {
12 11
   const [startDate, setStartDate] = useState('')
13 12
   const [endDate, setEndDate] = useState('')
14 13
   const [roomNum, setRoomNum] = useState('')
14
+  const [loading, setLoading] = useState(false)
15
+
15 16
   const handelStartDate = (e) => {
16 17
     setStartDate(e.detail.value)
17 18
   }
@@ -19,10 +20,11 @@ export default (props) => {
19 20
     setEndDate(e.detail.value)
20 21
   }
21 22
   const handelShare = () => {
23
+    setLoading(true)
22 24
     var myDate = new Date();
23 25
     shareRoom({
24 26
       hotelId: room.hotelId,
25
-      personNum: roomNum == '' ? 0 : roomNum, 
27
+      personNum: roomNum == '' ? 0 : roomNum,
26 28
       roomId: room.roomId,
27 29
       startDate: startDate == '' ? myDate.toLocaleDateString() : startDate,
28 30
       endDate: endDate == '' ? myDate.toLocaleDateString() : endDate
@@ -31,8 +33,8 @@ export default (props) => {
31 33
       setStartDate('')
32 34
       setEndDate('')
33 35
       setRoomNum()
36
+      setLoading(false)
34 37
     })
35
-
36 38
   }
37 39
   return (
38 40
     <Popup show={showCutover} onClose={onClose}>
@@ -58,7 +60,7 @@ export default (props) => {
58 60
         </View>
59 61
         <View>
60 62
           <Button className='cancel' onClick={onClose}>取消</Button>
61
-          <Button className='btn' onClick={handelShare}>分享</Button>
63
+          <Button className='btn' onClick={handelShare} loading={loading} disabled={loading}>分享</Button>
62 64
         </View>
63 65
       </View>
64 66
     </Popup>

+ 8
- 2
src/hotel/pages/landlord/roomOrder/roomOrder.jsx 查看文件

@@ -3,6 +3,7 @@ import React, { useState, useEffect, useRef } from 'react'
3 3
 import CustomNav from '@/components/CustomNav'
4 4
 import Taro from '@tarojs/taro'
5 5
 import { useModel } from '@/store'
6
+import SpinBox from "@/components/Spin/SpinBox";
6 7
 import copy from '@/assets/icons/landlord/copy.png'
7 8
 import { Input, Button, View, Picker, Label, Image } from '@tarojs/components'
8 9
 import { getRoomOrderList,getHotelDetail } from '@/services/landlord'
@@ -13,11 +14,14 @@ export default withLayout((props) => {
13 14
   const { hotelId, roomId, roomName } = props.router.params
14 15
   const [detail, setDetail] = useState([])
15 16
   const { setHotel } = useModel('hotel')
17
+  const [loading, setLoading] = useState(false)
16 18
 
17 19
   useEffect(() => {
20
+    setLoading(true)
18 21
     if (roomId) {
19 22
       getRoomOrderList({ roomId: roomId }).then((res) => {
20 23
         setDetail(res.records || [])
24
+        setLoading(false)
21 25
       })
22 26
     }
23 27
   }, [roomId])
@@ -35,7 +39,7 @@ export default withLayout((props) => {
35 39
       data: val,
36 40
       success: e => {
37 41
         Taro.showToast({
38
-          title: '入住人姓名已复制',
42
+          title: '姓名已复制',
39 43
           icon: 'success',
40 44
           duration: 2000,
41 45
         })
@@ -48,7 +52,7 @@ export default withLayout((props) => {
48 52
       data: val,
49 53
       success: e => {
50 54
         Taro.showToast({
51
-          title: '入住人电话已复制',
55
+          title: '电话已复制',
52 56
           icon: 'success',
53 57
           duration: 2000,
54 58
         })
@@ -61,6 +65,7 @@ export default withLayout((props) => {
61 65
       <view className='index-navbar'>
62 66
         <CustomNav title={roomName ? decodeURIComponent(roomName) : '房间名'} />
63 67
       </view>
68
+      <SpinBox loading={loading}>
64 69
       <scroll-view scrollY style={{ height: 'calc(100vh - 65px)' }}>
65 70
 
66 71
         {
@@ -89,6 +94,7 @@ export default withLayout((props) => {
89 94
         }
90 95
 
91 96
       </scroll-view>
97
+    </SpinBox>
92 98
     </View>
93 99
   )
94 100
 })

+ 1
- 1
src/pages/MineUserAll/ContactMe/index.jsx 查看文件

@@ -58,7 +58,7 @@ export default withLayout((props) => {
58 58
           <Image mode='aspectFit' src='https://yz-shigongli.oss-cn-shanghai.aliyuncs.com/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210918145337.png' />
59 59
         </view>
60 60
         <view className='button-info'>
61
-          <Button className='button-box' onClick={submit} loading={loading}  >提交</Button>
61
+          <Button className='button-box' onClick={submit} loading={loading}  disabled={loading} >提交</Button>
62 62
           <Button className='button-box-Cancel' onClick={back} >取消</Button>
63 63
         </view>
64 64
       </view>

+ 1
- 1
src/pages/details/foodDetails/foodDetails.jsx 查看文件

@@ -227,7 +227,7 @@ export default withLayout((props) => {
227 227
                     display: extend == "" ? "none" : "",
228 228
                   }}
229 229
                 >
230
-                  <view className='title' style={{ margin: '50px 0 0 0' }} >
230
+                  <view className='title' style={{ margin: '50px 0 40px 0' }} >
231 231
                     <image src={titlezs} />
232 232
                     <text>本店指南</text>
233 233
                   </view>

+ 42
- 29
src/pages/index/tabs/Guide.jsx 查看文件

@@ -61,7 +61,7 @@ export default (props) => {
61 61
     goContent()
62 62
   })
63 63
 
64
-  const geiZy = () => {
64
+  const getGuidelist = () => {
65 65
     setLoading(true)
66 66
     getExtendContent('room', roomId, { pageSize: 500 }).then((res) => {
67 67
       // setExtend(res.records || [])
@@ -82,8 +82,8 @@ export default (props) => {
82 82
         setLoading(false)
83 83
       })
84 84
       //更多指引
85
-      geiZy()
86
-      getRecommendList({ location: roomGps }).then((res) => {
85
+      getGuidelist()
86
+      getRecommendList({ location: taRoomContent.location || '' }).then((res) => {
87 87
         setPackage(res || [])
88 88
         setLoading(false)
89 89
       })
@@ -102,7 +102,7 @@ export default (props) => {
102 102
     if (taRoomContent?.parkingAddress === "") {
103 103
       setParkingButtonStyle('none')
104 104
     }
105
-  }, [roomId, taRoomContent?.wifiPassword, taRoomContent?.parkingAddress, location])
105
+  }, [roomId, taRoomContent?.wifiPassword, taRoomContent?.parkingAddress, location, taRoomContent.location])
106 106
 
107 107
 
108 108
   const goRoomMap = () => {
@@ -169,23 +169,24 @@ export default (props) => {
169 169
                 </view>
170 170
               </view>
171 171
               {/* --------房屋位置-------- */}
172
-              {
173
-                !taRoomContent.location ? <view></view>
174
-                  :
175
-                  <view className='room-box-info-HouLocation'>
176
-                    <view className='room-bi-name-HouLocation' >
177
-                      <view className='room-bin-title-HouLocation'>房屋位置</view>
178
-                      <view className='room-bint-nameInfo-HouLocation'>
179
-                        <view className='room-bint-nameInfo-bool-HouLocation' >{taRoomContent?.address}</view>
180
-                        <view className='room-bintn-button-HouLocation' onClick={() => { goRoomMap() }} style={{ display: wifiButtonStyle }}>
181
-                          <image className='room-bintn-image-HouLocation' src={GPS} />
182
-                          <text className='room-bintn-text-HouLocation'>去这里</text>
183
-                        </view>
184
-                      </view>
172
+
173
+
174
+              <view className='room-box-info-HouLocation'>
175
+                <view className='room-bi-name-HouLocation' >
176
+                  <view className='room-bin-title-HouLocation'>房屋位置</view>
177
+                  <view className='room-bint-nameInfo-HouLocation'>
178
+                    <view className='room-bint-nameInfo-bool-HouLocation' >{taRoomContent?.address}</view>
179
+                    <view className='room-bintn-button-HouLocation' onClick={() => { goRoomMap() }} style={{ display: wifiButtonStyle }}>
180
+                      <image className='room-bintn-image-HouLocation' src={GPS} />
181
+                      <text className='room-bintn-text-HouLocation'>去这里</text>
185 182
                     </view>
186 183
                   </view>
184
+                </view>
185
+              </view>
186
+
187
+
188
+
187 189
 
188
-              }
189 190
 
190 191
 
191 192
               {/* --------停车场-------- */}
@@ -208,19 +209,31 @@ export default (props) => {
208 209
 
209 210
 
210 211
               {/* --------无线网-------- */}
211
-              <view className='room-box-info-WIFIContent'>
212
-                <view className='room-bi-name-WIFIContent' >
213
-                  <view className='room-bin-title-WIFIContent'>WiFi信息</view>
214
-                  <view className='room-bint-nameInfo-WIFIContent'>
215
-                    <view className='room-bint-nameInfo-bool-WIFIContent-wifi' >名称:{taRoomContent?.wifiName}</view>
216
-                    <view className='room-bint-nameInfo-bool-WIFIContent-password' >密码:{taRoomContent?.wifiPassword}</view>
217
-                    <view className='room-bintn-button-WIFIContent' onClick={() => { wifiCopy() }} style={{ display: wifiButtonStyle }}>
218
-                      <image className='room-bintn-image-WIFIContent' src={copy_logo} />
219
-                      <text className='room-bintn-text-WIFIContent'>复制</text>
212
+
213
+
214
+              {
215
+                !taRoomContent.wifiName && !taRoomContent.wifiPassword ? <view></view>
216
+                  :
217
+
218
+                  <view className='room-box-info-WIFIContent'>
219
+                    <view className='room-bi-name-WIFIContent' >
220
+                      <view className='room-bin-title-WIFIContent'>WiFi信息</view>
221
+                      <view className='room-bint-nameInfo-WIFIContent'>
222
+                        <view className='room-bint-nameInfo-bool-WIFIContent-wifi' >名称:{taRoomContent?.wifiName}</view>
223
+                        <view className='room-bint-nameInfo-bool-WIFIContent-password' >密码:{taRoomContent?.wifiPassword}</view>
224
+                        <view className='room-bintn-button-WIFIContent' onClick={() => { wifiCopy() }} style={{ display: wifiButtonStyle }}>
225
+                          <image className='room-bintn-image-WIFIContent' src={copy_logo} />
226
+                          <text className='room-bintn-text-WIFIContent'>复制</text>
227
+                        </view>
228
+                      </view>
220 229
                     </view>
221 230
                   </view>
222
-                </view>
223
-              </view>
231
+
232
+              }
233
+
234
+
235
+
236
+
224 237
 
225 238
               <view className='Guide-Content-box'  >
226 239
                 <view className='title-image' style={{ display: guideStyle }} >

+ 1
- 0
src/pages/index/tabs/Mine.jsx 查看文件

@@ -50,6 +50,7 @@ export default (props) => {
50 50
       lang: 'zh_CN',
51 51
       desc: "获取你的昵称、头像、地区及性别",
52 52
       success: (res) => {
53
+        console.log("🚀 ~ file: Mine.jsx ~ line 53 ~ handleGetUserProfile ~ res", res)
53 54
         const data = {
54 55
           ...res,
55 56
           sessionKey,

+ 2
- 3
src/pages/index/tabs/Recommend.jsx 查看文件

@@ -11,7 +11,7 @@ import { getIndexType, getResourceList } from '@/services/home'
11 11
 import Card from '../components/Card'
12 12
 import './less/Recommend.less'
13 13
 
14
-const listStyle = { height: 'calc(100% - 145px)' }
14
+const listStyle = { height: '100%' }
15 15
 
16 16
 export default (props) => {
17 17
   const { router, person, location } = props
@@ -80,8 +80,7 @@ export default (props) => {
80 80
   // })
81 81
 
82 82
   return (
83
-    // <view style={{ height: '100%', overflow: 'hidden',display:'flex',flexDirection:'column' }}>
84
-    <view style={{ height: '100%', overflow: 'hidden' }}>
83
+    <view style={{ height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>
85 84
       <view className='search' onClick={onSearch} >
86 85
         <input className='searchInput' disabled />
87 86
         <image className='searchicon' src={iconsearch} />

+ 2
- 6
src/pages/index/tabs/less/Recommend.less 查看文件

@@ -1,6 +1,7 @@
1 1
 .search{
2 2
     padding: 10px 30px 0 30px;
3 3
     position: relative;
4
+    flex: none;
4 5
     .searchInput{    
5 6
         height: 68px;
6 7
         background: #F8F8F8;
@@ -27,12 +28,6 @@
27 28
       letter-spacing: 0.2em;
28 29
     }
29 30
 }
30
-// .waterfall{
31
-//   column-count: 2;      //分两列
32
-//   column-gap: 30px;    //列间距
33
-//   background-color: #F8F8F8;
34
-//   padding:30px 30px 0 30px; 
35
-// }
36 31
 .botton{
37 32
   font-size: 28px;
38 33
   color: #C0C8D3;
@@ -43,6 +38,7 @@
43 38
 .index-tabs {
44 39
   padding-left: 95px;
45 40
   position: relative;
41
+  flex: none;
46 42
   .position{
47 43
     position: absolute;
48 44
     left: 36px;

+ 0
- 1
src/shop/components/ShopKeeper/shopKeeper.jsx 查看文件

@@ -154,7 +154,6 @@ export default (props) => {
154 154
           {/* 已核销 */}
155 155
           {activeTab === 1 &&
156 156
             <view style={{ height: '45vh' }}>
157
-
158 157
               <List
159 158
                 style={{ height: '100%' }}
160 159
                 noData={<NoData />}

+ 0
- 93
src/shop/components/ShopKeeper/shopKeeper.less 查看文件

@@ -51,99 +51,6 @@
51 51
     }
52 52
   }
53 53
 }
54
-.storexx {
55
-  text-align: center;
56
-  height: 300px;
57
-  background: #ffffff;
58
-  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
59
-  border-radius: 24px;
60
-  padding: 20px 30px 34px 40px;
61
-
62
-  box-sizing: border-box;
63
-  .storeName {
64
-    height: 26px;
65
-    font-size: 28px;
66
-    font-weight: bold;
67
-    color: #202020;
68
-    margin-bottom: 25px;
69
-  }
70
-  .User-info-cutover {
71
-    position: absolute;
72
-    top: 60px;
73
-    right: 60px;
74
-    .User-info-cutover-image {
75
-      width: 36px;
76
-      height: 36px;
77
-    }
78
-  }
79
-  .tip {
80
-    height: 23px;
81
-    font-size: 24px;
82
-    color: #666666;
83
-    margin-bottom: 25px;
84
-  }
85
-  .sleft {
86
-    float: left;
87
-    .lword {
88
-      height: 25px;
89
-      font-size: 26px;
90
-      color: #666666;
91
-      margin-bottom: 25px;
92
-      margin-left: 1px;
93
-    }
94
-    .yearMoney {
95
-      height: 30px;
96
-      font-size: 28px;
97
-      font-weight: bold;
98
-      color: #202020;
99
-      text {
100
-        font-size: 40px;
101
-        color: #ff3434;
102
-      }
103
-      .micon {
104
-        width: 38px;
105
-        height: 22px;
106
-        margin-left: 19px;
107
-      }
108
-    }
109
-  }
110
-  .line {
111
-    width: 2px;
112
-    height: 128px;
113
-    border-right: 2px dotted #202020;
114
-    opacity: 0.5;
115
-    position: absolute;
116
-    left: calc(50% - 1px);
117
-    display: block;
118
-  }
119
-  .sright {
120
-    float: right;
121
-    text-align: left;
122
-    .rword {
123
-      font-size: 26px;
124
-      color: #666666;
125
-      margin: 0 1px 27px 0;
126
-      text-align: center;
127
-    }
128
-    .monthMoney {
129
-      height: 24px;
130
-      font-size: 28px;
131
-      font-weight: bold;
132
-      color: #202020;
133
-      line-height: 24px;
134
-      text {
135
-        font-size: 40px;
136
-        color: #ff3434;
137
-      }
138
-      .micon2 {
139
-        width: 38px;
140
-        height: 22px;
141
-        margin-left: 23px;
142
-        margin-bottom: -2px;
143
-      }
144
-    }
145
-  }
146
-}
147 54
 
148 55
 .index-tabs {
149 56
   width: 100%;