storeBelieveInLight 1 rok temu
rodzic
commit
72d253a0d2
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      shop/productManagementModule/addProduct.vue

+ 3 - 1
shop/productManagementModule/addProduct.vue

@@ -1,7 +1,7 @@
1
 <template>
1
 <template>
2
   <view class="product-add-wrapper">
2
   <view class="product-add-wrapper">
3
     <view class="headers">
3
     <view class="headers">
4
-      <headersVue headerTitle="添加商品" @headerJump="headerJump"></headersVue>
4
+      <headersVue :headerTitle="headerTitle" @headerJump="headerJump"></headersVue>
5
       <view class="headers-title">
5
       <view class="headers-title">
6
         <view class="content">
6
         <view class="content">
7
           该功能仅支持单规格商品快速添加,可在PC端编辑
7
           该功能仅支持单规格商品快速添加,可在PC端编辑
@@ -483,11 +483,13 @@ export default {
483
       product_id: "",
483
       product_id: "",
484
       fengMianImage: [], //封面
484
       fengMianImage: [], //封面
485
       lunBoTuImage: [], //轮播图
485
       lunBoTuImage: [], //轮播图
486
+	  headerTitle:"添加单规格商品"
486
     };
487
     };
487
   },
488
   },
488
   async onLoad(e) {
489
   async onLoad(e) {
489
     this.product_id = e.product_id || "";
490
     this.product_id = e.product_id || "";
490
     this.clickType = e.clickType;
491
     this.clickType = e.clickType;
492
+	this.headerTitle = e.clickType=="updated"?'编辑单规格商品':'添加单规格商品'
491
     await this.getGoodsClassCategoryData();
493
     await this.getGoodsClassCategoryData();
492
     await this.getMerchantProfit();
494
     await this.getMerchantProfit();
493
     if (this.clickType == "updated" && this.product_id) {
495
     if (this.clickType == "updated" && this.product_id) {