Kaynağa Gözat

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

张延森 3 yıl önce
ebeveyn
işleme
66fd823864

+ 1
- 1
config/dev.js Dosyayı Görüntüle

@@ -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-test.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
- 1
project.config.json Dosyayı Görüntüle

@@ -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,

+ 10
- 34
src/components/List/index.jsx Dosyayı Görüntüle

@@ -14,7 +14,8 @@ export default React.forwardRef((props, ref) => {
14 14
     onDataChange,
15 15
     noData,
16 16
     className,
17
-    refres,
17
+    refres,//刷新复位
18
+    refresherEnabled,
18 19
     ...leftProps
19 20
   } = props
20 21
 
@@ -35,6 +36,10 @@ export default React.forwardRef((props, ref) => {
35 36
     }
36 37
   }
37 38
 
39
+  const loadingOff = () => {
40
+    refres()
41
+  }
42
+
38 43
   const fetchList = () => {
39 44
     if (!request) return;
40 45
 
@@ -87,38 +92,7 @@ export default React.forwardRef((props, ref) => {
87 92
       }).exec()
88 93
     })
89 94
   }, [])
90
-  const asd = () => {
91
-    request({
92
-      ...params,
93
-      pageSize,
94
-      pageNum: pageRef.current.current
95
-    }).then((res) => {
96
-      const { records, ...pageInfo } = res || {}
97
-      const lst = pageInfo.current === 1 ? records || [] : list.concat(records || [])
98
-      setList(lst)
99
-      setHasMore(pageInfo.current < pageInfo.pages)
100
-
101
-      if (onDataChange) {
102
-        onDataChange(lst, { paramsChanged: pageInfo.current === 1 })
103
-      }
104
-
105 95
 
106
-      pageRef.current = pageInfo
107
-      setLoading(false)
108
-      refres()
109
-
110
-
111
-    }).catch((err) => {
112
-      console.error(err)
113
-      setLoading(false)
114
-      refres()
115
-
116
-      if (onError) {
117
-        onError(err)
118
-      }
119
-    })
120
-
121
-  }
122 96
   // https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/ScrollViewContext.html
123 97
   // ScrollViewContext 透传给父组件
124 98
   //https://zh-hans.reactjs.org/docs/hooks-reference.html#useimperativehandle
@@ -126,13 +100,15 @@ export default React.forwardRef((props, ref) => {
126 100
     context: contextRef.current,
127 101
   }))
128 102
 
