Procházet zdrojové kódy

订单列表增加去查看按钮

natasha před 4 dny
rodič
revize
1e9ac7d74e
1 změnil soubory, kde provedl 11 přidání a 1 odebrání
  1. 11 1
      src/views/personalCenter/components/OrderList.vue

+ 11 - 1
src/views/personalCenter/components/OrderList.vue

@@ -142,13 +142,18 @@
           <span>¥{{ scope.row.refund_amount | cutMoneyFiter }}</span>
         </template>
       </el-table-column>
-      <el-table-column prop="status" label="操作" width="100" fixed="right">
+      <el-table-column prop="status" label="操作" width="140" fixed="right">
         <template slot-scope="scope">
           <template v-if="scope.row.is_use_discount_code == 'false'">
             <a class="apply" @click="handleApply(scope.row, scope.$index)"
               >申请退款</a
             >
           </template>
+          <template
+            v-if="scope.row.order_status === 1 || scope.row.order_status === 2"
+          >
+            <a class="apply" @click="handleToShlef">去查看</a>
+          </template>
           <!-- <template v-if="scope.row.operate==='3'">
                     <a class="order-detail"><svg-icon icon-class="question-line"></svg-icon>详情</a>
                 </template>
@@ -435,6 +440,9 @@ export default {
         })
         .catch(() => {});
     },
+    handleToShlef() {
+      this.$router.push({ path: "/bookShelf" });
+    },
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {
@@ -504,6 +512,8 @@ export default {
     font-size: 14px;
     line-height: 22px;
     color: #165dff;
+    margin-right: 10px;
+    font-weight: 500;
   }
   .items-type {
     padding: 1px 8px;