Browse Source

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

李志伟 3 years ago
parent
commit
7fa28af07c

BIN
src/assets/icons/GuideCheck/articleCardImage.png View File


BIN
src/assets/icons/ProCard/8kb.jpg View File


BIN
src/assets/icons/ProCard/QCRsgl.png View File


+ 3
- 6
src/components/AlreadyUsedMolded/index.jsx View File

1
 
1
 
2
-import image from '@/assets/icons/ProCard/8kb.jpg'
2
+
3
 import food from '@/assets/icons/ProCard/food.png'
3
 import food from '@/assets/icons/ProCard/food.png'
4
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
4
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
5
-import Evaluation from '@/assets/icons/UserCenter/Evaluation.png'
6
-import starOn from '@/assets/icons/GuideCheck/starOn.png'
7
-import starOff from '@/assets/icons/GuideCheck/starOff.png'
8
 import formatTime from '@/utils/formatTime'
5
 import formatTime from '@/utils/formatTime'
9
-import Star from '@/components/Star/Star.jsx'
6
+
10
 import { useState } from 'react'
7
 import { useState } from 'react'
11
 import './style.less'
8
 import './style.less'
12
 
9
 
35
                   返现¥{(item.cashback / 100)?.toFixed(2)}
32
                   返现¥{(item.cashback / 100)?.toFixed(2)}
36
                 </view>
33
                 </view>
37
                 <view className='title-image' >
34
                 <view className='title-image' >
38
-                  <image className='image-1' mode='scaleToFill' src={item.poster || image}></image>
35
+                  <image className='image-1' mode='scaleToFill' src={item.poster || []}></image>
39
                   <image className='image-2' src={food}></image>
36
                   <image className='image-2' src={food}></image>
40
                 </view>
37
                 </view>
41
                 <view className='title-content'>
38
                 <view className='title-content'>

+ 4
- 2
src/components/BadgeTag/index.jsx View File

1
 
1
 
2
 import React from 'react'
2
 import React from 'react'
3
-import { View, Image, Text } from '@tarojs/components'
3
+import { View, Image } from '@tarojs/components'
4
 import food from '@/assets/icons/ProCard/food.png'
4
 import food from '@/assets/icons/ProCard/food.png'
5
+import glTip from '@/assets/icons/housemantj/gltip.png'
6
+
5
 import './style.less'
7
 import './style.less'
6
 
8
 
