瀏覽代碼

合并master解决冲突

jwyu 2 年之前
父節點
當前提交
bb4e37d99a

+ 12 - 2
src/components/Search.vue

@@ -1,5 +1,5 @@
 <script setup>
-import { computed, ref } from "vue";
+import { computed, ref, watch } from "vue";
 const props=defineProps({
   defaultVal:{
     type:String,
@@ -37,9 +37,19 @@ const handleClean = () => {
   emit('clean')
 };
 const handleSearch = ()=>{
-  if(!searchData.value.length) return
+  if(!searchData.value.length){
+    emit('clean')
+    return
+  }
   emit('search',searchData.value)
 }
+
+watch(
+  ()=>props.defaultVal,
+  ()=>{
+    searchData.value=props.defaultVal
+  }
+)
 </script>
 <template>
   <div :class="['search-wrap',(isFocus||searchData)&&'focus']">

+ 2 - 2
src/layout/component/Header.vue

@@ -111,7 +111,7 @@ const handleContact = async () => {
   if (res.code === 200) {
     console.log("主动申请成功");
   }
-  const htmlStr = `<p>请联系对口销售--${userInfo.value.seal_name}:${userInfo.value.seal_mobile}</p>`;
+  const htmlStr = `<p>请联系对口销售${userInfo.value.seal_name}:${userInfo.value.seal_mobile}</p>`;
   ElMessageBox({
     title: "申请提醒",
     message: htmlStr,
@@ -209,7 +209,7 @@ const handleClickBreadCrumb=(item,index)=>{
               </div>
               <div class="con" v-else>{{ permission_list_str }}</div>
             </div>
-            <div class="flex info-item">
+            <div class="flex info-item" v-if="userInfo.status!='试用'">
               <div class="label">服务截至日期</div>
               <div class="con">{{ lastTime }}</div>
             </div>

+ 5 - 0
src/router/index.js

@@ -269,7 +269,12 @@ router.beforeEach((to, from, next) => {
 	}
   if(to.meta.isRoot){
     store.commit('setBreadCrumb', to)
+  }else{
+    if(store.state.breadCrumbList.length==1){
+      store.commit('modifyBreadCrumb',to.meta.title)
+    }
   }
+  
   document.title=to.meta.title
 	next();
 })

+ 1 - 1
src/store/index.js

@@ -6,7 +6,7 @@ let platform='web'
 if(window.__wxjs_environment === 'miniprogram'){
   platform='xcx'
 }
-const breadcrumb=sessionStorage.getItem('breadcrumb')?JSON.parse(sessionStorage.getItem('breadcrumb')):[{name:'',path:''}]
+const breadcrumb=sessionStorage.getItem('breadcrumb')?JSON.parse(sessionStorage.getItem('breadcrumb')):[{name:'',path:location.pathname||''}]
 
 export default createStore({
   state: {

+ 9 - 0
src/views/activity/Detail.vue

@@ -126,6 +126,15 @@ const formatAudioTime=(e)=>{
 
 // 跳转报告详情
 const goDetail=()=>{
+    if(info.value.is_new_report){
+        router.push({
+            path:'/report/detail',
+            query:{
+                reportId:info.value.report_id
+            }
+        })
+        return
+    }
     let params=info.value.reportLink.split('?')[1]
     let research_report_id=params.split('=')[1]
     router.push({

+ 1 - 1
src/views/activity/applyAuth.js

@@ -44,7 +44,7 @@ export const applyAuth=(res,type,source,fromPage)=>{
         }
     }else if(res.code===403){
         if(res.data.type=='contact'){
-            const htmlStr=`<p>您暂无权限参加此${type},若想参加请联系对口销售<p>${res.data.name}:${res.data.mobile}</p></p>`
+            const htmlStr=`<p>您暂无权限参加此${type},若想参加请联系<p>对口销售${res.data.name}:${res.data.mobile}</p></p>`
             ElMessageBox({
                 title:`${type}提醒`,
                 message:htmlStr,

+ 1 - 1
src/views/report/Detail.vue

@@ -387,7 +387,7 @@ const posterParams=computed(()=>{
                         <!-- 专栏 -->
                         <div v-if="banner.Type=='专栏详情'" class="cloumn-box">
                             <div class="title">{{banner.ClassifyNameSecond.substring(0, 12)}}</div>
-                            <div class="multi-ellipsis user">{{banner.Author}} {{banner.VipTitle}}</div>
+                            <div class="multi-ellipsis user">{{banner.ReportAuthor}} {{banner.VipTitle}}</div>
                             <div class="stage">更新至{{banner.Stage}}期</div>
                         </div>
                         <!-- 报告列表 -->

+ 13 - 13
src/views/report/FiccIntroduce.vue

@@ -72,25 +72,25 @@ let userList=ref([
 <template>
     <div class="ficc-server-introduce">
         <img class="top-img" src="@/assets/ficcServerIntro/top-img.png" alt="">
-        <p style="text-align:center;color: #F3A52F;font-size: 14px;">COMPANY PROFILE</p>
-        <p style="text-align:center;font-size: 18px;font-weight: bold;">公司介绍</p>
-        <p style="font-size: 14px;line-height: 28px;">弘则研究是中国资本市场最优秀的独立研究机构,以研究为内核,为国内及海外的机构投资者提供宏观经济、大类资产、新兴行业及公司分析 和投资策略服务。</p>
-        <p style="font-size: 14px;line-height: 28px;">公司本着独立客观,踏实前瞻的研究态度,主要服务于专业的机构投资者、企业、交易所和政府等非盈利组织。弘则研究的公募基金客户群体覆 盖了国内位居前五十位的基金公司。弘则也为大型央企和优秀民营企业提供研究咨询服务,包括有色、化工、煤炭、钢铁多个品种的全国最大贸易商和厂商。</p>
-        <p style="font-size: 14px;line-height: 28px;">公司核心团队拥有优异的教育背景以及平均8年以上的金融研究或行业经验,并曾在目前市场上有影响力的投资咨询机构担任核心业务或管理职位。现有200余人的团队,总部位于上海,现有美国、新加坡、深圳、北京、杭州、无锡办公室。</p>
-        <p  style="text-align:center;color: #F3A52F;font-size: 14px;margin-top: 80px;">PRODUCT INTRODUCTION</p>
-        <p style="text-align:center;font-size: 18px;font-weight: bold;margin-bottom: 20px;">产品介绍</p>
+        <p style="text-align:center;color: #F3A52F;font-size: 16px;">COMPANY PROFILE</p>
+        <p style="text-align:center;font-size: 20px;font-weight: bold;">公司介绍</p>
+        <p style="font-size: 18px;line-height: 36px;">弘则研究是中国资本市场最优秀的独立研究机构,以研究为内核,为国内及海外的机构投资者提供宏观经济、大类资产、新兴行业及公司分析 和投资策略服务。</p>
+        <p style="font-size: 18px;line-height: 36px;">公司本着独立客观,踏实前瞻的研究态度,主要服务于专业的机构投资者、企业、交易所和政府等非盈利组织。弘则研究的公募基金客户群体覆 盖了国内位居前五十位的基金公司。弘则也为大型央企和优秀民营企业提供研究咨询服务,包括有色、化工、煤炭、钢铁多个品种的全国最大贸易商和厂商。</p>
+        <p style="font-size: 18px;line-height: 36px;">公司核心团队拥有优异的教育背景以及平均8年以上的金融研究或行业经验,并曾在目前市场上有影响力的投资咨询机构担任核心业务或管理职位。现有200余人的团队,总部位于上海,现有美国、新加坡、深圳、北京、杭州、无锡办公室。</p>
+        <p  style="text-align:center;color: #F3A52F;font-size: 16px;margin-top: 80px;">PRODUCT INTRODUCTION</p>
+        <p style="text-align:center;font-size: 20px;font-weight: bold;margin-bottom: 20px;">产品介绍</p>
         <table>
             <tr>
                 <td style="border-color: #F3A52F;color: #F3A52F;font-weight: bold;">服务内容</td>
                 <td style="border-color: #F3A52F;color: #F3A52F;font-weight: bold;">服务形式</td>
                 <td style="border-color: #F3A52F;color: #F3A52F;font-weight: bold;">服务次数</td>
             </tr>
-            <tr v-for="item in table">
-                <td v-for="_item in item" :style="{color:_item.color}">{{_item.name}}</td>
+            <tr v-for="item in table" :key="item">
+                <td v-for="_item in item" :key="_item.name" :style="{color:_item.color}">{{_item.name}}</td>
             </tr>
         </table>
-        <p  style="text-align:center;color: #F3A52F;font-size: 14px;margin-top: 80px;">RESEARCHER INTRODUCTION</p>
-        <p style="text-align:center;font-size: 18px;font-weight: bold;">主要研究员介绍</p>
+        <p  style="text-align:center;color: #F3A52F;font-size: 16px;margin-top: 80px;">RESEARCHER INTRODUCTION</p>
+        <p style="text-align:center;font-size: 20px;font-weight: bold;margin-bottom:30px">主要研究员介绍</p>
         <div class="flex user-wrap">
             <div class="item" v-for="item in userList" :key="item.name">
                 <img :src="item.avatar" alt="">
@@ -121,7 +121,7 @@ let userList=ref([
             text-align: center;
             border: 1px solid #E6E6E6;
             padding: 14px 10px 16px 10px;
-            font-size: 14px;
+            font-size: 18px;
         }
     }
 
@@ -131,7 +131,7 @@ let userList=ref([
         .item{
             width: 25%;
             text-align: center;
-            font-size: 14px;
+            font-size: 18px;
             margin-bottom: 60px;
             img{
                 width: 84px;

+ 2 - 2
src/views/report/Index.vue

@@ -145,8 +145,8 @@ const clickSubType = ({props}) => {
 const handleShowAuthData=(e)=>{
   if(authData.isBuy){
     if(!e.auth_ok){
-      const  htmlStr=`<p>您暂无该品种权限,若想查看请联系对口销售</p>
-                      <p>${authData.contactInfo.name}:<span style="color:#F3A52F">${authData.contactInfo.mobile}</span></p>`
+      const  htmlStr=`<p>您暂无该品种权限,若想查看请联系</p>
+                      <p>对口销售${authData.contactInfo.name}:<span style="color:#F3A52F">${authData.contactInfo.mobile}</span></p>`
       ElMessageBox({
         title:'温馨提醒',
         message:htmlStr,

+ 12 - 1
src/views/report/List.vue

@@ -233,7 +233,7 @@ const posterParams=computed(()=>{
             :isEmpty="reportState.list.length === 0 && reportState.finished" 
             :loading="reportState.loading" 
             @listOnload="onLoad"
-            emptyMsg="找不到对应报告,试试别的搜索词吧"
+            :emptyMsg="reportState.searchVal?'找不到对应报告,试试别的搜索词吧':'暂无报告'"
         >
         <div class="flex list-wrap">
             <div class="flex item" v-for="item in reportState.list" :key="item.report_id" @click="goReportDetail(item)">
@@ -313,6 +313,17 @@ const posterParams=computed(()=>{
 .report-list-page{
     .list-wrap{
         flex-wrap: wrap;
+        justify-content: center;
+        &::after{
+            content:'';
+            display: block;
+            height:0;
+            flex-shrink: 0;
+            width: 380px;
+            margin-bottom: 20px;
+            margin-left: 10px;
+            margin-right: 10px;
+        }
         .item{
             flex-shrink: 0;
             width: 380px;