Преглед изворни кода

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

张延森 пре 3 година
родитељ
комит
573d986b41

+ 7
- 1
src/components/BossCard/index.jsx Прегледај датотеку

@@ -19,10 +19,16 @@ import './style.less'
19 19
 
20 20
 export default (props) => {
21 21
   const { item } = props
22
+  const { shopId } = props.item
22 23
   const [isSaved, toggleSave] = useSave(item.isSaved, 'shop_package', item.packageId)
23 24
   const [city, setCity] = useState({})
24 25
   const [detail, setDetail] = useState({})
25 26
 
27
+  const goFood = () => {
28
+    Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${shopId}` })
29
+
30
+  }
31
+
26 32
   useEffect(() => {
27 33
     getShopDetail(item.shopId).then((res) => {
28 34
       setDetail(res)
@@ -35,7 +41,7 @@ export default (props) => {
35 41
   return (
36 42
     <view class='container'>
37 43
       <view class='wrapper'>
38
-        <view class='left-complete-one'>
44
+        <view class='left-complete-one' onClick={() => { goFood() }} >
39 45
           <image className='left-image-1' src={ProCard_hot}></image>
40 46
           <view className='left-viewText'>
41 47
             返现¥{item.cashback / 100}

+ 1
- 1
src/components/CompoentsOrder/AlreadyExpired/index.jsx Прегледај датотеку

@@ -23,7 +23,7 @@ const score = '3.9'
23 23
 export default (props) => {
24 24
 
25 25
   return (
26
-    <scroll-view scroll-y style='height: 90vh;'  >
26
+    <scroll-view scroll-y style='height:100%;'  >
27 27
 
28 28
       <view className='AlreadyExpired-box' >
29 29
 

+ 2
- 1
src/components/CompoentsOrder/AlreadyUsed/index.jsx Прегледај датотеку

@@ -38,7 +38,8 @@ export default (props) => {
38 38
 
39 39
   return (
40 40
 
41
-    <scroll-view scroll-y style='height: 90vh;'  >
41
+    <scroll-view scroll-y style='height:100%;'  >
42
+
42 43
       <view className='AlreadyUsed-box' >
43 44
         <Popup show={showDialog} maskClosable={false}>
44 45
           <AlreadyUsedMolded />

+ 2
- 1
src/components/CompoentsOrder/TobePaid/index.jsx Прегледај датотеку

@@ -17,7 +17,8 @@ export default (props) => {
17 17
     Taro.navigateTo({ url: '/pages/PayOrder/index' })
18 18
   }
19 19
   return (
20
-    <scroll-view scroll-y style='height: 90vh;'  >
20
+    <scroll-view scroll-y style='height:100%;'  >
21
+
21 22
       <view className='TobePaid-box'>
22 23
         <view className='OrderNumber'>订单编号:ABC123456789</view>
23 24
         {/* 待支付 */}

+ 2
- 1
src/components/CompoentsOrder/TobeWritten/index.jsx Прегледај датотеку

@@ -9,7 +9,8 @@ import './style.less'
9 9
 export default (props) => {
10 10
 
11 11
   return (
12
-    <scroll-view scroll-y style='height: 90vh;'  >
12
+    <scroll-view scroll-y style='height:100%;'  >
13
+
13 14
 
14 15
       <view className='TobeWritten-box'>
15 16
         <view className='OrderNumber'>订单编号:ABC123456789</view>

+ 29
- 28
src/components/toggleRole/ToggleRole.jsx Прегледај датотеку

@@ -1,4 +1,4 @@
1
-import { useState,useEffect } from 'react';
1
+import { useState, useEffect } from 'react';
2 2
 
3 3
 import touristON from '@/assets/icons/UserCenter/touristON.png'
4 4
 import touristOFF from '@/assets/icons/UserCenter/touristOFF.png'
@@ -12,38 +12,39 @@ import './ToggleRole.less'
12 12
 import { useModel } from '@/store'
13 13
 
14 14
 
15
-export default ( props)=>{
16
-  const {showCutover, onClose }=props
17
-  const {getRole}=useModel('person')
18
-  const goToPerson=()=>{
15
+export default (props) => {
16
+  const { showCutover, onClose, role } = props
17
+  const { getRole } = useModel('person')
18
+  const goToPerson = () => {
19 19
     getRole('normal')
20 20
   }
21
-  const goToHotel=()=>{
21
+  const goToHotel = () => {
22 22
     getRole('hotel')
23
+
23 24
   }
24
-  const goToShop=()=>{
25
+  const goToShop = () => {
25 26
     getRole('shop')
26 27
   }
27
-  const onClose2=()=>{
28
-    console.log('2222222222222222222')
28
+  const onClose2 = () => {
29
+    // console.log('2222222222222222222')
29 30
   }
30
-    return (      
31
-      <Popup show={showCutover} onClose={onClose2}>
32
-          <view className='User-box-sths' >
33
-            <view className='User-box-selectUser'>请选择身份:</view>
34
-            <view className='User-box-tourist' onClick={goToPerson}>
35
-              <image className='Ubs-tourist-image' src={touristOFF} />
36
-              <text className='Ubs-tourist-text'>游客</text>
37
-            </view>
38
-            <view className='User-box-hotelBoss' onClick={goToHotel}>
39
-              <image className='Ubs-hotelBoss-image' src={hotelBossOFF} />
40
-              <text className='Ubs-hotelBoss-text'>民宿老板</text>
41
-            </view>
42
-            <view className='User-box-shopBoss' onClick={goToShop}>
43
-              <image className='Ubs-shopBoss-image' src={shopBossON} />
44
-              <text className='Ubs-shopBoss-text'>店铺老板</text>
45
-            </view>
46
-          </view>
47
-        </Popup>
48
-    )  
31
+  return (
32
+    <Popup show={showCutover} onClose={onClose2}>
33
+      <view className='User-box-sths' >
34
+        <view className='User-box-selectUser'>请选择身份:</view>
35
+        <view className='User-box-tourist' onClick={goToPerson}>
36
+          <image className='Ubs-tourist-image' src={role === 'normal' ? touristON : touristOFF} />
37
+          <text className='Ubs-tourist-text'>游客</text>
38
+        </view>
39
+        <view className='User-box-hotelBoss' onClick={goToHotel}>
40
+          <image className='Ubs-hotelBoss-image' src={role === 'hotel' ? hotelBossON : hotelBossOFF} />
41
+          <text className='Ubs-hotelBoss-text'>民宿老板</text>
42
+        </view>
43
+        <view className='User-box-shopBoss' onClick={goToShop}>
44
+          <image className='Ubs-shopBoss-image' src={role === 'shop' ? shopBossON : shopBossOFF} />
45
+          <text className='Ubs-shopBoss-text'>店铺老板</text>
46
+        </view>
47
+      </view>
48
+    </Popup>
49
+  )
49 50
 }

+ 14
- 14
src/hotel/components/Income/income.jsx Прегледај датотеку

@@ -32,7 +32,7 @@ export default (props) => {
32 32
   }
33 33
   return (
34 34
     <view>
35
-      <ToggleRole showCutover={showCutover} onClose={onClose} />
35
+      <ToggleRole role='hotel' showCutover={showCutover} onClose={onClose} />
36 36
       <view style={{ padding: '30rpx', height: '100%' }}>
37 37
         <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
38 38
           <view className='storexx'>
@@ -57,20 +57,20 @@ export default (props) => {
57 57
                 </view></view>
58 58
             </view>
59 59
           </view>
60
-          
61
-          <view className='title' >{accountlog.length!=''?'推广收入记录':'暂无推广收入'}</view>
62
-            {
63
-              accountlog?.map((item) => 
64
-                <view className='spreadCard'>
65
-                  <view className='card'>
66
-                    <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>{item.createDate}</text></view>
67
-                    <view className='spreadMoney'>收入金额:<text>{parseFloat((item.amount/100).toFixed(2))}</text>元</view>
68
-                    <image className='spreadImg' src={sImg} />
69
-                  </view>
60
+
61
+          <view className='title' >{accountlog.length != '' ? '推广收入记录' : '暂无推广收入'}</view>
62
+          {
63
+            accountlog?.map((item) =>
64
+              <view className='spreadCard'>
65
+                <view className='card'>
66
+                  <view className='spreadTime'>时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间:<text>{item.createDate}</text></view>
67
+                  <view className='spreadMoney'>收入金额:<text>{parseFloat((item.amount / 100).toFixed(2))}</text>元</view>
68
+                  <image className='spreadImg' src={sImg} />
70 69
                 </view>
71
-              )
72
-            }
73
-            {accountlog.length!=''?<view className='botton'>已经到底了~</view>:''}          
70
+              </view>
71
+            )
72
+          }
73
+          {accountlog.length != '' ? <view className='botton'>已经到底了~</view> : ''}
74 74
         </scroll-view>
75 75
       </view>
76 76
     </view>

+ 2
- 2
src/hotel/pages/landlord/landlord.jsx Прегледај датотеку

@@ -35,9 +35,9 @@ export default withLayout((props) => {
35 35
     })
36 36
   }, [])
37 37
 
38
-  const handleHotelChange = (current) => {    
38
+  const handleHotelChange = (current) => {
39 39
     getNowHotelManage(current.hotelId).then((res) => {
40
-      const {account: acc } = res
40
+      const { account: acc } = res
41 41
       setAccount(acc)
42 42
       setHotel(current)
43 43
       getAccountLogList(acc.accountId).then((res2) => {

+ 7
- 2
src/layouts/index.jsx Прегледај датотеку

@@ -24,6 +24,9 @@ export default (Child) => (props) => {
24 24
     let indexPage = getIndexPageOf(personRole)
25 25
     if (!isNormalPerson) {
26 26
       indexPage = `${personRole}/${indexPage.page}`
27
+
28
+    } else {
29
+      indexPage = `pages/index/index`
27 30
     }
28 31
 
29 32
     const isMatched = isNormalPerson ?
@@ -31,9 +34,11 @@ export default (Child) => (props) => {
31 34
       !currentPage.root :
32 35
       // 其他角色, 应该是对应的
33 36
       currentPage.root === personRole
34
-    
37
+
38
+
35 39
     // 如果对应上, 就不跳转
36
-    return isMatched ? undefined : indexPage
40
+    return isMatched ? personRole : indexPage
41
+
37 42
   }, [router.path, person?.personRole])
38 43
 
39 44
   if (jumpPage) {

+ 12
- 12
src/pages/index/components/Card.js Прегледај датотеку

@@ -13,30 +13,30 @@ export default (props) => {
13 13
   const { item } = props
14 14
 
15 15
   const [isSaved, toggleSave] = useSave(item.isSaved, item.targetType, item.targetId)
16
-  const Detail=()=>{
17
-    if (item.targetType=='tourist') {
18
-      let location=item.lng+','+item.lat
19
-      Taro.navigateTo({ url: `/pages/details/mjDetails/sceneryDetails?id=${item.targetId}&distance=${(item.distance/1000).toFixed(2)}&location=${location}` });
16
+  const Detail = () => {
17
+    if (item.targetType == 'tourist') {
18
+      let location = item.lng + ',' + item.lat
19
+      Taro.navigateTo({ url: `/pages/details/mjDetails/sceneryDetails?id=${item.targetId}&distance=${(item.distance / 1000).toFixed(2)}&location=${location}` });
20 20
     }
21
-    else{
22
-      Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.targetId}` });
21
+    else {
22
+      Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.targetId}` })
23 23
     }
24 24
   }
25 25
   return (
26 26
     <view className='contentCard'>
27 27
       <view className='cardTop'>
28 28
         <image mode='widthFix' onClick={Detail} src={item.poster} className='cCardimg' />
29
-        <image className='lefttips' src={item.targetType==='tourist'?mjTip:msTip}/>
30
-        <image onClick={toggleSave} src={isSaved> 0?onlove:love} className='loveharde'></image>
29
+        <image className='lefttips' src={item.targetType === 'tourist' ? mjTip : msTip} />
30
+        <image onClick={toggleSave} src={isSaved > 0 ? onlove : love} className='loveharde'></image>
31 31
       </view>
32 32
       <view className='bContent' onClick={Detail}>
33
-        <view className='cCword'>{(item.title).toString().length>35?(item.title).substring(0, 35)+'...':(item.title)}</view>
33
+        <view className='cCword'>{(item.title).toString().length > 35 ? (item.title).substring(0, 35) + '...' : (item.title)}</view>
34 34
         <view className='cCleft'>
35 35
           <image src={location} className='cCicon'></image>
36
-          <view className='distance'><text>{(item.distance/1000).toFixed(2)}</text>公里</view>
36
+          <view className='distance'><text>{(item.distance / 1000).toFixed(2)}</text>公里</view>
37 37
         </view>
38
-        <view className='cCright'>          
39
-          <view className='price'><text className='money'>¥</text><text>{item.averagePrice/100}</text>/人</view>
38
+        <view className='cCright'>
39
+          <view className='price'><text className='money'>¥</text><text>{item.averagePrice / 100}</text>/人</view>
40 40
         </view>
41 41
       </view>
42 42
     </view>

+ 3
- 10
src/pages/index/tabs/Guide.jsx Прегледај датотеку

@@ -32,8 +32,6 @@ export default (props) => {
32 32
   const { router, person } = props
33 33
   console.log("🚀 ~ file: Guide.jsx ~ line 34 ~ props", props)
34 34
   const { roomId, location, roomOrderId } = router.params
35
-  const [value, setVaule] = useState('已收藏')
36
-  const [imageSrc, setImageSrc] = useState(starOn)
37 35
   const [extend, setExtend] = useState([])
38 36
   const [ifroomId, setIfroomId] = useState('havenot')
39 37
   const [spackage, setPackage] = useState([])
@@ -76,7 +74,6 @@ export default (props) => {
76 74
 
77 75
 
78 76
 
79
-
80 77
   useEffect(() => {
81 78
     // 老板推荐的套餐
82 79
     getRecommendList({ location: location }).then((res) => {
@@ -151,14 +148,10 @@ export default (props) => {
151 148
 
152 149
 
153 150
 
154
-  const AddCollect = () => {
155
-    setImageSrc(starOff)
156
-    setVaule('加入收藏')
157 151
 
158
-  }
159
-  // onClick={handleClick}
160 152
   return (
161
-    <scroll-view scroll-y style='height: 77vh;' >
153
+    <scroll-view scroll-y style='height:100%;'  >
154
+
162 155
 
163 156
       <view className='Guide-Home-box'>
164 157
         {
@@ -220,7 +213,7 @@ export default (props) => {
220 213
                 </view>
221 214
                 <view className='MessageCard-content'>
222 215
                   <view className='MessageCard-name' >名称:{taRoomContent?.wifiName}</view>
223
-                  <view className='MessageCard-info' ><text className='MessageCard-name'>密码:</text>{taRoomContent?.wifiPassword}</view>
216
+                  <view className='MessageCard-info'  ><text className='MessageCard-name'>密码:</text>{taRoomContent?.wifiPassword}</view>
224 217
                 </view>
225 218
                 <view className='MessageCard-button'>
226 219
                   <image className='MessageCard-image' src={WiFi} />

+ 4
- 1
src/pages/index/tabs/GuideCss/style.less Прегледај датотеку

@@ -40,11 +40,14 @@
40 40
       margin-left: 30px;
41 41
 
42 42
       .MessageCard-name {
43
-        height: 30px;
43
+        height: 40px;
44 44
         font-size: 32px;
45 45
         font-weight: bold;
46 46
         color: #202020;
47 47
         line-height: 44px;
48
+        overflow: hidden;
49
+        text-overflow: ellipsis;
50
+        white-space: nowrap;
48 51
       }
49 52
       .MessageCard-info {
50 53
         height: 23px;

+ 6
- 3
src/pages/index/tabs/Mine.jsx Прегледај датотеку

@@ -16,11 +16,14 @@ import Rules from '@/assets/icons/UserCenter/Rules.png'
16 16
 import DefaultImage from '@/assets/icons/UserCenter/DefaultImage.png'
17 17
 import cutoverUser from '@/assets/icons/UserCenter/cutoverUser.png'
18 18
 import { PaysOrder, getMineOrder } from '@/services/payOrder' //创建订单
19
-import  ToggleRole  from  '@/components/toggleRole/ToggleRole'
19
+import ToggleRole from '@/components/toggleRole/ToggleRole'
20 20
 
21 21
 import { useModel } from '@/store'
22 22
 import './MineCss/style.less'
23 23
 
24
+
25
+
26
+
24 27
 export default (props) => {
25 28
   const { person } = props
26 29
   const { getAvatar } = useModel('person')
@@ -107,12 +110,12 @@ export default (props) => {
107 110
   //#endregion
108 111
 
109 112
   return !person.phone ? <AuthPage /> : (
110
-    <scroll-view scroll-y style='height: 77vh;' >
113
+    <scroll-view scroll-y style='height: 100%;' >
111 114
 
112 115
 
113 116
       <view className='User-box'>
114 117
         {/* 身份切换 */}
115
-        <ToggleRole showCutover={showCutover} onClose={onClose} />
118
+        <ToggleRole showCutover={showCutover} onClose={onClose} role='normal' />
116 119
         <view className='User-info'>
117 120
           <view className='User-photos-box'>
118 121
             <image src={person.avatar || DefaultImage} className='User-photos' />

+ 54
- 54
src/shop/components/ShopKeeper/shopKeeper.jsx Прегледај датотеку

@@ -1,5 +1,5 @@
1 1
 import { React, useState, useEffect, } from 'react'
2
-import Taro,{ useRouter } from '@tarojs/taro'
2
+import Taro, { useRouter } from '@tarojs/taro'
3 3
 import CustomNav from '@/components/CustomNav'
4 4
 import Popup from '@/components/Popup'
5 5
 import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
@@ -14,7 +14,7 @@ import hotelBossOFF from '@/assets/icons/UserCenter/hotelBossOFF.png'
14 14
 import shopBossON from '@/assets/icons/UserCenter/shopBossON.png'
15 15
 import shopBossOFF from '@/assets/icons/UserCenter/shopBossOFF.png'
16 16
 import './shopKeeper.less'
17
-import  ToggleRole  from  '@/components/toggleRole/ToggleRole'
17
+import ToggleRole from '@/components/toggleRole/ToggleRole'
18 18
 
19 19
 
20 20
 export default (props) => {
@@ -27,7 +27,7 @@ export default (props) => {
27 27
       setActiveTab(tabJump - 0)
28 28
     }
29 29
   }, [tabJump])
30
-  
30
+
31 31
   const handleTabChange = (e) => {
32 32
     const { index } = e.detail
33 33
     setActiveTab(index)
@@ -37,8 +37,8 @@ export default (props) => {
37 37
       title: '未核销订单',
38 38
     },
39 39
     {
40
-      title: '已核销订单',  
41
-    },   
40
+      title: '已核销订单',
41
+    },
42 42
   ]
43 43
 
44 44
   const [showCutover, setShowCutover] = useState(false)
@@ -53,13 +53,13 @@ export default (props) => {
53 53
       <view>
54 54
         <CustomNav title='十公里' />
55 55
       </view>
56
-      <ToggleRole showCutover={showCutover} onClose={onClose} />
57
-  
56
+      <ToggleRole showCutover={showCutover} onClose={onClose} role='shop' />
57
+
58 58
       <view style={{ padding: '30rpx', height: '100%' }}>
59 59
         <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
60 60
           <view className='storexx'>
61 61
             <view className='storeName'>店名:<text>Yun咖 云里 咖啡店</text></view>
62
-            <view onClick={ShowMoldeOn}  className='User-info-cutover'>
62
+            <view onClick={ShowMoldeOn} className='User-info-cutover'>
63 63
               <image className='User-info-cutover-image' src={cutoverUser} />
64 64
             </view>
65 65
             <view className='tip'>(计算收入以核销为准)</view>
@@ -81,12 +81,12 @@ export default (props) => {
81 81
             </view>
82 82
           </view>
83 83
           <view className='search'>
84
-            <input className='searchInput'  />
84
+            <input className='searchInput' />
85 85
             <image className='searchicon' src={iconsearch} />
86 86
             <view className="searchword">搜索订单(输入客户手机号码)</view>
87 87
           </view>
88 88
           <view className='index-tabs'>
89
-          <mp-tabs
89
+            <mp-tabs
90 90
               tabClass='tabs-Unselected'
91 91
               swiperClass='tabs-swiper'
92 92
               activeClass='tabs-Selected'
@@ -96,10 +96,10 @@ export default (props) => {
96 96
               activeTab={activeTab}
97 97
             >
98 98
             </mp-tabs>
99
-            </view>
100
-            
99
+          </view>
100
+
101 101
           <view>
102
-            {activeTab === 0&&
102
+            {activeTab === 0 &&
103 103
               <view className='orderCard'>
104 104
                 <view style={{ overflow: 'hidden' }}>
105 105
                   <view className='orderId'>订单编号:<text>ABC123456789</text></view>
@@ -117,52 +117,52 @@ export default (props) => {
117 117
                   <view className='phone'>客户手机:<text>136****9434</text></view>
118 118
                   <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
119 119
                 </view>
120
-              </view>              
121
-            }
122
-            {activeTab === 1&&
123
-            <>
124
-            <view className='orderCard'>
125
-              <view style={{ overflow: 'hidden' }}>
126
-                <view className='orderId'>订单编号:<text>ABC123456789</text></view>
127
-                <view className='orderTime'>下单日期:<text>2021-06-22 12:35</text></view>
128 120
               </view>
129
-              <view className='order'>
130
-                <image className='orderImg' src={ms} mode='aspectFit' />
131
-                <view className='orderRight'>
132
-                  <view className='foodName'>【SEOUL.创意韩国料理】火爆全南京,
133
-                    新街口又开新店啦...</view>
134
-                  <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>88</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
135
-                  <view>已下单:等待客户上门就餐</view>
121
+            }
122
+            {activeTab === 1 &&
123
+              <>
124
+                <view className='orderCard'>
125
+                  <view style={{ overflow: 'hidden' }}>
126
+                    <view className='orderId'>订单编号:<text>ABC123456789</text></view>
127
+                    <view className='orderTime'>下单日期:<text>2021-06-22 12:35</text></view>
128
+                  </view>
129
+                  <view className='order'>
130
+                    <image className='orderImg' src={ms} mode='aspectFit' />
131
+                    <view className='orderRight'>
132
+                      <view className='foodName'>【SEOUL.创意韩国料理】火爆全南京,
133
+                        新街口又开新店啦...</view>
134
+                      <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>88</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
135
+                      <view>已下单:等待客户上门就餐</view>
136
+                    </view>
137
+                    <view className='line' />
138
+                    <view className='phone'>客户手机:<text>136****9434</text></view>
139
+                    <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
140
+                  </view>
136 141
                 </view>
137
-                <view className='line' />
138
-                <view className='phone'>客户手机:<text>136****9434</text></view>
139
-                <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
140
-              </view>
141
-            </view>
142
-            <view className='orderCard'>
143
-              <view style={{ overflow: 'hidden' }}>
144
-                <view className='orderId'>订单编号:<text>ABC123456789</text></view>
145
-                <view className='orderTime'>下单日期:<text>2021-06-22 12:35</text></view>
146
-              </view>
147
-              <view className='order'>
148
-                <image className='orderImg' src={ms} mode='aspectFit' />
149
-                <view className='orderRight'>
150
-                  <view className='foodName'>【SEOUL.创意韩国料理】火爆全南京,
151
-                    新街口又开新店啦...</view>
152
-                  <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>88</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
153
-                  <view>已下单:等待客户上门就餐</view>
142
+                <view className='orderCard'>
143
+                  <view style={{ overflow: 'hidden' }}>
144
+                    <view className='orderId'>订单编号:<text>ABC123456789</text></view>
145
+                    <view className='orderTime'>下单日期:<text>2021-06-22 12:35</text></view>
146
+                  </view>
147
+                  <view className='order'>
148
+                    <image className='orderImg' src={ms} mode='aspectFit' />
149
+                    <view className='orderRight'>
150
+                      <view className='foodName'>【SEOUL.创意韩国料理】火爆全南京,
151
+                        新街口又开新店啦...</view>
152
+                      <view className='price'>合计金额:¥<text style={{ fontSize: '24rpx' }}>88</text>元 <text className='pnum'>数量:<text>1</text>张</text> </view>
153
+                      <view>已下单:等待客户上门就餐</view>
154
+                    </view>
155
+                    <view className='line' />
156
+                    <view className='phone'>客户手机:<text>136****9434</text></view>
157
+                    <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
158
+                  </view>
154 159
                 </view>
155
-                <view className='line' />
156
-                <view className='phone'>客户手机:<text>136****9434</text></view>
157
-                <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
158
-              </view>
159
-            </view>
160
-          </>
160
+              </>
161 161
             }
162
-            </view>
162
+          </view>
163 163
           <view className='botton'>已经到底了~</view>
164
-        </scroll-view>        
165
-      </view>      
164
+        </scroll-view>
166 165
       </view>
166
+    </view>
167 167
   )
168 168
 }

+ 3
- 3
src/shop/components/Sparead/spreadMoney.jsx Прегледај датотеку

@@ -9,7 +9,7 @@ import touristOFF from '@/assets/icons/UserCenter/touristOFF.png'
9 9
 import hotelBossOFF from '@/assets/icons/UserCenter/hotelBossOFF.png'
10 10
 import shopBossON from '@/assets/icons/UserCenter/shopBossON.png'
11 11
 import './spreadMoney.less'
12
-import  ToggleRole  from  '@/components/toggleRole/ToggleRole'
12
+import ToggleRole from '@/components/toggleRole/ToggleRole'
13 13
 
14 14
 export default (props) => {
15 15
 
@@ -19,14 +19,14 @@ export default (props) => {
19 19
   }
20 20
   const onClose = () => {
21 21
     setShowCutover(false)
22
-    }
22
+  }
23 23
 
24 24
   return (
25 25
     <view>
26 26
       <view>
27 27
         <CustomNav title='十公里' />
28 28
       </view>
29
-      <ToggleRole showCutover={showCutover} onClose={onClose} />
29
+      <ToggleRole showCutover={showCutover} onClose={onClose} role='shop' />
30 30
       <view style={{ padding: '30rpx', height: '100%' }}>
31 31
         <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
32 32
           <view className='storexx'>