bding 1 year ago
parent
commit
c16cb3335e

+ 4 - 0
config/modules/purchaser.js

@@ -76,4 +76,8 @@ export const purchaserApi = {
   yanxuanSpecialDel: (params) => {
     return postHttp("/yanxuan_special/del", params, 1);
   },
+  // 作者关注
+  yanxuanSpecialFollow: (params) => {
+    return postHttp("/yanxuan_special/follow", params, 1);
+  },
 };

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

@@ -15,7 +15,7 @@
             <view class="img-box">
               <image :src="authorDetail.HeadImg"></image>
             </view>
-            <view class="set-btn"> + 关注</view>
+            <view class="set-btn" @click="followAuthor">{{ authorDetail.Status == 1 ? "取消关注" : "+ 关注" }}</view>
           </view>
           <view class="name-box" :style="{ color: scrollTopNumber == 0 ? '#fff' : '#333' }">
             <text>{{ authorDetail.SpecialName }}</text>
@@ -90,6 +90,28 @@ export default {
     dataProcessing(item) {
       return item ? item.split(",") : [];
     },
+    // 点击关注作者
+    async followAuthor() {
+      let Status = this.authorDetail.Status == 1 ? 2 : 1;
+      const res = await purchaserApi.yanxuanSpecialFollow({
+        FollowUserId: this.authorDetail.UserId,
+        Status,
+      });
+      if (res.Ret === 200) {
+        console.log(res);
+        this.authorDetail.Status = Status;
+      }
+    },
+    // 左上角的返回按钮
+    goHandler() {
+      uni.navigateBack({
+        fail() {
+          uni.switchTab({
+            url: "/pages/index/index",
+          });
+        },
+      });
+    },
   },
   onLoad(opacity) {
     this.detailUserId = Number(opacity.id) || 0;

+ 28 - 1
pages-purchaser/components/columnListContent.vue

@@ -19,7 +19,9 @@
           <mp-html @ready="textContenReady($event, item)" class="text-conten-my" :content="richTextClamp(8) + item.Content + '</div>'" />
         </view>
         <view class="look-all" v-if="item.isShowBtn || item.ContentHasImg" @click="goDetail(item)"> 查看全文 </view>
-        <view class="file-item"> 文档名称.docx </view>
+        <block v-if="item.Docs && item.Docs.length > 0">
+          <view @click="goFilePages(key)" class="file-item" v-for="(key, index) in item.Docs" :key="index"> <image :src="key.DocIcon"></image>{{ key.DocName }}.{{ key.DocSuffix }} </view>
+        </block>
         <view class="image-conten">
           <image v-for="key in dataProcessing(item.ImgUrl)" :key="key" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/Maskgroupbg.png" @click="previewImageMediahandler"></image>
         </view>
@@ -123,10 +125,30 @@ export default {
         Status: type,
       });
       if (res.Ret === 200) {
+        this.$util.toast(res.Msg);
         item.CollectNum = item.IsCollect == 1 ? item.CollectNum - 1 : item.CollectNum + 1;
         item.IsCollect = item.IsCollect == 1 ? 0 : 1;
       }
     },
+    // 去往预览文件
+    goFilePages(item) {
+      wx.downloadFile({
+        // 示例 url,并非真实存在
+        url: item.DocUrl,
+        success: function (res) {
+          const filePath = res.tempFilePath;
+          wx.openDocument({
+            filePath: filePath,
+            success: function (res) {
+              console.log("打开文档成功");
+            },
+          });
+        },
+      });
+      // uni.navigateTo({
+      //   url: "/pages-purchaser/filePreviewPage/filePreviewPage?url=" + item.DocUrl,
+      // });
+    },
   },
 };
 </script>
