微信小程序优惠劵使用

feat/task1-c-wallet
devil_gong 2019-10-17 21:41:41 +08:00
parent e8acc7a42c
commit 1e4537463c
3 changed files with 9 additions and 2 deletions

View File

@ -83,6 +83,7 @@ Page({
data: data,
dataType: "json",
success: res => {
wx.stopPullDownRefresh();
wx.hideLoading();
if (res.data.code == 0) {
var data = res.data.data;
@ -138,6 +139,7 @@ Page({
}
},
fail: () => {
wx.stopPullDownRefresh();
wx.hideLoading();
this.setData({
data_list_loding_status: 2,
@ -149,6 +151,11 @@ Page({
});
},
// 下拉刷新
onPullDownRefresh() {
this.init();
},
// 用户留言事件
bind_user_note_event(e) {
this.setData({user_note_value: e.detail.value});

View File

@ -45,7 +45,7 @@
<textarea bindinput="bind_user_note_event" maxlength="60" auto-height placeholder="留言" class="content-textarea bg-white spacing-mb" />
<!-- 优惠劵 -->
<view class="plugins-coupon bg-white spacing-mb arrow-right" bindtap="plugins_coupon_open_event">
<view wx:if="{{(plugins_coupon_data || null) != null && plugins_coupon_data.coupon_list.length > 0}}" class="plugins-coupon bg-white spacing-mb arrow-right" bindtap="plugins_coupon_open_event">
<text class="cr-666">优惠劵</text>
<text class="cr-ccc fr">{{plugins_choice_coupon_value}}</text>
</view>

View File

@ -148,7 +148,7 @@
max-height: 80vh;
overflow-y: scroll;
overflow-x: hidden;
padding-bottom: 20rpx;
padding-bottom: 50rpx;
}
.coupon-container .item,
.coupon-container .v-right,