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

src/assets/icons/GuideCheck/AAAAAAAA.png → src/assets/icons/GuideCheck/articleCardImage.png View File


+ 4
- 2
src/pages/MineUserAll/AllOrder/index.jsx View File

1
 
1
 
2
 import { useState, useEffect, } from 'react'
2
 import { useState, useEffect, } from 'react'
3
 import { Taro, useRouter } from '@tarojs/taro'
3
 import { Taro, useRouter } from '@tarojs/taro'
4
+import withLayout from '@/layouts'
4
 
5
 
5
 import CustomNav from '@/components/CustomNav'
6
 import CustomNav from '@/components/CustomNav'
6
 import AlreadyExpired from '@/components/CompoentsOrder/AlreadyExpired'
7
 import AlreadyExpired from '@/components/CompoentsOrder/AlreadyExpired'
13
 
14
 
14
 
15
 
15
 
16
 
16
-export default (props) => {
17
+export default withLayout((props) => {
17
   const [activeTab, setActiveTab] = useState(0)
18
   const [activeTab, setActiveTab] = useState(0)
18
   const [swiperHeight, setSwiperHeight] = useState(0)
19
   const [swiperHeight, setSwiperHeight] = useState(0)
20
+  const { router, person } = props
19
 
21
 
20
 
22
 
21
   const { params } = useRouter()
23
   const { params } = useRouter()
100
       {activeTab === 4 && <AlreadyExpired />}
102
       {activeTab === 4 && <AlreadyExpired />}
101
     </view>
103
     </view>
102
   )
104
   )
103
-}
105
+})

+ 4
- 2
src/pages/MineUserAll/Collect/index.jsx View File

1
 
1
 
2
 import CustomNav from '@/components/CustomNav'
2
 import CustomNav from '@/components/CustomNav'
3
 import { useState } from "react";
3
 import { useState } from "react";
4
+import withLayout from '@/layouts'
4
 
5
 
5
 import Taro from '@tarojs/taro'
6
 import Taro from '@tarojs/taro'
6
 import image from '@/assets/icons/ProCard/8kb.jpg'
7
 import image from '@/assets/icons/ProCard/8kb.jpg'
20
 const scoreList = new Array(5).fill(0)
21
 const scoreList = new Array(5).fill(0)
21
 const score = '3.9'
22
 const score = '3.9'
22
 
23
 
23
-export default (props) => {
24
+export default withLayout((props) => {
25
+  const { router, person } = props
24
 
26
 
25
   const [value, setVaule] = useState('已收藏')
27
   const [value, setVaule] = useState('已收藏')
26
   const [imageSrc, setImageSrc] = useState(starOn)
28
   const [imageSrc, setImageSrc] = useState(starOn)
154
       </view>
156
       </view>
155
     </view>
157
     </view>
156
   )
158
   )
157
-}
159
+})

+ 5
- 2
src/pages/MineUserAll/ContactMe/index.jsx View File

2
 import CustomNav from '@/components/CustomNav'
2
 import CustomNav from '@/components/CustomNav'
3
 // import { Button } from '@tarojs/components'
3
 // import { Button } from '@tarojs/components'
4
 import Taro from '@tarojs/taro'
4
 import Taro from '@tarojs/taro'
5
+import withLayout from '@/layouts'
5
 
6
 
6
 import { Button, Text, Textarea } from '@tarojs/components'
7
 import { Button, Text, Textarea } from '@tarojs/components'
7
 import './style.less'
8
 import './style.less'
8
 
9
 
9
-export default (props) => {
10
+export default withLayout((props) => {
11
+  const { router, person } = props
12
+
10
   const back = () => {
13
   const back = () => {
11
     Taro.navigateBack()
14
     Taro.navigateBack()
12
   }
15
   }
23
       </view>
26
       </view>
24
     </view>
27
     </view>
25
   )
28
   )
26
-}
29
+})

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

3
 import { Button, Icon, Text, Textarea } from '@tarojs/components'
3
 import { Button, Icon, Text, Textarea } from '@tarojs/components'
