|
@@ -1,8 +1,9 @@
|
|
1
|
+import Taro from "@tarojs/taro";
|
|
2
|
+import { useState, useEffect } from "react";
|
1
|
3
|
import withLayout from "@/layouts";
|
2
|
|
-
|
3
|
4
|
import CustomNav from "@/components/CustomNav";
|
|
5
|
+import { getShopDetail, getShopPackage, getExtendContent } from '@/services/home'
|
4
|
6
|
import Popup from "@/components/Popup";
|
5
|
|
-import { useState, useEffect } from "react";
|
6
|
7
|
import LocationBig from "@/assets/icons/UserCenter/LocationBig.png";
|
7
|
8
|
import Perfection from "@/assets/icons/UserCenter/Perfection.png";
|
8
|
9
|
import Check_OK from "@/assets/icons/UserCenter/Check_OK.png";
|
|
@@ -14,21 +15,31 @@ import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
|
14
|
15
|
import { Button, Icon, Text, Textarea } from "@tarojs/components";
|
15
|
16
|
import { getVerifyTargetList, putVerifyTarget } from "@/services/payOrder";
|
16
|
17
|
import formatTime from '@/utils/formatTime'
|
|
18
|
+
|
17
|
19
|
import "./style.less";
|
18
|
|
-import Taro from "@tarojs/taro";
|
19
|
20
|
|
20
|
21
|
export default withLayout((props) => {
|
21
|
22
|
const { router, person } = props;
|
|
23
|
+ console.log("🚀 ~ file: index.jsx ~ line 22 ~ withLayout ~ props", props)
|
22
|
24
|
const { id, subOrderId } = props.router.params;
|
23
|
25
|
const [showDialog, setShowDialog] = useState(false);
|
24
|
26
|
//核销
|
25
|
27
|
const [Consumption, setConsumption] = useState(false);
|
26
|
28
|
|
27
|
29
|
const [checked, setChecked] = useState();
|
|
30
|
+ const [shopContent, setShopContent] = useState([])
|
28
|
31
|
|
|
32
|
+ const [list, setList] = useState([]);
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+ const getShop = () => {
|
|
36
|
+ getShopDetail(id).then(e => {
|
|
37
|
+ setShopContent(e)
|
|
38
|
+
|
|
39
|
+ })
|
|
40
|
+ }
|
29
|
41
|
|
30
|
42
|
|
31
|
|
- const [list, setList] = useState([]);
|
32
|
43
|
|
33
|
44
|
const getList = (params) => {
|
34
|
45
|
getVerifyTargetList({
|
|
@@ -51,6 +62,7 @@ export default withLayout((props) => {
|
51
|
62
|
|
52
|
63
|
useEffect(() => {
|
53
|
64
|
getList();
|
|
65
|
+ getShop();
|
54
|
66
|
}, []);
|
55
|
67
|
|
56
|
68
|
const ShowMoldeOn = () => {
|
|
@@ -123,7 +135,7 @@ export default withLayout((props) => {
|
123
|
135
|
<view className="position-header">
|
124
|
136
|
<image className="position-LocationBig" src={LocationBig} />
|
125
|
137
|
<text cla="position-LocationBig-text">
|
126
|
|
- 当前所在店铺:SEOUL·创意韩国料理
|
|
138
|
+ 当前所在店铺:{shopContent?.shopName || []}
|
127
|
139
|
</text>
|
128
|
140
|
</view>
|
129
|
141
|
<view className="shop-image">
|