Browse Source

优化核销美妆产品

yuhao 2 years ago
parent
commit
c399eabd1c
2 changed files with 7 additions and 3 deletions
  1. 2 1
      src/pages/home/detailList/index.vue
  2. 5 2
      src/pages/home/index.vue

+ 2 - 1
src/pages/home/detailList/index.vue

@@ -26,7 +26,7 @@
26
           <!-- 设置手动预约标识 -->
26
           <!-- 设置手动预约标识 -->
27
           <!-- 1是线上预约 2是线下预约 -->
27
           <!-- 1是线上预约 2是线下预约 -->
28
           <div
28
           <div
29
-            v-if="projectItem.type == 2"
29
+          v-if="projectItem.type == 2"
30
             class="order-tip"
30
             class="order-tip"
31
             :style="{ color: getStyleByOrderStatus(projectItem).orderTipColor }"
31
             :style="{ color: getStyleByOrderStatus(projectItem).orderTipColor }"
32
           >
32
           >
@@ -370,6 +370,7 @@ export default {
370
       text-align: left;
370
       text-align: left;
371
       .userId{
371
       .userId{
372
         margin-top: 4px;
372
         margin-top: 4px;
373
+        z-index: 99;
373
       }
374
       }
374
       .project {
375
       .project {
375
         padding: 3px;
376
         padding: 3px;

+ 5 - 2
src/pages/home/index.vue

@@ -193,6 +193,7 @@ import api from "@/server/home";
193
 import vanList from "vant/lib/list";
193
 import vanList from "vant/lib/list";
194
 import minePupop from "../../components/minePupop/index.vue";
194
 import minePupop from "../../components/minePupop/index.vue";
195
 import "vant/lib/list/style";
195
 import "vant/lib/list/style";
196
+import { log } from 'console';
196
 export default {
197
 export default {
197
   data() {
198
   data() {
198
     return {
199
     return {
@@ -247,8 +248,10 @@ export default {
247
     // 美妆产品核销
248
     // 美妆产品核销
248
     goodsPickUp() {
249
     goodsPickUp() {
249
       api.goodsPickUp({ code: this.goodsCode }).then((res) => {
250
       api.goodsPickUp({ code: this.goodsCode }).then((res) => {
250
-        this.goodsList = res.data;
251
-        this.isGoodsPanel = true;
251
+        if(res.code==200){
252
+          this.goodsList = res.data;
253
+          this.isGoodsPanel = true;
254
+        }
252
       });
255
       });
253
     },
256
     },
254
     // 美妆产品取货
257
     // 美妆产品取货