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
1c4e42ee
Commit
1c4e42ee
authored
Mar 04, 2019
by
LiuJunYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售量,banner顺序
parent
42222290
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
pages/detail/index.js
+1
-0
pages/detail/index.wxml
+1
-0
utils/Config.js
+11
-10
No files found.
pages/detail/index.js
View file @
1c4e42ee
...
@@ -248,6 +248,7 @@ Page({
...
@@ -248,6 +248,7 @@ Page({
//检查是否限购,0为不限购
//检查是否限购,0为不限购
if
(
this
.
data
.
detail
.
vip_limits
&&
this
.
data
.
detail
.
is_vip
)
{
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
)
{
if
(
this
.
data
.
detail
.
buy_vip_limits
>=
this
.
data
.
detail
.
vip_limits
)
{
//弹窗不让购买
//弹窗不让购买
wx
.
showModal
({
wx
.
showModal
({
...
...
pages/detail/index.wxml
View file @
1c4e42ee
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<view class='title'>{{detail.title}}</view>
<view class='title'>{{detail.title}}</view>
<view class='intro'>
<view class='intro'>
{{detail.type=='2'?'':'限'+detail.sign_limits+'组报名'}} 收藏{{detail.collect_num}}次 <block wx:if="{{detail.vip_limits}}">会员限购{{detail.vip_limits}}次/已购{{detail.buy_vip_limits}}次</block>
{{detail.type=='2'?'':'限'+detail.sign_limits+'组报名'}} 收藏{{detail.collect_num}}次 <block wx:if="{{detail.vip_limits}}">会员限购{{detail.vip_limits}}次/已购{{detail.buy_vip_limits}}次</block>
<view style="float:right;">销售量:{{detail.sales_count}}</view>
</view>
</view>
</view>
</view>
<i-cell-group>
<i-cell-group>
...
...
utils/Config.js
View file @
1c4e42ee
//正式
//正式
export
const
Config
=
{
apiPath
:
"https://wxapp.maveler.com/api/"
,
mobPath
:
"https://wxapp.maveler.com/mob/"
,
shopJoinPath
:
"https://wxapp.maveler.com/mob/Index/shopjoin"
}
// //测试
// export const Config = {
// export const Config = {
// apiPath: "https://
meixzz.utools.club
/api/",
// apiPath: "https://
wxapp.maveler.com
/api/",
// mobPath: "https://
meixzz.utools.club
/mob/",
// mobPath: "https://
wxapp.maveler.com
/mob/",
// shopJoinPath: "https://
meixzz.utools.club
/mob/Index/shopjoin"
// shopJoinPath: "https://
wxapp.maveler.com
/mob/Index/shopjoin"
// }
// }
//测试
export
const
Config
=
{
apiPath
:
"https://meixzz.utools.club/api/"
,
mobPath
:
"https://meixzz.utools.club/mob/"
,
shopJoinPath
:
"https://meixzz.utools.club/mob/Index/shopjoin"
}
export
default
Config
export
default
Config
\ No newline at end of file
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