bd 2 years ago
parent
commit
62c22f1433

+ 5 - 0
App.vue

@@ -205,6 +205,11 @@ button {
     height: 162rpx;
     margin-bottom: 50rpx;
   }
+  .nodata_img {
+    width: 374rpx;
+    height: 288rpx;
+    margin-bottom: 50rpx;
+  }
 }
 .nodata2 {
   margin-top: 300rpx;

+ 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

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

+ 23 - 20
pages/reportForm/components/researchChoose.vue

@@ -30,11 +30,11 @@
         <view class="user-li" v-for="(item, index) in collectionList" :key="item.ArticleId">
           <view class="li-item">
             <text class="li-serial" :style="{ background: serialBackground(index) }">
-              {{ index }}
+              {{ index + 1 }}
             </text>
             <view>
               <text @click="goDetail(item)" style="display: inline">{{ item.Title }}</text>
-              <text class="li-industry"  @click="themeDetails(item)"> # {{ item.IndustryName }} </text>
+              <text class="li-industry" @click="themeDetails(item)"> # {{ item.IndustryName }} </text>
             </view>
           </view>
           <view class="li-item li-bottom" style="color: #999999">
@@ -52,7 +52,7 @@
               <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.MyCollectNum }}人收藏 </text>
+                <text class=""> {{ item.CollectNum }}人收藏 </text>
               </view>
             </view>
           </view>
@@ -61,16 +61,16 @@
       <view class="content-ul" v-if="hotList.length && tagActive == '主题'">
         <view class="hot-li" v-for="(item, index) in hotList" :key="item.IndustrialManagementId">
           <view class="li-item hot-item">
-            <view style="display: flex" class="text_oneLine hot-new"  @click="themeDetails(item)">
+            <view style="display: flex" class="text_oneLine hot-new" @click="themeDetails(item)">
               <text class="li-serial serial-number" :style="{ background: serialBackground(index) }">
-                {{ index }}
+                {{ index + 1 }}
               </text>
               <text class="text_oneLine" style="display: inline"> # {{ item.IndustryName }} </text>
-            <image class="new-img" v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/new_icon.png" ></image>
+              <image class="new-img" v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/new_icon.png"></image>
             </view>
             <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item, '主题')">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
           </view>
-          <view class="li-item read-more"  @click="themeDetails(item)">
+          <view class="li-item read-more" @click="themeDetails(item)">
             <text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
               {{ val.SubjectName }}
             </text>
@@ -80,17 +80,17 @@
       <view class="content-ul" v-if="kolList.length && tagActive == '专家'">
         <view class="kol-li" v-for="(item, index) in kolList" :key="item.DepartmentId">
           <text class="li-serial serial-number" :style="{ background: serialBackground(index) }">
-            {{ index }}
+            {{ index + 1 }}
           </text>
-          <image  @click="authorDetails(item)" :src="item.ImgUrl"></image>
+          <image @click="authorDetails(item)" :src="item.ImgUrl" v-if="item.ImgUrl"></image>
           <view class="li-item kol-item">
             <view class="item-top">
-              <text  @click="authorDetails(item)">
+              <text @click="authorDetails(item)">
                 {{ item.NickName }}
               </text>
               <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item, '专家')">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
             </view>
-            <text  @click="themeDetails(val)" class="kol-text text_oneLine" v-for="val in item.List" :key="val.IndustrialManagementId"> # {{ val.IndustryName }} </text>
+            <text @click="themeDetails(val)" class="kol-text text_oneLine" v-for="val in item.List" :key="val.IndustrialManagementId"> # {{ val.IndustryName }} </text>
           </view>
         </view>
       </view>