7
 export default (props) => {
9
 export default (props) => {
8
   const { type, top = '0px', left = '0px' } = props
10
   const { type, top = '0px', left = '0px' } = props
9
 
11
 
10
-  const icon = type === 'food' ? food : undefined;
12
+  const icon = type === 'food' ? food : glTip;
11
 
13
 
12
   const style = {
14
   const style = {
13
     top,
15
     top,

+ 1
- 2
src/components/CompoentsOrder/TobeWritten/index.jsx View File

1
 
1
 
2
 import formatTime from "@/utils/formatTime";
2
 import formatTime from "@/utils/formatTime";
3
-import image from "@/assets/icons/ProCard/8kb.jpg";
4
 import food from "@/assets/icons/ProCard/food.png";
3
 import food from "@/assets/icons/ProCard/food.png";
5
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
4
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
6
 import QRcode from "@/assets/icons/UserCenter/QRcode.png";
5
 import QRcode from "@/assets/icons/UserCenter/QRcode.png";
23
           <image
22
           <image
24
             className='image-1'
23
             className='image-1'
25
             mode='scaleToFill'
24
             mode='scaleToFill'
26
-            src={item.poster || image}
25
+            src={item.poster || []}
27
           ></image>
26
           ></image>
28
           <image className='image-2' src={food}></image>
27
           <image className='image-2' src={food}></image>
29
         </view>
28
         </view>

+ 5
- 6
src/components/CompoentsOrder/complete/index.jsx View File

3
 import Taro, { useDidShow, AtSwipeAction } from "@tarojs/taro";
3
 import Taro, { useDidShow, AtSwipeAction } from "@tarojs/taro";
4
 import { getOrderSub, deleteOrder } from "@/services/payOrder";
4
 import { getOrderSub, deleteOrder } from "@/services/payOrder";
5
 import formatTime from "@/utils/formatTime";
5
 import formatTime from "@/utils/formatTime";
6
-import image from "@/assets/icons/ProCard/8kb.jpg";
7
 import food from "@/assets/icons/ProCard/food.png";
6
 import food from "@/assets/icons/ProCard/food.png";
8
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
7
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
9
 import refund from "@/assets/icons/GuideCheck/refund.png";
8
 import refund from "@/assets/icons/GuideCheck/refund.png";
181
                             <image
180
                             <image
182
                               className='image-1'
181
                               className='image-1'
183
                               mode='scaleToFill'
182
                               mode='scaleToFill'
184
-                              src={item.poster || image}
183
+                              src={item.poster || []}
185
                             ></image>
184
                             ></image>
186
                             <image className='image-2' src={food}></image>
185
                             <image className='image-2' src={food}></image>
187
                           </view>
186
                           </view>
240
                           <image
239
                           <image
241
                             className='image-1'
240
                             className='image-1'
242
                             mode='scaleToFill'
241
                             mode='scaleToFill'
243
-                            src={item.poster || image}
242
+                            src={item.poster || []}
244
                           ></image>
243
                           ></image>
245
                           <image className='image-2' src={food}></image>
244
                           <image className='image-2' src={food}></image>
246
                         </view>
245
                         </view>
290
                           <image
289
                           <image
291
                             className='image-1'
290
                             className='image-1'
292
                             mode='scaleToFill'
291
                             mode='scaleToFill'
293
-                            src={item.poster || image}
292
+                            src={item.poster || []}
294
                           ></image>
293
                           ></image>
295
                           <image className='image-2' src={food}></image>
294
                           <image className='image-2' src={food}></image>
296
                         </view>
295
                         </view>
350
                           <image
349
                           <image
351
                             className='image-1'
350
                             className='image-1'
352
                             mode='scaleToFill'
351
                             mode='scaleToFill'
353
-                            src={item.poster || image}
352
+                            src={item.poster || []}
354
                           ></image>
353
                           ></image>
355
                           <image className='image-2' src={food}></image>
354
                           <image className='image-2' src={food}></image>
356
                         </view>
355
                         </view>
410
                           <image
409
                           <image
411
                             className='image-1'
410
                             className='image-1'
412
                             mode='scaleToFill'
411
                             mode='scaleToFill'
413
-                            src={item.poster || image}
412
+                            src={item.poster || []}
414
                           ></image>
413
                           ></image>
415
                           <image className='image-2' src={food}></image>
414
                           <image className='image-2' src={food}></image>
416
                         </view>
415
                         </view>

+ 1
- 1
src/components/CouponCard/Action/IconAction.jsx View File

1
 
1
 
2
 import React from 'react'
2
 import React from 'react'
3
 import { View, Image, Text } from '@tarojs/components'
3
 import { View, Image, Text } from '@tarojs/components'
4
-
5
 import './style.less'
4
 import './style.less'
6
 
5
 
7
 export default (props) => {
6
 export default (props) => {
8
   const { icon, text, onClick } = props
7
   const { icon, text, onClick } = props
9
 
8
 
9
+
10
   const handleClick = (e) => {
10
   const handleClick = (e) => {
11
     if (onClick) {
11
     if (onClick) {
12
       e.stopPropagation()
12
       e.stopPropagation()

+ 0
- 39
src/components/CustTabBar/index.jsx View File

1
-
2
-import React from 'react'
3
-import './style.less'
4
-
5
-export default (props) => {
6
-  const { extClass = '', current, onChange, children } = props
7
-
8
-  const handleTabChange = (e, index) => {
9
-    if (e) {
10
-      e.detail = {
11
-        ...e.detail || {},
12
-        index,
13
-      }
14
-      // Object.assign(e.detail, { index })
15
-    }
16
-
17
-    if (onChange) {
18
-      onChange(e)
19
-    }
20
-  }
21
-
22
-  const className = `weui-tabbar cust-tabbar ${extClass}`
23
-
24
-  return (
25
-    <view className={className}>
26
-      {
27
-        React.Children.toArray(children).map((child, index) => {
28
-          const itemClass = `weui-tabbar__item cust-tabbar-item`
29
-
30
-          return (
31
-            <view className={itemClass} onClick={(e) => handleTabChange(e, index)}>
32
-              {child}
33
-            </view>
34
-          )
35
-        })
36
-      }
37
-    </view>
38
-  )
39
-}

+ 0
- 6
src/components/CustTabBar/style.less View File

1
-.cust-tabbar {
2
-  &-item {
3
-    font-size: 1em;
4
-    padding: 0;
5
-  }
6
-}

+ 1
- 1
src/components/OrderMolded/index.jsx View File

1
 import { useState } from 'react'
1
 import { useState } from 'react'
2
-import image from '@/assets/icons/ProCard/8kb.jpg'
2
+
3
 import { Button, Radio } from '@tarojs/components'
3
 import { Button, Radio } from '@tarojs/components'
4
 import PayOrderCard from '@/components/PayOrderCard'
4
 import PayOrderCard from '@/components/PayOrderCard'
5
 import formatTimes from '@/utils/formatTime'
5
 import formatTimes from '@/utils/formatTime'

+ 18
- 0
src/hotel/pages/landlord/Roomtabbar.js View File

1
+
2
+const Roomtabbar = [
3
+
4
+
5
+  {
6
+    text: '房源管理',
7
+    iconPath: require('@/assets/icons/landlord/roomOff.png'),
8
+    selectedIconPath: require('@/assets/icons/landlord/roomON.png'),
9
+  },
10
+  {
11
+    text: '我的收入',
12
+    iconPath: require('@/assets/icons/landlord/money.png'),
13
+    selectedIconPath: require('@/assets/icons/landlord/moneyON.png'),
14
+  },
15
+
16
+]
17
+
18
+export default Roomtabbar

+ 10
- 8
src/hotel/pages/landlord/landlord.jsx View File

1
 import React, { useState, useEffect, useRef } from 'react'
1
 import React, { useState, useEffect, useRef } from 'react'
2
 import Taro, { useRouter, useShareAppMessage } from '@tarojs/taro'
2
 import Taro, { useRouter, useShareAppMessage } from '@tarojs/taro'
3
-import TabBar from '@/components/CustTabBar'
4
-import incomeImg from '@/assets/icons/landlord/money.png'
5
-import onincomeImg from '@/assets/icons/landlord/moneyON.png'
6
-import houseImg from '@/assets/icons/landlord/roomOff.png'
7
-import onhouseImg from '@/assets/icons/landlord/roomON.png'
3
+
8
 import withLayout from '@/layouts'
4
 import withLayout from '@/layouts'
5
+
9
 import { getHotelManage, getNowHotelManage } from '@/services/landlord'
6
 import { getHotelManage, getNowHotelManage } from '@/services/landlord'
10
 import NoData from '@/components/NoData'
7
 import NoData from '@/components/NoData'
11
 import CustomNav from '@/components/CustomNav'
8
 import CustomNav from '@/components/CustomNav'
12
 import { withSubscribeMessage } from '@/utils/subscribeMessage'
9
 import { withSubscribeMessage } from '@/utils/subscribeMessage'
13
 import HouseManage from '../../components/HouseManage/houseManage'
10
 import HouseManage from '../../components/HouseManage/houseManage'
14
 import Income from '../../components/Income/income'
11
 import Income from '../../components/Income/income'
12
+import tabList from './Roomtabbar'
13
+
15
 import './landlord.less'
14
 import './landlord.less'
16
 
15
 
17
 export default withLayout((props) => {
16
 export default withLayout((props) => {
64
 
63
 
65
   return (
64
   return (
66
     <view className='page-index'>
65
     <view className='page-index'>
67
-      <view className="index-navbar">
66
+      <view className='index-navbar'>
68
         <CustomNav title={hotel?.hotelName} logo={hotel?.logo} />
67
         <CustomNav title={hotel?.hotelName} logo={hotel?.logo} />
69
       </view>
68
       </view>
70
       <view className='index-container'>
69
       <view className='index-container'>
72
         {hotel?.hotelId ? currentTab === 0 && <HouseManage hotel={hotel} ref={houseRef} disabled={!hotel.hotelId} /> : <NoData />}
71
         {hotel?.hotelId ? currentTab === 0 && <HouseManage hotel={hotel} ref={houseRef} disabled={!hotel.hotelId} /> : <NoData />}
73
       </view>
72
       </view>
74
       <view className='index-tabbar'>
73
       <view className='index-tabbar'>
75
-        <TabBar extClass='custom-tabbar bottomTab' current={currentTab} onChange={handleTabChange}>
74
+        {/* <TabBar extClass='custom-tabbar bottomTab' current={currentTab} onChange={handleTabChange}>
76
           <view className={`${currentTab === 0 ? 'houseTab' : ''}`}>
75
           <view className={`${currentTab === 0 ? 'houseTab' : ''}`}>
77
             <image className='house' src={currentTab === 0 ? onhouseImg : houseImg} /><text>房源管理</text>
76
             <image className='house' src={currentTab === 0 ? onhouseImg : houseImg} /><text>房源管理</text>
78
           </view>
77
           </view>
79
           <view className={`${currentTab === 1 ? 'incomeTab' : ''}`}>
78
           <view className={`${currentTab === 1 ? 'incomeTab' : ''}`}>
80
             <image className='incomes' src={currentTab === 1 ? onincomeImg : incomeImg} /><text>我的收入</text>
79
             <image className='incomes' src={currentTab === 1 ? onincomeImg : incomeImg} /><text>我的收入</text>
81
           </view>
80
           </view>
82
-        </TabBar>
81
+        </TabBar> */}
82
+      </view>
83
+      <view className='index-tabbar'>
84
+        <mp-tabbar extClass='custom-tabbar' current={currentTab} list={tabList} onChange={handleTabChange}></mp-tabbar>
83
       </view>
85
       </view>
84
     </view>
86
     </view>
85
 
87
 

+ 0
- 12
src/pages/MineUserAll/ContactMe/index.jsx View File

1
 import { saveFeedback } from '@/services/mine'
1
 import { saveFeedback } from '@/services/mine'
2
-import QCRsgl from '@/assets/icons/ProCard/QCRsgl.png'
3
 import CustomNav from '@/components/CustomNav'
2
 import CustomNav from '@/components/CustomNav'
4
 import Taro from '@tarojs/taro'
3
 import Taro from '@tarojs/taro'
5
 import { Image, Button } from '@tarojs/components'
4
 import { Image, Button } from '@tarojs/components'
20
         personId,
19
         personId,
21
         content
20
         content
22
       }).then(() => {
21
       }).then(() => {
23
-        // 成功返回一个模态框提醒用户
24
-        // Taro.showModal({
25
-        //   title: '提示',
26
-        //   content: '反馈成功,感谢提交;\r\n如有需要平台将在24小时内添加您的微信,请留意您的手机信息。',
27
-        //   showCancel: false,
28
-        //   success(res) {
29
-        //     if (res.confirm) {
30
-        //       back()
31
-        //     }
32
-        //   }
33
-        // })
34
       })
22
       })
35
     }
23
     }
36
     else {
24
     else {

+ 1
- 2
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx View File

1
 import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
1
 import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
2
 import Taro from "@tarojs/taro";
2
 import Taro from "@tarojs/taro";
3
-import { Button, Icon, Text, Textarea } from "@tarojs/components";
3
+import { Button, Textarea } from "@tarojs/components";
4
 import formatPrice from "@/utils/formatPrice";
4
 import formatPrice from "@/utils/formatPrice";
5
 import formatTime from "@/utils/formatTime";
5
 import formatTime from "@/utils/formatTime";
6
 import { useState, useEffect } from "react";
6
 import { useState, useEffect } from "react";
7
 import withLayout from "@/layouts";
7
 import withLayout from "@/layouts";
8
 import { getOrderSub, refund } from "@/services/payOrder";
8
 import { getOrderSub, refund } from "@/services/payOrder";
9
-import image from "@/assets/icons/ProCard/8kb.jpg";
10
 import food from "@/assets/icons/ProCard/food.png";
9
 import food from "@/assets/icons/ProCard/food.png";
11
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
10
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
12
 import CustomNav from "@/components/CustomNav";
11
 import CustomNav from "@/components/CustomNav";

+ 0
- 1
src/pages/MineUserAll/RefundMoney/index.jsx View File

1
 import { useState, useEffect } from "react";
1
 import { useState, useEffect } from "react";
2
 import Taro, { useDidShow } from "@tarojs/taro";
2
 import Taro, { useDidShow } from "@tarojs/taro";
3
-import image from "@/assets/icons/ProCard/8kb.jpg";
4
 import food from "@/assets/icons/ProCard/food.png";
3
 import food from "@/assets/icons/ProCard/food.png";
5
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
4
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
6
 import withLayout from "@/layouts";
5
 import withLayout from "@/layouts";

+ 6
- 6
src/pages/PayOrder/index.jsx View File

1
 import withLayout from "@/layouts";
1
 import withLayout from "@/layouts";
2
-import image from "@/assets/icons/ProCard/8kb.jpg";
2
+import Taro, { useDidShow } from "@tarojs/taro";
3
+import { getPackageDetail } from "@/services/home";
4
+import { saveOrder, getOrderSub, payOrder } from "@/services/payOrder";
3
 import { useState, useEffect } from "react";
5
 import { useState, useEffect } from "react";
6
+import formatPrice from "@/utils/formatPrice";
7
+
4
 import { Button, Checkbox, Input, RadioGroup, Radio } from "@tarojs/components";
8
 import { Button, Checkbox, Input, RadioGroup, Radio } from "@tarojs/components";
5
 import AuthPage from '@/components/AuthPage'
9
 import AuthPage from '@/components/AuthPage'
6
 import food from "@/assets/icons/ProCard/food.png";
10
 import food from "@/assets/icons/ProCard/food.png";
9
 import OrderMolded from "@/components/OrderMolded";
13
 import OrderMolded from "@/components/OrderMolded";
10
 import Popup from "@/components/Popup";
14
 import Popup from "@/components/Popup";
11
 import "./style.less";
15
 import "./style.less";
12
-import Taro, { useDidShow } from "@tarojs/taro";
13
-import { getPackageDetail } from "@/services/home";
14
-import { saveOrder, getOrderSub, payOrder } from "@/services/payOrder";
15
-import formatTime from "@/utils/formatTime";
16
-import formatPrice from "@/utils/formatPrice";
16
+
17
 import Card from "./Card";
17
 import Card from "./Card";
18
 
18
 
19
 export default withLayout((props) => {
19
 export default withLayout((props) => {

+ 7
- 7
src/pages/TobeShop/index.jsx View File

2
 import { useState, useEffect } from "react";
2
 import { useState, useEffect } from "react";
3
 import withLayout from "@/layouts";
3
 import withLayout from "@/layouts";
4
 import CustomNav from "@/components/CustomNav";
4
 import CustomNav from "@/components/CustomNav";
5
-import { getShopDetail, getShopPackage, getExtendContent } from '@/services/home'
5
+import { getShopDetail, getShopPackage, getExtendContent } from '@/services/home';
6
 import Popup from "@/components/Popup";
6
 import Popup from "@/components/Popup";
7
 import formatPrice from "@/utils/formatPrice";
7
 import formatPrice from "@/utils/formatPrice";
8
 
8
 
11
 import Check_OK from "@/assets/icons/UserCenter/Check_OK.png";
11
 import Check_OK from "@/assets/icons/UserCenter/Check_OK.png";
12
 import Check_NO from "@/assets/icons/UserCenter/Check_NO.png";
12
 import Check_NO from "@/assets/icons/UserCenter/Check_NO.png";
13
 import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
13
 import BlackSpot from "@/assets/icons/GuideCheck/BlackSpot.png";
14
-import image from "@/assets/icons/ProCard/8kb.jpg";
15
 import food from "@/assets/icons/ProCard/food.png";
14
 import food from "@/assets/icons/ProCard/food.png";
16
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
15
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
17
 import { Button, Icon, Text, Textarea } from "@tarojs/components";
16
 import { Button, Icon, Text, Textarea } from "@tarojs/components";
148
         </view>
147
         </view>
149
         <view>
148
         <view>
150
           {(list || []).map((item) => {
149
           {(list || []).map((item) => {
151
-
152
             return (
150
             return (
153
               <view class='wrapper' key={item.verifyNo} onClick={() => setChecked(item.verifyNo)}>
151
               <view class='wrapper' key={item.verifyNo} onClick={() => setChecked(item.verifyNo)}>
154
                 <view class='left-complete-one'>
152
                 <view class='left-complete-one'>
155
-                  <view className='Check_OK-box'>
156
-                    <image className='Check_OK-image' src={item.verifyNo == checked ? Check_OK : Check_NO} />
157
-                  </view>
158
                   <image className='left-image-1' src={ProCard_hot}></image>
153
                   <image className='left-image-1' src={ProCard_hot}></image>
159
                   <view className='left-viewText'>返现¥{(item.cashback / 100).toFixed(2)}</view>
154
                   <view className='left-viewText'>返现¥{(item.cashback / 100).toFixed(2)}</view>
160
                   <view className='title-image'>
155
                   <view className='title-image'>
181
                     </view>
176
                     </view>
182
                   </view>
177
                   </view>
183
                 </view>
178
                 </view>
179
+
184
                 <view class='right-complete-two'>
180
                 <view class='right-complete-two'>
185
-                  <view className='right-content'></view>
181
+                  <view className='right-content'>
182
+                    <view className='Check_OK-box'>
183
+                      <image className='Check_OK-image' src={item.verifyNo == checked ? Check_OK : Check_NO} />
184
+                    </view>
185
+                  </view>
186
                 </view>
186
                 </view>
187
               </view>
187
               </view>
188
             );
188
             );

+ 11
- 10
src/pages/TobeShop/style.less View File

125
 
125
 
126
       align-items: center;
126
       align-items: center;
127
 
127
 
128
-      .Check_OK-box {
129
-        padding-left: 20px;
130
-        .Check_OK-image {
131
-          width: 34px;
132
-          height: 34px;
133
-        }
134
-      }
135
       .left-image-1 {
128
       .left-image-1 {
136
         width: 145px;
129
         width: 145px;
137
         height: 44px;
130
         height: 44px;
138
         position: absolute;
131
         position: absolute;
139
-        margin-left: 85px;
132
+        // margin-left: 85px;
140
         top: 22px;
133
         top: 22px;
141
       }
134
       }
142
       .left-viewText {
135
       .left-viewText {
145
         width: auto;
138
         width: auto;
146
         height: 44.3px;
139
         height: 44.3px;
147
         position: absolute;
140
         position: absolute;
148
-        left: 85px;
141
+        // left: 85px;
149
         top: 28px;
142
         top: 28px;
150
         font-size: 20px;
143
         font-size: 20px;
151
         color: @whiteColor;
144
         color: @whiteColor;
262
       left: 50%;
255
       left: 50%;
263
       transform: translate(-50%, -50%);
256
       transform: translate(-50%, -50%);
264
       // border: 1px solid red;
257
       // border: 1px solid red;
265
-
258
+      .Check_OK-box {
259
+        position: relative;
260
+        left: 37vw;
261
+        top: 6vw;
262
+        .Check_OK-image {
263
+          width: 34px;
264
+          height: 34px;
265
+        }
266
+      }
266
       .right-number {
267
       .right-number {
267
         // width: 32px;
268
         // width: 32px;
268
         // font-size: 20px;
269
         // font-size: 20px;

+ 37
- 37
src/pages/details/foodDetails/foodDetails.jsx View File

138
   });
138
   });
139
 
139
 
140
   return (
140
   return (
141
-    <view className="page-index">
142
-      <view className="index-navbar">
143
-        <CustomNav title="十公里" />
141
+    <view className='page-index'>
142
+      <view className='index-navbar'>
143
+        <CustomNav title='十公里' />
144
       </view>
144
       </view>
145
       <view
145
       <view
146
         style={{ overflow: "hidden", padding: "0 30rpx", height: '100%', background: "#F8F8F8" }}
146
         style={{ overflow: "hidden", padding: "0 30rpx", height: '100%', background: "#F8F8F8" }}
149
           scrollY
149
           scrollY
150
           style={{ height: '100%' }}
150
           style={{ height: '100%' }}
151
         >
151
         >
152
-          <view className="storeDetails">
152
+          <view className='storeDetails'>
153
             <Swiper
153
             <Swiper
154
-              className="swiper"
154
+              className='swiper'
155
               circular
155
               circular
156
               current={index}
156
               current={index}
157
               onChange={handchange}
157
               onChange={handchange}
158
             >
158
             >
159
               {imglist.map((item) => (
159
               {imglist.map((item) => (
160
                 <SwiperItem>
160
                 <SwiperItem>
161
-                  <image src={item.url} mode='aspectFit' className="storeImage">
162
-                    <view className="tpPage">
161
+                  <image src={item.url} mode='aspectFit' className='storeImage'>
162
+                    <view className='tpPage'>
163
                       <text>
163
                       <text>
164
                         {index + 1}/{imglist.length}
164
                         {index + 1}/{imglist.length}
165
                       </text>
165
                       </text>
168
                 </SwiperItem>
168
                 </SwiperItem>
169
               ))}
169
               ))}
170
             </Swiper>
170
             </Swiper>
171
-            <view className="storeJs">
171
+            <view className='storeJs'>
172
               <view style={{ overflow: "hidden" }}>
172
               <view style={{ overflow: "hidden" }}>
173
-                <view className="storeName">{detail.shopName}</view>
174
-                <view className="sprice">
175
-                  <text className="t1">¥</text>
173
+                <view className='storeName'>{detail.shopName}</view>
174
+                <view className='sprice'>
175
+                  <text className='t1'>¥</text>
176
                   {detail.averagePrice / 100}/人
176
                   {detail.averagePrice / 100}/人
177
-                  <view className="bzRight">
177
+                  <view className='bzRight'>
178
                     <image
178
                     <image
179
                       src={baozan}
179
                       src={baozan}
180
                       style={{
180
                       style={{
188
                   </view>
188
                   </view>
189
                 </view>
189
                 </view>
190
               </view>
190
               </view>
191
-              <view className="appraise">
191
+              <view className='appraise'>
192
                 <Star star={star} />
192
                 <Star star={star} />
193
                 {star}
193
                 {star}
194
                 <view style={{ float: "right", marginTop: "5px" }}>
194
                 <view style={{ float: "right", marginTop: "5px" }}>
195
-                  <text className="comment">点评:</text>
196
-                  <text className="t1">口味:{detail.sweetScore}</text>
197
-                  <text className="t1">环境:{detail.environmentScore}</text>
198
-                  <text className="t1">服务:{detail.serviceScore}</text>
195
+                  <text className='comment'>点评:</text>
196
+                  <text className='t1'>口味:{detail.sweetScore}</text>
197
+                  <text className='t1'>环境:{detail.environmentScore}</text>
198
+                  <text className='t1'>服务:{detail.serviceScore}</text>
199
                 </view>
199
                 </view>
200
               </view>
200
               </view>
201
-              <view className="yysj">
202
-                <image src={yysj} className="yysjImg" />
201
+              <view className='yysj'>
202
+                <image src={yysj} className='yysjImg' />
203
                 营业时间:{detail.businessHours}
203
                 营业时间:{detail.businessHours}
204
               </view>
204
               </view>
205
-              <view className="dpPosition" onClick={openMap}>
206
-                <image src={dw} className="dwTip" />
205
+              <view className='dpPosition' onClick={openMap}>
206
+                <image src={dw} className='dwTip' />
207
                 <view>
207
                 <view>
208
                   {detail.address}
208
                   {detail.address}
209
-                  <image src={zhuandao} className="zhuandao" />
209
+                  <image src={zhuandao} className='zhuandao' />
210
                 </view>
210
                 </view>
211
               </view>
211
               </view>
212
             </view>
212
             </view>
221
                     display: spackage == "" ? "none" : "",
221
                     display: spackage == "" ? "none" : "",
222
                   }}
222
                   }}
223
                 >
223
                 >
224
-                  <view className="title">
224
+                  <view className='title'>
225
                     <image src={titlezs} />
225
                     <image src={titlezs} />
226
                     <text>返现套餐</text>
226
                     <text>返现套餐</text>
227
                   </view>
227
                   </view>
229
                     <Cards key={item.packageId} st={star} item={item} det={detail} />
229
                     <Cards key={item.packageId} st={star} item={item} det={detail} />
230
                   ))}
230
                   ))}
231
                   <view
231
                   <view
232
-                    className="showMore"
232
+                    className='showMore'
233
                     style={{ display: newpgNum == AllpgNum ? "none" : "" }}
233
                     style={{ display: newpgNum == AllpgNum ? "none" : "" }}
234
                     onClick={pgMore}
234
                     onClick={pgMore}
235
                   >
235
                   >
236
                     <view>查看更多</view>
236
                     <view>查看更多</view>
237
-                    <image src={showMore} className="moreTip" />
237
+                    <image src={showMore} className='moreTip' />
238
                   </view>
238
                   </view>
239
                 </view>
239
                 </view>
240
                 <view
240
                 <view
244
                     display: extend == "" ? "none" : "",
244
                     display: extend == "" ? "none" : "",
245
                   }}
245
                   }}
246
                 >
246
                 >
247
-                  <view className="title">
247
+                  <view className='title'>
248
                     <image src={titlezs} />
248
                     <image src={titlezs} />
249
                     <text>本店指南</text>
249
                     <text>本店指南</text>
250
                   </view>
250
                   </view>
252
                     <Extend key={item.extId} item={item} />
252
                     <Extend key={item.extId} item={item} />
253
                   ))}
253
                   ))}
254
                   <view
254
                   <view
255
-                    className="showMore"
255
+                    className='showMore'
256
                     style={{ display: newextNum == AllextNum ? "none" : "" }}
256
                     style={{ display: newextNum == AllextNum ? "none" : "" }}
257
                     onClick={extendMore}
257
                     onClick={extendMore}
258
                   >
258
                   >
259
                     <view>查看更多</view>
259
                     <view>查看更多</view>
260
-                    <image src={showMore} className="moreTip" />
260
+                    <image src={showMore} className='moreTip' />
261
                   </view>
261
                   </view>
262
                 </view>
262
                 </view>
263
                 <view
263
                 <view
264
-                  className="botton"
264
+                  className='botton'
265
                   style={{ display: newextNum == AllextNum ? "" : "none" }}
265
                   style={{ display: newextNum == AllextNum ? "" : "none" }}
266
                 >
266
                 >
267
                   这是我的底线
267
                   这是我的底线
270
           }
270
           }
271
         </scroll-view>
271
         </scroll-view>
272
       </view>
272
       </view>
273
-      <view className="bottomTab">
274
-        <Button openType="share" className="sharebtn">
273
+      <view className='bottomTab'>
274
+        <Button openType='share' className='sharebtn'>
275
           分享
275
           分享
276
         </Button>
276
         </Button>
277
-        <view className="tab">
278
-          <image className="share" src={share} />
277
+        <view className='tab'>
278
+          <image className='share' src={share} />
279
           分享
279
           分享
280
         </view>
280
         </view>
281
-        <view className="tab" onClick={toggleLike}>
282
-          <image className="good" style={{ top: '1px' }} src={isLike > 0 ? baozan : weibaozan} />
281
+        <view className='tab' onClick={toggleLike}>
282
+          <image className='good' style={{ top: '1px' }} src={isLike > 0 ? baozan : weibaozan} />
283
           {isLike > 0 ? "已爆赞" : "爆赞"}
283
           {isLike > 0 ? "已爆赞" : "爆赞"}
284
         </view>
284
         </view>
285
-        <view className="tab" onClick={toggleSave}>
286
-          <image className="collection" src={isSaved > 0 ? ax : good} />
285
+        <view className='tab' onClick={toggleSave}>
286
+          <image className='collection' src={isSaved > 0 ? ax : good} />
287
           {isSaved > 0 ? "已收藏" : "加入收藏"}
287
           {isSaved > 0 ? "已收藏" : "加入收藏"}
288
         </view>
288
         </view>
289
       </view>
289
       </view>

+ 0
- 1
src/pages/index/components/Card/index.jsx View File

3
 import useSave from "@/utils/hooks/useSave"
3
 import useSave from "@/utils/hooks/useSave"
4
 import msTip from '@/assets/icons/housemantj/foodtip.png'
4
 import msTip from '@/assets/icons/housemantj/foodtip.png'
5
 import mjTip from '@/assets/icons/housemantj/mjtip.png'
5
 import mjTip from '@/assets/icons/housemantj/mjtip.png'
6
-import glTip from '@/assets/icons/housemantj/gltip.png'
7
 import location from '@/assets/icons/housemantj/location.png'
6
 import location from '@/assets/icons/housemantj/location.png'
8
 import onlove from '@/assets/icons/housemantj/onlove.png'
7
 import onlove from '@/assets/icons/housemantj/onlove.png'
9
 import love from '@/assets/icons/housemantj/bheart.png'
8
 import love from '@/assets/icons/housemantj/bheart.png'

+ 3
- 6
src/pages/index/tabs/Guide.jsx View File

1
 import { useState, useEffect, useRef } from "react";
1
 import { useState, useEffect, useRef } from "react";
2
-import Taro, { useDidShow } from '@tarojs/taro'
2
+import Taro from '@tarojs/taro'
3
 import MoreGuide from "@/components/MoreGuide";
3
 import MoreGuide from "@/components/MoreGuide";
4
 import BossCard from '@/components/BossCard'
4
 import BossCard from '@/components/BossCard'
5
-import Taxi from '@/assets/icons/GuideCheck/taxi.png'
6
-import WiFi from '@/assets/icons/GuideCheck/WiFi.png'
7
 import GPS from '@/assets/icons/GuideCheck/GPS.png'
5
 import GPS from '@/assets/icons/GuideCheck/GPS.png'
8
 import copy_logo from '@/assets/icons/GuideCheck/copy_logo.png'
6
 import copy_logo from '@/assets/icons/GuideCheck/copy_logo.png'
9
-import GoHere from '@/assets/icons/GuideCheck/GoHere.png'
10
 import Cup from '@/assets/icons/GuideCheck/Cup.png'
7
 import Cup from '@/assets/icons/GuideCheck/Cup.png'
11
 import BlackSpot from '@/assets/icons/GuideCheck/BlackSpot.png'
8
 import BlackSpot from '@/assets/icons/GuideCheck/BlackSpot.png'
12
 import { getRecommendList, getExtendContent } from '@/services/home'
9
 import { getRecommendList, getExtendContent } from '@/services/home'
309
             <text className='title-title-boss' >老板推荐好吃的</text>
306
             <text className='title-title-boss' >老板推荐好吃的</text>
310
           </view>
307
           </view>
311
         </view>
308
         </view>
312
-        <view style={{marginTop: '10rpx', marginBottom: '60rpx'}}>
309
+        <view style={{ marginTop: '10rpx', marginBottom: '60rpx' }}>
313
           {(spackage || []).map((item, index) => <BossCard det={item} st={parseFloat(item.score.toFixed(1))} key={(index)} trackClick={trackClick} taRoomContent={taRoomContent} item={item} />)}
310
           {(spackage || []).map((item, index) => <BossCard det={item} st={parseFloat(item.score.toFixed(1))} key={(index)} trackClick={trackClick} taRoomContent={taRoomContent} item={item} />)}
314
         </view>
311
         </view>
315
-        
312
+
316
       </view>
313
       </view>
317
     </scroll-view>
314
     </scroll-view>
318
   )
315
   )

+ 1
- 407
src/pages/index/tabs/GuideCss/style.less View File

200
     }
200
     }
201
   }
201
   }
