shish 1 год назад
Родитель
Сommit
7698e092d2
1 измененных файлов с 37 добавлено и 27 удалено
  1. 37 27
      hdApp/src/admin/order/detail.vue

+ 37 - 27
hdApp/src/admin/order/detail.vue

@@ -2,6 +2,12 @@
   <view class="app-content">
     <view class="page-det">
 
+      <view class="after-sale-tip" v-if="orderInfo.forward == 1" @click="goPreOrder(orderInfo)">
+        <view class="tip-content">
+          <text class="tip-text">本单是售后付款单<block v-if="!$util.isEmpty(orderInfo.forwardMap)">,点击可以查看原订单</block></text>
+        </view>
+      </view>
+      
       <view class="module-com">
         <view class="module-tit">商品信息</view>
         <view class="module-det">
@@ -233,6 +239,11 @@ export default {
 
   },
   methods: {
+    goPreOrder(info){
+      if(!this.$util.isEmpty(info.forwardMap)){
+        this.$util.pageTo({url:'/admin/order/detail?id='+info.forwardMap.orderId})
+      }
+    },
     clear(item){
 			let that = this
 			that.$util.confirmModal({content:'确认结账?'},() => {
@@ -325,28 +336,6 @@ export default {
 .app-content {
   padding-bottom:120upx;
 }
-.page-top {
-  position: relative;
-  .page-top-det {
-    position: absolute;
-    top: 22upx;
-    @include disFlex(center, space-between);
-    width: 84%;
-    padding: 0 48upx;
-    color: #fff;
-    .page-status {
-      font-size: 36upx;
-      font-weight: bold;
-      margin-top:50upx;
-    }
-    .page-prompt {
-      color: #ffdede;
-    }
-    .page-status-img {
-      width: 180upx;
-    }
-  }
-}
 .page-det {
   width: 94%;
   margin: 0 auto;
@@ -370,11 +359,6 @@ export default {
       border-top: none;
     }
   }
-  .coupon-wrap {
-    .module-det {
-      padding: 20upx 0;
-    }
-  }
 }
 .page-btn {
   @include disFlex(center, space-between);
@@ -409,4 +393,30 @@ export default {
     border-bottom: 1px solid $borderColor;
   }
 }
+
+.after-sale-tip {
+  display: flex;
+  align-items: center;
+  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
+  border: 1px solid #ffc107;
+  border-radius: 8upx;
+  padding: 20upx 24upx;
+  margin-bottom: 20upx;
+  box-shadow: 0 2upx 8upx rgba(255, 193, 7, 0.2);
+  
+  .tip-content {
+    text-align: center;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    width: 100%;
+    .tip-text {
+      font-size: 28upx;
+      color: #856404;
+      line-height: 1.4;
+      font-weight: 500;
+      text-align: center;
+    }
+  }
+}
 </style>