@@ -214,10 +214,10 @@ export default {
           this.$parent.goFollowShow = true;
           this.$parent.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
           if (res.Data.GoFollow) {
-            this.$parent.accounts = `${val === "主题" ? "产业" : "作者"}关注成功 <br> 想要及时获取该${val === "主题" ? "产业内容的更新推送" : "作者的报告更新提示"},请关注【查研观向小助手】公众号`;
+            this.$parent.accounts = `${val == "主题" ? "产业" : "作者"}关注成功 <br> 想要及时获取该${val === "主题" ? "产业内容的更新推送" : "作者的报告更新提示"},请关注【查研观向小助手】公众号`;
             this.$parent.isCancelBtn = true;
           } else {
-            this.$parent.accounts = val === "主题" ? "产业" : "作者" + "关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
+            this.$parent.accounts = `${val == "主题" ? "产业" : "作者"}` + `关注成功<br>请关注【查研观向小助手】公众号,及时获取${val === "主题" ? "产业" : "作者"}报告更新提醒`;
           }
         } else {
           uni.showToast({
@@ -240,13 +240,13 @@ export default {
       if (res.Ret === 200) {
         item.IsCollect = !item.IsCollect;
         item.IsCollect
-          ? (item.MyCollectNum += 1) &&
+          ? (item.CollectNum += 1) &&
             uni.showToast({
               title: "收藏成功",
               icon: "none",
               duration: 2000,
             })
-          : (item.MyCollectNum -= 1);
+          : (item.CollectNum -= 1);
         !item.IsCollect &&
           uni.showToast({
             title: "已取消收藏",
@@ -266,11 +266,12 @@ export default {
       this.$store.dispatch("checkHandle", "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId);
     },
     //去往主题详情
-    themeDetails(item){
-       this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + item.IndustrialManagementId);
+    themeDetails(item) {
+      this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + item.IndustrialManagementId);
     },
     //计算遍历的颜色
     serialBackground(index) {
+      index += 1;
       return index == 1 ? "#D7584F" : index == 2 ? "#E98033" : index == 3 ? "#FDD367" : "#D3D3D3";
     },
   },
@@ -348,12 +349,13 @@ export default {
         border-radius: 8rpx;
         margin: 0 20rpx 0 15rpx;
         overflow: hidden;
+        flex-shrink: 0;
       }
     }
     .kol-item {
       display: flex;
       flex-wrap: wrap;
-      flex: 1;
+      width: 480rpx;
       height: 120rpx;
       align-items: baseline;
       margin-bottom: 20rpx;
@@ -368,9 +370,10 @@ export default {
       .kol-text {
         width: 50%;
         margin-top: 10rpx;
+        flex-shrink: 0;
       }
     }
-    
+
     .li-serial {
       width: 26rpx;
       height: 26rpx;
@@ -383,7 +386,7 @@ export default {
       flex-shrink: 0;
     }
     .serial-number {
-      margin-top: 0!important;
+      margin-top: 0 !important;
     }
     .li-item {
       display: flex;

+ 1 - 1
pages/reportForm/reportForm.vue

@@ -499,7 +499,7 @@ export default {
     }),
     /* 搜索 */
     async goSearch() {
-      await this.$store.dispatch("checkHandle", "/reportPages/reportSearch/reportSearch");
+      await this.$store.dispatch("checkHandle", "/reportPages/reportSearch/reportSearch?id="+this.tabAct_id);
     },
     /* 初始 */
     initList() {

+ 2 - 2
reportPages/authorPages/authorPages.vue

@@ -5,8 +5,8 @@
         <image :src="list.ImgUrl"></image>
         <text class="">{{ list.NickName }}</text>
       </view>
-      <text :class="isFollw ? 'cancel-attention' : 'attention'" @click="isAttention">
-        {{ isFollw ? "取消关注" : "+ 关注" }}
+      <text :class="!isFollw ? 'cancel-attention' : 'attention'" @click="isAttention">
+        {{ isFollw ? "+ 关注": "取消关注"  }}
       </text>
     </view>
     <view class="author-num">

+ 3 - 2
reportPages/recentPages/recentPages.vue

@@ -4,10 +4,10 @@
       <view class="li-item hot-item">
         <view style="display: flex" class="text_oneLine hot-new" @click="themeDetails(item)">
           <text class="li-serial" :style="{ background: serialBackground(index) }">
-            {{ index }}
+            {{ index + 1 }}
           </text>
           <text class="text_oneLine" style="display: inline"> # {{ item.IndustryName }} </text>
-          <image class="new-img" v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/new_icon.png"></image>
+          <image  class="new-img" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/host_report.png"></image>
         </view>
         <text :class="item.IsFollw ? 'cancel-attention' : 'attention'" @click="isAttention(item)">{{ item.IsFollw ? "取消关注" : "+ 关注" }}</text>
       </view>
@@ -89,6 +89,7 @@ export default {
     },
     //计算遍历的颜色
     serialBackground(index) {
+      index += 1;
       return index == 1 ? "#D7584F" : index == 2 ? "#E98033" : index == 3 ? "#FDD367" : "#D3D3D3";
     },
     //去往主题详情

+ 15 - 6
reportPages/reportSearch/reportSearch.vue

@@ -39,7 +39,9 @@
             <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/empty_ico.png" class="empty_ico" @click="clearHistory"></image>
           </view>
           <view class="targetList">
-            <view class="target-item" v-for="(item, index) in historySearchList" :key="index" @click="chooseTarget(item)"># {{ item }}</view>
+            <block v-for="(item, index) in historySearchList" :key="index">
+              <view v-if="index < 8" class="target-item" @click="chooseTarget(item)"># {{ item }}</view>
+            </block>
           </view>
         </view>
       </template>
@@ -51,7 +53,7 @@
                 <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/zybico.jpg"></image>
                 <text>弘则资源包</text>
               </view>
-              <text style="height: 10rpx; background: #ececec"></text>
+              <text style="height: 1rpx; background: #ececec"></text>
               <view class="list-ui" v-for="item in ListHz" :key="item.IndustrialManagementId" @click="themeDetails(item)">
                 <view class="item-title">
                   <text>
@@ -70,10 +72,12 @@
               </view>
             </block>
             <block v-if="ListYx.length">
+              <text style="height: 10rpx; background: #ececec"></text>
               <view class="resource">
                 <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/zybico.jpg"></image>
                 <text>研选主题</text>
               </view>
+              <text style="height: 1rpx; background: #ececec"></text>
               <view class="list-ui" v-for="item in ListYx" :key="item.IndustrialManagementId" @click="themeDetails(item)">
                 <view class="item-title">
                   <text>
@@ -134,10 +138,10 @@
               </view>
               <text style="height: 1rpx; background: #ececec"></text>
               <view class="content-item" v-for="item in ListHz" :key="item.ArticleId">
-                <view class="item-user">
+                <!--    <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> -->
                 <view class="item-title">
                   <text style="display: inline" @click="goDetailReport(item)">
                     {{ item.Title }}
@@ -163,7 +167,7 @@
           </view>
         </block>
         <view class="nodata" v-else>
-          <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
+          <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_img"></image>
           <text>未找到您想搜索的内容</text>
           <text> 正式客户可联系销售免费发起新调研主题 </text>
         </view>
@@ -218,7 +222,7 @@ export default {
       shadowStyle: {
         backgroundImage: "none",
       },
-      radioSelect: "1",
+      radioSelect: "",
       ListHz: [],
       ListYx: [],
       goFollowShow: false,
@@ -259,6 +263,10 @@ export default {
       this.SecName = item;
       this.resultList = [];
       this.indList = [];
+      if (!this.historySearchList.includes(this.searchTxt)) {
+        this.historySearchList.unshift(this.searchTxt);
+        this.$db.set("historySearchListReport", JSON.stringify(this.historySearchList));
+      }
       this.getDataList();
     },
     // 键盘输入过程中
@@ -379,6 +387,7 @@ export default {
     },
   },
   onLoad(options) {
+    this.radioSelect = options.id == 31 ? "1" : "2";
     if (options.text) {
       this.searchTxt = options.text;
       this.getDataList();

+ 14 - 7
reportPages/researchTheme/researchTheme.vue

@@ -1,8 +1,8 @@
 <template>
   <view class="container theme-content">
     <view class="content-top">
-      <text> # {{ themeList.IndustryName }}</text>
-      <text :class="isFollw ? 'cancel-attention' : 'attention'" class="follw" @click="isAttention">
+      <text class="text_oneLine"> # {{ themeList.IndustryName }}</text>
+      <text :class="!isFollw ? 'cancel-attention' : 'attention'" class="follw" @click="isAttention">
         {{ isFollw ? "取消关注" : "+ 关注" }}
       </text>
     </view>
@@ -12,7 +12,7 @@
       </text>
     </view>
     <view class="content-item" :id="'tabItem-' + item.IndustrialSubjectId" v-for="item in themeList.List" :key="item.ArticleId">
-      <view class="item-user">
+      <view class="item-user" @click="authorDetails(item)">
         <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/user_report.png"></image>
         <text> {{ item.NickName }}</text>
       </view>
@@ -85,10 +85,10 @@ export default {
           this.goFollowShow = true;
           this.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
           if (res.Data.GoFollow) {
-            this.accounts = `产业关注成功 <br> 想要及时获取该产业内容的更新推送,请关注【查研观向小助手】公众号`;
+            this.accounts = `主题关注成功 <br> 想要及时获取该主题内容的更新推送,请关注【查研观向小助手】公众号`;
             this.isCancelBtn = true;
           } else {
-            this.accounts = "产业关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
+            this.accounts = "主题关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
           }
         } else {
           uni.showToast({
@@ -133,6 +133,12 @@ export default {
     goDetail(item) {
       this.$store.dispatch("checkHandle", "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId);
     },
+    //去往作者详情
+    authorDetails(item) {
+      uni.navigateTo({
+        url: "/reportPages/authorPages/authorPages?id=" + item.DepartmentId,
+      });
+    },
     //点击后滚动
     scrollGo(item) {
       uni.pageScrollTo({
@@ -172,12 +178,13 @@ export default {
       height: 48rpx;
       border-radius: 37rpx 37rpx 37rpx 37rpx;
       color: #fff;
-      background: #3385ff;
       font-weight: 400;
       font-size: 24rpx;
+      background-color: #999;
+
     }
     .cancel-attention {
-      background-color: #999;
+      background: #3385ff;
       color: #fff;
       height: 48rpx;
       line-height: 40rpx;