202
 
202
 
203
-  //   .MessageCard {
204
-  //     width: calc(100% - 60px);
205
-  //     height: 175px;
206
-  //     background: @whiteColor;
207
-  //     border-radius: 12px;
208
-  //     margin: 30px auto;
209
-  //     box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
210
-  //     .MessageCard-title1 {
211
-  //       height: 26px;
212
-  //       font-size: 28px;
213
-  //       font-weight: bold;
214
-  //       color: #666666;
215
-  //       line-height: 44px;
216
-  //       text-align: center;
217
-  //       .MessageCard-left {
218
-  //         width: 530px;
219
-  //         height: 2px;
220
-  //         padding-right: 50px;
221
-  //         // opacity: 0.5;
222
-  //       }
223
-  //       .MessageCard-right {
224
-  //         width: 530px;
225
-  //         height: 2px;
226
-  //         padding-left: 50px;
227
-  //       }
228
-  //     }
229
-  //     .MessageCard-content {
230
-  //       // background: @whiteColor;
231
-  //       width: 13em;
232
-  //       height: 2.5em;
233
-  //       margin-top: 45px;
234
-  //       display: inline-block;
235
-  //       margin-left: 30px;
236
-
237
-  //       .MessageCard-name {
238
-  //         height: 40px;
239
-  //         font-size: 32px;
240
-  //         font-weight: bold;
241
-  //         color: #202020;
242
-  //         line-height: 44px;
243
-  //         overflow: hidden;
244
-  //         text-overflow: ellipsis;
245
-  //         white-space: nowrap;
246
-  //       }
247
-  //       .MessageCard-info {
248
-  //         display: flex;
249
-  //         width: 998em;
250
-  //         height: 23px;
251
-  //         font-size: 24px;
252
-  //         font-weight: 400;
253
-  //         color: #666666;
254
-  //         line-height: 44px;
255
-  //         padding-top: 19px;
256
-  //       }
257
-  //     }
258
-  //     .MessageCard-button-RoomName{
259
-  //       width: 168px;
260
-  //       height: 60px;
261
-  //       border: 2px solid #000000;
262
-  //       border-radius: 12px;
263
-  //       position: relative;
264
-  //       text-align: center;
265
-  //       display: inline-block;
266
-  //       left: 1.5em;
267
-  //       .MessageCard-image {
268
-  //         width: 30px;
269
-  //         height: 30px;
270
-  //         padding-top: 12px;
271
-  //         padding-right: 5px;
272
-  //       }
273
-  //       .MessageCard-text {
274
-  //         line-height: 30px;
275
-  //         width: 87px;
276
-  //         height: 28px;
277
-  //         font-size: 30px;
278
-  //         font-weight: bold;
279
-  //         color: #202020;
280
-  //       }
281
-  //     }
282
-  //     .MessageCard-button-Park{
283
-  //       width: 168px;
284
-  //       height: 60px;
285
-  //       border: 2px solid #000000;
286
-  //       border-radius: 12px;
287
-  //       position: relative;
288
-  //       text-align: center;
289
-  //       display: inline-block;
290
-  //       left: 1.5em;
291
-  //       .MessageCard-image {
292
-  //         width: 30px;
293
-  //         height: 30px;
294
-  //         padding-top: 12px;
295
-  //         padding-right: 5px;
296
-  //       }
297
-  //       .MessageCard-text {
298
-  //         line-height: 30px;
299
-  //         width: 87px;
300
-  //         height: 28px;
301
-  //         font-size: 30px;
302
-  //         font-weight: bold;
303
-  //         color: #202020;
304
-  //       }
305
-  //     }
306
-  //     .MessageCard-button {
307
-  //       width: 168px;
308
-  //       height: 60px;
309
-  //       border: 2px solid #000000;
310
-  //       border-radius: 12px;
311
-  //       position: relative;
312
-  //       text-align: center;
313
-  //       display: inline-block;
314
-  //       bottom: 40px;
315
-  //       left: 1.5em;
316
-  //       .MessageCard-image {
317
-  //         width: 30px;
318
-  //         height: 30px;
319
-  //         padding-top: 12px;
320
-  //         padding-right: 5px;
321
-  //       }
322
-  //       .MessageCard-text {
323
-  //         line-height: 30px;
324
-  //         width: 87px;
325
-  //         height: 28px;
326
-  //         font-size: 30px;
327
-  //         font-weight: bold;
328
-  //         color: #202020;
329
-  //       }
330
-  //     }
331
-
332
-  //   }
333
-
334
-  //   // --------------------------
335
-  //   .MessageCard-hotle {
336
-  //     width: calc(100% - 60px);
337
-  //     height: 175px;
338
-  //     background: @whiteColor;
339
-  //     border-radius: 12px;
340
-  //     margin: 30px auto;
341
-  //     box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
342
-  //     .MessageCard-title1-hotle {
343
-  //       height: 26px;
344
-  //       font-size: 28px;
345
-  //       font-weight: bold;
346
-  //       color: #666666;
347
-  //       line-height: 44px;
348
-  //       text-align: center;
349
-  //       .MessageCard-left-hotle {
350
-  //         width: 530px;
351
-  //         height: 2px;
352
-  //         padding-right: 50px;
353
-  //         // opacity: 0.5;
354
-  //       }
355
-  //       .MessageCard-right-hotle {
356
-  //         width: 530px;
357
-  //         height: 2px;
358
-  //         padding-left: 50px;
359
-  //       }
360
-  //     }
361
-  //     .MessageCard-content-hotle {
362
-  //       // background: @whiteColor;
363
-  //       width: 13em;
364
-  //       height: 2.5em;
365
-  //       margin-top: 45px;
366
-  //       display: inline-block;
367
-  //       margin-left: 30px;
368
-
369
-  //       .MessageCard-name-hotle {
370
-  //         // width: 100%;
371
-  //         // font-size: 32px;
372
-  //         // font-weight: bold;
373
-  //         // color: #202020;
374
-  //         // line-height: 44px;
375
-  //         // display: flex;
376
-  //         width: 95%;
377
-  //         font-size: 32px;
378
-  //         font-weight: bold;
379
-  //         color: #202020;
380
-  //         line-height: 44px;
381
-  //         display: flex;
382
-  //         overflow: hidden;
383
-  //         -webkit-line-clamp: 2;
384
-  //         text-overflow: ellipsis;
385
-  //         -webkit-box-orient: vertical;
386
-  //         display: -webkit-box;
387
-
388
-  //       }
389
-  //       .MessageCard-info-hotle {
390
-  //         height: 23px;
391
-  //         font-size: 24px;
392
-  //         font-weight: 400;
393
-  //         color: #666666;
394
-  //         line-height: 44px;
395
-  //         padding-top: 19px;
396
-  //       }
397
-  //     }
398
-  //     .MessageCard-button-RoomName-hotle{
399
-  //       width: 168px;
400
-  //       height: 60px;
401
-  //       border: 2px solid #000000;
402
-  //       border-radius: 12px;
403
-  //       position: relative;
404
-  //       text-align: center;
405
-  //       display: inline-block;
406
-  //       left: 1.5em;
407
-  //       top: -45px;
408
-  //       .MessageCard-image-hotle {
409
-  //         width: 30px;
410
-  //         height: 30px;
411
-  //         padding-top: 12px;
412
-  //         padding-right: 5px;
413
-  //       }
414
-  //       .MessageCard-text-hotle {
415
-  //         line-height: 30px;
416
-  //         width: 87px;
417
-  //         height: 28px;
418
-  //         font-size: 30px;
419
-  //         font-weight: bold;
420
-  //         color: #202020;
421
-  //       }
422
-  //     }
423
-  //     .MessageCard-button-Park-hotle{
424
-  //       width: 168px;
425
-  //       height: 60px;
426
-  //       border: 2px solid #000000;
427
-  //       border-radius: 12px;
428
-  //       position: relative;
429
-  //       text-align: center;
430
-  //       display: inline-block;
431
-  //       left: 1.5em;
432
-  //       .MessageCard-image-hotle {
433
-  //         width: 30px;
434
-  //         height: 30px;
435
-  //         padding-top: 12px;
436
-  //         padding-right: 5px;
437
-  //       }
438
-  //       .MessageCard-text-hotle {
439
-  //         line-height: 30px;
440
-  //         width: 87px;
441
-  //         height: 28px;
442
-  //         font-size: 30px;
443
-  //         font-weight: bold;
444
-  //         color: #202020;
445
-  //       }
446
-  //     }
447
-  //     .MessageCard-button-hotle {
448
-  //       width: 168px;
449
-  //       height: 60px;
450
-  //       border: 2px solid #000000;
451
-  //       border-radius: 12px;
452
-  //       position: relative;
453
-  //       text-align: center;
454
-  //       display: inline-block;
455
-  //       bottom: 40px;
456
-  //       left: 1.5em;
457
-  //       .MessageCard-image-hotle {
458
-  //         width: 30px;
459
-  //         height: 30px;
460
-  //         padding-top: 12px;
461
-  //         padding-right: 5px;
462
-  //       }
463
-  //       .MessageCard-text-hotle {
464
-  //         line-height: 30px;
465
-  //         width: 87px;
466
-  //         height: 28px;
467
-  //         font-size: 30px;
468
-  //         font-weight: bold;
469
-  //         color: #202020;
470
-  //       }
471
-  //     }
472
-  //   }
473
-  // // -------------------------------
474
-  // .MessageCard-parkView {
475
-  //   width: calc(100% - 60px);
476
-  //   height: 175px;
477
-  //   background: @whiteColor;
478
-  //   border-radius: 12px;
479
-  //   margin: 30px auto;
480
-  //   box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
481
-  //   .MessageCard-title1-parkView {
482
-  //     height: 26px;
483
-  //     font-size: 28px;
484
-  //     font-weight: bold;
485
-  //     color: #666666;
486
-  //     line-height: 44px;
487
-  //     text-align: center;
488
-  //     .MessageCard-left-parkView {
489
-  //       width: 530px;
490
-  //       height: 2px;
491
-  //       padding-right: 50px;
492
-  //       // opacity: 0.5;
493
-  //     }
494
-  //     .MessageCard-right-parkView {
495
-  //       width: 530px;
496
-  //       height: 2px;
497
-  //       padding-left: 50px;
498
-  //     }
499
-  //   }
500
-  //   .MessageCard-content-parkView {
501
-  //     // background: @whiteColor;
502
-  //     width: 13em;
503
-  //     height: 2.5em;
504
-  //     margin-top: 45px;
505
-  //     display: inline-block;
506
-  //     margin-left: 30px;
507
-
508
-  //     .MessageCard-name-parkView {
509
-
510
-  //       width: 100%;
511
-  //       font-size: 32px;
512
-  //       font-weight: bold;
513
-  //       color: #202020;
514
-  //       line-height: 44px;
515
-  //       text-overflow: ellipsis;
516
-  //       display: flex;
517
-  //     }
518
-  //     .MessageCard-info-parkView {
519
-  //       height: 23px;
520
-  //       font-size: 24px;
521
-  //       font-weight: 400;
522
-  //       color: #666666;
523
-  //       line-height: 44px;
524
-  //       padding-top: 19px;
525
-  //     }
526
-  //   }
527
-  //   .MessageCard-button-RoomName-parkView{
528
-  //     width: 168px;
529
-  //     height: 60px;
530
-  //     border: 2px solid #000000;
531
-  //     border-radius: 12px;
532
-  //     position: relative;
533
-  //     text-align: center;
534
-  //     display: inline-block;
535
-  //     left: 1.5em;
536
-  //     .MessageCard-image-parkView {
537
-  //       width: 30px;
538
-  //       height: 30px;
539
-  //       padding-top: 12px;
540
-  //       padding-right: 5px;
541
-  //     }
542
-  //     .MessageCard-text-parkView {
543
-  //       line-height: 30px;
544
-  //       width: 87px;
545
-  //       height: 28px;
546
-  //       font-size: 30px;
547
-  //       font-weight: bold;
548
-  //       color: #202020;
549
-  //     }
550
-  //   }
551
-  //   .MessageCard-button-Park-parkView{
552
-  //     width: 168px;
553
-  //     height: 60px;
554
-  //     border: 2px solid #000000;
555
-  //     border-radius: 12px;
556
-  //     position: relative;
557
-  //     text-align: center;
558
-  //     display: inline-block;
559
-  //     left: 1.5em;
560
-  //     .MessageCard-image-parkView {
561
-  //       width: 30px;
562
-  //       height: 30px;
563
-  //       padding-top: 12px;
564
-  //       padding-right: 5px;
565
-  //     }
566
-  //     .MessageCard-text-parkView {
567
-  //       line-height: 30px;
568
-  //       width: 87px;
569
-  //       height: 28px;
570
-  //       font-size: 30px;
571
-  //       font-weight: bold;
572
-  //       color: #202020;
573
-  //     }
574
-  //   }
575
-  //   .MessageCard-button-parkView {
576
-  //     width: 168px;
577
-  //     height: 60px;
578
-  //     border: 2px solid #000000;
579
-  //     border-radius: 12px;
580
-  //     position: relative;
581
-  //     text-align: center;
582
-  //     display: inline-block;
583
-  //     bottom: 40px;
584
-  //     left: 1.5em;
585
-  //     .MessageCard-image-parkView {
586
-  //       width: 30px;
587
-  //       height: 30px;
588
-  //       padding-top: 12px;
589
-  //       padding-right: 5px;
590
-  //     }
591
-  //     .MessageCard-text-parkView {
592
-  //       line-height: 30px;
593
-  //       width: 87px;
594
-  //       height: 28px;
595
-  //       font-size: 30px;
596
-  //       font-weight: bold;
597
-  //       color: #202020;
598
-  //     }
599
-  //   }
600
-  // }
601
-
602
   // ---------------------------------
