缴纳保证金页面修改

This commit is contained in:
jia 2023-09-27 10:48:14 +08:00
parent 2427899247
commit 922ba1b054
3 changed files with 19 additions and 17 deletions

View File

@ -9,7 +9,7 @@
<text>{{merchant_Data.paid_margin}}</text>
</view>
<view class="item">
<text>缴纳保证金</text>
<text>剩余缴纳保证金</text>
<text>{{merchant_Data.unpaid_margin}}</text>
</view>
<view class="item">
@ -34,12 +34,13 @@
<view class="content-order" v-for="(item,i ) in productList">
<view class="">订单编号{{item.order_sn}}</view>
<view class="">支付金额{{item.total_price}}</view>
<view class="">支付状态{{item.pay_type==1?'已支付':'待支付'}}</view>
<view class="">支付状态{{item.paid==1?'已支付':'待支付'}}</view>
<view class="">支付时间{{item.pay_time}}</view>
</view>
<view class='loadingicon acea-row row-center-wrapper' v-if='productList.length > 0'>
<text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>{{loadTitle}}
</view>
</view>
</template>
@ -97,7 +98,7 @@
that.$set(that, 'productList', productList);
}, 500)
// console.log(that.productList)
that.$set(that.where, 'page', that.where.page + 1);
if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true
}).catch(err => {
@ -125,7 +126,7 @@
uni.showModal({
title: '提示',
content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金',
success: function(res) {
success: (res) => {
if (res.confirm) {
// console.log('');
@ -135,22 +136,18 @@
provider: 'wxpay',
orderInfo: res.data
.config, //
success: function(res) {
that.$util.Tips({
success: (res) => {
this.$util.Tips({
title: '支付成功'
});
setTimeout(() => {
that.decimal()
that.list(true)
}, 1000)
this.decimal()
this.list(true)
},
fail: function(err) {
that.$util.Tips({
fail: (err) => {
this.$util.Tips({
title: '支付失败'
});
console.log('fail:' + JSON.stringify(err));
}
});

View File

@ -556,6 +556,7 @@
title: '下架成功',
icon: 'none'
})
that.getList(this.mer_id,false)
} else if (res.cancel) {
// console.log('');
}
@ -576,6 +577,7 @@
icon: 'success'
}, () => {
that.$set(item, 'is_show', item.is_show == 0 ? 1 : 0);
that.getList(this.mer_id,false)
});
}).catch(err => {
return that.$util.Tips({

View File

@ -268,6 +268,9 @@
})
},
onShow(){
this.list(true,this.street_id);
},
onReachBottom() {
if (this.productList.length > 0) {
setTimeout(() => {