4
 
4
 
5
 import { useState } from 'react'
5
 import { useState } from 'react'
6
+import withLayout from '@/layouts'
7
+
6
 import image from '@/assets/icons/ProCard/8kb.jpg'
8
 import image from '@/assets/icons/ProCard/8kb.jpg'
7
 import food from '@/assets/icons/ProCard/food.png'
9
 import food from '@/assets/icons/ProCard/food.png'
8
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
10
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
9
 import CustomNav from '@/components/CustomNav'
11
 import CustomNav from '@/components/CustomNav'
10
 import './style.less'
12
 import './style.less'
11
 
13
 
12
-export default (props) => {
14
+export default withLayout((props) => {
13
   const [view, setView] = useState(true)
15
   const [view, setView] = useState(true)
14
   const [view2, setView2] = useState(false)
16
   const [view2, setView2] = useState(false)
15
   const [view3, setView3] = useState(false)
17
   const [view3, setView3] = useState(false)
16
   const [view4, setView4] = useState(false)
18
   const [view4, setView4] = useState(false)
17
   const [view5, setView5] = useState(false)
19
   const [view5, setView5] = useState(false)
18
   const [view6, setView6] = useState(false)
20
   const [view6, setView6] = useState(false)
21
+  const { router, person } = props
22
+
19
   let value = view
23
   let value = view
20
   let list = [
24
   let list = [
21
     {
25
     {
143
       </view>
147
       </view>
144
     </view>
148
     </view>
145
   )
149
   )
146
-}
150
+})

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

4
 import image from '@/assets/icons/ProCard/8kb.jpg'
4
 import image from '@/assets/icons/ProCard/8kb.jpg'
5
 import food from '@/assets/icons/ProCard/food.png'
5
 import food from '@/assets/icons/ProCard/food.png'
6
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
6
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
7
+import withLayout from '@/layouts'
7
 
8
 
8
 import Null from '@/assets/icons/UserCenter/null_logo.png'
9
 import Null from '@/assets/icons/UserCenter/null_logo.png'
9
 import Refund from '@/assets/icons/UserCenter/Refund.png'
10
 import Refund from '@/assets/icons/UserCenter/Refund.png'
20
 
21
 
21
 const scoreList = new Array(5).fill(0)
22
 const scoreList = new Array(5).fill(0)
22
 const score = '3.9'
23
 const score = '3.9'
23
-export default (props) => {
24
+export default withLayout((props) => {
25
+  const { router, person } = props
24
 
26
 
25
   const handleRefund2 = () => {
27
   const handleRefund2 = () => {
26
     Taro.navigateTo({ url: '/pages/MineUserAll/RefundMoney/CheckRefund/index' })
28
     Taro.navigateTo({ url: '/pages/MineUserAll/RefundMoney/CheckRefund/index' })
112
       </view>
114
       </view>
113
     </view>
115
     </view>
114
   )
116
   )
115
-}
117
+})

+ 5
- 2
src/pages/MineUserAll/Rules/index.jsx View File

1
 
1
 
2
+import withLayout from '@/layouts'
2
 import CustomNav from '@/components/CustomNav'
3
 import CustomNav from '@/components/CustomNav'
3
 import './style.less'
4
 import './style.less'
4
 
5
 
5
-export default (props) => {
6
+export default withLayout((props) => {
7
+  const { router, person } = props
8
+
6
   return (
9
   return (
7
     <view className='box-content'>
10
     <view className='box-content'>
8
       <CustomNav title='用户协议须知' />
11
       <CustomNav title='用户协议须知' />
26
       </view>
29
       </view>
27
     </view>
30
     </view>
28
   )
31
   )
29
-}
32
+})

+ 8
- 5
src/pages/PayOrder/index.jsx View File

1
-
1
+import withLayout from '@/layouts'
2
 import image from '@/assets/icons/ProCard/8kb.jpg'
2
 import image from '@/assets/icons/ProCard/8kb.jpg'
3
 import { useState, useEffect } from 'react'
3
 import { useState, useEffect } from 'react'
4
 import { Button, Radio, Input } from '@tarojs/components'
4
 import { Button, Radio, Input } from '@tarojs/components'
11
 
11
 
12
 import './style.less'
12
 import './style.less'
13
 
13
 
14
-export default () => {
14
+export default withLayout((props) => {
15
+  const { router, person } = props
16
+
15
   const [showDialog, setShowDialog] = useState(false)
17
   const [showDialog, setShowDialog] = useState(false)
16
 
18
 
19
+  const [BuyNumber, setBuyNumber] = useState(1)
20
+  const [DisabledBool, setDisabledBool] = useState(false)
21
+
17
   const ShowMoldeOn = () => {
22
   const ShowMoldeOn = () => {
18
     setShowDialog(true)
23
     setShowDialog(true)
19
   }
24
   }
25
 
30
 
26
   }
31
   }
27
 
32
 
28
-  const [BuyNumber, setBuyNumber] = useState(1)
29
-  const [DisabledBool, setDisabledBool] = useState(false)
30
 
33
 
31
 
34
 
32
   const NumberAdd = () => {
35
   const NumberAdd = () => {
177
 
180
 
178
 
181
 
179
   )
182
   )
180
-}
183
+})