203
   // ---------------------------------
603
   .articleCard {
204
   .articleCard {
604
     margin-top: 60px;
205
     margin-top: 60px;
842
       }
443
       }
843
     }
444
     }
844
     .Raiders-box {
445
     .Raiders-box {
845
-      // display: inline;
846
-      // border: 1px solid RED;
847
       width: 330px;
446
       width: 330px;
848
-      // height: 649px;
849
       background: #ffffff;
447
       background: #ffffff;
850
       box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
448
       box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
851
       border-radius: 24px;
449
       border-radius: 24px;
852
-      // flex-grow: 1;
853
-      // padding-right: 30px;
854
-      // display: flex;
855
-      // flex-flow: row nowrap;
450
+
856
       justify-content: space-between;
451
       justify-content: space-between;
857
       .Raiders-image {
452
       .Raiders-image {
858
         width: 330px;
453
         width: 330px;
859
-        // width: 100%;
860
         height: 439px !important;
454
         height: 439px !important;
861
         border-radius: 24px 24px 0px 0px;
455
         border-radius: 24px 24px 0px 0px;
862
       }
456
       }

+ 21
- 34
src/pages/index/tabs/MineCss/style.less View File

1
-
2
-
3
 .User-box {
1
 .User-box {
4
   width: 100%;
2
   width: 100%;
5
-  .User-box-sths{
3
+  .User-box-sths {
6
     display: flex;
4
     display: flex;
7
-    margin: 40px 0  60px 0;
5
+    margin: 40px 0 60px 0;
8
     justify-content: space-around;
6
     justify-content: space-around;
9
     flex-wrap: wrap;
7
     flex-wrap: wrap;
10
-    .User-box-selectUser{
8
+    .User-box-selectUser {
11
       width: 100%;
9
       width: 100%;
12
       font-size: 32px;
10
       font-size: 32px;
13
       font-weight: bold;
11
       font-weight: bold;
14
       color: #202020;
12
       color: #202020;
15
       line-height: 32px;
13
       line-height: 32px;
16
-      margin: 60px 0 70px  0;
14
+      margin: 60px 0 70px 0;
17
       text-align: left;
15
       text-align: left;
18
     }
16
     }
19
-    .User-box-tourist{
17
+    .User-box-tourist {
20
       display: inline-block;
18
       display: inline-block;
21
 
19
 
22
-       .Ubs-tourist-image{
20
+      .Ubs-tourist-image {
23
         width: 86px;
21
         width: 86px;
24
         height: 86px;
22
         height: 86px;
25
-  
26
       }
23
       }
27
-      .Ubs-tourist-text{
24
+      .Ubs-tourist-text {
28
         display: block;
25
         display: block;
29
         font-size: 30px;
26
         font-size: 30px;
30
         font-weight: bold;
27
         font-weight: bold;
31
-        color:#202020;
28
+        color: #202020;
32
       }
29
       }
33
     }
30
     }
34
-    .User-box-hotelBoss{
31
+    .User-box-hotelBoss {
35
       display: inline-block;
32
       display: inline-block;
36
-      .Ubs-hotelBoss-image{
33
+      .Ubs-hotelBoss-image {
37
         width: 86px;
34
         width: 86px;
38
         height: 86px;
35
         height: 86px;
39
       }
36
       }
40
-      .Ubs-hotelBoss-text{
37
+      .Ubs-hotelBoss-text {
41
         display: block;
38
         display: block;
42
         font-size: 30px;
39
         font-size: 30px;
43
         font-weight: bold;
40
         font-weight: bold;
44
         color: #999999;
41
         color: #999999;
45
       }
42
       }
46
     }
43
     }
47
-    .User-box-shopBoss{
48
-      .Ubs-shopBoss-image{
44
+    .User-box-shopBoss {
45
+      .Ubs-shopBoss-image {
49
         width: 86px;
46
         width: 86px;
50
         height: 86px;
47
         height: 86px;
51
       }
48
       }
52
-      .Ubs-shopBoss-text{
49
+      .Ubs-shopBoss-text {
53
         display: block;
50
         display: block;
54
         font-size: 30px;
51
         font-size: 30px;
55
         font-weight: bold;
52
         font-weight: bold;
56
         color: #999999;
53
         color: #999999;
57
       }
54
       }
58
     }
55
     }
59
-
60
   }
56
   }
61
 
57
 
62
   .User-info {
58
   .User-info {
86
         font-weight: bold;
82
         font-weight: bold;
87
         color: #202020;
83
         color: #202020;
88
         padding-top: 20px;
84
         padding-top: 20px;
89
-
90
       }
85
       }
91
       .User-sex {
86
       .User-sex {
92
         // padding-left: 10px;
87
         // padding-left: 10px;
93
         // width: 33px;
88
         // width: 33px;
94
         // height: 32px;
89
         // height: 32px;
95
         width: 33px;
90
         width: 33px;
96
-    height: 32px;
97
-    display: inline-block;
98
-    position: relative;
99
-    left: 200px;
100
-    top: -3em;
91
+        height: 32px;
92
+        display: inline-block;
93
+        position: relative;
94
+        left: 200px;
95
+        top: -3em;
101
       }
96
       }
102
       .User-phone {
97
       .User-phone {
103
         // height: 20px;
98
         // height: 20px;
107
         line-height: 48px;
102
         line-height: 48px;
108
       }
103
       }
109
     }
104
     }
110
-    .User-info-cutover{
105
+    .User-info-cutover {
111
       width: 62px;
106
       width: 62px;
112
       height: 62px;
107
       height: 62px;
113
       align-items: center;
108
       align-items: center;
114
       display: flex;
109
       display: flex;
115
       position: relative;
110
       position: relative;
116
       left: 8em;
111
       left: 8em;
117
-      .User-info-cutover-image{
112
+      .User-info-cutover-image {
118
         width: 36px;
113
         width: 36px;
119
         height: 36px;
114
         height: 36px;
120
         margin: 0 auto;
115
         margin: 0 auto;
121
-
122
       }
116
       }
123
     }
117
     }
124
   }
118
   }
