|
@@ -6,11 +6,14 @@ import Popup from '@/components/Popup'
|
6
|
6
|
import ShopUsed from '@/components/ShopUsed' //已核销
|
7
|
7
|
import ShopUnused from '@/components/ShopUnused' //未核销
|
8
|
8
|
import SearchBar from '@/components/SearchBar'
|
|
9
|
+import { getShopList, getShopMoney, getAccount, getVerifiedOrder, setGetVerifiedOrder } from '@/services/shopBoss'
|
9
|
10
|
|
10
|
11
|
import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
|
11
|
12
|
import ceyes from '@/assets/icons/shopKeeper/小眼睛-闭上.png'
|
12
|
13
|
import iconsearch from '@/assets/icons/housemantj/search.png'
|
13
|
14
|
import ms from '@/assets/icons/housemantj/ms3.jpg'
|
|
15
|
+import ToggleRole from '@/components/toggleRole/ToggleRole'
|
|
16
|
+
|
14
|
17
|
import cutoverUser from '@/assets/icons/UserCenter/cutoverUser.png'
|
15
|
18
|
import touristON from '@/assets/icons/UserCenter/touristON.png'
|
16
|
19
|
import touristOFF from '@/assets/icons/UserCenter/touristOFF.png'
|
|
@@ -19,11 +22,10 @@ import hotelBossOFF from '@/assets/icons/UserCenter/hotelBossOFF.png'
|
19
|
22
|
import shopBossON from '@/assets/icons/UserCenter/shopBossON.png'
|
20
|
23
|
import shopBossOFF from '@/assets/icons/UserCenter/shopBossOFF.png'
|
21
|
24
|
import './shopKeeper.less'
|
22
|
|
-import ToggleRole from '@/components/toggleRole/ToggleRole'
|
23
|
25
|
|
24
|
26
|
|
25
|
27
|
export default (props) => {
|
26
|
|
- const { shopList, shop, onHotelChange, shopMoney, verifiedOrder, onVarified, onVarifiedTwo } = props
|
|
28
|
+ const { shopList, shop, onHotelChange, shopMoney, verifiedOrder, onVarified, onVarifiedTwo, setVer } = props
|
27
|
29
|
const shopId = shop?.shopId
|
28
|
30
|
const [activeTab, setActiveTab] = useState(0)
|
29
|
31
|
const { params } = useRouter()
|
|
@@ -71,6 +73,11 @@ export default (props) => {
|
71
|
73
|
},
|
72
|
74
|
]
|
73
|
75
|
|
|
76
|
+ const [vale, setVale] = useState('')
|
|
77
|
+
|
|
78
|
+ const phoneVale = () => {
|
|
79
|
+
|
|
80
|
+ }
|
74
|
81
|
|
75
|
82
|
const handleVarified = () => {
|
76
|
83
|
onVarified()
|
|
@@ -78,7 +85,29 @@ export default (props) => {
|
78
|
85
|
|
79
|
86
|
|
80
|
87
|
const onSearch = (e) => {
|
81
|
|
- console.log('eeeeeeeeeeeeeeeeee', e.detail.value);
|
|
88
|
+ const val = e.detail.value
|
|
89
|
+ if (val !== '') {
|
|
90
|
+ getVerifiedOrder({
|
|
91
|
+ phone: val,
|
|
92
|
+ pageNum: 1,
|
|
93
|
+ pageSize: 10,
|
|
94
|
+
|
|
95
|
+ }).then((res) => {
|
|
96
|
+ setVer(res)
|
|
97
|
+
|
|
98
|
+ })
|
|
99
|
+ } else {
|
|
100
|
+ getVerifiedOrder({
|
|
101
|
+ shopId: shopId,
|
|
102
|
+ pageNum: 1,
|
|
103
|
+ pageSize: 10,
|
|
104
|
+
|
|
105
|
+ }).then((res) => {
|
|
106
|
+ setVer(res)
|
|
107
|
+
|
|
108
|
+ })
|
|
109
|
+ }
|
|
110
|
+
|
82
|
111
|
}
|
83
|
112
|
|
84
|
113
|
const [showCutover, setShowCutover] = useState(false)
|
|
@@ -135,10 +164,6 @@ export default (props) => {
|
135
|
164
|
>
|
136
|
165
|
</mp-tabs>
|
137
|
166
|
</view>
|
138
|
|
- {
|
139
|
|
- verifiedOrder.map
|
140
|
|
-
|
141
|
|
- }
|
142
|
167
|
<view>
|
143
|
168
|
{/* 未核销 */}
|
144
|
169
|
{activeTab === 0 &&
|