Procházet zdrojové kódy

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

李志伟 před 3 roky
rodič
revize
7fa28af07c

binární
src/assets/icons/GuideCheck/articleCardImage.png Zobrazit soubor


binární
src/assets/icons/ProCard/8kb.jpg Zobrazit soubor


binární
src/assets/icons/ProCard/QCRsgl.png Zobrazit soubor


+ 3
- 6
src/components/AlreadyUsedMolded/index.jsx Zobrazit soubor

@@ -1,12 +1,9 @@
1 1
 
2
-import image from '@/assets/icons/ProCard/8kb.jpg'
2
+
3 3
 import food from '@/assets/icons/ProCard/food.png'
4 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 5
 import formatTime from '@/utils/formatTime'
9
-import Star from '@/components/Star/Star.jsx'
6
+
10 7
 import { useState } from 'react'
11 8
 import './style.less'
12 9
 
@@ -35,7 +32,7 @@ export default (props) => {
35 32
                   返现¥{(item.cashback / 100)?.toFixed(2)}
36 33
                 </view>
37 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 36
                   <image className='image-2' src={food}></image>
40 37
                 </view>
41 38
                 <view className='title-content'>

+ 4
- 2
src/components/BadgeTag/index.jsx Zobrazit soubor

@@ -1,13 +1,15 @@
1 1
 
2 2
 import React from 'react'
3
-import { View, Image, Text } from '@tarojs/components'
3
+import { View, Image } from '@tarojs/components'
4 4
 import food from '@/assets/icons/ProCard/food.png'
5
+import glTip from '@/assets/icons/housemantj/gltip.png'
6
+
5 7
 import './style.less'
6 8
 
7 9
 export default (props) => {
8 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 14
   const style = {
13 15
     top,

+ 1
- 2
src/components/CompoentsOrder/TobeWritten/index.jsx Zobrazit soubor

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

+ 5
- 6
src/components/CompoentsOrder/complete/index.jsx Zobrazit soubor

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

+ 1
- 1
src/components/CouponCard/Action/IconAction.jsx Zobrazit soubor

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

+ 0
- 39
src/components/CustTabBar/index.jsx Zobrazit soubor

@@ -1,39 +0,0 @@
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 Zobrazit soubor

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

+ 1
- 1
src/components/OrderMolded/index.jsx Zobrazit soubor

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

+ 18
- 0
src/hotel/pages/landlord/Roomtabbar.js Zobrazit soubor

@@ -0,0 +1,18 @@
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 Zobrazit soubor

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

+ 0
- 12
src/pages/MineUserAll/ContactMe/index.jsx Zobrazit soubor

@@ -1,5 +1,4 @@
1 1
 import { saveFeedback } from '@/services/mine'
2
-import QCRsgl from '@/assets/icons/ProCard/QCRsgl.png'
3 2
 import CustomNav from '@/components/CustomNav'
4 3
 import Taro from '@tarojs/taro'
5 4
 import { Image, Button } from '@tarojs/components'
@@ -20,17 +19,6 @@ export default withLayout((props) => {
20 19
         personId,
21 20
         content
22 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 24
     else {

+ 1
- 2
src/pages/MineUserAll/RefundMoney/CheckRefund/index.jsx Zobrazit soubor

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

+ 0
- 1
src/pages/MineUserAll/RefundMoney/index.jsx Zobrazit soubor

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

+ 6
- 6
src/pages/PayOrder/index.jsx Zobrazit soubor

@@ -1,6 +1,10 @@
1 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 5
 import { useState, useEffect } from "react";
6
+import formatPrice from "@/utils/formatPrice";
7
+
4 8
 import { Button, Checkbox, Input, RadioGroup, Radio } from "@tarojs/components";
5 9
 import AuthPage from '@/components/AuthPage'
6 10
 import food from "@/assets/icons/ProCard/food.png";
@@ -9,11 +13,7 @@ import CustomNav from "@/components/CustomNav";
9 13
 import OrderMolded from "@/components/OrderMolded";
10 14
 import Popup from "@/components/Popup";
11 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 17
 import Card from "./Card";
18 18
 
19 19
 export default withLayout((props) => {

+ 7
- 7
src/pages/TobeShop/index.jsx Zobrazit soubor

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

+ 11
- 10
src/pages/TobeShop/style.less Zobrazit soubor

@@ -125,18 +125,11 @@
125 125
 
126 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 128
       .left-image-1 {
136 129
         width: 145px;
137 130
         height: 44px;
138 131
         position: absolute;
139
-        margin-left: 85px;
132
+        // margin-left: 85px;
140 133
         top: 22px;
141 134
       }
142 135
       .left-viewText {
@@ -145,7 +138,7 @@
145 138
         width: auto;
146 139
         height: 44.3px;
147 140
         position: absolute;
148
-        left: 85px;
141
+        // left: 85px;
149 142
         top: 28px;
150 143
         font-size: 20px;
151 144
         color: @whiteColor;
@@ -262,7 +255,15 @@
262 255
       left: 50%;
263 256
       transform: translate(-50%, -50%);
264 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 267
       .right-number {
267 268
         // width: 32px;
268 269
         // font-size: 20px;

+ 37
- 37
src/pages/details/foodDetails/foodDetails.jsx Zobrazit soubor

@@ -138,9 +138,9 @@ export default withLayout((props) => {
138 138
   });
139 139
 
140 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 144
       </view>
145 145
       <view
146 146
         style={{ overflow: "hidden", padding: "0 30rpx", height: '100%', background: "#F8F8F8" }}
@@ -149,17 +149,17 @@ export default withLayout((props) => {
149 149
           scrollY
150 150
           style={{ height: '100%' }}
151 151
         >
152
-          <view className="storeDetails">
152
+          <view className='storeDetails'>
153 153
             <Swiper
154
-              className="swiper"
154
+              className='swiper'
155 155
               circular
156 156
               current={index}
157 157
               onChange={handchange}
158 158
             >
159 159
               {imglist.map((item) => (
160 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 163
                       <text>
164 164
                         {index + 1}/{imglist.length}
165 165
                       </text>
@@ -168,13 +168,13 @@ export default withLayout((props) => {
168 168
                 </SwiperItem>
169 169
               ))}
170 170
             </Swiper>
171
-            <view className="storeJs">
171
+            <view className='storeJs'>
172 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 176
                   {detail.averagePrice / 100}/人
177
-                  <view className="bzRight">
177
+                  <view className='bzRight'>
178 178
                     <image
179 179
                       src={baozan}
180 180
                       style={{
@@ -188,25 +188,25 @@ export default withLayout((props) => {
188 188
                   </view>
189 189
                 </view>
190 190
               </view>
191
-              <view className="appraise">
191
+              <view className='appraise'>
192 192
                 <Star star={star} />
193 193
                 {star}
194 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 199
                 </view>
200 200
               </view>
201
-              <view className="yysj">
202
-                <image src={yysj} className="yysjImg" />
201
+              <view className='yysj'>
202
+                <image src={yysj} className='yysjImg' />
203 203
                 营业时间:{detail.businessHours}
204 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 207
                 <view>
208 208
                   {detail.address}
209
-                  <image src={zhuandao} className="zhuandao" />
209
+                  <image src={zhuandao} className='zhuandao' />
210 210
                 </view>
211 211
               </view>
212 212
             </view>
@@ -221,7 +221,7 @@ export default withLayout((props) => {
221 221
                     display: spackage == "" ? "none" : "",
222 222
                   }}
223 223
                 >
224
-                  <view className="title">
224
+                  <view className='title'>
225 225
                     <image src={titlezs} />
226 226
                     <text>返现套餐</text>
227 227
                   </view>
@@ -229,12 +229,12 @@ export default withLayout((props) => {
229 229
                     <Cards key={item.packageId} st={star} item={item} det={detail} />
230 230
                   ))}
231 231
                   <view
232
-                    className="showMore"
232
+                    className='showMore'
233 233
                     style={{ display: newpgNum == AllpgNum ? "none" : "" }}
234 234
                     onClick={pgMore}
235 235
                   >
236 236
                     <view>查看更多</view>
237
-                    <image src={showMore} className="moreTip" />
237
+                    <image src={showMore} className='moreTip' />
238 238
                   </view>
239 239
                 </view>
240 240
                 <view
@@ -244,7 +244,7 @@ export default withLayout((props) => {
244 244
                     display: extend == "" ? "none" : "",
245 245
                   }}
246 246
                 >
247
-                  <view className="title">
247
+                  <view className='title'>
248 248
                     <image src={titlezs} />
249 249
                     <text>本店指南</text>
250 250
                   </view>
@@ -252,16 +252,16 @@ export default withLayout((props) => {
252 252
                     <Extend key={item.extId} item={item} />
253 253
                   ))}
254 254
                   <view
255
-                    className="showMore"
255
+                    className='showMore'
256 256
                     style={{ display: newextNum == AllextNum ? "none" : "" }}
257 257
                     onClick={extendMore}
258 258
                   >
259 259
                     <view>查看更多</view>
260
-                    <image src={showMore} className="moreTip" />
260
+                    <image src={showMore} className='moreTip' />
261 261
                   </view>
262 262
                 </view>
263 263
                 <view
264
-                  className="botton"
264
+                  className='botton'
265 265
                   style={{ display: newextNum == AllextNum ? "" : "none" }}
266 266
                 >
267 267
                   这是我的底线
@@ -270,20 +270,20 @@ export default withLayout((props) => {
270 270
           }
271 271
         </scroll-view>
272 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 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 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 283
           {isLike > 0 ? "已爆赞" : "爆赞"}
284 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 287
           {isSaved > 0 ? "已收藏" : "加入收藏"}
288 288
         </view>
289 289
       </view>

+ 0
- 1
src/pages/index/components/Card/index.jsx Zobrazit soubor

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

+ 3
- 6
src/pages/index/tabs/Guide.jsx Zobrazit soubor

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

+ 1
- 407
src/pages/index/tabs/GuideCss/style.less Zobrazit soubor

@@ -200,405 +200,6 @@
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 204
   .articleCard {
604 205
     margin-top: 60px;
@@ -842,21 +443,14 @@
842 443
       }
843 444
     }
844 445
     .Raiders-box {
845
-      // display: inline;
846
-      // border: 1px solid RED;
847 446
       width: 330px;
848
-      // height: 649px;
849 447
       background: #ffffff;
850 448
       box-shadow: 0px 8px 38px 0px rgba(0, 0, 0, 0.12);
851 449
       border-radius: 24px;
852
-      // flex-grow: 1;
853
-      // padding-right: 30px;
854
-      // display: flex;
855
-      // flex-flow: row nowrap;
450
+
856 451
       justify-content: space-between;
857 452
       .Raiders-image {
858 453
         width: 330px;
859
-        // width: 100%;
860 454
         height: 439px !important;
861 455
         border-radius: 24px 24px 0px 0px;
862 456
       }

+ 21
- 34
src/pages/index/tabs/MineCss/style.less Zobrazit soubor

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

@@ -0,0 +1,17 @@
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 Zobrazit soubor

@@ -3,12 +3,9 @@ import CustomNav from '@/components/CustomNav'
3 3
 import { useRouter } from '@tarojs/taro'
4 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 7
 import withLayout from '@/layouts'
8
+import tabList from './Shoptabbar'
12 9
 import ShopKeeper from '../../components/ShopKeeper/shopKeeper'
13 10
 import Sparead from '../../components/Sparead/spreadMoney'
14 11
 
@@ -43,6 +40,7 @@ export default withLayout((props) => {
43 40
     }
44 41
   }
45 42
   const handelTypeOrder = () => {
43
+
46 44
     setAmountType('order')
47 45
 
48 46
   }
@@ -116,7 +114,7 @@ export default withLayout((props) => {
116 114
 
117 115
   return (
118 116
     <view className='page-index'>
119
-      <view className="index-navbar">
117
+      <view className='index-navbar'>
120 118
         <CustomNav title={shop?.shopName} />
121 119
       </view>
122 120
       <view className='index-container'>
@@ -125,14 +123,10 @@ export default withLayout((props) => {
125 123
         {currentTab === 1 && <Sparead shopList={shopList} shop={shop} verifiedOrder={verifiedOrder} onHotelChange={handleHotelChange} shopMoney={shopMoney} />}
126 124
       </view>
127 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 130
       </view>
137 131
     </view>
138 132