200
         color: #999;
194
         color: #999;
201
       }
195
       }
202
     }
196
     }
203
-    // .Badge-list:nth-child(3) {
204
-    //   margin-top: 20px;
205
-    //   border-radius: 24px 24px 0px 0px;
206
-    // }
207
-    // .Badge-list:nth-child(4) {
208
-    //   border-radius: 0px 0px 24px 24px;
209
-    // }
210
   }
197
   }
211
 }
198
 }

+ 17
- 0
src/shop/pages/spread/Shoptabbar.js View File

1
+
2
+const Shoptabbar = [
3
+
4
+  {
5
+    text: '订单收入',
6
+    iconPath: require('@/assets/icons/shopKeeper/orderOFF.png'),
7
+    selectedIconPath: require('@/assets/icons/shopKeeper/orderON.png'),
8
+  },
9
+  {
10
+    text: '推广收入',
11
+    iconPath: require('@/assets/icons/shopKeeper/spreadOFF.png'),
12
+    selectedIconPath: require('@/assets/icons/shopKeeper/spreadON.png'),
13
+  },
14
+
15
+]
16
+
17
+export default Shoptabbar

+ 8
- 14
src/shop/pages/spread/spreadIndex.jsx View File

3
 import { useRouter } from '@tarojs/taro'