103
+
129 104
   return (
130 105
     <ScrollView
131 106
       {...leftProps}
132 107
       scrollY
133 108
       enhanced
134
-      refresherEnabled={props}
135
-      onRefresherrefresh={asd}
109
+      refresherEnabled={refresherEnabled}
110
+
111
+      onRefresherrefresh={fetchRef.current = fetchList}
136 112
       onScrollToLower={handleScrollToLower}
137 113
       className={`${className} ${uqCls} list-view`}
138 114
     >

+ 1
- 1
src/components/ShopUsed/style.less Dosyayı Görüntüle

@@ -19,7 +19,7 @@
19 19
     box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
20 20
     border-radius: 12px;
21 21
     padding: 20px;
22
-    margin: 0 5px;
22
+    margin: 0 3px;
23 23
     .orderTop{
24 24
       display: flex;
25 25
       .orderImg{

+ 8
- 2
src/components/foodCards/foodCards.jsx Dosyayı Görüntüle

@@ -13,13 +13,19 @@ const Action = CouponCard.Action
13 13
 
14 14
 //套餐卡片
15 15
 export default (props) => {
16
-  const { item, st, det, editable, goshop } = props
16
+  const { item, st, det, editable, goshop, scene, subOrderId, id } = props
17 17
   const { shopId } = props.item
18 18
   const goFood = () => {
19 19
     Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${shopId}` })
20 20
   }
21
+
22
+  // 支付成功--判断---有---问--没有--跳转到全部订单
23
+
24
+
21 25
   const handlePayClick = () => {
22
-    Taro.navigateTo({ url: `/pages/PayOrder/index?packageId=${item.packageId}` })
26
+    Taro.navigateTo({ url: `/pages/PayOrder/index?packageId=${item.packageId}&scene=${scene || ''}&subOrderId=${subOrderId}&id=${id}` })
27
+    console.log("🚀 ~ file: foodCards.jsx ~ line 17 ~ scene", item.packageId, scene)
28
+
23 29
   }
24 30
   const PayAction = <Action.Icon icon={Pay} text='支付' onClick={handlePayClick} />
25 31
   return (

+ 20
- 20
src/hotel/components/HouseManage/houseManage.jsx Dosyayı Görüntüle

@@ -150,25 +150,26 @@ export default React.forwardRef((props, ref) => {
150 150
     setShowCutover3(false)
151 151
   }
152 152
   return (
153
-    <view>
154
-      <view style={{ padding: '0 30rpx', height: '100%' }}>
155
-        <ToggleRole role='hotel' showCutover={showCutover3} maskClosable={showCutover3} onClose={onClose3} />
156
-        <View>
157
-          <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择民宿" value={hotel?.hotelId} kv={['hotelName', 'hotelId']} dicts={hotelList} onChange={handleHotelChange} /></view>
158
-          <view onClick={ShowMoldeOn3} className='User-info-cutover'>
159
-            <image className='User-info-cutover-image' src={cutoverUser} />
160
-          </view>
161
-        </View>
153
+    <View style={{ padding: '0 30rpx', height: '100%', display: 'flex', flexDirection: 'column' }}>
154
+      <ToggleRole role='hotel' showCutover={showCutover3} maskClosable={showCutover3} onClose={onClose3} />
155
+      <View style={{ flex: 'none' }}>
156
+        <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择民宿" value={hotel?.hotelId} kv={['hotelName', 'hotelId']} dicts={hotelList} onChange={handleHotelChange} /></view>
157
+        <view onClick={ShowMoldeOn3} className='User-info-cutover'>
158
+          <image className='User-info-cutover-image' src={cutoverUser} />
159
+        </view>
160
+      </View>
161
+      <View style={{ flex: 'none' }}>
162 162
         <SearchBar placeholder='请输入房源名搜索' onBlur={onSearch} />
163
-        <ShareRoom showCutover={showCutover} onClose={onClose} room={room} onFinish={handleFinish} />
164
-        <ShareCard showCutover={showCard} onClose={onClose2} />
163
+      </View>
164
+      <ShareRoom showCutover={showCutover} onClose={onClose} room={room} onFinish={handleFinish} />
165
+      <ShareCard showCutover={showCard} onClose={onClose2} />
166
+      <View style={{ flex: 'auto', overflow: 'hidden', position: 'relative' }}>
165 167
         <List
166
-          style={{ height: 'calc(100vh - 290px)' }}
168
+          style={{ height: '100%' }}
167 169
           request={getRoomList}
168 170
           params={queryParams}
169 171
           onDataChange={setDetail}
170 172
           refresherEnabled={false}
171
-
172 173
           noData="暂无房源信息"
173 174
         >
174 175
           <view className='waterfall'>
@@ -185,11 +186,10 @@ export default React.forwardRef((props, ref) => {
185 186
             }
186 187
           </view>
187 188
         </List>
188
-      </view>
189
-      <view className='addHouse' onClick={handelClick}>
190
-        <image className='addImg' src={addImg} />添加房源
191
-      </view>
192
-
193
-    </view>
189
+      </View>
190
+      <View className='addHouse' onClick={handelClick} style={{ flex: 'none' }}>
191
+        <Image className='addImg' src={addImg} />添加房源
192
+      </View>
193
+    </View>
194 194
   )
195
-})
195
+})

+ 1
- 1
src/hotel/components/HouseManage/houseManage.less Dosyayı Görüntüle

@@ -51,7 +51,7 @@
51 51
   }
52 52
 }
53 53
 .addHouse{
54
-  margin: 0 30px 50px;
54
+  margin-bottom:50px;
55 55
   height: 88px;
56 56
   background: #274291;
57 57
   border-radius: 12px;

+ 23
- 23
src/hotel/components/Income/income.jsx Dosyayı Görüntüle

@@ -1,4 +1,6 @@
1 1
 import { useState, useMemo } from 'react'
2
+import Taro from '@tarojs/taro'
3
+import { View, Image } from '@tarojs/components';
2 4
 import eyes from '@/assets/icons/shopKeeper/eyesON.png'
3 5
 import ceyes from '@/assets/icons/shopKeeper/eyesOFF.png'
4 6
 import sImg from '@/assets/icons/landlord/money2.png'
@@ -28,32 +30,30 @@ export default (props) => {
28 30
     isMomth ? setMonth(false) : setMonth(true)
29 31
   }
30 32
   return (
31
-    <view>
32
-      <view style={{ padding: '30rpx', height: '100%' }}>
33
-        <view className='storexx'>
34
-          <view className='storeName'>店名:{hotel.hotelName}</view>
35
-          <view className='money'>
36
-            <view className='sleft'>
37
-              <view className='lword'>全年收入(税前)</view>
38
-              <view className='yearMoney'>
39
-                <text>{isyear ? formatPrice(account?.amounts) : '******'}</text>元
40
-                <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
41
-              </view>
33
+    <view style={{ padding: '30rpx', height: '100%',display:'flex',flexDirection:'column' }}>
34
+      <view className='storexx' style={{flex:'none'}}>
35
+        <view className='storeName'>店名:{hotel.hotelName}</view>
36
+        <view className='money'>
37
+          <view className='sleft'>
38
+            <view className='lword'>全年收入(税前)</view>
39
+            <view className='yearMoney'>
40
+              <text>{isyear ? formatPrice(account?.amounts) : '******'}</text>元
41
+              <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
42 42
             </view>
43
-            <view className='line' />
44
-            <view className='sright'>
45
-              <view className='rword'>当月收入(税前)</view>
46
-              <view className='monthMoney'>
47
-                <text>{isMomth ? formatPrice(account?.currentCharges) : '******'}</text>元
48
-                <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
49
-              </view></view>
50 43
           </view>
44
+          <view className='line' />
45
+          <view className='sright'>
46
+            <view className='rword'>当月收入(税前)</view>
47
+            <view className='monthMoney'>
48
+              <text>{isMomth ? formatPrice(account?.currentCharges) : '******'}</text>元
49
+              <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
50
+            </view></view>
51 51
         </view>
52
-
53
-        <view className='title' >推广收入记录</view>
54
-
52
+      </view>
53
+      <view className='title' style={{flex:'none'}}>推广收入记录</view>
54
+      <View style={{flex:'auto',overflow:'hidden',position:'relative'}}>
55 55
         <List
56
-          style={{ height: 'calc(100vh - 375px)' }}
56
+          style={{ height: '100%' }}
57 57
           request={fetchAPI}
58 58
           params={queryParams}
59 59
           noData={<NoData />}
@@ -70,7 +70,7 @@ export default (props) => {
70 70
           )}
71 71
         >
72 72
         </List>
73
-      </view>
73
+      </View>
74 74
     </view>
75 75
   )
76 76
 }

+ 1
- 1
src/hotel/pages/components/Extend/index.jsx Dosyayı Görüntüle

@@ -110,7 +110,7 @@ export default (props) => {
110 110
             : item.contentType == 'video' ?
111 111
               <View>
112 112
                 <SlideView del onDelete={handelDelete}>
113
-                  <Video className='storezn' style={{ width: '100%', display: 'block' }} src={eimg} />
113
+                  <Video style={{ width: '100%', display: 'block' }} src={eimg} />
114 114
                 </SlideView>
115 115
               </View>
116 116
               : null

+ 1
- 13
src/hotel/pages/components/Extend/style.less Dosyayı Görüntüle

@@ -48,20 +48,8 @@
48 48
     line-height: 64px;
49 49
     margin-bottom: 60px;
50 50
     text-align: justify;
51
+    white-space: pre-wrap;
51 52
   }
52
-  // .weui-slideview__btn__wrp{
53
-  //   background: #FFFFFF;
54
-  //   box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
55
-  //   border-radius: 12px;
56
-  //   margin: 5px 5px 5px 20px;
57
-  //   height: 97%;
58
-  //   width: 67px;
59
-  // }
60
-  // .weui-slideview__btn{
61
-  //   width: 44px;
62
-  //   height: 44px;
63
-  //   line-height: 44px;
64
-  // }
65 53
   Textarea{
66 54
     height: 300px;
67 55
     width: 100%;

+ 14
- 17
src/hotel/pages/landlord/addRoom/addRoom.jsx Dosyayı Görüntüle

@@ -32,34 +32,31 @@ export default withLayout((props) => {
32 32
   const [paddress, setpAddress] = useState()
33 33
   const [wifiName, setwifiName] = useState()
34 34
 
35
-  const tipsMap = () => {
36
-    Taro.showToast({
37
-      title: '位置信息添加成功',
38
-      icon: 'success',
39
-      duration: 2000
40
-    })
41
-  }
42
-
43
-
44 35
   const onRoomMap = () => {
45 36
     Taro.chooseLocation().then((res) => {
46
-      setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude,locName: res.name })
37
+      setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name })
47 38
     })
48 39
   }
49
-
50
-
51
-
40
+  
52 41
   const onParkMap = () => {
53 42
     Taro.chooseLocation().then((res) => {
54
-      setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude, pkLocName: res.name  })
43
+      setRoomModel({ ...roomModel, parkingLocation: res.longitude + ',' + res.latitude, pkLocName: res.name })
55 44
     })
56 45
   }
57 46
   const sumbit = () => {
58 47
     if (
48
+      roomModel.roomName != null &&
59 49
       roomModel.roomName != '' &&
50
+
51
+      roomModel.address != null &&
60 52
       roomModel.address != '' &&
53
+
54
+      roomModel.location != null &&
61 55
       roomModel.location != '' &&
56
+
57
+      roomModel.weight != null &&
62 58
       roomModel.weight != ''
59
+
63 60
     ) {
64 61
       const seveices = roomId ? updateRoom : saveRoom
65 62
       seveices(roomModel, roomId).then(() => {
@@ -204,7 +201,7 @@ export default withLayout((props) => {
204 201
               <mp-cell>
205 202
                 <View className='roomloc'>
206 203
                   <Label style={{ color: '#666', lineHeight: '30px' }} onClick={onRoomMap} >{roomModel.locName || '请选择定位'}</Label>
207
-                  <Textarea style={{height:'60px',width:'100%'}} onInput={(e) => setRoomModel({ ...roomModel, address: e.detail.value })} value={roomModel.address} placeholder='请输入房屋位置(必填)' />
204
+                  <Textarea style={{ height: '60px', width: '100%' }} onInput={(e) => setRoomModel({ ...roomModel, address: e.detail.value })} value={roomModel.address} placeholder='请输入房屋位置(必填)' />
208 205
                   <Label style={{ display: 'none' }} >{isError(roomModel.location) ? '房间定位(必填)' : roomModel.location}</Label>
209 206
                   <Image className='location' src={GPS} onClick={onRoomMap} />
210 207
                 </View>
@@ -216,8 +213,8 @@ export default withLayout((props) => {
216 213
                   <mp-cell>
217 214
                     <View className='roomloc'>
218 215
                       <Label style={{ color: '#666', lineHeight: '30px' }} onClick={onParkMap}>{roomModel.pkLocName || '请选择定位'}</Label>
219
-                      <Textarea  style={{height:'60px',width:'100%'}} onInput={(e) => setRoomModel({ ...roomModel, parkingAddress: e.detail.value })} value={roomModel.parkingAddress} placeholder='请输入停车场位置' />
220
-                      <Label style={{display: 'none' }}>{isError(roomModel.parkingLocation) ? '停车场定位' : roomModel.parkingLocation}</Label>
216
+                      <Textarea style={{ height: '60px', width: '100%' }} onInput={(e) => setRoomModel({ ...roomModel, parkingAddress: e.detail.value })} value={roomModel.parkingAddress} placeholder='请输入停车场位置' />
217
+                      <Label style={{ display: 'none' }}>{isError(roomModel.parkingLocation) ? '停车场定位' : roomModel.parkingLocation}</Label>
221 218
                       <Image className='location' src={GPS} onClick={onParkMap} />
222 219
                     </View>
223 220
                   </mp-cell>

+ 1
- 1
src/layouts/Loading.jsx Dosyayı Görüntüle

@@ -24,7 +24,7 @@ export default (props) => {
24 24
           textAlign: 'center',
25 25
           opacity: '0.8',
26 26
           animation: ' logo-opacity 2s linear infinite',
27
-
27
+          fontSize: '4vw',
28 28
         }}
29 29
       >
30 30
         收集人间美好

+ 1
- 0
src/layouts/index.jsx Dosyayı Görüntüle

@@ -58,6 +58,7 @@ export default (Child) => (props) => {
58 58
     })
59 59
   }
60 60
 
61
+
61 62
   return loading ? <Loading /> : <Child {...props} person={person} router={router} location={location} />
62 63
 
63 64
 }

+ 1
- 1
src/pages/MineUserAll/ContactMe/index.jsx Dosyayı Görüntüle

@@ -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}  disabled={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>

+ 27
- 5
src/pages/PayOrder/index.jsx Dosyayı Görüntüle

@@ -17,7 +17,8 @@ import "./style.less";
17 17
 
18 18
 export default withLayout((props) => {
19 19
   const { router, person } = props;
20
-  const { packageId, orderId } = props.router.params;
20
+  console.log("🚀 ~ file: index.jsx ~ line 20 ~ withLayout ~ props", props)
21
+  const { packageId, orderId, scene, subOrderId, id } = props.router.params;
21 22
   const [payInfo, setPayInfo] = useState();
22 23
   // 是否已阅读协议
23 24
   const [agreement, setAgreement] = useState(false);
@@ -64,14 +65,35 @@ export default withLayout((props) => {
64 65
       package: params.packageValue,
65 66
       success: () => {
66 67
         setPayInfo();
67
-        Taro.redirectTo({
68
-          url: "/pages/MineUserAll/AllOrder/index",
69
-        });
68
+
70 69
         Taro.showToast({
71 70
           title: "支付成功",
72 71
           icon: "none",
73
-          duration: 2000,
72
+          duration: 1000,
74 73
         });
74
+        if (!scene) {
75
+          Taro.redirectTo({
76
+            url: "/pages/MineUserAll/AllOrder/index",
77
+          });
78
+        } else {
79
+          Taro.showModal({
80
+            title: '是否核销',
81
+            success: function (res) {
82
+              if (res.confirm) {
83
+                Taro.navigateTo({
84
+                  url: `/pages/TobeShop/index?id=${id}&subOrderId=${subOrderId}`,
85
+                });
86
+
87
+              } else if (res.cancel) {
88
+                Taro.redirectTo({
89
+                  url: "/pages/MineUserAll/AllOrder/index",
90
+                });
91
+              }
92
+            }
93
+          })
94
+        }
95
+
96
+
75 97
       },
76 98
       fail: (e) => {
77 99
         Taro.showToast({

+ 1
- 1
src/pages/details/foodDetails/foodDetails.jsx Dosyayı Görüntüle

@@ -217,7 +217,7 @@ export default withLayout((props) => {
217 217
                     <text>返现套餐</text>
218 218
                   </view>
219 219
                   {(spackage || []).map((item) => (
220
-                    <Cards key={item.packageId} editable='1' st={star} goshop='1' item={item} det={detail} />
220
+                    <Cards scene={scene} id={id} subOrderId={subOrderId} key={item.packageId} editable='1' st={star} goshop='1' item={item} det={detail} />
221 221
                   ))}
222 222
                 </view>
223 223
                 <view

+ 1
- 3
src/shop/components/Sparead/spreadMoney.jsx Dosyayı Görüntüle

@@ -19,9 +19,7 @@ export default (props) => {
19 19
   const [isyear, setYear] = useState(true)
20 20
   const [isMomth, setMonth] = useState(false)
21 21
 
22
-  const queryParams = useMemo(() => ({
23
-
24
-  }), [])
22
+  const queryParams = useMemo(() => ({}), [])
25 23
 
26 24
 
27 25
   const reqestAPI = getList(shopMoney?.acc?.accountId)

+ 13
- 12
src/shop/pages/spread/spreadIndex.jsx Dosyayı Görüntüle

@@ -1,11 +1,8 @@
1 1
 import React, { useState, useEffect, useRef } from 'react'
2 2
 import CustomNav from '@/components/CustomNav'
3 3
 import { useRouter } from '@tarojs/taro'
4
-import baozan from '@/assets/icons/housemantj/bgood.png'
5
-
6
-import { getShopList, getShopMoney, getAccount, getVerifiedOrder, setGetVerifiedOrder } from '@/services/shopBoss'
4
+import { getShopList, getShopMoney, getVerifiedOrder } from '@/services/shopBoss'
7 5
 import { withSubscribeMessage } from '@/utils/subscribeMessage'
8
-import SpinBox from "@/components/Spin/SpinBox";
9 6
 import withLayout from '@/layouts'
10 7
 import {
11 8
   TPL_MESSAGE_SHOP_PAY_SUCCESS,
@@ -22,15 +19,17 @@ import { View } from '@tarojs/components'
22 19
 
23 20
 export default withLayout((props) => {
24 21
   const { router, person } = props
25
-
26 22
   const { params } = useRouter()
27
-  const { tab } = params || {}
23
+  const { tab,shopOrderId } = params || {}
28 24
   const [currentTab, setCurrentTab] = useState(0)
25
+  //顶部的商铺列表
29 26
   const [shopList, setShopList] = useState([])
27
+  //当前商铺
30 28
   const [shop, setShop] = useState()
29
+  // const shopOrderId='1a8deba868489b0be19cba941e6f577e'
31 30
   const shopId = shop?.shopId
32
-  const [loading, setLoading] = useState(false)
33 31
 
32
+  
34 33
   const [amountType, setAmountType] = useState('order')
35 34
   const [isVerified, setisVerified] = useState(0)
36 35
   const [shopMoney, setShopMoney] = useState([])
@@ -52,7 +51,12 @@ export default withLayout((props) => {
52 51
     getShopList().then((res) => {
53 52
       const { shopList: list, shop: current } = res
54 53
       setShopList(list)
55
-      setShop(current)
54
+      if (shopOrderId) {
55
+        setShop(list.filter(x=>x.shopId==shopOrderId)[0])
56
+      }
57
+      else{
58
+        setShop(current)
59
+      }
56 60
     })
57 61
   }, [])
58 62
 
@@ -73,14 +77,11 @@ export default withLayout((props) => {
73 77
   }
74 78
 
75 79
   useEffect(() => {
76
-    setLoading(true)
77 80
     if (shopId) {
78 81
       getShopMoney(shopId, amountType).then((e) => {
79 82
         setShopMoney(e)
80
-        setLoading(false)
81
-      }).catch(setLoading(false))
83
+      })
82 84
     }
83
-
84 85
   }, [amountType, shopId, currentTab])
85 86
 
86 87
   //店铺选择