Browse Source

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

吃个甘蔗嚼一年 3 years ago
parent
commit
09435bbfac

+ 1
- 1
src/components/ShopUsed/style.less View File

@@ -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{

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

@@ -1,4 +1,6 @@
1 1
 import { useState, useMemo } from 'react'
2
+import Taro from '@tarojs/taro'
3
+import { View, Image } from '@tarojs/components';
2 4
 import eyes from '@/assets/icons/shopKeeper/eyesON.png'
3 5
 import ceyes from '@/assets/icons/shopKeeper/eyesOFF.png'
4 6
 import sImg from '@/assets/icons/landlord/money2.png'
@@ -28,32 +30,30 @@ export default (props) => {
28 30
     isMomth ? setMonth(false) : setMonth(true)
29 31
   }
30 32
   return (
31
-    <view>
32
-      <view style={{ padding: '30rpx', height: '100%' }}>
33
-        <view className='storexx'>
34
-          <view className='storeName'>店名:{hotel.hotelName}</view>
35
-          <view className='money'>
36
-            <view className='sleft'>
37
-              <view className='lword'>全年收入(税前)</view>
38
-              <view className='yearMoney'>
39
-                <text>{isyear ? formatPrice(account?.amounts) : '******'}</text>元
40
-                <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
41
-              </view>
33
+    <view style={{ padding: '30rpx', height: '100%',display:'flex',flexDirection:'column' }}>
34
+      <view className='storexx' style={{flex:'none'}}>
35
+        <view className='storeName'>店名:{hotel.hotelName}</view>
36
+        <view className='money'>
37
+          <view className='sleft'>
38
+            <view className='lword'>全年收入(税前)</view>
39
+            <view className='yearMoney'>
40
+              <text>{isyear ? formatPrice(account?.amounts) : '******'}</text>元
41
+              <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
42 42
             </view>
43
-            <view className='line' />
44
-            <view className='sright'>
45
-              <view className='rword'>当月收入(税前)</view>
46
-              <view className='monthMoney'>
47
-                <text>{isMomth ? formatPrice(account?.currentCharges) : '******'}</text>元
48
-                <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
49
-              </view></view>
50 43
           </view>
44
+          <view className='line' />
45
+          <view className='sright'>
46
+            <view className='rword'>当月收入(税前)</view>
47
+            <view className='monthMoney'>
48
+              <text>{isMomth ? formatPrice(account?.currentCharges) : '******'}</text>元
49
+              <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
50
+            </view></view>
51 51
         </view>
52
-
53
-        <view className='title' >推广收入记录</view>
54
-
52
+      </view>
53
+      <view className='title' style={{flex:'none'}}>推广收入记录</view>
54
+      <View style={{flex:'auto',overflow:'hidden',position:'relative'}}>
55 55
         <List
56
-          style={{ height: 'calc(100vh - 375px)' }}
56
+          style={{ height: '100%' }}
57 57
           request={fetchAPI}
58 58
           params={queryParams}
59 59
           noData={<NoData />}
@@ -70,7 +70,7 @@ export default (props) => {
70 70
           )}
71 71
         >
72 72
         </List>
73
-      </view>
73
+      </View>
74 74
     </view>
75 75
   )
76 76
 }

+ 1
- 3
src/shop/components/Sparead/spreadMoney.jsx View File

@@ -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 View File

@@ -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