3
 import { useRouter } from '@tarojs/taro'
4
 import { getShopList, getShopMoney, getAccount, getVerifiedOrder, setGetVerifiedOrder } from '@/services/shopBoss'
4
 import { getShopList, getShopMoney, getAccount, getVerifiedOrder, setGetVerifiedOrder } from '@/services/shopBoss'
5
 
5
 
6
-import TabBar from '@/components/CustTabBar'
7
-import shopImg from '@/assets/icons/shopKeeper/orderOFF.png'
8
-import onShopImg from '@/assets/icons/shopKeeper/orderON.png'
9
-import spareadImg from '@/assets/icons/shopKeeper/spreadOFF.png'
10
-import onSpareadImg from '@/assets/icons/shopKeeper/spreadON.png'
6
+
11
 import withLayout from '@/layouts'
7
 import withLayout from '@/layouts'
8
+import tabList from './Shoptabbar'
12
 import ShopKeeper from '../../components/ShopKeeper/shopKeeper'
9
 import ShopKeeper from '../../components/ShopKeeper/shopKeeper'
13
 import Sparead from '../../components/Sparead/spreadMoney'
10
 import Sparead from '../../components/Sparead/spreadMoney'
14
 
11
 
43
     }
40
     }
44
   }
41
   }
45
   const handelTypeOrder = () => {
42
   const handelTypeOrder = () => {
43
+
46
     setAmountType('order')
44
     setAmountType('order')
47
 
45
 
48
   }
46
   }
