bding пре 1 година
родитељ
комит
bb45581b04

+ 1 - 0
pages-purchaser/columnDetail/columnDetail.vue

@@ -201,6 +201,7 @@ export default {
           border-radius: 150rpx;
           background-color: #376cbb;
           color: #fff;
+          font-size: 24rpx;
         }
       }
       .name-box {

+ 1 - 0
pages-purchaser/components/infoCard.vue

@@ -125,6 +125,7 @@ export default {
         background-color: #376cbb;
         color: #fff;
         z-index: 9;
+        font-size: 24rpx;
       }
     }
     .name-box {

+ 2 - 2
pages-purchaser/editSpecialColumn/editSpecialColumn.vue

@@ -41,7 +41,7 @@
     >
       <view class="slot-content slot-content-text">
         <text class="add-lable-txt">新建标签</text>
-        <input v-model="addLableName" placeholder="请输入标签名称(最多8个字)" :maxlength="8" />
+        <input v-model="addLableName" placeholder="请输入标签名称(最多8个字)" />
       </view>
     </u-modal>
   </view>
@@ -71,7 +71,7 @@ export default {
     // 添加标签的确认事件
     confirmModal() {
       if (!this.addLableName) return this.$util.toast("未添加标签");
-      this.columnLableList.push(this.addLableName);
+      this.columnLableList.push(this.addLableName.slice(0, 8));
       this.addLableName = "";
     },
     // 添加标签的取消事件

+ 2 - 2
pages-purchaser/specialColumn/specialColumn.vue

@@ -76,7 +76,7 @@
     >
       <view class="slot-content slot-content-text">
         <text class="add-lable-txt">新建标签</text>
-        <input v-model="addLableName" placeholder="请输入标签名称(最多8个字)" :maxlength="8" />
+        <input v-model="addLableName" placeholder="请输入标签名称(最多8个字)" />
       </view>
     </u-modal>
     <Loading />
@@ -117,7 +117,7 @@ export default {
     // 添加标签的确认事件
     confirmModal() {
       if (!this.addLableName) return this.$util.toast("未添加标签");
-      this.columnLableList.push(this.addLableName);
+      this.columnLableList.push(this.addLableName.slice(0, 8));
       this.addLableName = "";
     },
     // 添加标签的取消事件

+ 3 - 14
pages-purchaser/writeNote/writeNote.vue

@@ -204,7 +204,6 @@ export default {
         Content: this.advice_content,
         Title: this.articleTitle,
         Type: this.topLableActive,
-        // Tags: this.industryCompanyLable.join(","),
         IndustryTags: this.selectedLableList.join(","),
         CompanyTags: this.companySelectedLable.join(","),
         ImgUrl: this.fileList.join(","),
@@ -346,25 +345,15 @@ export default {
         this.detailDataForm = res.Data;
         this.articleTitle = this.detailDataForm.Title;
         this.advice_content = this.detailDataForm.Content;
-        this.selectedLableList = this.detailDataForm.IndustryTags;
-        this.companySelectedLable = this.detailDataForm.CompanyTags;
-        this.industryCompanyLable = [...this.selectedLableList, ...this.companySelectedLable];
+        this.selectedLableList = this.detailDataForm.IndustryTags || [];
+        this.companySelectedLable = this.detailDataForm.CompanyTags || [];
         setTimeout(() => {
+          this.industryCompanyLable = [...this.selectedLableList, ...this.companySelectedLable];
           this.editorCtx.setContents({
             html: this.detailDataForm.Content, //this.EditGoodsDetail.content为赋值内容。
           });
         }, 200);
-
         this.fileList = this.detailDataForm.ImgUrl ? this.detailDataForm.ImgUrl.split(",") : [];
-
-        // this.industryCompanyLable = this.detailDataForm.Tags ? this.detailDataForm.Tags.split(",") : [];
-        // this.industryCompanyLable.forEach((item) => {
-        //   if (this.industryLabel.includes(item)) {
-        //     this.selectedLableList.push(item);
-        //   } else {
-        //     this.companySelectedLable.push(item);
-        //   }
-        // });
       }
     },
     editorFocus() {

+ 4 - 5
pages/purchaser/purchaser.vue

@@ -161,14 +161,13 @@ export default {
       uni.navigateTo({ url: "/pages-search/indedxSearch/indedxSearch?id=研选" + "&source=买方研选页面" });
     },
   },
-  onLoad() {
-    this.getBannerData();
-    this.getRecentReportList();
-    this.$refs.purchaserActivityListRef.reloadActivityList();
-  },
+  onLoad() {},
   onShow() {
     this.$store.commit("setRouterReport", "买方研选");
     this.getRecordTracking("买方研选");
+    this.getBannerData();
+    this.getRecentReportList();
+    this.$refs.purchaserActivityListRef.reloadActivityList();
   },
   /**
    * 用户点击分享