李志伟 il y a 3 ans
Parent
révision
834177fc0d

+ 1
- 1
src/components/ShopUsed/style.less Voir le fichier

@@ -19,7 +19,7 @@
19 19
     box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
20 20
     border-radius: 12px;
21 21
     padding: 20px;
22
-    margin: 0 5px;
22
+    margin: 0 3px;
23 23
     .orderTop{
24 24
       display: flex;
25 25
       .orderImg{

+ 1
- 3
src/shop/components/Sparead/spreadMoney.jsx Voir le fichier

@@ -19,9 +19,7 @@ export default (props) => {
19 19
   const [isyear, setYear] = useState(true)
20 20
   const [isMomth, setMonth] = useState(false)
21 21
 
22
-  const queryParams = useMemo(() => ({
23
-
24
-  }), [])
22
+  const queryParams = useMemo(() => ({}), [])
25 23
 
26 24
 
27 25
   const reqestAPI = getList(shopMoney?.acc?.accountId)

+ 9
- 6
src/shop/pages/spread/spreadIndex.jsx Voir le fichier

@@ -1,11 +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
-
6
-import { getShopList, getShopMoney, getAccount, getVerifiedOrder, setGetVerifiedOrder } from '@/services/shopBoss'
4
+import { getShopList, getShopMoney, getVerifiedOrder } from '@/services/shopBoss'
7 5
 import { withSubscribeMessage } from '@/utils/subscribeMessage'
8
-import SpinBox from "@/components/Spin/SpinBox";
9 6
 import withLayout from '@/layouts'
10 7
 import {
11 8
   TPL_MESSAGE_SHOP_PAY_SUCCESS,
@@ -23,12 +20,13 @@ import { View } from '@tarojs/components'
23 20
 export default withLayout((props) => {
24 21
   const { router, person } = props
25 22
   const { params } = useRouter()
26
-  const { tab,cardShop } = params || {}
23
+  const { tab,shopOrderId } = params || {}
27 24
   const [currentTab, setCurrentTab] = useState(0)
28 25
   //顶部的商铺列表
29 26
   const [shopList, setShopList] = useState([])
30 27
   //当前商铺
31 28
   const [shop, setShop] = useState()
29
+  // const shopOrderId='1a8deba868489b0be19cba941e6f577e'
32 30
   const shopId = shop?.shopId
33 31
 
34 32
   
@@ -53,7 +51,12 @@ export default withLayout((props) => {
53 51
     getShopList().then((res) => {
54 52
       const { shopList: list, shop: current } = res
55 53
       setShopList(list)
56
-      setShop(current)
54
+      if (shopOrderId) {
55
+        setShop(list.filter(x=>x.shopId==shopOrderId)[0])
56
+      }
57
+      else{
58
+        setShop(current)
59
+      }
57 60
     })
58 61
   }, [])
59 62