shish 3 лет назад
Родитель
Сommit
6c17d9987b
1 измененных файлов с 12 добавлено и 4 удалено
  1. 12 4
      hdApp/src/admin/order/detail.vue

+ 12 - 4
hdApp/src/admin/order/detail.vue

@@ -79,7 +79,10 @@
       <view class="module-com order-msg">
         <view class="module-tit">
           <text>订单信息</text>
-          <text style="float:right;color: #3385ff;font-weight:normal;" v-if="orderInfo.payStatus == 1 && orderInfo.onlinePay == 2" @click.stop="goRefund()">发起退款</text>
+          <block v-if="orderInfo.payStatus == 1">
+            <text style="float:right;color: #3385ff;font-weight:normal;" v-if="orderInfo.onlinePay ==2" @click.stop="goRefund()">发起退款</text>
+            <text style="float:right;color: #3385ff;font-weight:normal;" v-else @click.stop="goRefund()">发起线下退款</text>
+          </block>
         </view>
         <view class="module-det">
           <view class="order-msg-blo">
@@ -105,7 +108,12 @@
               <view class="label">单号:</view>
               <view class="value">{{ orderInfo.orderSn||'' }}</view>
             </view>
-            <view class="msg-list">
+            <view class="msg-list" v-if="orderInfo.payStatus == 1">
+              <view class="label">类型:</view>
+              <view class="value" v-if="orderInfo.onlinePay == 2" style="color:#3385ff;font-weight:bold;">线上付款</view>
+              <view class="value">线下付款</view>
+            </view>
+            <view class="msg-list" v-if="orderInfo.payStatus == 1">
               <view class="label">支付:</view>
               <view class="value">
                 {{ orderInfo.payWay == 0 ? '微信支付':orderInfo.payWay==1?'支付宝':orderInfo.payWay==4?'现金':orderInfo.payWay==5 ?'银行卡':'其它'}}
@@ -231,8 +239,8 @@ export default {
       this.$msg('开发中')
     },
 		goRefund(){
-			if(this.orderInfo.payWay == 1){
-				this.$msg('支付宝订单暂不支持线上退款')
+			if(this.orderInfo.payWay == 1 && this.orderInfo.onlinePay == 2){
+				this.$msg('支付宝付款暂不支持退款')
 				return false
 			}
 			this.$util.pageTo({url:'/admin/order/refund?id='+this.option.id})