@@ -226,6 +248,11 @@ export default {
       align-items: center;
       background-color: #f8f8fa;
       color: #376cbb;
+      image {
+        width: 27rpx;
+        height: 27rpx;
+        margin-right: 15rpx;
+      }
     }
     .image-conten {
       display: flex;

+ 2 - 2
pages-purchaser/components/infoCard.vue

@@ -7,8 +7,7 @@
             <image :src="authorDetail.HeadImg"></image>
           </button>
         </view>
-        <view class="set-btn" v-if="pagesType == '专栏详情'" @click="editMyColumn"> 编辑专栏</view>
-        <view class="set-btn" v-else> + 关注</view>
+        <view class="set-btn" v-if="pagesType == '专栏详情'" @click.stop="editMyColumn"> 编辑专栏</view>
       </view>
       <view class="name-box">
         <text>{{ authorDetail.SpecialName }}</text>
@@ -136,6 +135,7 @@ export default {
         border-radius: 150rpx;
         background-color: #376cbb;
         color: #fff;
+        z-index: 9;
       }
     }
     .name-box {

+ 4 - 0
pages-purchaser/components/purchaser-report-list-mixins.js

@@ -36,6 +36,10 @@ export default {
 		},
 		//去往文章详情页面
 		goDetail(item) {
+		 if (item.IsSpecial == 1) {
+			uni.navigateTo({ url: "/pages-purchaser/specialColumn/specialColumn" });
+			return;
+		  }
 		  this.$store.commit("setRouterReport", "月度收藏榜");
 		  uni.navigateTo({ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId });
 		},

+ 1 - 1
pages-purchaser/contentAllPage/contentAllPage.vue

@@ -14,7 +14,7 @@
         </view>
         <view class="title-item"> {{ item.Title }}</view>
         <view class="btn-box">
-          <view class="cancell-box" v-if="tabActive == 1" @click.stop="deleteHandler(item)"> 删除</view>
+          <view class="reject-box" v-if="tabActive == 1" @click.stop="deleteHandler(item)"> 删除</view>
           <view class="cancell-box" v-if="tabActive == 3" @click.stop="unpublishHandler(item)"> 取消发布</view>
           <view class="reject-box" v-if="tabActive == 4" @click.stop="rejectHandler(item)"> 驳回理由</view>
           <view class="edit-box" v-if="tabActive != 2" @click.stop="modifyHandler(item)"> 修改 </view>

+ 22 - 0
pages-purchaser/filePreviewPage/filePreviewPage.vue

@@ -0,0 +1,22 @@
+<template>
+	<view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+
+</style>

+ 150 - 161
pages-purchaser/lastestReport/lastestReport.vue

@@ -1,171 +1,160 @@
 <template>
-	<view class="lastest-report-container">
-		<view class="announcement" >
-			<van-checkbox-group class="checkbox-ui" :value="newCheckboxValue" @change="checkboxChange">
-				<van-checkbox
-					style="margin-right: 30rpx; flex-shrink: 0"
-					shape="square"
-					icon-size="14"
-					:name="item.ArticleTypeId"
-					v-for="item in checkboxGroup"
-					:key="item.ArticleTypeId"
-					>{{ item.ArticleTypeName }}</van-checkbox
-				>
-			</van-checkbox-group>
-		  <view class="content-ul">
-		    <blok v-if="haveData">
-		      <view class="user-li" v-for="(item, index) in collectionList" :key="item.ArticleId">
-		        <view class="li-item">
-		          <text class="li-type" :style="{ background: item.ButtonStyle }">
-		            {{ item.ArticleTypeName }}
-		          </text>
-		          <view>
-		            <text
-		              class="title"
-		              @click="goDetail(item)"
-		              :style="{ display: 'inline', marginLeft: item.Title.substr(0, 1) != '【' ? '14rpx' : 0 }"
-		              >{{ item.Title }}</text
-		            >
-		            <text class="li-industry" @click="themeDetails(key, '月度收藏榜')" v-for="key in item.List" :key="key.IndustrialManagementId">
-		              # {{ key.IndustryName }}
-		            </text>
-		          </view>
-		        </view>
-		        <view class="li-item li-bottom" style="color: #999999">
-		          <viwe class="time-user">
-		            <text>
-		              {{ item.PublishDate }}
-		            </text>
-		            <view class="li-user" @click="authorDetails(item)">
-		              <image class="user_report-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/user_report.png"></image>
-		              <text class="text_oneLine"> {{ item.NickName }}</text>
-		            </view>
-		          </viwe>
-		
-		          <view class="li-item user-img">
-		            <view class="img-box">
-		              <image class="user-pv" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/examine_icon.png"></image>
-		              <text>
-		                {{ item.Pv }}
-		              </text>
-		            </view>
-		            <view class="img-box" @click="collectClick(item)">
-		              <image v-if="item.IsCollect" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_act.png"></image>
-		              <image v-else src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_ico.png"></image>
-		              <text class=""> {{ item.CollectNum }}人收藏 </text>
-		            </view>
-		          </view>
-		        </view>
-		      </view>
-		    </blok>
-		    <view class="nodata" v-else>
-		      <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
-		      <text>暂无活动</text>
-		    </view>
-		  </view>
-		  <u-loadmore :status="status" :load-text="loadText" v-if="page_no > 1" />
-		</view>
-		<Loading />
-	</view>
+  <view class="lastest-report-container">
+    <view class="announcement">
+      <van-checkbox-group class="checkbox-ui" :value="newCheckboxValue" @change="checkboxChange">
+        <van-checkbox style="margin-right: 30rpx; flex-shrink: 0" shape="square" icon-size="14" :name="item.ArticleTypeId" v-for="item in checkboxGroup" :key="item.ArticleTypeId">{{
+          item.ArticleTypeName
+        }}</van-checkbox>
+      </van-checkbox-group>
+      <view class="content-ul">
+        <blok v-if="haveData">
+          <view class="user-li" v-for="(item, index) in collectionList" :key="item.ArticleId">
+            <view class="li-item">
+              <text class="li-type" :style="{ background: item.ButtonStyle }">
+                {{ item.ArticleTypeName }}
+              </text>
+              <view>
+                <text class="title" @click="goDetail(item)" :style="{ display: 'inline', marginLeft: item.Title.substr(0, 1) != '【' ? '14rpx' : 0 }">{{ item.Title }}</text>
+                <block v-if="item.SpecialTags">
+                  <text style="color: #90aeda" v-for="it in item.SpecialTags.split(',')" class="purchaser-content-row-object" :key="it">#{{ it }}</text>
+                </block>
+                <text class="li-industry" @click="themeDetails(key, '月度收藏榜')" v-for="key in item.List" :key="key.IndustrialManagementId"> # {{ key.IndustryName }} </text>
+              </view>
+            </view>
+            <view class="li-item li-bottom" style="color: #999999">
+              <viwe class="time-user">
+                <text>
+                  {{ item.PublishDate }}
+                </text>
+                <view class="li-user" @click="authorDetails(item)">
+                  <image class="user_report-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/user_report.png"></image>
+                  <text class="text_oneLine"> {{ item.NickName }}</text>
+                </view>
+              </viwe>
+
+              <view class="li-item user-img">
+                <view class="img-box">
+                  <image class="user-pv" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/examine_icon.png"></image>
+                  <text>
+                    {{ item.Pv }}
+                  </text>
+                </view>
+                <view class="img-box" @click="collectClick(item)">
+                  <image v-if="item.IsCollect" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_act.png"></image>
+                  <image v-else src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_ico.png"></image>
+                  <text class=""> {{ item.CollectNum }}人收藏 </text>
+                </view>
+              </view>
+            </view>
+          </view>
+        </blok>
+        <view class="nodata" v-else>
+          <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
+          <text>暂无活动</text>
+        </view>
+      </view>
+      <u-loadmore :status="status" :load-text="loadText" v-if="page_no > 1" />
+    </view>
+    <Loading />
+  </view>
 </template>
 
 <script>
-	import { Research } from "@/config/api.js";
-	import purchaserReportListMixins from "../components/purchaser-report-list-mixins.js";
-	export default {
-		data() {
-			return {
-				collectionList: [], //用户收藏
-				newCheckboxValue: [],
-				checkboxGroup: [],
-				status: "loadmore",
-				loadText: {
-				  loadmore: "上拉加载更多",
-				  loading: "加载中",
-				  nomore: "已经到底了",
-				},
-				page_no: 1,
-				pageSize: 10,
-				haveData: true,
-			}
-		},
-		// purchaserReportListMixins 混入了 收藏、作者详情、文章详情、主题详情-method
-		mixins:[purchaserReportListMixins],
-		onLoad(option) {
-			this.researchArticleTypeList();
-			// this.researchArticleNewList()
-			this.loadShare(option);
-		},
-		/** 用户点击分享 */
-		onShareAppMessage: function (res) {
-		  return {
-		    title: "最新报告",
-		    path: "pages-purchaser/lastestReport/lastestReport?ArticleTypeIds=" + this.newCheckboxValue.join(","),
-		  };
-		},
-		methods: {
-			loadShare(option){
-				this.newCheckboxValue = option.ArticleTypeIds?option.ArticleTypeIds.split(',') || []:[]
-				this.researchArticleNewList();
-			},
-			// 复选框组的选择事件
-			checkboxChange(e) {
-			  this.newCheckboxValue = e.detail;
-			  this.page_no = 1;
-			  this.researchArticleNewList();
-			},
-			// 获取最新下的文章类型
-			async researchArticleTypeList() {
-			  const res = await Research.researchArticleTypeList();
-			  if (res.Ret === 200) {
-			    this.checkboxGroup = res.Data.List;
-			  }
-			},
-			// 获取最新的文章列表
-			async researchArticleNewList() {
-			  const res = await Research.researchArticleNewList({
-			    PageSize: this.pageSize,
-			    CurrentIndex: this.page_no,
-			    ArticleTypeIds: this.newCheckboxValue.join(","),
-			  });
-			  if (res.Ret === 200) {
-			    this.status = res.Data.Paging.IsEnd ? "nomore" : "loadmore";
-			    this.collectionList = this.page_no === 1 ? res.Data.List || [] : [...this.collectionList, ...res.Data.List];
-			    if (this.page_no == 1) {
-			      this.haveData = this.collectionList.length ? true : false;
-			    }
-			  }
-			},
-		},
-		onReachBottom() {
-		  if (this.status == "nomore") return;
-		  this.status = "loading";
-		  this.page_no++;
-		  this.researchArticleNewList();
-		},
-	}
+import { Research } from "@/config/api.js";
+import purchaserReportListMixins from "../components/purchaser-report-list-mixins.js";
+export default {
+  data() {
+    return {
+      collectionList: [], //用户收藏
+      newCheckboxValue: [],
+      checkboxGroup: [],
+      status: "loadmore",
+      loadText: {
+        loadmore: "上拉加载更多",
+        loading: "加载中",
+        nomore: "已经到底了",
+      },
+      page_no: 1,
+      pageSize: 10,
+      haveData: true,
+    };
+  },
+  // purchaserReportListMixins 混入了 收藏、作者详情、文章详情、主题详情-method
+  mixins: [purchaserReportListMixins],
+  onLoad(option) {
+    this.researchArticleTypeList();
+    // this.researchArticleNewList()
+    this.loadShare(option);
+  },
+  /** 用户点击分享 */
+  onShareAppMessage: function (res) {
+    return {
+      title: "最新报告",
+      path: "pages-purchaser/lastestReport/lastestReport?ArticleTypeIds=" + this.newCheckboxValue.join(","),
+    };
+  },
+  methods: {
+    loadShare(option) {
+      this.newCheckboxValue = option.ArticleTypeIds ? option.ArticleTypeIds.split(",") || [] : [];
+      this.researchArticleNewList();
+    },
+    // 复选框组的选择事件
+    checkboxChange(e) {
+      this.newCheckboxValue = e.detail;
+      this.page_no = 1;
+      this.researchArticleNewList();
+    },
+    // 获取最新下的文章类型
+    async researchArticleTypeList() {
+      const res = await Research.researchArticleTypeList();
+      if (res.Ret === 200) {
+        this.checkboxGroup = res.Data.List;
+      }
+    },
+    // 获取最新的文章列表
+    async researchArticleNewList() {
+      const res = await Research.researchArticleNewList({
+        PageSize: this.pageSize,
+        CurrentIndex: this.page_no,
+        ArticleTypeIds: this.newCheckboxValue.join(","),
+      });
+      if (res.Ret === 200) {
+        this.status = res.Data.Paging.IsEnd ? "nomore" : "loadmore";
+        this.collectionList = this.page_no === 1 ? res.Data.List || [] : [...this.collectionList, ...res.Data.List];
+        if (this.page_no == 1) {
+          this.haveData = this.collectionList.length ? true : false;
+        }
+      }
+    },
+  },
+  onReachBottom() {
+    if (this.status == "nomore") return;
+    this.status = "loading";
+    this.page_no++;
+    this.researchArticleNewList();
+  },
+};
 </script>
 
 <style lang="scss" scoped>
-	@import "../components/purchaser-report-list.scss";
-	.lastest-report-container{
-		background-color: #f7f7f7;
-		padding-top: 20rpx;
-		box-sizing: border-box;
-		.checkbox-ui {
-			width: 100%;
-			padding: 30rpx 0;
-			overflow: hidden;
-			overflow-x: auto;
-			display: flex;
-			border-bottom: 1rpx solid #ececec;
-		}
-	}
+@import "../components/purchaser-report-list.scss";
+.lastest-report-container {
+  background-color: #f7f7f7;
+  padding-top: 20rpx;
+  box-sizing: border-box;
+  .checkbox-ui {
+    width: 100%;
+    padding: 30rpx 0;
+    overflow: hidden;
+    overflow-x: auto;
+    display: flex;
+    border-bottom: 1rpx solid #ececec;
+  }
+}
 </style>
 <style lang="scss">
-	.van-checkbox-group {
-	  display: flex;
-	  flex-wrap: wrap;
-	}
-	
+.van-checkbox-group {
+  display: flex;
+  flex-wrap: wrap;
+}
 </style>

+ 31 - 2
pages-purchaser/noteAndViewpoint/noteAndViewpoint.vue

@@ -15,7 +15,12 @@
       <view class="text-conten">
         <mp-html :content="detailDataForm.Content" />
       </view>
-      <view class="file-item"> 文档名称.docx </view>
+      <block v-if="detailDataForm.Docs && detailDataForm.Docs.length > 0">
+        <view @click="goFilePages(item)" class="file-item" v-for="(item, index) in detailDataForm.Docs" :key="index">
+          <image :src="item.DocIcon"></image>
+          {{ item.DocName }}.{{ item.DocSuffix }}
+        </view>
+      </block>
       <view class="image-conten">
         <image v-for="key in dataProcessing(detailDataForm.ImgUrl)" :key="key" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/Maskgroupbg.png" @click="previewImageMediahandler"></image>
       </view>
@@ -23,7 +28,7 @@
         <text v-for="key in dataProcessing(detailDataForm.Tags)" :key="key">{{ key }}</text>
       </view>
       <view class="collect-conten">
-        <image @click="collectHandler(2)" v-if="detailDataForm.IsCollect==1" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_act.png"></image>
+        <image @click="collectHandler(2)" v-if="detailDataForm.IsCollect == 1" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_act.png"></image>
         <image @click="collectHandler(1)" v-else src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_icon.png"></image>
         {{ detailDataForm.CollectNum }}
       </view>
@@ -70,6 +75,25 @@ export default {
         this.getDetaliData();
       }
     },
