|
@@ -1,6 +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
|
+
|
4
|
6
|
import { getShopList, getShopMoney, getAccount, getVerifiedOrder, setGetVerifiedOrder } from '@/services/shopBoss'
|
5
|
7
|
import { withSubscribeMessage } from '@/utils/subscribeMessage'
|
6
|
8
|
import withLayout from '@/layouts'
|
|
@@ -34,7 +36,7 @@ export default withLayout((props) => {
|
34
|
36
|
|
35
|
37
|
const handleTabChange = (e) => {
|
36
|
38
|
const { index } = e.detail
|
37
|
|
- index?setAmountType('commission'):setAmountType('order')
|
|
39
|
+ index ? setAmountType('commission') : setAmountType('order')
|
38
|
40
|
setCurrentTab(index)
|
39
|
41
|
//如果context有的话代表他滚动了 那么切换tab页就置顶
|
40
|
42
|
if (listRef.current?.context) {
|
|
@@ -102,7 +104,7 @@ export default withLayout((props) => {
|
102
|
104
|
return (
|
103
|
105
|
<view className='page-index'>
|
104
|
106
|
<view className='index-navbar'>
|
105
|
|
- <CustomNav title={shop?.shopName} />
|
|
107
|
+ <CustomNav logo='none' title={shop?.shopName} />
|
106
|
108
|
</view>
|
107
|
109
|
<view className='index-container'>
|
108
|
110
|
{currentTab === 0 && <ShopKeeper isVerified={isVerified} shopId={shopId} amountType={amountType} setVer={setVer} onVarifiedTwo={onVarifiedTwo} onVarified={onVarified} verifiedOrder={verifiedOrder} shopList={shopList} shop={shop} onHotelChange={handleHotelChange} shopMoney={shopMoney} />
|