Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
75cb9772
Commit
75cb9772
authored
Oct 30, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改详情 列表
parent
1a5bb0a5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
561 additions
and
95 deletions
+561
-95
store.vue
components/store/store.vue
+39
-32
style1.vue
components/store/style1.vue
+3
-1
style2.vue
components/store/style2.vue
+3
-1
style6.vue
components/store/style6.vue
+3
-1
pages.json
pages.json
+16
-14
index.vue
pages/index/index.vue
+41
-3
personalList.vue
pages/reserve/personalList.vue
+186
-0
storeDetails.vue
pages/reserve/storeDetails.vue
+219
-34
storeList.vue
pages/reserve/storeList.vue
+51
-9
No files found.
components/store/store.vue
View file @
75cb9772
...
...
@@ -9,40 +9,43 @@
}"
@click="goUrl" >
<view
class=
"box"
:style=
"
{'border-radius':goods.SearchFilletPX+'px'}" v-if="goods.IsShowStoreImg==true">
<image
mode=
"aspectFill"
class=
"img"
:style=
"
{'border-radius':goods.SearchFilletPX+'px'}" :src="store
I
nfo.storeCoverImg" >
</image>
<view
class=
"box"
:style=
"
{'border-radius':goods.SearchFilletPX+'px'}" v-if="goods.IsShowStoreImg==true"
@click="gostoreDetails"
>
<image
mode=
"aspectFill"
class=
"img"
:style=
"
{'border-radius':goods.SearchFilletPX+'px'}" :src="store
i
nfo.storeCoverImg" >
</image>
<view
class=
"switchstore"
@
click
.
stop=
"goStorelist()"
>
<image
style=
"width: 8px;height: 7px;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/switchstore.png"
/>
<text
style=
"font-size: 10px;color: #111111;"
>
切换门店
</text>
<view
class=
"switchstore-box"
>
<image
style=
"width: 8px;height: 7px;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/switchstore.png"
/>
<text
style=
"font-size: 10px;color: #111111;"
>
切换门店
</text>
</view>
</view>
<view
class=
"content"
>
<view
class=
"c-t"
>
<view
class=
"c-t-l"
>
{{
store
Info
.
storeName
?
storeI
nfo
.
storeName
:
'暂无数据'
}}
{{
store
info
.
storeName
?
storei
nfo
.
storeName
:
'暂无数据'
}}
</view>
<view
class=
"c-t-r"
>
距离:
{{
store
Info
.
distance
?(
storeInfo
.
distance
>=
1000
?(
storeInfo
.
distance
/
1000
).
toFixed
(
2
)
+
'km'
:
storeI
nfo
.
distance
+
'm'
):
"0"
}}
距离:
{{
store
info
.
distance
?(
storeinfo
.
distance
>=
1000
?(
storeinfo
.
distance
/
1000
).
toFixed
(
2
)
+
'km'
:
storei
nfo
.
distance
+
'm'
):
"0"
}}
</view>
</view>
<view
class=
"address"
>
{{
store
Info
.
storeAddress
?
storeI
nfo
.
storeAddress
:
''
}}
{{
store
info
.
storeAddress
?
storei
nfo
.
storeAddress
:
''
}}
</view>
<view
class=
"c-t"
style=
"justify-content: space-between;"
>
<view>
<image
mode=
"aspectFill"
style=
"width: 11px;height: 11px;"
src=
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/osTel.png'
/>
<text
class=
"tel"
>
{{
store
Info
.
storeTel
?
storeI
nfo
.
storeTel
:
''
}}
</text>
<text
class=
"tel"
>
{{
store
info
.
storeTel
?
storei
nfo
.
storeTel
:
''
}}
</text>
</view>
<view
style=
"font-size: 11px;color: #FFC86D;"
>
{{
store
Info
.
consumptionObj
?
storeI
nfo
.
consumptionObj
.
consumptionStoreName
:
''
}}
{{
store
info
.
consumptionObj
?
storei
nfo
.
consumptionObj
.
consumptionStoreName
:
''
}}
</view>
</view>
</view>
</view>
<view
v-else
>
<view
v-else
@
click=
"gostoreDetails"
>
<view
class=
"content2"
>
<view
class=
"c-t"
>
<view
class=
"c-t-l"
>
{{
store
Info
.
storeName
?
storeI
nfo
.
storeName
:
'暂无数据'
}}
{{
store
info
.
storeName
?
storei
nfo
.
storeName
:
'暂无数据'
}}
</view>
<view
class=
"c-t-r"
style=
"width: 80px;display: flex;flex-direction: row;align-items: center;justify-content: flex-end;"
>
...
...
@@ -54,18 +57,18 @@
</view>
<view
class=
"address"
>
<view
class=
"c-t-l"
style=
"font-size: 11px;color: #727272;"
>
{{
store
Info
.
storeAddress
?
storeI
nfo
.
storeAddress
:
''
}}
{{
store
info
.
storeAddress
?
storei
nfo
.
storeAddress
:
''
}}
</view>
<view
class=
"c-t-r"
>
距离:
{{
store
Info
.
distance
?(
storeInfo
.
distance
>=
1000
?(
storeInfo
.
distance
/
1000
).
toFixed
(
2
)
+
'km'
:
storeI
nfo
.
distance
+
'm'
):
"0"
}}
</view>
距离:
{{
store
info
.
distance
?(
storeinfo
.
distance
>=
1000
?(
storeinfo
.
distance
/
1000
).
toFixed
(
2
)
+
'km'
:
storei
nfo
.
distance
+
'm'
):
"0"
}}
</view>
</view>
<view
class=
"c-t"
style=
"justify-content: space-between;"
>
<view>
<image
mode=
"aspectFill"
style=
"width: 11px;height: 11px;"
src=
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/osTel.png'
/>
<text
class=
"tel"
>
{{
store
Info
.
storeTel
?
storeI
nfo
.
storeTel
:
''
}}
</text>
<text
class=
"tel"
>
{{
store
info
.
storeTel
?
storei
nfo
.
storeTel
:
''
}}
</text>
</view>
<view
style=
"font-size: 11px;color: #FFC86D;"
>
{{
store
Info
.
consumptionObj
?
storeI
nfo
.
consumptionObj
.
consumptionStoreName
:
''
}}
{{
store
info
.
consumptionObj
?
storei
nfo
.
consumptionObj
.
consumptionStoreName
:
''
}}
</view>
</view>
</view>
...
...
@@ -75,25 +78,16 @@
<
script
>
export
default
{
props
:
[
'goods'
],
props
:
[
'goods'
,
'storeinfo'
],
data
()
{
return
{
windowWidth
:
0
,
posiTop
:
0
,
store
I
nfo
:
{},
store
i
nfo
:
{},
position
:
''
,
}
},
created
()
{
this
.
getCurrentStore
()
let
that
=
this
uni
.
getLocation
({
type
:
'wgs84'
,
success
:
function
(
res
)
{
that
.
position
=
res
.
latitude
+
','
+
res
.
longitude
;
}
});
},
methods
:{
goUrl
(){
...
...
@@ -106,17 +100,22 @@
data
:
{
storeId
:
0
,
position
:
this
.
position
},
},
(
res
)
=>
{
if
(
res
.
data
&&
res
.
data
.
store
I
nfo
){
this
.
store
Info
=
res
.
data
.
storeI
nfo
if
(
res
.
data
&&
res
.
data
.
store
i
nfo
){
this
.
store
info
=
res
.
data
.
storei
nfo
}
}
);
},
goStorelist
(){
//门店选择
uni
.
navigateTo
({
url
:
"/pages/reserve/storeList
?position="
+
this
.
position
url
:
"/pages/reserve/storeList
"
})
}
},
gostoreDetails
()
{
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
this
.
storeinfo
.
storeId
,
});
},
}
}
</
script
>
...
...
@@ -204,8 +203,16 @@
}
.store
.switchstore
{
position
:
absolute
;
top
:
5px
;
right
:
5px
;
top
:
0px
;
right
:
0px
;
width
:
80px
;
height
:
25px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.store
.switchstore-box
{
width
:
60px
;
height
:
15px
;
display
:
flex
;
...
...
components/store/style1.vue
View file @
75cb9772
...
...
@@ -92,7 +92,9 @@ export default {
},
methods
:
{
openGood
(
item
)
{
uni
.
navigateTo
({
url
:
'/pages/goods/goods?GoodsId='
+
item
.
id
});
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
item
.
Id
,
});
},
showSkuHandler
(
g
)
{
this
.
sku
=
g
;
...
...
components/store/style2.vue
View file @
75cb9772
...
...
@@ -88,7 +88,9 @@ export default {
},
methods
:
{
openGood
(
item
)
{
uni
.
navigateTo
({
url
:
'/pages/goods/goods?GoodsId='
+
item
.
id
});
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
item
.
Id
,
});
},
showSkuHandler
(
g
)
{
this
.
sku
=
g
;
...
...
components/store/style6.vue
View file @
75cb9772
...
...
@@ -73,7 +73,9 @@ export default {
},
methods
:
{
openGood
(
item
)
{
uni
.
navigateTo
({
url
:
'/pages/goods/goods?GoodsId='
+
item
.
id
});
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails?id="
+
item
.
Id
,
});
},
showSkuHandler
(
g
)
{
this
.
sku
=
g
;
...
...
pages.json
View file @
75cb9772
...
...
@@ -77,20 +77,20 @@
}
]
},
{
"root"
:
"pages/live"
,
"plugins"
:
{
"live-player-plugin"
:
{
"version"
:
"1.2.2"
,
"provider"
:
"wx2b03c6e691cd7370"
}
},
"pages"
:
[{
"path"
:
"index"
},
{
"path"
:
"share"
}]
},
//
{
//
"root"
:
"pages/live"
,
//
"plugins"
:
{
//
"live-player-plugin"
:
{
//
"version"
:
"1.2.2"
,
//
"provider"
:
"wx2b03c6e691cd7370"
//
}
//
},
//
"pages"
:
[{
//
"path"
:
"index"
//
},
{
//
"path"
:
"share"
//
}]
//
},
{
"root"
:
"pages/user-center"
,
"pages"
:
[{
...
...
@@ -420,6 +420,8 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},{
"path"
:
"personalList"
}
]
},
...
...
pages/index/index.vue
View file @
75cb9772
...
...
@@ -16,7 +16,7 @@
<u-icon
name=
"arrow-left"
size=
"44"
></u-icon>
</view>
</view>
<
button
type=
"default"
open-type=
"getPhoneNumber"
@
getphonenumber=
'getphonenumber'
>
获取手机号码
</button
>
<
!--
<button
type=
"default"
open-type=
"getPhoneNumber"
@
getphonenumber=
'getphonenumber'
>
获取手机号码
</button>
--
>
<u-tabs
v-if=
"myPageData.home_pages && myPageData.home_pages.navs.length > 1"
name=
"name"
...
...
@@ -62,7 +62,7 @@
<argoods
v-if=
"d.id == 'educationArticle'"
:goods=
"d.data"
></argoods>
<!-- 最近学习组件 -->
<rstudy
v-if=
"d.id == 'education'"
:goods=
"d.data"
ref=
'study'
></rstudy>
<store
v-if=
"d.id == 'reservestore'"
:goods=
"d.data"
></store>
<store
v-if=
"d.id == 'reservestore'"
:goods=
"d.data"
:storeinfo=
'storeInfo'
></store>
<!-- 线下服务商品 -->
<sindex
v-if=
"d.id == 'storeGoods'"
:goods=
"d.data"
:key=
"di"
></sindex>
...
...
@@ -158,6 +158,8 @@ export default {
isNavPosition
:
0
,
//设置搜索框位置
IsOpenSchool
:
0
,
OrderId
:
0
,
storePosition
:
''
,
//线下服务获取经纬度
storeInfo
:
{},
};
},
components
:
{
...
...
@@ -376,6 +378,18 @@ export default {
});
// #endif
uni
.
getLocation
({
type
:
'wgs84'
,
success
:
function
(
res
)
{
let
position
=
res
.
latitude
+
','
+
res
.
longitude
;
uni
.
setStorageSync
(
"position"
,
{
position
:
position
});
that
.
getCurrentStore
()
},
fail
:
function
(
err
){
that
.
getCurrentStore
()
}
});
this
.
init
();
let
set
=
uni
.
getStorageSync
(
"basedata"
)
...
...
@@ -391,6 +405,8 @@ export default {
this
.
isShowBack
();
uni
.
showNavigationBarLoading
();
},
created
(){
},
// #ifdef MP-WEIXIN
onShareTimeline
()
{
...
...
@@ -647,18 +663,20 @@ export default {
init
()
{
let
mall_IsOpenSchool
=
uni
.
getStorageSync
(
"mall_UserInfo"
)?
uni
.
getStorageSync
(
"mall_UserInfo"
).
IsOpenSchool
:
0
let
open_school
=
0
;
console
.
log
(
this
.
IsOpenSchool
,
mall_IsOpenSchool
)
if
(
this
.
IsOpenSchool
==
1
&&
mall_IsOpenSchool
==
1
){
//this.IsOpenSchool 通过分享进来的 是否是校园 1 是0不是 mall_IsOpenSchool缓存获取校园模式开启没有
open_school
=
1
}
else
{
open_school
=
0
}
let
storeId
=
uni
.
getStorageSync
(
"storeId"
)
&&
uni
.
getStorageSync
(
"storeId"
).
storeId
?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
this
.
request2
(
{
url
:
"/api/Mall/GetHome"
,
data
:
{
page_id
:
this
.
pageId
,
open_school
:
open_school
,
StoreId
:
storeId
,
},
},
(
res
)
=>
{
...
...
@@ -727,6 +745,26 @@ export default {
(
error
)
=>
{}
);
},
getCurrentStore
(){
let
storeId
=
uni
.
getStorageSync
(
"storeId"
)
&&
uni
.
getStorageSync
(
"storeId"
).
storeId
?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
let
position
=
uni
.
getStorageSync
(
"position"
)
&&
uni
.
getStorageSync
(
"position"
).
position
?
uni
.
getStorageSync
(
"position"
).
position
:
''
;
this
.
request2
(
{
url
:
"/api/AppletStores/GetCurrentStore"
,
data
:
{
storeId
:
storeId
,
position
:
position
},
},
(
res
)
=>
{
if
(
res
.
data
&&
res
.
data
.
storeInfo
){
this
.
storeInfo
=
res
.
data
.
storeInfo
uni
.
setStorageSync
(
"storeId"
,
{
storeId
:
res
.
data
.
storeInfo
.
storeId
});
if
(
res
.
data
.
storeInfo
.
storeId
&&
res
.
data
.
storeInfo
.
storeId
>
0
){
this
.
init
()
}
}
}
);
},
getSmallShopById
()
{
let
Id
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
).
SmallShopId
...
...
pages/reserve/personalList.vue
0 → 100644
View file @
75cb9772
<
template
>
<view
class=
"personalList"
>
<view
v-if=
"g.length > 0"
style=
"
height: calc(100vh);
width: 100%;
overflow: hidden;
margin-top: 7px;
"
>
<scroll-view
:scroll-y=
"true"
@
scrolltolower=
"lower"
:enable-back-to-top=
"true"
:enable-flex=
"true"
:scroll-top=
"scrollTop"
style=
"height: 100%; padding-bottom: 0px;"
>
<view
class=
"designer "
>
<view
class=
"designer-item"
v-for=
"(x, ci2) in g"
:key=
"ci2"
v-if=
"g.length>0"
>
<view
class=
"designer-flex"
style=
"width: calc(100vw - 100px);"
>
<u-avatar
:src=
"x.ServiceLogo"
size=
"110"
></u-avatar>
<view
class=
"designer-name"
>
<view
class=
"designer-flex"
>
<image
v-if=
"x.Gender==1"
style=
"width: 13px;height: 13px;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/male.png"
></image>
<image
v-if=
"x.Gender==2"
style=
"width: 13px;height: 13px;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/female.png"
></image>
<text
style=
"margin-left: 5px;max-width: 400rpx;"
>
{{
x
.
Name
}}
</text>
</view>
<view
class=
"designer-flex"
>
<u-rate
:current=
"x.storeScore!=null &&x.storeScore>0?x.storeScore:'5'"
active-color=
"#FEC471"
inactive-color=
"#DDDDDD"
active-icon=
"star"
inactive-icon=
"star-o"
size=
"26"
:disabled=
"true"
></u-rate>
<text
style=
"font-size: 11px;color: #999999;"
>
(
{{
x
.
CommentNum
}}
评价)
</text>
</view>
</view>
</view>
<view
class=
"designer-btn"
:style=
"
{'background':mainColor}" >
预约
</view>
</view>
</view>
<u-loadmore
v-if=
"showLoading"
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#FFF"
/>
</scroll-view>
</view>
<view
v-if=
"!loading && g.length== 0 "
style=
"
height: calc(100vh);
width: calc(100vw - 20px);
padding-top: 10px;
"
>
<u-empty
text=
"没有找到更多的设计师"
font-size=
"36"
mode=
"list"
></u-empty>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
pageTitle
:
"设计师列表"
,
status
:
"loadmore"
,
mainColor
:
""
,
loading
:
true
,
page_count
:
1
,
g
:
[],
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
showLoading
:
true
,
currentChosen
:
""
,
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
StoreId
:
0
,
},
};
},
onLoad
(
option
)
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
if
(
option
&&
option
.
id
){
this
.
msg
.
StoreId
=
option
.
id
}
},
mounted
()
{
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
this
.
init
();
},
methods
:
{
init
()
{
this
.
loading
=
true
;
uni
.
showLoading
({
title
:
'加载中'
});
this
.
request2
({
url
:
'/api/AppletStores/GetServicePersonalList'
,
data
:
this
.
msg
},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
resultCode
==
1
)
{
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
{
this
.
status
=
"nomore"
;
}
else
{
this
.
status
=
"loadmore"
;
}
}
uni
.
hideLoading
();
}
);
},
lower
(
e
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
page_count
)
{
this
.
status
=
"loading"
;
this
.
msg
.
pageIndex
++
;
this
.
init
();
}
else
{
this
.
status
=
"nomore"
;
}
},
},
};
</
script
>
<
style
>
.personalList
{
height
:
100%
;
background
:
#FFF
;
position
:
relative
;
}
.personalList
.designer
{
padding
:
0
15px
;
}
.personalList
.designer-item
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
15px
0
;
border-bottom
:
1px
solid
#E2E2E2
;
}
.personalList
.designer-name
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-around
;
height
:
55px
;
margin-left
:
10px
;
}
.personalList
.designer-btn
{
width
:
69px
;
height
:
26px
;
border-radius
:
4px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
color
:
#FFF
;
font-size
:
13px
;
}
.personalList
.designer-flex
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
</
style
>
pages/reserve/storeDetails.vue
View file @
75cb9772
This diff is collapsed.
Click to expand it.
pages/reserve/storeList.vue
View file @
75cb9772
...
...
@@ -12,7 +12,7 @@
"
>
<scroll-view
:scroll-y=
"true"
@
scrolltolower=
"lower"
:enable-back-to-top=
"true"
:enable-flex=
"true"
:scroll-top=
"scrollTop"
style=
"height: 100%; padding-bottom: 0px;"
>
<view
class=
'store'
style=
"padding: 7.5px 15px;"
v-for=
"(c, i) in g"
:key=
"i"
@
click=
"gostoreDetails()"
>
<view
class=
'store'
style=
"padding: 7.5px 15px;"
v-for=
"(c, i) in g"
:key=
"i"
@
click=
"gostoreDetails(
c
)"
>
<view
class=
"box"
>
<image
mode=
"aspectFill"
class=
"img"
:src=
"c.CoverImg"
></image>
<view
class=
"content"
>
...
...
@@ -33,10 +33,19 @@
<text
class=
"tel"
>
{{
c
.
Tel
}}
</text>
</view>
<view
style=
"font-size: 11px;color: #FFC86D;"
>
上次消费的店铺
{{
c
.
consumptionObj
?
c
.
consumptionObj
.
consumptionStoreName
:
''
}}
</view>
</view>
</view>
<view
class=
"choice"
@
click
.
stop=
"radioChange"
>
<u-radio-group
v-model=
"currentChosen"
@
change=
'radioChange'
>
<u-radio
shape=
"circle"
:name=
"c.Id"
:icon-size=
"40"
:active-color=
"mainColor"
>
</u-radio>
</u-radio-group>
</view>
</view>
</view>
...
...
@@ -71,7 +80,7 @@
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多
商品
了"
,
nomore
:
"没有更多了"
,
},
list
:[
{
name
:
'距离'
},
...
...
@@ -84,7 +93,8 @@
old
:
{
scrollTop
:
0
,
},
coupon_id
:
0
,
currentChosen
:
""
,
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
...
...
@@ -98,9 +108,8 @@
onLoad
(
option
)
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
if
(
option
.
position
)
{
this
.
msg
.
CurrentPosition
=
option
.
position
;
}
this
.
msg
.
CurrentPosition
=
uni
.
getStorageSync
(
"position"
)
&&
uni
.
getStorageSync
(
"position"
).
position
?
uni
.
getStorageSync
(
"position"
).
position
:
''
;
},
mounted
()
{
uni
.
setNavigationBarTitle
({
...
...
@@ -142,6 +151,14 @@
res
=>
{
this
.
loading
=
false
;
if
(
res
.
resultCode
==
1
)
{
let
storeId
=
uni
.
getStorageSync
(
"storeId"
)
&&
uni
.
getStorageSync
(
"storeId"
).
storeId
?
uni
.
getStorageSync
(
"storeId"
).
storeId
:
0
;
if
(
storeId
>
0
){
res
.
data
.
pageData
.
forEach
(
x
=>
{
if
(
x
.
Id
==
storeId
){
this
.
currentChosen
=
x
.
Id
}
})
}
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
if
(
this
.
page_count
==
1
)
{
...
...
@@ -167,12 +184,26 @@
this
.
status
=
"nomore"
;
}
},
gostoreDetails
()
{
gostoreDetails
(
item
)
{
uni
.
navigateTo
({
url
:
"/pages/reserve/storeDetails
"
,
url
:
"/pages/reserve/storeDetails
?id="
+
item
.
Id
,
});
},
radioChange
(
e
){
uni
.
setStorageSync
(
"storeId"
,
{
storeId
:
this
.
currentChosen
});
let
pages
=
getCurrentPages
();
// 当前页面
let
beforePage
=
pages
[
pages
.
length
-
2
];
// 前一个页面
setTimeout
(()
=>
{
uni
.
navigateBack
({
delta
:
1
,
success
:
function
()
{
beforePage
.
$vm
.
getCurrentStore
();
// 执行前一个页面的方法
}
});
},
100
)
},
},
};
</
script
>
...
...
@@ -249,5 +280,16 @@
-webkit-line-clamp
:
1
;
-webkit-box-orient
:
vertical
;
}
.storeList
.choice
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
40px
;
height
:
40px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment