Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wxapp
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
wxapp
Commits
a32a0a1d
Commit
a32a0a1d
authored
Jul 15, 2020
by
汪睦雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改限制bug
parent
7eeac9aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
app.json
+1
-1
pages/detail/index.js
+14
-13
No files found.
app.json
View file @
a32a0a1d
...
...
@@ -75,7 +75,7 @@
],
"plugins"
:
{
"live-player-plugin"
:
{
"version"
:
"1.
0.2
"
,
"version"
:
"1.
1.0
"
,
"provider"
:
"wx2b03c6e691cd7370"
}
}
...
...
pages/detail/index.js
View file @
a32a0a1d
...
...
@@ -252,19 +252,20 @@ Page({
})
//检查是否限购,0为不限购
if
(
this
.
data
.
detail
.
vip_limits
&&
this
.
data
.
detail
.
is_vip
)
{
//检查当前购买数量是否大于限购
console
.
log
(
this
.
data
.
detail
.
buy_vip_limits
,
this
.
data
.
detail
.
vip_limits
);
if
(
this
.
data
.
detail
.
buy_vip_limits
>=
this
.
data
.
detail
.
vip_limits
)
{
//弹窗不让购买
wx
.
showModal
({
title
:
'信息'
,
content
:
'您已超过此活动的会员限购次数,如需额外购买,请联系客服处理!'
,
showCancel
:
false
})
return
;
}
}
// if (this.data.detail.vip_limits && this.data.detail.is_vip) {
// //检查当前购买数量是否大于限购
// console.log(this.data.detail.buy_vip_limits, this.data.detail.vip_limits);
// if (this.data.detail.buy_vip_limits >= this.data.detail.vip_limits) {
// //弹窗不让购买
// wx.showModal({
// title: '信息',
// content: '您已超过此活动的会员限购次数,如需额外购买,请联系客服处理!',
// showCancel: false
// })
// return;
// }
// }
let
status
=
this
.
data
.
detail
.
status
// 0-立即报名;1-预约下次;2-已售罄
if
(
status
==
0
)
{
...
...
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