diff --git a/pages/spellGroup/mySpellGroup/index.js b/pages/spellGroup/mySpellGroup/index.js
index ed84cfb..bca0159 100644
--- a/pages/spellGroup/mySpellGroup/index.js
+++ b/pages/spellGroup/mySpellGroup/index.js
@@ -27,7 +27,10 @@ Page({
detailPicture: [],
coverPicture: [],
swiperCurrent: 0,
- showTime: true
+ showTime: true,
+ limitCondition: "",
+ minLimit: 0,
+ maxLimit: 0
},
/**
@@ -223,6 +226,21 @@ Page({
coverPicture: JSON.parse(res.data.coverPicture)
})
}
+ if (res && res.data && res.data.conditions) {
+ that.setData({
+ limitCondition: JSON.parse(res.data.conditions).type
+ })
+ if (JSON.parse(res.data.conditions).type == 2 && (JSON.parse(res.data.conditions).min || JSON.parse(res.data.conditions).min == 0)) {
+ that.setData({
+ minLimit: JSON.parse(res.data.conditions).min
+ })
+ }
+ if (JSON.parse(res.data.conditions).type == 2 && (JSON.parse(res.data.conditions).max) || JSON.parse(res.data.conditions).max == 0) {
+ that.setData({
+ maxLimit: JSON.parse(res.data.conditions).max
+ })
+ }
+ }
wx.setNavigationBarTitle({
title: res.data.title
})
diff --git a/pages/spellGroup/mySpellGroup/index.wxml b/pages/spellGroup/mySpellGroup/index.wxml
index 2426532..7361da0 100644
--- a/pages/spellGroup/mySpellGroup/index.wxml
+++ b/pages/spellGroup/mySpellGroup/index.wxml
@@ -31,6 +31,12 @@
限购条件:
每人{{data.useLimitQuantity}}张
+
+ 限领条件:
+ 仅限新用户活动
+ {{minLimit}}成长值到{{maxLimit}}成长值可以领取
+ 大于{{minLimit}}成长值可以领取
+