浏览代码

[积分兑换][积分不足兼容处理]

tags/湖南版5.1.4
刘晖 6 年前
父节点
当前提交
fce8ad9f99
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. +8
    -0
      pages/integralmall/payIntegcoupondetail/index.js
  2. +2
    -1
      pages/integralmall/payIntegcoupondetail/index.wxml

+ 8
- 0
pages/integralmall/payIntegcoupondetail/index.js 查看文件

@@ -37,6 +37,14 @@ Page({
})
})
},
cannotPay(){
wx.showToast({
title: "您的积分不足",
image: './../../../assets/images/fail.png',
duration: 2000,
mask: false
});
},
gotoIndex() {
wx.reLaunch({
url: '/pages/index/index',


+ 2
- 1
pages/integralmall/payIntegcoupondetail/index.wxml 查看文件

@@ -37,7 +37,8 @@
</view>
</view>
<view class='edit'>
<button class='user-motto' bindtap='gotoPay'>{{'确认'+data.creditPrice+'积分支付'}}</button>
<button class='user-motto' wx:if="{{remainingPoints>=0}}" bindtap='gotoPay'>{{'确认'+data.creditPrice+'积分支付'}}</button>
<button class='user-motto' wx:if="{{remainingPoints<0}}" bindtap='cannotPay'>积分不足</button>
</view>
<view class='al-bg' wx:if='{{showErr}}'></view>
<view class='al-content' wx:if='{{showErr}}'>


正在加载...
取消
保存