Browse Source

技术需求

db 2 years ago
parent
commit
0445f452de

+ 2 - 2
config/config.js

@@ -1,5 +1,5 @@
-//export const baseUrl = 'http://8.136.199.33:8500/api';//小程序开发接口地址
-export const baseUrl = 'https://cygx.hzinsights.com/api';//小程序线上接口地址
+export const baseUrl = 'http://8.136.199.33:8500/api';//小程序开发接口地址
+//export const baseUrl = 'https://cygx.hzinsights.com/api';//小程序线上接口地址
 // #ifdef H5
 export const H5baseUrl=process.env.NODE_ENV === 'development'?window.location.origin+'/':baseUrl
 // #endif 

+ 2 - 2
pageMy/reportDetail/reportDetail.vue

@@ -44,8 +44,8 @@ export default {
       access_token: "", //用户标识
       isIphoneX: false, //判断机型
       reportInfo: "",
-      linkurl:'https://details.hzinsights.com/raiReportDtl',//线上链接地址
-      //linkurl: "http://advisoryadmin.brilliantstart.cn/xcx_h5/raiReportDtl", //链接地址
+      //linkurl:'https://details.hzinsights.com/raiReportDtl',//线上链接地址
+      linkurl: "http://advisoryadmin.brilliantstart.cn/xcx_h5/raiReportDtl", //链接地址
       showNav: false,
       id: "",
       isShowTip: false,

+ 2 - 2
pages/pcWebViev/pcWebViev.vue

@@ -12,8 +12,8 @@ export default {
   data() {
     return {
       //url:"http://192.168.2.22:3000/cygx_pc/",//开发
-      //url: "https://cygxpctest.hzinsights.com/cygx_pc", //测试
-      url: 'https://cygxpc.hzinsights.com/cygx_pc', //生产
+      url: "https://cygxpctest.hzinsights.com/cygx_pc", //测试
+      //url: 'https://cygxpc.hzinsights.com/cygx_pc', //生产
       urlPath: "/index",
       queryList: "",
       urlShare: "",

+ 16 - 0
pages/reportForm/components/researchChoose.vue

@@ -136,6 +136,22 @@ export default {
       ],
     };
   },
+  mounted() {
+    uni.$on("updateFllowTheme", (data) => {
+      this.hotList.forEach((item) => {
+        if (item.IndustrialManagementId == data.id) {
+          item.IsFollw = data.isFollw;
+        }
+      });
+    });
+    uni.$on("updateFllowAuthor", (data) => {
+      this.kolList.forEach((item) => {
+        if (item.DepartmentId == data.id) {
+          item.IsFollw = data.isFollw;
+        }
+      });
+    });
+  },
   watch: {
     strategyIndex: {
       handler(val) {

+ 1 - 5
reportPages/authorPages/authorPages.vue

@@ -108,11 +108,7 @@ export default {
             duration: 2000,
           });
         }
-        let pages = getCurrentPages();
-        let prevPage = pages[pages.length - 2];
-        let path = prevPage.$page.fullPath;
-        console.log(path);
-        console.log(prevPage);
+        uni.$emit('updateFllowAuthor',{isFollw:this.isFollw,id:this.list.DepartmentId})
       }
     },
     //收藏

+ 17 - 17
reportPages/reportSearch/reportSearch.vue

@@ -96,26 +96,23 @@
             </block>
           </view>
           <view class="content-report" v-if="radioSelect == '1'">
-            <block v-if="ListYx.length">
+            <block v-if="ListHz.length">
+              <text style="height: 10rpx; background: #ececec"></text>
               <view class="resource">
-                <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/report_Yx.png"></image>
-                <text>研选报告</text>
+                <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/report_Hz.png"></image>
+                <text>弘则报告</text>
               </view>
               <text style="height: 1rpx; background: #ececec"></text>
-              <view class="content-item" v-for="item in ListYx" :key="item.ArticleId">
-                <view class="item-user">
-                  <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/user_report.png"></image>
-                  <text> {{ item.NickName }}</text>
-                </view>
+              <view class="content-item" v-for="item in ListHz" :key="item.ArticleId">
                 <view class="item-title">
                   <text style="display: inline" @click="goDetailReport(item)">
                     {{ item.Title }}
                   </text>
-                  <text class="item-industry" v-if="item.IndustryName" @click="themeDetails(item)">&nbsp;&nbsp;&nbsp;#{{ item.IndustryName }}</text>
+                  <text class="item-industry" @click="themeDetails(item)" v-if="item.IndustryName">&nbsp;&nbsp;&nbsp;#{{ item.IndustryName }}</text>
                 </view>
                 <view class="item-more">
                   <text>{{ item.PublishDate }}</text>
-                  <view class="pv-ollect">
+                  <!-- <view class="pv-ollect">
                     <view>
                       <image class="pv" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/examine_icon.png"></image>
                       {{ item.Pv }}
@@ -125,23 +122,26 @@
                       <image v-else src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_ico.png"></image>
                       {{ item.CollectNum }}人收藏
                     </view>
-                  </view>
+                  </view> -->
                 </view>
               </view>
             </block>
-            <block v-if="ListHz.length">
-              <text style="height: 10rpx; background: #ececec"></text>
+            <block v-if="ListYx.length">
               <view class="resource">
-                <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/report_Hz.png"></image>
-                <text>弘则报告</text>
+                <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/report_Yx.png"></image>
+                <text>研选报告</text>
               </view>
               <text style="height: 1rpx; background: #ececec"></text>
-              <view class="content-item" v-for="item in ListHz" :key="item.ArticleId">
+              <view class="content-item" v-for="item in ListYx" :key="item.ArticleId">
+                <view class="item-user">
+                  <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/user_report.png"></image>
+                  <text> {{ item.NickName }}</text>
+                </view>
                 <view class="item-title">
                   <text style="display: inline" @click="goDetailReport(item)">
                     {{ item.Title }}
                   </text>
-                  <text class="item-industry" @click="themeDetails(item)" v-if="item.IndustryName">&nbsp;&nbsp;&nbsp;#{{ item.IndustryName }}</text>
+                  <text class="item-industry" v-if="item.IndustryName" @click="themeDetails(item)">&nbsp;&nbsp;&nbsp;#{{ item.IndustryName }}</text>
                 </view>
                 <view class="item-more">
                   <text>{{ item.PublishDate }}</text>

+ 1 - 0
reportPages/researchTheme/researchTheme.vue

@@ -97,6 +97,7 @@ export default {
             duration: 2000,
           });
         }
+       uni.$emit('updateFllowTheme',{isFollw:this.isFollw,id:this.themeList.IndustrialManagementId})
       }
     },
     //点击了去关注