瀏覽代碼

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

张延森 3 年之前
父節點
當前提交
573d986b41

+ 7
- 1
src/components/BossCard/index.jsx 查看文件

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

+ 1
- 1
src/components/CompoentsOrder/AlreadyExpired/index.jsx 查看文件

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

+ 2
- 1
src/components/CompoentsOrder/AlreadyUsed/index.jsx 查看文件

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

+ 2
- 1
src/components/CompoentsOrder/TobePaid/index.jsx 查看文件

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

+ 2
- 1
src/components/CompoentsOrder/TobeWritten/index.jsx 查看文件

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

+ 29
- 28
src/components/toggleRole/ToggleRole.jsx 查看文件

1
-import { useState,useEffect } from 'react';
1
+import { useState, useEffect } from 'react';
2
 
2
 
3
 import touristON from '@/assets/icons/UserCenter/touristON.png'
3
 import touristON from '@/assets/icons/UserCenter/touristON.png'
4
 import touristOFF from '@/assets/icons/UserCenter/touristOFF.png'
4
 import touristOFF from '@/assets/icons/UserCenter/touristOFF.png'
12
 import { useModel } from '@/store'
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
     getRole('normal')
19
     getRole('normal')
20
   }
20
   }
21
-  const goToHotel=()=>{
21
+  const goToHotel = () => {
22
     getRole('hotel')
22
     getRole('hotel')
23
+
23
   }
24
   }
24
-  const goToShop=()=>{
25
+  const goToShop = () => {
25
     getRole('shop')
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
   }
32
   }
33
   return (
33
   return (
34
     <view>
34
     <view>
35
-      <ToggleRole showCutover={showCutover} onClose={onClose} />
35
+      <ToggleRole role='hotel' showCutover={showCutover} onClose={onClose} />
36
       <view style={{ padding: '30rpx', height: '100%' }}>
36
       <view style={{ padding: '30rpx', height: '100%' }}>
37
         <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
37
         <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
38
           <view className='storexx'>
38
           <view className='storexx'>
57
                 </view></view>
57
                 </view></view>
58
             </view>
58
             </view>
59
           </view>
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
                 </view>
69
                 </view>
71
-              )
72
-            }
73
-            {accountlog.length!=''?<view className='botton'>已经到底了~</view>:''}          
70
+              </view>
71
+            )
72
+          }
73
+          {accountlog.length != '' ? <view className='botton'>已经到底了~</view> : ''}
74
         </scroll-view>
74
         </scroll-view>
75
       </view>
75
       </view>
76
     </view>
76
     </view>

+ 2
- 2
src/hotel/pages/landlord/landlord.jsx 查看文件

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

+ 7
- 2
src/layouts/index.jsx 查看文件

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

+ 12
- 12
src/pages/index/components/Card.js 查看文件

13
   const { item } = props
13
   const { item } = props
14
 
14
 
15
   const [isSaved, toggleSave] = useSave(item.isSaved, item.targetType, item.targetId)
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
   return (
25
   return (
26
     <view className='contentCard'>
26
     <view className='contentCard'>
27
       <view className='cardTop'>
27
       <view className='cardTop'>
28
         <image mode='widthFix' onClick={Detail} src={item.poster} className='cCardimg' />
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
       </view>
31
       </view>
32
       <view className='bContent' onClick={Detail}>
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
         <view className='cCleft'>
34
         <view className='cCleft'>
35
           <image src={location} className='cCicon'></image>
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
         </view>
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
         </view>
40
         </view>
41
       </view>
41
       </view>
42
     </view>
42
     </view>

+ 3
- 10
src/pages/index/tabs/Guide.jsx 查看文件

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

+ 4
- 1
src/pages/index/tabs/GuideCss/style.less 查看文件

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

+ 6
- 3
src/pages/index/tabs/Mine.jsx 查看文件

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

+ 54
- 54
src/shop/components/ShopKeeper/shopKeeper.jsx 查看文件

1
 import { React, useState, useEffect, } from 'react'
1
 import { React, useState, useEffect, } from 'react'
2
-import Taro,{ useRouter } from '@tarojs/taro'
2
+import Taro, { useRouter } from '@tarojs/taro'
3
 import CustomNav from '@/components/CustomNav'
3
 import CustomNav from '@/components/CustomNav'
4
 import Popup from '@/components/Popup'
4
 import Popup from '@/components/Popup'
5
 import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
5
 import eyes from '@/assets/icons/shopKeeper/小眼睛.png'
14
 import shopBossON from '@/assets/icons/UserCenter/shopBossON.png'
14
 import shopBossON from '@/assets/icons/UserCenter/shopBossON.png'
15
 import shopBossOFF from '@/assets/icons/UserCenter/shopBossOFF.png'
15
 import shopBossOFF from '@/assets/icons/UserCenter/shopBossOFF.png'
16
 import './shopKeeper.less'
16
 import './shopKeeper.less'
17
-import  ToggleRole  from  '@/components/toggleRole/ToggleRole'
17
+import ToggleRole from '@/components/toggleRole/ToggleRole'
18
 
18
 
19
 
19
 
20
 export default (props) => {
20
 export default (props) => {
27
       setActiveTab(tabJump - 0)
27
       setActiveTab(tabJump - 0)
28
     }
28
     }
29
   }, [tabJump])