+    // 去往预览文件
+    goFilePages(item) {
+        wx.downloadFile({
+        // 示例 url,并非真实存在
+        url: item.DocUrl,
+        success: function (res) {
+          const filePath = res.tempFilePath;
+          wx.openDocument({
+            filePath: filePath,
+            success: function (res) {
+              console.log("打开文档成功");
+            },
+          });
+        },
+      });
+      // uni.navigateTo({
+      //   url: "/pages-purchaser/filePreviewPage/filePreviewPage?url=" + item.DocUrl,
+      // });
+    },
   },
   onLoad(options) {
     this.detailId = Number(options.id) || 0;
@@ -117,6 +141,11 @@ export default {
       align-items: center;
       background-color: #f8f8fa;
       color: #376cbb;
+      image {
+        margin-right: 15rpx;
+        width: 27rpx;
+        height: 27rpx;
+      }
     }
     .image-conten {
       display: flex;

+ 30 - 2
pages-purchaser/toExamine/toExamine.vue

@@ -14,9 +14,13 @@
       </view>
       <view class="title-item"> {{ detailDataForm.Title }}</view>
       <view class="text-conten">
-        {{ detailDataForm.Content }}
+        <mp-html :content="detailDataForm.Content" />
       </view>
-      <view class="file-item"> 文档名称.docx </view>
+      <block v-if="detailDataForm.Docs && detailDataForm.Docs.length > 0">
+        <view @click="goFilePages(item)" class="file-item" v-for="(item, index) in detailDataForm.Docs" :key="index">
+          <image :src="item.DocIcon"></image> {{ item.DocName }}.{{ item.DocSuffix }}
+        </view>
+      </block>
       <view class="image-conten">
         <image v-for="key in detailDataForm.ImgUrl.split(',')" :key="key" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/Maskgroupbg.png" @click="previewImageMediahandler"></image>
       </view>
@@ -112,6 +116,25 @@ export default {
         this.detailDataForm = res.Data;
       }
     },
+    // 去往预览文件
+    goFilePages(item) {
+      wx.downloadFile({
+        // 示例 url,并非真实存在
+        url: item.DocUrl,
+        success: function (res) {
+          const filePath = res.tempFilePath;
+          wx.openDocument({
+            filePath: filePath,
+            success: function (res) {
+              console.log("打开文档成功");
+            },
+          });
+        },
+      });
+      // uni.navigateTo({
+      //   url: "/pages-purchaser/filePreviewPage/filePreviewPage?url=" + item.DocUrl,
+      // });
+    },
   },
   onLoad(options) {
     this.detailId = Number(options.id) || 0;
@@ -159,6 +182,11 @@ export default {
       align-items: center;
       background-color: #f8f8fa;
       color: #376cbb;
+      image {
+        margin-right: 15rpx;
+        width: 27rpx;
+        height: 27rpx;
+      }
     }
     .image-conten {
       display: flex;

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

@@ -14,7 +14,7 @@
     <view class="write-note-content">
       <view class="title-note"> <input v-model="articleTitle" placeholder="请输入标题" /></view>
       <view class="content-note">
-        <editor id="editor" @ready="onEditorReady" v-model="advice_content" placeholder="请输入正文(更轻松的创作,上传文档,请先登录查研观向网页版)" @input="contentChange" />
+        <editor id="editor" v-model="advice_content" placeholder="请输入正文(更轻松的创作,上传文档,请先登录查研观向网页版)" @input="contentChange" />
         <view class="new-lable" @click="showPopup = true">
           <view style="flex-shrink: 0">+ 标签(至少添加一个)</view>
           <view v-for="item in industryCompanyLable" :key="item" class="lable-li active">
@@ -294,25 +294,27 @@ export default {
         this.advice_content = this.detailDataForm.Content;
 
         setTimeout(() => {
-          this.editorCtx.insertText({
-            text: this.detailDataForm.Content,
+          this.editorCtx.setContents({
+            html: this.detailDataForm.Content, //this.EditGoodsDetail.content为赋值内容。
           });
+          // this.editorCtx.insertText({
+          //   text: ,
+          // });
         }, 200);
         this.fileList = this.detailDataForm.ImgUrl ? this.detailDataForm.ImgUrl.split(",") : [];
         this.industryCompanyLable = this.detailDataForm.Tags.split(",");
       }
     },
-    onEditorReady() {
-      uni
-        .createSelectorQuery()
-        .select("#editor")
-        .context((res) => {
-          this.editorCtx = res.context;
-        })
-        .exec();
-    },
   },
   onLoad(options) {
+    uni
+      .createSelectorQuery()
+      .in(this)
+      .select("#editor")
+      .context((res2) => {
+        this.editorCtx = res2.context;
+      })
+      .exec();
     this.detailId = Number(options.id) || 0;
     this.detailId > 0 && this.getDetaliData();
     this.initNavBar();

+ 7 - 0
pages.json

@@ -543,6 +543,13 @@
             "navigationBarTitleText": "笔记详情",
             "enablePullDownRefresh": false
           }
+        },
+        {
+          "path": "filePreviewPage/filePreviewPage",
+          "style": {
+            "navigationBarTitleText": "",
+            "enablePullDownRefresh": false
+          }
         }
       ]
     },

+ 3 - 0
pages/purchaser/purchaser.vue

@@ -34,6 +34,9 @@
             </text>
             <view class="purchaser-content-row-title" :style="{ marginLeft: item.Title.substr(0, 1) != '【' ? '14rpx' : 0 }" @click="goDetail(item)">
               {{ item.Title }}
+              <block v-if="item.SpecialTags">
+                <text style="color: #90aeda" v-for="it in item.SpecialTags.split(',')" class="purchaser-content-row-object" :key="it">#{{ it }}</text>
+              </block>
               <text v-for="it in item.List" class="purchaser-content-row-object" :key="it.IndustrialManagementId" @click.stop="themeDetails(it, '月度收藏榜')">#{{ it.IndustryName }}</text>
             </view>
           </view>