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 @@