Ver código fonte

处理手机端开店增加主营产品

wangcz 7 anos atrás
pai
commit
1908963f04

+ 4 - 4
components/applyPurchase/BatchPublish.vue

@@ -138,10 +138,10 @@
               <table>
                 <thead>
                 <tr>
-                  <th width="214">卖家</th>
+                  <th width="350">卖家</th>
                   <th width="83">交期(天)</th>
                   <th width="104">单价</th>
-                  <th width="137">生产日期</th>
+                  <!--<th width="137">生产日期</th>-->
                   <th width="111">库存</th>
                   <th width="142">购买数量</th>
                   <th width="186">操作</th>
@@ -152,10 +152,10 @@
                 <table>
                   <tbody>
                   <tr v-for="(spotGoods, index) in spotGoodsData">
-                    <td width="214" v-text="spotGoods.storeName"></td>
+                    <td width="350" v-text="spotGoods.storeName"></td>
                     <td width="83" class="red-text" v-text="spotGoods.b2cMinDelivery + '-' + spotGoods.b2cMaxDelivery">4-6</td>
                     <td width="104" class="red-text" v-text="spotGoods.currencyName == 'RMB' ? '¥' + spotGoods.prices[0].rMBPrice: '$' + spotGoods.prices[0].uSDPrice"></td>
-                    <td width="137" v-text="spotGoods.produceDate"></td>
+                    <!--<td width="137" v-text="spotGoods.produceDate"></td>-->
                     <td width="111" v-text="spotGoods.reserve">21412</td>
                     <td width="142" class="input-number">
                       <div>

+ 23 - 1
components/mobile/register-saler/register/StepThird.vue

@@ -247,6 +247,22 @@
               </div>
             </div>
             <!--经销商 end-->
+            <!--主营产品 begin-->
+            <div role="tabpanel" class="tab-pane">
+              <div class="row com_row">
+                <div class="custom_col">
+                  <div class="wrap-title"><span class="line"></span>主营产品</div>
+                  <div class="" style="margin: 0 0.25rem">
+                    <textarea v-model="description"
+                              rows="5"
+                              maxlength="500"
+                              class="form-control"
+                              placeholder="例:本店主营Panasonic、IT、三星等知名品牌的触控IC、显示驱动IC、液晶屏、功率模块类、电源芯片、高压熔断、被动器件等产品。"></textarea>
+                  </div>
+                </div>
+              </div>
+            </div>
+            <!--主营产品 end-->
           </div>
           <!-- Submit button -->
          <!-- <div style="padding: 28px 40px;">
@@ -339,7 +355,8 @@
         isSelfRegisterSuccess: true,
         selectFlag: 'open',
         showLoading: false,
-        btnDisabled: false
+        btnDisabled: false,
+        description: ''
       }
     },
     props: [
@@ -530,6 +547,10 @@
           this.collectResult = '请上传营业执照'
           this.timeoutCount++
           this.showLoading = false
+        } else if (this.description === '') {
+          this.collectResult = '请填写主营产品信息'
+          this.timeoutCount++
+          this.showLoading = false
         } else {
           if (this.brands[0].name === '') {
             validCode = 1
@@ -566,6 +587,7 @@
             })
             // 申请开店
             this.$http.post('/store-service/applications', {
+              applyDescription: this.description,
               brands: tmpBrands,
               qualifications: qualifications,
               type: this.tab