提交 1e453746 编写于 作者: D devil_gong

微信小程序优惠劵使用

上级 e8acc7a4
......@@ -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});
......
......@@ -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>
......
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册