From 54e1e245f5f5f5ff8fef70faa04159dd8d2c701b Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Fri, 28 Jun 2019 13:38:18 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=BC=E5=9B=A2][=E5=A2=9E=E5=8A=A0]:[?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=99=90=E9=A2=86=E6=9D=A1=E4=BB=B6]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/spellGroup/mySpellGroup/index.js | 20 +++++++++++++++++++- pages/spellGroup/mySpellGroup/index.wxml | 6 ++++++ 2 files changed, 25 insertions(+), 1 deletion(-) 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}}成长值可以领取 +