Browse Source

支付宝退款未开通

shish 4 năm trước cách đây
mục cha
commit
f9f3be2b18
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      ghsApp/src/pagesOrder/detail.vue

+ 8 - 1
ghsApp/src/pagesOrder/detail.vue

@@ -102,7 +102,7 @@
 			<view class="flex-space title">
 				商品信息
 				<view class="flex" style="color: #3385ff;font-weight: 400" v-if="detailInfo.status == 4">
-					<navigator v-if="detailInfo.refund==1" :url="`/pagesOrder/refund?id=${option.id}`" style="margin-left: 20upx;">发起退款</navigator>
+					<view v-if="detailInfo.refund==1" @click.stop="goRefund()" style="margin-left: 20upx;">发起退款</view>
 				</view>
 			</view>
 			<view class="module-com content-box">
@@ -241,6 +241,13 @@ export default {
 		...mapGetters({ loginInfo: "getLoginInfo" }),
 	},
 	methods: {
+		goRefund(){
+			if(this.detailInfo.payWay == 1){
+				this.$msg('支付宝付款暂不支持退款,请线下退款')
+				return false
+			}
+			this.$util.pageTo({url:'/pagesOrder/refund?id='+this.option.id})
+		},
 		//结账(单个结账没有优惠)
 		settleOrder(item) {
 			let id = item.id