116
 
114
 
117
   return (
115
   return (
118
     <view className='page-index'>
116
     <view className='page-index'>
119
-      <view className="index-navbar">
117
+      <view className='index-navbar'>
120
         <CustomNav title={shop?.shopName} />
118
         <CustomNav title={shop?.shopName} />
121
       </view>
119
       </view>
122
       <view className='index-container'>
120
       <view className='index-container'>
125
         {currentTab === 1 && <Sparead shopList={shopList} shop={shop} verifiedOrder={verifiedOrder} onHotelChange={handleHotelChange} shopMoney={shopMoney} />}
123
         {currentTab === 1 && <Sparead shopList={shopList} shop={shop} verifiedOrder={verifiedOrder} onHotelChange={handleHotelChange} shopMoney={shopMoney} />}
126
       </view>
124
       </view>
127
       <view className='index-tabbar'>
125
       <view className='index-tabbar'>
128
-        <TabBar extClass='custom-tabbar bottomTab' current={currentTab} onChange={handleTabChange}>
129
-          <view className={`${currentTab === 0 ? 'orderstab' : ''}`} onClick={() => { handelTypeOrder() }}>
130
-            <image className='incomes' src={currentTab === 0 ? onShopImg : shopImg} /><text>订单收入</text>
131
-          </view>
132
-          <view className={`${currentTab === 1 ? 'spreadtab' : ''}`} onClick={() => { handelType() }} >
133
-            <image className='house' src={currentTab === 1 ? onSpareadImg : spareadImg} /><text>推广收入</text>
134
-          </view>
135
-        </TabBar>
126
+
127
+      </view>
128
+      <view className='index-tabbar'>
129
+        <mp-tabbar extClass='custom-tabbar' current={currentTab} list={tabList} onChange={handleTabChange}></mp-tabbar>
136
       </view>
130
       </view>
137
     </view>
131
     </view>
138
 
132