From e68135d56a2b0242dcfe376406a23630614bf8c6 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Sun, 16 Jun 2024 13:07:33 +0800 Subject: [PATCH] 1 --- pages/adv/index.vue | 26 ++++++++++++++++++++---- pages/user/index.vue | 2 +- pages/users/order_confirm/index.vue | 29 +++++++++++++++++++-------- pages/users/user_money/zhuanzhang.vue | 19 ++++++++++++++---- 4 files changed, 59 insertions(+), 17 deletions(-) diff --git a/pages/adv/index.vue b/pages/adv/index.vue index c186ed5..b8b871a 100644 --- a/pages/adv/index.vue +++ b/pages/adv/index.vue @@ -1,6 +1,7 @@ @@ -8,9 +9,26 @@ export default{ data(){ return { - data:[ - '/static/images/adv.png','/static/images/adv.png' - ] + // data:[ + // '/static/images/adv.png','/static/images/adv.png' + // ] + } + }, + methods:{ + onload(){ + console.log("广告加载完成") + }, + onclose(){ + console.log("0000") + }, + onerror(val){ + uni.showToast({ + title: val.detail.errMsg, + icon: 'none' + }) + setTimeout(()=>{ + uni.navigateBack(-1) + },2000) } } } diff --git a/pages/user/index.vue b/pages/user/index.vue index 212f33a..44189f1 100644 --- a/pages/user/index.vue +++ b/pages/user/index.vue @@ -91,7 +91,7 @@ 余额 - {{userInfo.brokerage_level||0}} + {{userInfo.total_brokerage_price||0}} 累计收益 diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue index d7cf2c6..bdb659e 100644 --- a/pages/users/order_confirm/index.vue +++ b/pages/users/order_confirm/index.vue @@ -364,7 +364,7 @@ + v-for="(item,index) in cartArrNew" :key='index' v-if="item.payStatus==1"> @@ -554,6 +554,7 @@ textareaStatus: true, deliveryName: '快递配送', //支付方式 + cartArrNew:[], cartArr: [{ "name": "微信支付", "icon": "icon-weixin2", @@ -561,6 +562,13 @@ title: '微信快捷支付', payStatus: 1, }, + { + "name": "余额支付", + "icon": "icon-icon-test", + value: 'balance', + title: '可用余额:', + payStatus: this.$store.getters.globalData.yue_pay_status, + }, { name: "支付宝支付", icon: "icon-icon34", @@ -573,13 +581,7 @@ title: '支付宝支付', payStatus: this.$store.getters.globalData.alipay_open }, - { - "name": "余额支付", - "icon": "icon-icon-test", - value: 'balance', - title: '可用余额:', - payStatus: this.$store.getters.globalData.yue_pay_status, - }, + { "name": "线下支付", "icon": "icon-yinhangqia", @@ -1184,6 +1186,17 @@ that.$set(that, 'order_form', (that.order_form && that.order_form.length>0) ? that.order_form : formData); } that.totalPrice = res.data.order_price; + if(Number(that.totalPrice)==0){ + that.cartArrNew = that.cartArr.filter((c,i)=>{ + return c.value!='weixin' + }) + that.cartArr = that.cartArrNew; + + that.payType='balance'; + }else{ + that.cartArrNew = that.cartArr; + } + console.log(that.cartArr) that.totalPoint = 0 res.data.order.forEach(item => { item.list.forEach(i=>{ diff --git a/pages/users/user_money/zhuanzhang.vue b/pages/users/user_money/zhuanzhang.vue index db279c7..7d6ea71 100644 --- a/pages/users/user_money/zhuanzhang.vue +++ b/pages/users/user_money/zhuanzhang.vue @@ -37,7 +37,7 @@