diff --git a/config.js b/config.js index 35aa16ff..c937445d 100644 --- a/config.js +++ b/config.js @@ -1,6 +1,6 @@ module.exports = { - version: "6.2.0", - note: '启动图后台可管理、充值增加单笔满多少金额赠送一定的金额', + version: "6.2.1", + note: '充值界面增加展示 充值满一定金额赠送一定金额 的规则', subDomain: "tz", // 如果你的域名是: https://api.it120.cc/abcd 那么这里只要填写 abcd appid: "wxa46b09d413fbcaff", // 您的小程序的appid,购物单功能需要使用 shareProfile: '百款精品商品,总有一款适合您' // 首页转发的时候话术 diff --git a/pages/recharge/index.js b/pages/recharge/index.js index 3e270090..992b4ca3 100644 --- a/pages/recharge/index.js +++ b/pages/recharge/index.js @@ -9,7 +9,8 @@ Page({ */ data: { uid: undefined, - showalipay: false + showalipay: false, + rechargeSendRules: undefined }, /** @@ -37,7 +38,14 @@ Page({ * 生命周期函数--监听页面显示 */ onShow: function () { - + const _this = this + WXAPI.rechargeSendRules().then(res => { + if (res.code === 0) { + _this.setData({ + rechargeSendRules: res.data + }); + } + }) }, /** diff --git a/pages/recharge/index.wxml b/pages/recharge/index.wxml index ab10b044..00973933 100644 --- a/pages/recharge/index.wxml +++ b/pages/recharge/index.wxml @@ -25,4 +25,14 @@ 保存以下二维码,使用支付宝扫码付款 + + 充值满送活动: + + + 单笔充值每满 {{ item.confine }} 元, 送 {{ item.send }} 元 + 单笔充值每满 {{ item.confine }} 元,即可获得奖励。 + 充的多送的多,上不封顶。 + + + \ No newline at end of file diff --git a/pages/recharge/index.wxss b/pages/recharge/index.wxss index 17156776..da488618 100644 --- a/pages/recharge/index.wxss +++ b/pages/recharge/index.wxss @@ -84,4 +84,7 @@ picker { } .hui{ color: #777; +} +.weui-panel { + width:740rpx; } \ No newline at end of file