29
   }, [tabJump])
30
-  
30
+
31
   const handleTabChange = (e) => {
31
   const handleTabChange = (e) => {
32
     const { index } = e.detail
32
     const { index } = e.detail
33
     setActiveTab(index)
33
     setActiveTab(index)
37
       title: '未核销订单',
37
       title: '未核销订单',
38
     },
38
     },
39
     {
39
     {
40
-      title: '已核销订单',  
41
-    },   
40
+      title: '已核销订单',
41
+    },
42
   ]
42
   ]
43
 
43
 
44
   const [showCutover, setShowCutover] = useState(false)
44
   const [showCutover, setShowCutover] = useState(false)
53
       <view>
53
       <view>
54
         <CustomNav title='十公里' />
54
         <CustomNav title='十公里' />
55
       </view>
55
       </view>
56
-      <ToggleRole showCutover={showCutover} onClose={onClose} />
57
-  
56
+      <ToggleRole showCutover={showCutover} onClose={onClose} role='shop' />
57
+
58
       <view style={{ padding: '30rpx', height: '100%' }}>
58
       <view style={{ padding: '30rpx', height: '100%' }}>
59
         <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
59
         <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
60
           <view className='storexx'>
60
           <view className='storexx'>
61
             <view className='storeName'>店名:<text>Yun咖 云里 咖啡店</text></view>
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
               <image className='User-info-cutover-image' src={cutoverUser} />
63
               <image className='User-info-cutover-image' src={cutoverUser} />
64
             </view>
64
             </view>
65
             <view className='tip'>(计算收入以核销为准)</view>
65
             <view className='tip'>(计算收入以核销为准)</view>
81
             </view>
81
             </view>
82
           </view>
82
           </view>
83
           <view className='search'>
83
           <view className='search'>
84
-            <input className='searchInput'  />
84
+            <input className='searchInput' />
85
             <image className='searchicon' src={iconsearch} />
85
             <image className='searchicon' src={iconsearch} />
86
             <view className="searchword">搜索订单(输入客户手机号码)</view>
86
             <view className="searchword">搜索订单(输入客户手机号码)</view>
87
           </view>
87
           </view>
88
           <view className='index-tabs'>
88
           <view className='index-tabs'>
89
-          <mp-tabs
89
+            <mp-tabs
90
               tabClass='tabs-Unselected'
90
               tabClass='tabs-Unselected'
91
               swiperClass='tabs-swiper'
91
               swiperClass='tabs-swiper'
92
               activeClass='tabs-Selected'
92
               activeClass='tabs-Selected'
96
               activeTab={activeTab}
96
               activeTab={activeTab}
97
             >
97
             >
98
             </mp-tabs>
98
             </mp-tabs>
99
-            </view>
100
-            
99
+          </view>
100
+
101
           <view>
101
           <view>
102
-            {activeTab === 0&&
102
+            {activeTab === 0 &&
103
               <view className='orderCard'>
103
               <view className='orderCard'>
104
                 <view style={{ overflow: 'hidden' }}>
104
                 <view style={{ overflow: 'hidden' }}>
105
                   <view className='orderId'>订单编号:<text>ABC123456789</text></view>
105
                   <view className='orderId'>订单编号:<text>ABC123456789</text></view>
117
                   <view className='phone'>客户手机:<text>136****9434</text></view>
117
                   <view className='phone'>客户手机:<text>136****9434</text></view>
118
                   <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
118
                   <view className='tripTime'>客户行程日期:预计在<text>2021-06-21中下午10:30-16:30</text></view>
119
                 </view>
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
               </view>
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
                 </view>
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
                 </view>
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
           <view className='botton'>已经到底了~</view>
163
           <view className='botton'>已经到底了~</view>
164
-        </scroll-view>        
165
-      </view>      
164
+        </scroll-view>
166
       </view>
165
       </view>
166
+    </view>
167
   )
167
   )
168
 }
168
 }

+ 3
- 3
src/shop/components/Sparead/spreadMoney.jsx 查看文件

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