|
@@ -13,6 +13,7 @@ import hotelBossON from '@/assets/icons/UserCenter/hotelBossON.png'
|
13
|
13
|
import hotelBossOFF from '@/assets/icons/UserCenter/hotelBossOFF.png'
|
14
|
14
|
import shopBossON from '@/assets/icons/UserCenter/shopBossON.png'
|
15
|
15
|
import shopBossOFF from '@/assets/icons/UserCenter/shopBossOFF.png'
|
|
16
|
+import ToggleRoul from '@/components/toggleRoul/ToggleRoul'
|
16
|
17
|
|
17
|
18
|
|
18
|
19
|
export default (props) => {
|
|
@@ -20,38 +21,15 @@ export default (props) => {
|
20
|
21
|
const ShowMoldeOn = () => {
|
21
|
22
|
setShowCutover(true)
|
22
|
23
|
}
|
23
|
|
- const ok = () => {
|
|
24
|
+ const onClose = () => {
|
24
|
25
|
setShowCutover(false)
|
25
|
26
|
}
|
26
|
|
- const gotoShop = () => {
|
27
|
|
- Taro.redirectTo({ url: '/shop/pages/spread/spreadIndex' })
|
28
|
|
- }
|
29
|
|
- const gotoPerson = () => {
|
30
|
|
- Taro.redirectTo({ url: '/pages/index/index' })
|
31
|
|
- }
|
32
|
27
|
return (
|
33
|
28
|
<view>
|
34
|
29
|
<view>
|
35
|
30
|
<CustomNav title='十公里' />
|
36
|
31
|
</view>
|
37
|
|
- <Popup show={showCutover} maskClosable={false}>
|
38
|
|
- <view className='User-box-sths' >
|
39
|
|
- <view className='User-box-selectUser'>请选择身份:</view>
|
40
|
|
- <view className='User-box-tourist' onClick={gotoPerson}>
|
41
|
|
- <image className='Ubs-tourist-image' src={touristOFF} />
|
42
|
|
- <text className='Ubs-tourist-text'>游客</text>
|
43
|
|
- </view>
|
44
|
|
- <view className='User-box-hotelBoss' onClick={ok}>
|
45
|
|
- <image className='Ubs-hotelBoss-image' src={hotelBossON} />
|
46
|
|
- <text className='Ubs-hotelBoss-text'>民宿老板</text>
|
47
|
|
-
|
48
|
|
- </view>
|
49
|
|
- <view className='User-box-shopBoss' onClick={gotoShop}>
|
50
|
|
- <image className='Ubs-shopBoss-image' src={shopBossOFF} />
|
51
|
|
- <text className='Ubs-shopBoss-text'>店铺老板</text>
|
52
|
|
- </view>
|
53
|
|
- </view>
|
54
|
|
- </Popup>
|
|
32
|
+ <ToggleRoul showCutover={showCutover} onClose={onClose} />
|
55
|
33
|
<view style={{ padding: '30rpx', height: '100%' }}>
|
56
|
34
|
<scroll-view scroll-y="true" scroll-view='true' bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" style={{ height: 'calc(100vh - 120px)' }}>
|
57
|
35
|
<view className='storexx'>
|