+ 5
- 2
src/pages/TobeShop/index.jsx View File

1
+import withLayout from '@/layouts'
2
+
1
 import CustomNav from "@/components/CustomNav"
3
 import CustomNav from "@/components/CustomNav"
2
 import Popup from '@/components/Popup'
4
 import Popup from '@/components/Popup'
3
 import { useState, useEffect } from 'react'
5
 import { useState, useEffect } from 'react'
16
 import './style.less'
18
 import './style.less'
17
 
19
 
18
 
20
 
19
-export default (props) => {
21
+export default withLayout((props) => {
22
+  const { router, person } = props
20
 
23
 
21
   const [showDialog, setShowDialog] = useState(false)
24
   const [showDialog, setShowDialog] = useState(false)
22
   //核销
25
   //核销
134
 
137
 
135
     </view>
138
     </view>
136
   )
139
   )
137
-}
140
+})

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

1
 import { useState } from "react";
1
 import { useState } from "react";
2
+import withLayout from '@/layouts'
2
 import Taro from '@tarojs/taro'
3
 import Taro from '@tarojs/taro'
3
 import image from '@/assets/icons/ProCard/8kb.jpg'
4
 import image from '@/assets/icons/ProCard/8kb.jpg'
4
 import Pay from '@/assets/icons/GuideCheck/Pay_logo.png'
5
 import Pay from '@/assets/icons/GuideCheck/Pay_logo.png'
5
 import food from '@/assets/icons/ProCard/food.png'
6
 import food from '@/assets/icons/ProCard/food.png'
6
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
7
 import ProCard_hot from '@/assets/icons/ProCard/ProCard_hot.png'
7
-import sleep from '@/assets/icons/GuideCheck/sleep_logo.png'
8
 import Taxi from '@/assets/icons/GuideCheck/taxi.png'
8
 import Taxi from '@/assets/icons/GuideCheck/taxi.png'
9
 import WiFi from '@/assets/icons/GuideCheck/WiFi.png'
9
 import WiFi from '@/assets/icons/GuideCheck/WiFi.png'
10
 import GoHere from '@/assets/icons/GuideCheck/GoHere.png'
10
 import GoHere from '@/assets/icons/GuideCheck/GoHere.png'
16
 import loveOn from '@/assets/icons/GuideCheck/loveOn.png'
16
 import loveOn from '@/assets/icons/GuideCheck/loveOn.png'
17
 import Raiders from '@/assets/icons/GuideCheck/Raiders.png'
17
 import Raiders from '@/assets/icons/GuideCheck/Raiders.png'
18
 import RaidersImage from '@/assets/icons/GuideCheck/RaidersImage.jpg'
18
 import RaidersImage from '@/assets/icons/GuideCheck/RaidersImage.jpg'
