Explorar el Código

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

张延森 hace 3 años
padre
commit
8e683bfdd9

+ 1
- 1
project.config.json Ver fichero

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

+ 6
- 5
src/components/BossCard/index.jsx Ver fichero

@@ -11,7 +11,7 @@ import starOff from '@/assets/icons/housemantj/景点爆赞.png'
11 11
 import food from '@/assets/icons/ProCard/food.png'
12 12
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
13 13
 
14
-
14
+import { getQueryString} from '@/utils/index'
15 15
 //入住指引--老板推荐
16 16
 
17 17
 
@@ -19,16 +19,17 @@ import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
19 19
 import './style.less'
20 20
 
21 21
 export default (props) => {
22
-  const { item, cardNavigateTo } = props
23
-  const { shopId } = props.item
22
+  const { item, cardNavigateTo,taRoomContent,trackClick } = props
23
+  const { shopId, packageId } = props.item
24 24
   const [isSaved, toggleSave] = useSave(item.isSaved, 'shop_package', item.packageId)
25 25
   const [city, setCity] = useState({})
26 26
   const [detail, setDetail] = useState({})
27 27
 
28
+    
28 29
 
29
-
30
-
30
+  
31 31
   const goFood = () => {
32
+     trackClick({ eventType: 'hotel_recommend_package', eventParams: getQueryString({ hotelId:taRoomContent.hotelId,shopId:shopId,packageId:packageId})  })
32 33
     Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${shopId}` })
33 34
   }
34 35
 

+ 0
- 3
src/components/CompoentsOrder/complete/index.jsx Ver fichero

@@ -93,7 +93,6 @@ export default (props) => {
93 93
     Taro.scanCode({
94 94
       onlyFromCamera: true,
95 95
       success: (res) => {
96
-        console.log(res,'-------------')
97 96
         if (res.path) {
98 97
           Taro.navigateTo({
99 98
             url: `/${res.path}&subOrderId=${item.subOrderId}`,
@@ -107,7 +106,6 @@ export default (props) => {
107 106
         }
108 107
       },
109 108
       fail: (err) => {
110
-        console.log(err, "err");
111 109
       },
112 110
     });
113 111
   };
@@ -349,7 +347,6 @@ export default (props) => {
349 347
                     {/* 评分 */}
350 348
                     <view className="card-box-star">
351 349
                       {scoreList.map((_, index) => {
352
-                        console.log(index);
353 350
                         const src = index + 1 <= item.score ? starOn : starOff;
354 351
                         return (
355 352
                           <image

+ 6
- 3
src/components/List/index.jsx Ver fichero

@@ -9,8 +9,8 @@ export default (props) => {
9 9
     params,
10 10
     pageSize = 10,
11 11
     onError,
12
-    shopId,
13 12
     onDataChange,
13
+    noData,
14 14
     ...leftProps
15 15
   } = props
16 16
 
@@ -73,7 +73,7 @@ export default (props) => {
73 73
   // 请求数据
74 74
   useEffect(() => {
75 75
     fetchRef.current(payload)
76
-  }, [payload, shopId])
76
+  }, [payload, request])
77 77
 
78 78
   return (
79 79
     <ScrollView
@@ -85,7 +85,10 @@ export default (props) => {
85 85
         ? props.children
86 86
         : list.map((item, index) => render({ item, index }))
87 87
       }
88
-      <view className='botton' style={{ display: hasMore ? 'none' : '' }}>已经到底了~</view>
88
+      { !list || !list.length && noData }
89
+
90
+      { list && list.length > 0 && !hasMore && <view className='botton'>已经到底了~</view> }
91
+      
89 92
     </ScrollView>
90 93
   )
91 94
 }

+ 26
- 15
src/hotel/components/HouseManage/houseManage.jsx Ver fichero

@@ -3,8 +3,9 @@ import see from '@/assets/icons/landlord/查看入住人.png'
3 3
 import share from '@/assets/icons/landlord/分享链接.png'
4 4
 import del from '@/assets/icons/landlord/删除.png'
5 5
 import addImg from '@/assets/icons/landlord/添加.png'
6
-import React, { useState, useEffect, useRef, useImperativeHandle } from 'react'
6
+import React, { useState, useEffect, useRef, useImperativeHandle,useMemo } from 'react'
7 7
 import { getRoomList, deleteRoom } from '@/services/landlord'
8
+import List from '@/components/List';
8 9
 import SearchBar from '@/components/SearchBar'
9 10
 import ShareRoom from '../shareRoom/ShareRoom.jsx'
10 11
 import ShareCard from '../shareCard/shareCard'
@@ -15,6 +16,9 @@ export default React.forwardRef((props, ref) => {
15 16
   const { hotel } = props
16 17
   const [detail, setDetail] = useState([])
17 18
 
19
+  const fetchAPI = useMemo(() => hotel.hotelId?()=>getRoomList({hotelId: hotel.hotelId}):undefined, [hotel?.hotelId])
20
+  const queryParams = useMemo(() => ({}), [])
21
+
18 22
   const shareDataRef = useRef()
19 23
 
20 24
   // 判断是否首次加载
@@ -118,20 +122,27 @@ export default React.forwardRef((props, ref) => {
118 122
         <SearchBar placeholder='请输入房源名搜索' onBlur={onSearch} />
119 123
         <ShareRoom showCutover={showCutover} onClose={onClose} room={room} onFinish={handleFinish} />
120 124
         <ShareCard showCutover={showCard} onClose={onClose2} />
121
-        <scroll-view scrollY style={{ height: 'calc(100vh - 244px)' }}>
122
-          {
123
-            (detail || []).map((item, inx) =>
124
-              <view className='houseCard' key={inx}>
125
-                <view className='houseName' onClick={() => { handelDetail(item) }} >{item.roomName || ''}</view>
126
-                <view className='operation'>
127
-                  <view onClick={() => handelOrder(item)}><image src={see} />查看入住人</view>
128
-                  <view onClick={() => ShowMoldeOn(item)}><image src={share} />分享链接</view>
129
-                  <view onClick={() => handelDelete(item)}><image src={del} />删除房源</view>
130
-                </view>
131
-              </view>
132
-            )
133
-          }
134
-        </scroll-view>
125
+        <List
126
+          style={{ height: 'calc(100vh - 244px)' }}
127
+          request={fetchAPI}
128
+          params={queryParams}
129
+          onDataChange={setDetail}
130
+          noData="暂无房源信息"
131
+        >
132
+          <view className='waterfall'>
133
+            {
134
+              detail.map((item, index) =>
135
+                <view className='houseCard' key={index}>
136
+                  <view className='houseName' onClick={() => { handelDetail(item) }} >{item.roomName || ''}</view>
137
+                  <view className='operation'>
138
+                    <view onClick={() => handelOrder(item)}><image src={see} />查看入住人</view>
139
+                    <view onClick={() => ShowMoldeOn(item)}><image src={share} />分享链接</view>
140
+                    <view onClick={() => handelDelete(item)}><image src={del} />删除房源</view>
141
+                  </view>
142
+                </view>)
143
+            }
144
+          </view>
145
+        </List>
135 146
       </view>
136 147
       <view className='addHouse' onClick={handelClick}>
137 148
         <image className='addImg' src={addImg} />添加房源

+ 39
- 39
src/hotel/components/Income/income.jsx Ver fichero

@@ -1,4 +1,4 @@
1
-import { useState } from 'react'
1
+import { useState, useMemo } from 'react'
2 2
 import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
3 3
 import ceyes from '@/assets/icons/shopKeeper/小眼睛-闭上.png'
4 4
 import sImg from '@/assets/icons/landlord/我的收入2.png'
@@ -6,25 +6,25 @@ import cutoverUser from '@/assets/icons/UserCenter/cutoverUser.png'
6 6
 import ToggleRole from '@/components/toggleRole/ToggleRole'
7 7
 import Picker from '@/components/Picker'
8 8
 import formatTime from "@/utils/formatTime";
9
-import {getAccountLogList} from '@/services/landlord'
9
+import { getAccountLogList } from '@/services/landlord'
10 10
 
11 11
 import List from '@/components/List';
12 12
 import './income.less'
13 13
 
14 14
 
15
+const getList = id => params => getAccountLogList(id, params)
15 16
 
16 17
 export default (props) => {
17
-  const { hotelList, hotel, account, onHotelChange, accountlog } = props
18
+  const { hotelList, hotel, account, onHotelChange } = props
18 19
 
19
-  // const [accountLog,setAccountLog]=useState(accountlog)
20
+  const queryParams = useMemo(() => ({}), [])
20 21
 
21
-
22
-  // const [queryParams, setQueryParams] = useState({pageNum: 1, pageSize: 10})
23
-  // setQueryParams(hotel.hotelId)
22
+  const fetchAPI = useMemo(()=>account.accountId ? getList(account.accountId) : undefined, [account?.accountId])
24 23
 
25 24
   const handleHotelChange = (hotelId, current) => {
26 25
     onHotelChange(current)
27 26
   }
27
+  const [accountlog, setAccountlog] = useState([])
28 28
 
29 29
   const [isyear, setYear] = useState(true)
30 30
   const [isMomth, setMonth] = useState(false)
@@ -68,44 +68,44 @@ export default (props) => {
68 68
           </view>
69 69
         </view>
70 70
 
71
-        <view className='title' >{accountlog.length != '' ? '推广收入记录' : '暂无推广收入'}</view>
72
-        
73
-        {/* <List
74
-                  style={{ height: '50vh' }}
75
-                  request={getAccountLogList}
76
-                  params={queryParams}
77
-                  onDataChange={setAccountLog}
78
-                >
79
-                  {
80
-                    (accountLog || []).map((item) =>
81
-                    <view className='spreadCard'>
82
-                      <view className='card'>
83
-                        <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>{formatTime(item.createDate, 'yyyy/MM/dd hh:mm:ss')}</text></view>
84
-                        <view className='spreadMoney'>收入金额:<text>{parseFloat((item.amount / 100).toFixed(2))}</text>元</view>
85
-                        <image className='spreadImg' src={sImg} />
86
-                      </view>
87
-                    </view>
88
-                    )
89
-                  }
90
-          </List> */}
91
-        
92
-        
93
-        
94
-        <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: '50vh' }}>
71
+        <view className='title' >推广收入记录</view>
95 72
 
96
-          {
97
-            (accountlog || []).map((item) =>
98
-              <view className='spreadCard'>
73
+        <List
74
+          style={{ height: 'calc(100vh - 390px)' }}
75
+          request={fetchAPI}
76
+          params={queryParams}
77
+          noData={<view className='title' >暂无</view>}
78
+          render={({item, index}) => (
79
+            <view className='spreadCard' key={index}>
80
+              <view className='card'>
81
+                <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>{formatTime(item.createDate, 'yyyy/MM/dd hh:mm:ss')}</text></view>
82
+                <view className='spreadMoney'>收入金额:<text>{parseFloat((item.amount / 100).toFixed(2))}</text>元</view>
83
+                <image className='spreadImg' src={sImg} />
84
+              </view>
85
+            </view>
86
+          )}
87
+        >
88
+        </List>
89
+        {/*<view className='title' >{accountlog.length==0?'推广收入记录':'暂无推广收入'}</view>
90
+         <List
91
+          style={{ height: '50vh' }}
92
+          request={fetchAPI}
93
+          params={queryParams}
94
+          onDataChange={setAccountlog}
95
+          noData="暂无推广收入"
96
+        >
97
+          <view className='waterfall'>
98
+            {
99
+              accountlog.map((item,index) => <view className='spreadCard' key={index}>
99 100
                 <view className='card'>
100 101
                   <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>{formatTime(item.createDate, 'yyyy/MM/dd hh:mm:ss')}</text></view>
101 102
                   <view className='spreadMoney'>收入金额:<text>{parseFloat((item.amount / 100).toFixed(2))}</text>元</view>
102 103
                   <image className='spreadImg' src={sImg} />
103 104
                 </view>
104
-              </view>
105
-            )
106
-          }
107
-        <view className='botton' >已经到底了~</view>
108
-        </scroll-view>
105
+              </view>)
106
+            }
107
+          </view>
108
+        </List> */}
109 109
       </view>
110 110
     </view>
111 111
   )

+ 3
- 9
src/hotel/pages/landlord/landlord.jsx Ver fichero

@@ -8,7 +8,7 @@ import onincomeImg from '@/assets/icons/landlord/我的收入按下.png'
8 8
 import houseImg from '@/assets/icons/landlord/房源管理.png'
9 9
 import onhouseImg from '@/assets/icons/landlord/房源管理按下.png'
10 10
 import withLayout from '@/layouts'
11
-import { getHotelManage, getAccountLogList, getNowHotelManage } from '@/services/landlord'
11
+import { getHotelManage,  getNowHotelManage } from '@/services/landlord'
12 12
 import CustomNav from '@/components/CustomNav'
13 13
 import './landlord.less'
14 14
 
@@ -20,19 +20,16 @@ export default withLayout((props) => {
20 20
   const [hotelList, setHotelList] = useState([])
21 21
   const [hotel, setHotel] = useState()
22 22
   const [account, setAccount] = useState({})
23
-  const [accountlog, setAccountLog] = useState([])
24 23
 
25 24
   const houseRef = useRef()
26 25
 
26
+
27 27
   useEffect(() => {
28 28
     getHotelManage().then((res) => {
29 29
       const { hotelList: list, account: acc, hotel: current } = res
30 30
       setHotelList(list)
31 31
       setHotel(current)
32 32
       setAccount(acc)
33
-      getAccountLogList(acc.accountId).then((res2) => {
34
-        setAccountLog(res2.records || [])
35
-      })
36 33
     })
37 34
   }, [])
38 35
 
@@ -41,9 +38,6 @@ export default withLayout((props) => {
41 38
       const { account: acc } = res
42 39
       setAccount(acc)
43 40
       setHotel(current)
44
-      getAccountLogList(acc.accountId).then((res2) => {
45
-        setAccountLog(res2.records || [])
46
-      })
47 41
     })
48 42
   }
49 43
 
@@ -73,7 +67,7 @@ export default withLayout((props) => {
73 67
     <view className='page-index'>
74 68
       <CustomNav title={hotel?.hotelName} logo={hotel?.logo} />
75 69
       <view className='index-container'>
76
-        {currentTab === 0 && <Income hotelList={hotelList} hotel={hotel} account={account} onHotelChange={handleHotelChange} accountlog={accountlog} />}
70
+        {currentTab === 0 && <Income hotelList={hotelList} hotel={hotel}  account={account} onHotelChange={handleHotelChange} />}
77 71
         {currentTab === 1 && <HouseManage hotel={hotel} ref={houseRef} />}
78 72
       </view>
79 73
       <view className='index-tabbar'>

+ 0
- 6
src/pages/MineUserAll/AllOrder/index.jsx Ver fichero

@@ -28,8 +28,6 @@ export default withLayout((props) => {
28 28
     if (tabJump) {
29 29
       setActiveTab(tabJump - 0)
30 30
     }
31
-    console.log('---------------------', tabJump);
32
-
33 31
   }, [tabJump])
34 32
 
35 33
 
@@ -69,11 +67,7 @@ export default withLayout((props) => {
69 67
         let ratio = 750 / clientWidth;
70 68
         let Height = ratio * clientHeight;
71 69
         setSwiperHeight(`height:${Height}rpx;`)
72
-        console.log('------------->', swiperHeight);
73
-
74
-
75 70
       }
76
-
77 71
     })
78 72
   ]
79 73
 

+ 0
- 1
src/pages/MineUserAll/Collect/index.jsx Ver fichero

@@ -9,7 +9,6 @@ import './style.less'
9 9
 export default withLayout((props) => {
10 10
   const { router, person, location } = props
11 11
   const [collectContent, setCollectContent] = useState([])
12
-  console.log("🚀 ~ file: index.jsx ~ line 12 ~ withLayout ~ collectContent", collectContent)
13 12
 
14 13
   useEffect(() => {
15 14
     getCollectList({

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

@@ -85,7 +85,6 @@ export default withLayout((props) => {
85 85
   };
86 86
 
87 87
   const onRefund = () => {
88
-    // console.log(explain, checkeds, "----onRefund----");
89 88
     refund(id, {
90 89
       refundDecription: checkeds?.map(x => options.filter(y => y.key == x)[0]?.title).join(';'),
91 90
       refundReason: explain,

+ 0
- 4
src/pages/PayOrder/index.jsx Ver fichero

@@ -53,13 +53,11 @@ export default withLayout((props) => {
53 53
 
54 54
   const NumberAdd = () => {
55 55
     setBuyNumber(BuyNumber + 1);
56
-    console.log(BuyNumber);
57 56
   };
58 57
 
59 58
   const NumberCut = () => {
60 59
     if (DisabledBool) return;
61 60
     setBuyNumber(BuyNumber - 1);
62
-    console.log(BuyNumber);
63 61
   };
64 62
 
65 63
   const onInput = (e) => {
@@ -68,7 +66,6 @@ export default withLayout((props) => {
68 66
   };
69 67
 
70 68
   const requestPayment = (params) => {
71
-    console.log(params, "requestPayment");
72 69
     Taro.hideLoading()
73 70
     Taro.requestPayment({
74 71
       ...params,
@@ -85,7 +82,6 @@ export default withLayout((props) => {
85 82
         });
86 83
       },
87 84
       fail: (e) => {
88
-        console.log(e, "fail");
89 85
         Taro.showToast({
90 86
           title: "支付失败",
91 87
           icon: "none",

+ 0
- 1
src/pages/TobeShop/index.jsx Ver fichero

@@ -22,7 +22,6 @@ import "./style.less";
22 22
 
23 23
 export default withLayout((props) => {
24 24
   const { router, person } = props;
25
-  console.log("🚀 ~ file: index.jsx ~ line 22 ~ withLayout ~ props", props)
26 25
   const { id, subOrderId } = props.router.params;
27 26
   const [showDialog, setShowDialog] = useState(false);
28 27
   //核销

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

@@ -29,9 +29,7 @@ import "./foodDetails.less";
29 29
 export default withLayout((props) => {
30 30
   const { router, person } = props;
31 31
   const { id, subOrderId, scene } = props.router.params;
32
-  // console.log(id,subOrderId,'--333-----')
33 32
   useEffect(() => {
34
-    console.log(id, subOrderId, "-------");
35 33
     if (id && subOrderId) {
36 34
       Taro.navigateTo({
37 35
         url: `/pages/TobeShop/index?id=${id}&subOrderId=${subOrderId}`,

+ 0
- 1
src/pages/index/components/Card.js Ver fichero

@@ -15,7 +15,6 @@ export default (props) => {
15 15
   const [isSaved, toggleSave] = useSave(item.isSaved, item.targetType, item.targetId)
16 16
   const Detail = () => {
17 17
     if (item.targetType == 'tourist') {
18
-      let loc = item.lng + ',' + item.lat
19 18
       Taro.navigateTo({ url: `/pages/details/mjDetails/sceneryDetails?id=${item.targetId}` });
20 19
     }
21 20
     else {

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

@@ -33,7 +33,7 @@ export default withLayout((props) => {
33 33
       </view>
34 34
       <view className='index-container'>
35 35
         {currentTab === 0 && <Recommend location={location} />}
36
-        {currentTab === 1 && <Guide person={person} router={router} />}
36
+        {currentTab === 1 && <Guide person={person} router={router} location={location} />}
37 37
         {/* {currentTab === 2 && <Strategy />} */}
38 38
         {currentTab === 2 && <Mine person={person} />}
39 39
       </view>

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

@@ -10,6 +10,7 @@ import BlackSpot from '@/assets/icons/GuideCheck/BlackSpot.png'
10 10
 import { getRecommendList, getExtendContent } from '@/services/home'
11 11
 import sleep from '@/assets/icons/GuideCheck/sleep_logo.png'
12 12
 import { getTaRoom, goToRoomForm } from '@/services/taRoom​'
13
+import  useTrackClick from '@/utils/hooks/useTrackClick'
13 14
 import showMore from '../../../assets/icons/housemantj/查看更多.png'
14 15
 
15 16
 import './GuideCss/style.less'
@@ -20,14 +21,15 @@ import './GuideCss/style.less'
20 21
 
21 22
 
22 23
 export default (props) => {
23
-  const { router, person, iflocation } = props
24
+  const { router, person, location } = props
24 25
   const { roomId, roomOrderId } = router.params
25 26
   const [extend, setExtend] = useState([])
26 27
   const [ifroomId, setIfroomId] = useState('havenot')
27 28
   const [spackage, setPackage] = useState([])
28 29
 
29 30
   const cardNavigateTo = undefined
30
-
31
+  
32
+  const trackClick = useTrackClick(router)
31 33
 
32 34
   // 住宿经纬度
33 35
   const Roomlog = useRef('')
@@ -97,7 +99,7 @@ export default (props) => {
97 99
 
98 100
 
99 101
     } else {
100
-      getRecommendList({ location: iflocation }).then((res) => {
102
+      getRecommendList({ location: location }).then((res) => {
101 103
         setPackage(res || [])
102 104
       })
103 105
 
@@ -261,7 +263,7 @@ export default (props) => {
261 263
             <text className='title-title-boss' >老板推荐好吃的</text>
262 264
           </view>
263 265
         </view>
264
-        {(spackage || []).map((item, index) => <BossCard cardNavigateTo={cardNavigateTo} key={(index)} item={item} />)}
266
+        {(spackage || []).map((item, index) => <BossCard cardNavigateTo={cardNavigateTo} key={(index)} trackClick={trackClick} taRoomContent={taRoomContent} item={item} />)}
265 267
         {/* 卡片------------- */}
266 268
         {/* <view className='Guide-Content-box-two'>
267 269
           <view className='title-image-two'>

+ 1
- 15
src/pages/search/search.less Ver fichero

@@ -15,19 +15,5 @@
15 15
     float: left;
16 16
     color: #666666;
17 17
     border: 1px solid #999999;
18
-  }
19
-  .hotSearchtip view:first-child{
20
-    border: 2px solid #274190;
21
-    border-radius: 30px;
22
-    font-size: 24px;
23
-     
24
-    font-weight: bold;
25
-    color: #0C297F;
26
-    display: block;
27
-    margin:0 40px 40px 0;
28
-    padding:19px 25px;
29
-    float: left;    
30
-  }
31
-  
32
-  
18
+  }  
33 19
 }

+ 1
- 1
src/services/landlord.js Ver fichero

@@ -36,7 +36,7 @@ export const getHotelManage = (params) => request('/hotel/manage/index', { param
36 36
  * @param {*} params 
37 37
  * @returns 
38 38
  */
39
-export const getAccountLogList = (id) => request(`/hotel/account/${id}/log`)
39
+export const getAccountLogList = (id,params) => request(`/hotel/account/${id}/log`,{params})
40 40
 
41 41
 /**
42 42
  * 房源列表

+ 1
- 2
src/shop/components/ShopKeeper/shopKeeper.jsx Ver fichero

@@ -1,4 +1,4 @@
1
-import { React, useState, useEffect, useRef } from 'react'
1
+import { React, useState, useEffect, useMemo } from 'react'
2 2
 import Taro, { useRouter } from '@tarojs/taro'
3 3
 import CustomNav from '@/components/CustomNav'
4 4
 import Picker from '@/components/Picker'
@@ -17,7 +17,6 @@ import ToggleRole from '@/components/toggleRole/ToggleRole'
17 17
 
18 18
 import cutoverUser from '@/assets/icons/UserCenter/cutoverUser.png'
19 19
 import './shopKeeper.less'
20
-import { useMemo } from 'react'
21 20
 
22 21
 
23 22
 export default (props) => {

+ 1
- 1
src/shop/components/ShopKeeper/shopKeeper.less Ver fichero

@@ -151,7 +151,7 @@
151 151
   width: 100%;
152 152
   height: 91px;
153 153
   .tabs-Unselected {
154
-    width: 50vw;
154
+    width: calc(50vw - 30px);
155 155
     text-align: center;
156 156
     height: 26px;
157 157
     font-size: 28px;

+ 0
- 1
src/shop/pages/spread/spreadIndex.jsx Ver fichero

@@ -97,7 +97,6 @@ export default withLayout((props) => {
97 97
 
98 98
   //店铺选择
99 99
   const handleHotelChange = (current) => {
100
-    console.log('已选择店铺', current);
101 100
     getShopMoney(current.shopId, amountType).then((e) => {
102 101
       setShop(current)
103 102
       getVerifiedOrder({