From 425b9f419d2f7839cd43ac5064bcc9cfcc12189c Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Thu, 16 May 2024 20:28:38 +0800 Subject: [PATCH] =?UTF-8?q?YS:=E6=8D=A2=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/refund/refund.vue | 20 ++++++++++++++++---- pages/refund/detail.vue | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/pages/order/refund/refund.vue b/pages/order/refund/refund.vue index 574c5cf..fbf3734 100644 --- a/pages/order/refund/refund.vue +++ b/pages/order/refund/refund.vue @@ -41,7 +41,7 @@ - + 申请金额 ¥ @@ -139,7 +139,8 @@ imagesId: '', action: '', header: '', - type: 1, + type: 1, + title:'申请退款', } }, onReady() { @@ -150,13 +151,24 @@ 'platform': "MP-WEIXIN", } }, - onLoad(op) { + onLoad(op) { + console.log(op) this.deliveryStatus = op.deliveryStatus; this.type = op.type; this.receiptStatus = op.receiptStatus; this.orderId = op.orderId this.order = op.order ? JSON.parse(op.order) : ''; - this.value = this.order.is_user_grade ? this.order.grade_goods_price : this.order.goods_price; + this.value = this.order.is_user_grade ? this.order.grade_goods_price : this.order.goods_price; + this.title = op.type==1?"申请退货退款":(op.type==2?"申请退款":"申请换货"); + if(op.type==3){ + this.array=['已收到货', '未收到货']; + this.array1=[ "外观、型号、参数与描述不符", '货物与描述不符', '商品有划痕或破损', '配件、部件、屏幕问题', '质量问题', '收到商品少件(含少配件)', + '商品破损或污渍', '商家发错货' + ]; + } + uni.setNavigationBarTitle({ + title: this.title + }) }, methods: { //接受上传返回的数据 diff --git a/pages/refund/detail.vue b/pages/refund/detail.vue index 2b1ef42..3e63e75 100644 --- a/pages/refund/detail.vue +++ b/pages/refund/detail.vue @@ -152,7 +152,7 @@