19
-import AAAAAAAA from '@/assets/icons/GuideCheck/RaidersImage.jpg'
20
-
19
+import articleCardImage from '@/assets/icons/GuideCheck/articleCardImage.png'
21
 import './GuideCss/style.less'
20
 import './GuideCss/style.less'
22
 
21
 
23
 
22
 
25
 const score = '3.9'
24
 const score = '3.9'
26
 
25
 
27
 
26
 
28
-export default (props) => {
27
+export default withLayout((props) => {
28
+  const { router, person } = props
29
   const [value, setVaule] = useState('已收藏')
29
   const [value, setVaule] = useState('已收藏')
30
   const [imageSrc, setImageSrc] = useState(starOn)
30
   const [imageSrc, setImageSrc] = useState(starOn)
31
 
31
 
130
             <text className='articleCard-right'>--------</text>
130
             <text className='articleCard-right'>--------</text>
131
           </view>
131
           </view>
132
           <view className='articleCard-content'>
132
           <view className='articleCard-content'>
133
-            <image className='articleCard-image' src={AAAAAAAA} />
133
+            <image className='articleCard-image' src={articleCardImage} />
134
           </view>
134
           </view>
135
           <view className='articleCard-textarea'>
135
           <view className='articleCard-textarea'>
136
             <view className='articleCard-textarea-title' >位置:<text className='articleCard-textarea-content'>地处繁华街区,餐饮、娱乐选择丰富
136
             <view className='articleCard-textarea-title' >位置:<text className='articleCard-textarea-content'>地处繁华街区,餐饮、娱乐选择丰富
281
     </scroll-view>
281
     </scroll-view>
282
 
282
 
283
   )
283
   )
284
-}
284
+})

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

1
 import React from 'react'
1
 import React from 'react'
2
 import Taro from '@tarojs/taro'
2
 import Taro from '@tarojs/taro'
3
+import withLayout from '@/layouts'
3
 
4
 
4
 import AuthPage from '@/components/AuthPage'
5
 import AuthPage from '@/components/AuthPage'
5
 import boy from '@/assets/icons/UserCenter/boy.png'
6
 import boy from '@/assets/icons/UserCenter/boy.png'
16
 
17
 
17
 
18
 
18
 
19
 
19
-export default (props) => {
20
-  const { person } = props
20
+export default withLayout((props) => {
21
+  const { router, person } = props
21
 
22
 
22
   // // 我的行程 
23
   // // 我的行程 
23
   // const HomeLogo = () => {
24
   // const HomeLogo = () => {
105
             <text className='Badge-list-titme'> 我的行程</text>
106
             <text className='Badge-list-titme'> 我的行程</text>
106
             <text className='Badge-list-gt'>&gt;</text>
107
             <text className='Badge-list-gt'>&gt;</text>
107
           </view> */}
108
           </view> */}
109
+
110
+
108
           <view className='Badge-list' onClick={handleCollect}>
111
           <view className='Badge-list' onClick={handleCollect}>
109
             <image className='Badge-list-logo' src={collect} />
112
             <image className='Badge-list-logo' src={collect} />
110
             <text className='Badge-list-titme'> 我的收藏</text>
113
             <text className='Badge-list-titme'> 我的收藏</text>
125
       </view>
128
       </view>
126
     </scroll-view>
129
     </scroll-view>
127
   )
130
   )
128
-}
131
+})

+ 21
- 23
src/pages/index/tabs/Recommend.jsx View File

1
 import { React, useState, useEffect, } from 'react'
1
 import { React, useState, useEffect, } from 'react'
2
-// .就是当前路径
2
+
3
 import iconsearch from '@/assets/icons/housemantj/search.png'
3
 import iconsearch from '@/assets/icons/housemantj/search.png'
4
 import icontip from '@/assets/icons/housemantj/tip.png'
4
 import icontip from '@/assets/icons/housemantj/tip.png'
5
 import location from '@/assets/icons/housemantj/location.png'
5
 import location from '@/assets/icons/housemantj/location.png'
10
 import mjTip from '@/assets/icons/housemantj/mjtip.png'
10
 import mjTip from '@/assets/icons/housemantj/mjtip.png'
11
 import glTip from '@/assets/icons/housemantj/gltip.png'
11
 import glTip from '@/assets/icons/housemantj/gltip.png'
12
 import onlove from '@/assets/icons/housemantj/onlove.png'
12
 import onlove from '@/assets/icons/housemantj/onlove.png'
13
-import Taro,{useRouter } from '@tarojs/taro'
13
+import Taro, { useRouter } from '@tarojs/taro'
14
 import { getIndexType, getIndexRecommender } from '@/services/home'
14
 import { getIndexType, getIndexRecommender } from '@/services/home'
15
 
15
 
16
 import './less/Recommend.less'
16
 import './less/Recommend.less'
23
   const [typeList, setTypeList] = useState([])
23
   const [typeList, setTypeList] = useState([])
24
   const [list, setList] = useState([])
24
   const [list, setList] = useState([])
25
 
25
 
26
-  const tabs = [{ title: '附近' }].concat(typeList.map(x => ({...x, title: x.typeName })))
27
-  
26
+  const tabs = [{ title: '附近' }].concat(typeList.map(x => ({ ...x, title: x.typeName })))
27
+
28
   useEffect(() => {
28
   useEffect(() => {
29
-    console.log('----------11111111111-------->')
30
     getIndexType({ pageSize: 20 }).then((res) => {
29
     getIndexType({ pageSize: 20 }).then((res) => {
31
-      console.log('----------2222222------->')
32
       setTypeList(res.records || [])
30
       setTypeList(res.records || [])
33
     })
31
     })
34
 
32
 
94
       <view className='search' onClick={onSearch}>
92
       <view className='search' onClick={onSearch}>
95
         <input className='searchInput' disabled />
93
         <input className='searchInput' disabled />
96
         <image className='searchicon' src={iconsearch} />
94
         <image className='searchicon' src={iconsearch} />
97
-        <view className="searchword">搜索</view>
95
+        <view className='searchword'>搜索</view>
98
       </view>
96
       </view>
99
       <view className='tip' onclick={onLogin}>
97
       <view className='tip' onclick={onLogin}>
100
         <image className='tipicon' src={icontip} />
98
         <image className='tipicon' src={icontip} />
102
       </view>
100
       </view>
103
       <view className='index-tabs'>
101
       <view className='index-tabs'>
104
         <view className='position'>
102
         <view className='position'>
105
-            <image className='location' src={location} />
106
-            <view className='city'>南京</view>
103
+          <image className='location' src={location} />
104
+          <view className='city'>南京</view>
107
           <view className='line' />
105
           <view className='line' />
108
         </view>
106
         </view>
109
-        
110
-        <scroll-view scroll-x="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
111
 
107
 
112
-        <mp-tabs
113
-          tabClass='tabs-Unselected'
114
-          swiperClass='tabs-swiper'
115
-          activeClass='tabs-Selected'
116
-          tabs={tabs}
117
-          current={activeTab}
118
-          onChange={handleTabChange}
119
-          activeTab={activeTab}
120
-        >
121
-        </mp-tabs>
108
+        <scroll-view scroll-x='true' scroll-view='true' bindscrolltoupper='upper' bindscrolltolower='lower' bindscroll='scroll'>
109
+
110
+          <mp-tabs
111
+            tabClass='tabs-Unselected'
112
+            swiperClass='tabs-swiper'
113
+            activeClass='tabs-Selected'
114
+            tabs={tabs}
115
+            current={activeTab}
116
+            onChange={handleTabChange}
117
+            activeTab={activeTab}
118
+          >
119
+          </mp-tabs>
122
         </scroll-view>
120
         </scroll-view>
123
       </view>
121
       </view>
124
-      <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
125
-        <view className="waterfall">
122
+      <scroll-view scroll-y='true' scroll-view='true' bindscrolltoupper='upper' bindscrolltolower='lower' bindscroll='scroll'>
123
+        <view className='waterfall'>
126
           {/* {
124
           {/* {
127
             list.map()
125
             list.map()
128
 
126