Procházet zdrojové kódy

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

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

src/assets/icons/GuideCheck/AAAAAAAA.png → src/assets/icons/GuideCheck/articleCardImage.png Zobrazit soubor


+ 4
- 2
src/pages/MineUserAll/AllOrder/index.jsx Zobrazit soubor

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 Zobrazit soubor

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
+})

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

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
-  
11
-  const {location}=props
12
-  const {person}=location.query
13
-  console.log(person)
10
+
11
+export default withLayout((props) => {
12
+  const { router, person } = props
13
+
14
   const back = () => {
14
   const back = () => {
15
     Taro.navigateBack()
15
     Taro.navigateBack()
16
   }
16
   }
27
       </view>
27
       </view>
28
     </view>
28
     </view>
29
   )
29
   )
30
-}
30
+})

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

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 Zobrazit soubor

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 Zobrazit soubor

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 Zobrazit soubor

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 Zobrazit soubor

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 Zobrazit soubor

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 Zobrazit soubor

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
+})

+ 20
- 17
src/pages/index/tabs/Recommend.jsx Zobrazit soubor

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'
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 withLayout from '@/layouts'
14
 import withLayout from '@/layouts'
15
+
15
 import { getIndexType, getIndexRecommender } from '@/services/home'
16
 import { getIndexType, getIndexRecommender } from '@/services/home'
16
 
17
 
17
 import './less/Recommend.less'
18
 import './less/Recommend.less'
33
     const tab = tabs[index].typeId
34
     const tab = tabs[index].typeId
34
     // getIndexRecommender().then()
35
     // getIndexRecommender().then()
35
   }
36
   }
37
+
36
   useEffect(() => {
38
   useEffect(() => {
37
     getIndexType({ pageSize: 20 }).then((res) => {
39
     getIndexType({ pageSize: 20 }).then((res) => {
38
       setTypeList(res.records || [])
40
       setTypeList(res.records || [])
65
       <view className='search' onClick={onSearch}>
67
       <view className='search' onClick={onSearch}>
66
         <input className='searchInput' disabled />
68
         <input className='searchInput' disabled />
67
         <image className='searchicon' src={iconsearch} />
69
         <image className='searchicon' src={iconsearch} />
68
-        <view className="searchword">搜索</view>
70
+        <view className='searchword'>搜索</view>
69
       </view>
71
       </view>
70
       <view className='tip' onclick={onLogin}>
72
       <view className='tip' onclick={onLogin}>
71
         <image className='tipicon' src={icontip} />
73
         <image className='tipicon' src={icontip} />
73
       </view>
75
       </view>
74
       <view className='index-tabs'>
76
       <view className='index-tabs'>
75
         <view className='position'>
77
         <view className='position'>
76
-            <image className='location' src={location} />
77
-            <view className='city'>南京</view>
78
+          <image className='location' src={location} />
79
+          <view className='city'>南京</view>
78
           <view className='line' />
80
           <view className='line' />
79
         </view>
81
         </view>
80
-          <scroll-view scroll-x="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
81
 
82
 
82
-        <mp-tabs
83
-          tabClass='tabs-Unselected'
84
-          swiperClass='tabs-swiper'
85
-          activeClass='tabs-Selected'
86
-          tabs={tabs}
87
-          current={activeTab}
88
-          onChange={handleTabChange}
89
-          activeTab={activeTab}
90
-        >
91
-        </mp-tabs>
83
+        <scroll-view scroll-x='true' scroll-view='true' bindscrolltoupper='upper' bindscrolltolower='lower' bindscroll='scroll'>
84
+
85
+          <mp-tabs
86
+            tabClass='tabs-Unselected'
87
+            swiperClass='tabs-swiper'
88
+            activeClass='tabs-Selected'
89
+            tabs={tabs}
90
+            current={activeTab}
91
+            onChange={handleTabChange}
92
+            activeTab={activeTab}
93
+          >
94
+          </mp-tabs>
92
         </scroll-view>
95
         </scroll-view>
93
       </view>
96
       </view>
94
-      <scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
95
-        <view className="waterfall">
97
+      <scroll-view scroll-y='true' scroll-view='true' bindscrolltoupper='upper' bindscrolltolower='lower' bindscroll='scroll'>
98
+        <view className='waterfall'>
96
           {/* {
99
           {/* {
97
             list.map()
100
             list.map()
98
 
101