Browse Source

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

张延森 3 years ago
parent
commit
8e683bfdd9

+ 1
- 1
project.config.json View File

2
   "miniprogramRoot": "./dist",
2
   "miniprogramRoot": "./dist",
3
   "projectname": "miniapp",
3
   "projectname": "miniapp",
4
   "description": "十公里",
4
   "description": "十公里",
5
-  "appid": "wx06a7372d48d56843",
5
+  "appid": "wx835627a9b9b3932a",
6
   "setting": {
6
   "setting": {
7
     "urlCheck": true,
7
     "urlCheck": true,
8
     "es6": false,
8
     "es6": false,

+ 6
- 5
src/components/BossCard/index.jsx View File

11
 import food from '@/assets/icons/ProCard/food.png'
11
 import food from '@/assets/icons/ProCard/food.png'
12
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
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
 import './style.less'
19
 import './style.less'
20
 
20
 
21
 export default (props) => {
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
   const [isSaved, toggleSave] = useSave(item.isSaved, 'shop_package', item.packageId)
24
   const [isSaved, toggleSave] = useSave(item.isSaved, 'shop_package', item.packageId)
25
   const [city, setCity] = useState({})
25
   const [city, setCity] = useState({})
26
   const [detail, setDetail] = useState({})
26
   const [detail, setDetail] = useState({})
27
 
27
 
28
+    
28
 
29
 
29
-
30
-
30
+  
31
   const goFood = () => {
31
   const goFood = () => {
32
+     trackClick({ eventType: 'hotel_recommend_package', eventParams: getQueryString({ hotelId:taRoomContent.hotelId,shopId:shopId,packageId:packageId})  })
32
     Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${shopId}` })
33
     Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${shopId}` })
33
   }
34
   }
34
 
35
 

+ 0
- 3
src/components/CompoentsOrder/complete/index.jsx View File

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

+ 6
- 3
src/components/List/index.jsx View File

9
     params,
9
     params,
10
     pageSize = 10,
10
     pageSize = 10,
11
     onError,
11
     onError,
12
-    shopId,
13
     onDataChange,
12
     onDataChange,
13
+    noData,
14
     ...leftProps
14
     ...leftProps
15
   } = props
15
   } = props
16
 
16
 
73
   // 请求数据
73
   // 请求数据
74
   useEffect(() => {
74
   useEffect(() => {
75
     fetchRef.current(payload)
75
     fetchRef.current(payload)
76
-  }, [payload, shopId])
76
+  }, [payload, request])
77
 
77
 
78
   return (
78
   return (
79
     <ScrollView
79
     <ScrollView
85
         ? props.children
85
         ? props.children
86
         : list.map((item, index) => render({ item, index }))
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
     </ScrollView>
92
     </ScrollView>
90
   )
93
   )
91
 }
94
 }

+ 26
- 15
src/hotel/components/HouseManage/houseManage.jsx View File

3
 import share from '@/assets/icons/landlord/分享链接.png'
3
 import share from '@/assets/icons/landlord/分享链接.png'
4
 import del from '@/assets/icons/landlord/删除.png'
4
 import del from '@/assets/icons/landlord/删除.png'
5
 import addImg from '@/assets/icons/landlord/添加.png'
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
 import { getRoomList, deleteRoom } from '@/services/landlord'
7
 import { getRoomList, deleteRoom } from '@/services/landlord'
8
+import List from '@/components/List';
8
 import SearchBar from '@/components/SearchBar'
9
 import SearchBar from '@/components/SearchBar'
9
 import ShareRoom from '../shareRoom/ShareRoom.jsx'
10
 import ShareRoom from '../shareRoom/ShareRoom.jsx'
10
 import ShareCard from '../shareCard/shareCard'
11
 import ShareCard from '../shareCard/shareCard'
15
   const { hotel } = props
16
   const { hotel } = props
16
   const [detail, setDetail] = useState([])
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
   const shareDataRef = useRef()
22
   const shareDataRef = useRef()
19
 
23
 
20
   // 判断是否首次加载
24
   // 判断是否首次加载
118
         <SearchBar placeholder='请输入房源名搜索' onBlur={onSearch} />
122
         <SearchBar placeholder='请输入房源名搜索' onBlur={onSearch} />
119
         <ShareRoom showCutover={showCutover} onClose={onClose} room={room} onFinish={handleFinish} />
123
         <ShareRoom showCutover={showCutover} onClose={onClose} room={room} onFinish={handleFinish} />
120
         <ShareCard showCutover={showCard} onClose={onClose2} />
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
       </view>
146
       </view>
136
       <view className='addHouse' onClick={handelClick}>
147
       <view className='addHouse' onClick={handelClick}>
137
         <image className='addImg' src={addImg} />添加房源
148
         <image className='addImg' src={addImg} />添加房源

