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
b2887f7f
Commit
b2887f7f
authored
Nov 02, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
75cb9772
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
611 additions
and
11 deletions
+611
-11
pages.json
pages.json
+2
-0
storeDetails.vue
pages/reserve/storeDetails.vue
+76
-11
subscribe.vue
pages/reserve/subscribe.vue
+533
-0
No files found.
pages.json
View file @
b2887f7f
...
@@ -422,6 +422,8 @@
...
@@ -422,6 +422,8 @@
}
}
},{
},{
"path"
:
"personalList"
"path"
:
"personalList"
},{
"path"
:
"subscribe"
}
}
]
]
},
},
...
...
pages/reserve/storeDetails.vue
View file @
b2887f7f
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
.storeDetails
.setmeal-item
{
.storeDetails
.setmeal-item
{
width
:
200px
;
width
:
200px
;
/* height: 98px; */
/* height: 98px; */
margin-left
:
15px
;
background
:
#FFF
;
background
:
#FFF
;
border-radius
:
6px
;
border-radius
:
6px
;
box-shadow
:
0
6px
10px
1px
#F2F2F2
;
box-shadow
:
0
6px
10px
1px
#F2F2F2
;
...
@@ -142,8 +142,20 @@
...
@@ -142,8 +142,20 @@
background
:
#221818
;
background
:
#221818
;
padding
:
8px
15px
;
padding
:
8px
15px
;
color
:
#EFDCCB
;
color
:
#EFDCCB
;
background-image
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/cpoun.png')
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
position
:
relative
;
}
}
.storeDetails
.setmeal-pl
{
position
:
absolute
;
top
:
28.5px
;
width
:
18px
;
height
:
18px
;
border-radius
:
9px
;
background
:
#FFF
;
}
.storeDetails
.setmeal-item-bottom
{
.storeDetails
.setmeal-item-bottom
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -278,6 +290,11 @@
...
@@ -278,6 +290,11 @@
<view
class=
"right u-skeleton-rect"
@
click=
"openShare"
>
<view
class=
"right u-skeleton-rect"
@
click=
"openShare"
>
<image
src=
"@/static/images/icon/icon-share.png"
class=
"share-icon"
/>
<image
src=
"@/static/images/icon/icon-share.png"
class=
"share-icon"
/>
<text>
分享
</text>
<text>
分享
</text>
<button
v-if=
"u"
style=
"width: 100%;height: 100%;position: absolute;left: 0;top: 0;opacity: 0;"
open-type=
"share"
></button>
</view>
</view>
</view>
</view>
<!-- location-o -->
<!-- location-o -->
...
@@ -310,7 +327,7 @@
...
@@ -310,7 +327,7 @@
</view>
</view>
<view
class=
"setmeal-box"
>
<view
class=
"setmeal-box"
>
<view
v-for=
"(cl, ci) in list"
:key=
"ci"
>
<view
v-for=
"(cl, ci) in list"
:key=
"ci"
>
<view
class=
"setmeal-item u-skeleton-rect"
>
<view
class=
"setmeal-item u-skeleton-rect"
:style=
"
{'margin-left':ci==0?'15px':'0','margin-right': ci+1==list.length?'15px':'5px'}"
>
<view
class=
"setmeal-item-top"
>
<view
class=
"setmeal-item-top"
>
<view
style=
"font-size: 14px;margin-bottom: 3px;"
class=
"setmeal-name"
>
剪发卡
</view>
<view
style=
"font-size: 14px;margin-bottom: 3px;"
class=
"setmeal-name"
>
剪发卡
</view>
<view
style=
"font-size: 11px;color: rgba(239, 220, 203, 0.6);"
class=
"setmeal-name"
>
总监精剪+造型+洗吹
</view>
<view
style=
"font-size: 11px;color: rgba(239, 220, 203, 0.6);"
class=
"setmeal-name"
>
总监精剪+造型+洗吹
</view>
...
@@ -319,6 +336,8 @@
...
@@ -319,6 +336,8 @@
<text
style=
"font-size: 20px;font-weight: bold;"
>
78.4
</text>
<text
style=
"font-size: 20px;font-weight: bold;"
>
78.4
</text>
<text
style=
"font-size: 13px;"
>
/次 3次¥235.2
</text>
<text
style=
"font-size: 13px;"
>
/次 3次¥235.2
</text>
</view>
</view>
<view
class=
"setmeal-pl"
style=
"left: -9px;"
></view>
<view
class=
"setmeal-pl"
style=
"right: -9px;"
>
</view>
</view>
</view>
<view
class=
"setmeal-item-bottom"
>
<view
class=
"setmeal-item-bottom"
>
有效期:2020.10.05 18:00
有效期:2020.10.05 18:00
...
@@ -355,7 +374,7 @@
...
@@ -355,7 +374,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"designer-btn"
:style=
"
{'background':mc}" >
<view
class=
"designer-btn"
:style=
"
{'background':mc}"
@click.stop="gosubscribe"
>
预约
预约
</view>
</view>
</view>
</view>
...
@@ -391,6 +410,7 @@
...
@@ -391,6 +410,7 @@
@
goLook=
"goLook"
@
goLook=
"goLook"
@
closeBtn=
"closeBtn"
@
closeBtn=
"closeBtn"
></coupon>
></coupon>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
</scroll-view>
</scroll-view>
</
template
>
</
template
>
...
@@ -404,6 +424,7 @@
...
@@ -404,6 +424,7 @@
},
},
data
(){
data
(){
return
{
return
{
showAuth
:
false
,
pageTitle
:
"门店详情"
,
pageTitle
:
"门店详情"
,
scrollTop
:
0
,
scrollTop
:
0
,
headStyle
:{},
headStyle
:{},
...
@@ -476,6 +497,7 @@
...
@@ -476,6 +497,7 @@
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
init
();
this
.
init
();
this
.
getSPList
()
//获取服务人员列表
this
.
getSPList
()
//获取服务人员列表
this
.
getAllCPList
()
//获取门店套餐卡
wx
.
showShareMenu
({
wx
.
showShareMenu
({
withShareTicket
:
true
,
withShareTicket
:
true
,
menus
:
[
"shareAppMessage"
,
"shareTimeline"
],
menus
:
[
"shareAppMessage"
,
"shareTimeline"
],
...
@@ -496,10 +518,8 @@
...
@@ -496,10 +518,8 @@
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
if
(
SmallShopId
==
0
){
//如果微店id为0 去找所属微店id
SmallShopId
=
mall_UserInfo
?
mall_UserInfo
.
UserSmallShopId
:
0
;
SmallShopId
=
mall_UserInfo
?
mall_UserInfo
.
UserSmallShopId
:
0
;
}
}
let
title
=
let
title
=
this
.
g
.
storeName
;
this
.
g
.
app_share_title
!=
null
&&
this
.
g
.
app_share_title
!=
""
?
this
.
g
.
app_share_title
:
this
.
g
.
name
;
let
imageUrl
=
this
.
g
.
storeCoverImg
;
let
imageUrl
=
this
.
g
.
app_share_pic
!=
null
&&
this
.
g
.
app_share_pic
!=
""
?
this
.
g
.
app_share_pic
:
this
.
g
.
cover_pic
;
let
id
=
this
.
id
;
let
id
=
this
.
id
;
return
{
return
{
title
:
title
,
title
:
title
,
...
@@ -522,9 +542,9 @@
...
@@ -522,9 +542,9 @@
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
SmallShopId
=
u
.
UserSmallShopId
?
u
.
UserSmallShopId
:
0
}
}
return
{
return
{
title
:
this
.
g
.
app_share_title
!=
null
&&
this
.
g
.
app_share_title
!=
""
?
this
.
g
.
app_share_title
:
this
.
g
.
n
ame
,
title
:
this
.
g
.
storeN
ame
,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=5'
,
path
:
"/pages/index/index?id="
+
this
.
id
+
"&user_id="
+
uid
+
"&SmallShopId="
+
SmallShopId
+
"&Up="
+
this
.
Up
+
'&JumpType=5'
,
imageUrl
:
this
.
g
.
app_share_pic
!=
null
&&
this
.
g
.
app_share_pic
!=
""
?
this
.
g
.
app_share_pic
:
this
.
g
.
cover_pic
,
imageUrl
:
this
.
g
.
storeCoverImg
,
};
};
},
},
created
()
{
created
()
{
...
@@ -553,7 +573,7 @@
...
@@ -553,7 +573,7 @@
this
.
designerH
=
data
.
top
this
.
designerH
=
data
.
top
}
}
}).
exec
();
}).
exec
();
uni
.
createSelectorQuery
().
select
(
".
richtext
"
).
boundingClientRect
(
data
=>
{
uni
.
createSelectorQuery
().
select
(
".
wxParse
"
).
boundingClientRect
(
data
=>
{
if
(
data
&&
data
.
top
){
if
(
data
&&
data
.
top
){
this
.
richtextH
=
data
.
top
this
.
richtextH
=
data
.
top
}
}
...
@@ -608,6 +628,19 @@
...
@@ -608,6 +628,19 @@
}
}
);
);
},
},
getAllCPList
(){
this
.
request2
({
url
:
'/api/AppletStores/GetAllCouponPageList'
,
data
:
{
pageIndex
:
1
,
pageSize
:
999
,
StoreId
:
this
.
id
}
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
allCoupon
=
res
.
data
.
pageData
}
}
);
},
scrollHandler
(
e
)
{
scrollHandler
(
e
)
{
console
.
log
(
e
.
detail
.
scrollTop
)
console
.
log
(
e
.
detail
.
scrollTop
)
this
.
scrollTop
=
e
.
detail
.
scrollTop
;
this
.
scrollTop
=
e
.
detail
.
scrollTop
;
...
@@ -617,6 +650,15 @@
...
@@ -617,6 +650,15 @@
if
(
this
.
stickyH
-
this
.
headH
>
this
.
scrollTop
){
if
(
this
.
stickyH
-
this
.
headH
>
this
.
scrollTop
){
this
.
showSticky
=
false
this
.
showSticky
=
false
}
}
// if(this.scrollTop >this.setmealH+40 &&this.scrollTop
<
this
.
designerH
){
// this.current= 0;
// }else if(this.scrollTop >this.designerH+40 && this.scrollTop
<
this
.
richtextH
){
// this.current= 1;
// }else if(this.scrollTop >this.richtextH+40 && this.scrollTop
<
this
.
commentH
){
// this.current= 2;
// }else if(this.scrollTop >this.commentH+40 ){
// this.current= 3;
// }
//this.$forceUpdate();
//this.$forceUpdate();
},
},
scrollTopHandler
()
{
scrollTopHandler
()
{
...
@@ -683,7 +725,30 @@
...
@@ -683,7 +725,30 @@
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/reserve/personalList?id="
+
this
.
id
,
url
:
"/pages/reserve/personalList?id="
+
this
.
id
,
})
})
},
gosubscribe
(){
if
(
this
.
u
)
{
uni
.
navigateTo
({
url
:
"/pages/reserve/subscribe?id="
+
this
.
id
,
})
}
else
{
this
.
showAuth
=
true
;
}
},
openShare
(){
if
(
!
this
.
u
)
{
this
.
showAuth
=
true
;
}
}
},
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
},
//关闭登录窗口
gbAuth
()
{
this
.
showAuth
=
false
;
},
}
}
}
}
</
script
>
</
script
>
...
...
pages/reserve/subscribe.vue
0 → 100644
View file @
b2887f7f
This diff is collapsed.
Click to expand it.
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