+ 39
- 39
src/hotel/components/Income/income.jsx View File

1
-import { useState } from 'react'
1
+import { useState, useMemo } from 'react'
2
 import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
2
 import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
3
 import ceyes from '@/assets/icons/shopKeeper/小眼睛-闭上.png'
3
 import ceyes from '@/assets/icons/shopKeeper/小眼睛-闭上.png'
4
 import sImg from '@/assets/icons/landlord/我的收入2.png'
4
 import sImg from '@/assets/icons/landlord/我的收入2.png'
6
 import ToggleRole from '@/components/toggleRole/ToggleRole'
6
 import ToggleRole from '@/components/toggleRole/ToggleRole'
7
 import Picker from '@/components/Picker'
7
 import Picker from '@/components/Picker'
8
 import formatTime from "@/utils/formatTime";
8
 import formatTime from "@/utils/formatTime";
9
-import {getAccountLogList} from '@/services/landlord'
9
+import { getAccountLogList } from '@/services/landlord'
10
 
10
 
11
 import List from '@/components/List';
11
 import List from '@/components/List';
12
 import './income.less'
12
 import './income.less'
13
 
13
 
14
 
14
 
15
+const getList = id => params => getAccountLogList(id, params)
15
 
16
 
16
 export default (props) => {
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
   const handleHotelChange = (hotelId, current) => {
24
   const handleHotelChange = (hotelId, current) => {
26
     onHotelChange(current)
25
     onHotelChange(current)
27
   }
26
   }
27
+  const [accountlog, setAccountlog] = useState([])
28
 
28
 
29
   const [isyear, setYear] = useState(true)
29
   const [isyear, setYear] = useState(true)
30
   const [isMomth, setMonth] = useState(false)
30
   const [isMomth, setMonth] = useState(false)
68
           </view>
68
           </view>
69
         </view>
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
                 <view className='card'>
100
                 <view className='card'>
100
                   <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>{formatTime(item.createDate, 'yyyy/MM/dd hh:mm:ss')}</text></view>
101
                   <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>{formatTime(item.createDate, 'yyyy/MM/dd hh:mm:ss')}</text></view>
101
                   <view className='spreadMoney'>收入金额:<text>{parseFloat((item.amount / 100).toFixed(2))}</text>元</view>
102
                   <view className='spreadMoney'>收入金额:<text>{parseFloat((item.amount / 100).toFixed(2))}</text>元</view>
102
                   <image className='spreadImg' src={sImg} />
103
                   <image className='spreadImg' src={sImg} />
103
                 </view>
104
                 </view>
104
-              </view>
105
-            )
106
-          }
107
-        <view className='botton' >已经到底了~</view>
108
-        </scroll-view>
105
+              </view>)
106
+            }
107
+          </view>
108
+        </List> */}
109
       </view>
109
       </view>
110
     </view>
110
     </view>
111
   )
111
   )

+ 3
- 9
src/hotel/pages/landlord/landlord.jsx View File

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

+ 0
- 6
src/pages/MineUserAll/AllOrder/index.jsx View File

28
     if (tabJump) {
28
     if (tabJump) {
29
       setActiveTab(tabJump - 0)
29
       setActiveTab(tabJump - 0)
30
     }
30
     }
31
-    console.log('---------------------', tabJump);
32
-
33
   }, [tabJump])
31
   }, [tabJump])
34
 
32
 
35
 
33
 
69
         let ratio = 750 / clientWidth;
67
         let ratio = 750 / clientWidth;
70
         let Height = ratio * clientHeight;
68
         let Height = ratio * clientHeight;
71
         setSwiperHeight(`height:${Height}rpx;`)
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 View File

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

+ 0
- 1
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx View File

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

+ 0
- 4
src/pages/PayOrder/index.jsx View File

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

+ 0
- 1
src/pages/TobeShop/index.jsx View File

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

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

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

+ 0
- 1
src/pages/index/components/Card.js View File

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

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

33
       </view>
33
       </view>
34
       <view className='index-container'>
34
       <view className='index-container'>
35
         {currentTab === 0 && <Recommend location={location} />}
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
         {/* {currentTab === 2 && <Strategy />} */}
37
         {/* {currentTab === 2 && <Strategy />} */}
38
         {currentTab === 2 && <Mine person={person} />}
38
         {currentTab === 2 && <Mine person={person} />}
39
       </view>
39
       </view>

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

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

+ 1
- 15
src/pages/search/search.less View File

15
     float: left;
15
     float: left;
16
     color: #666666;
16
     color: #666666;
17
     border: 1px solid #999999;
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 View File

36
  * @param {*} params 
36
  * @param {*} params 
37
  * @returns 
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 View File

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

+ 1
- 1
src/shop/components/ShopKeeper/shopKeeper.less View File

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

+ 0
- 1
src/shop/pages/spread/spreadIndex.jsx View File

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