瀏覽代碼

活动模块修改

jwyu 1 年之前
父節點
當前提交
3e060f4d7d
共有 2 個文件被更改,包括 23 次插入17 次删除
  1. 11 10
      src/views/activity/Detail.vue
  2. 12 7
      src/views/activity/List.vue

+ 11 - 10
src/views/activity/Detail.vue

@@ -89,15 +89,15 @@ const handleShareMsg=()=>{
     //     }else{
     //         title=this.info.activityName
     //     }
-    let title=''
-    if(info.value.firstActivityTypeId==1){
-        title=info.value.reportName.split('】')[1]||info.value.activityName
-        if(info.value.is_new_report==1){
-            title=info.value.reportName
-        }
-    }else{
-        title=info.value.activityName
-    }
+    let title=info.value.activityName
+    // if(info.value.firstActivityTypeId==1){
+    //     title=info.value.reportName.split('】')[1]||info.value.activityName
+    //     if(info.value.is_new_report==1){
+    //         title=info.value.reportName
+    //     }
+    // }else{
+    //     title=info.value.activityName
+    // }
 
     let shareImg=`${import.meta.env.VITE_APP_API_URL}/activity/getActivityShareImg?activity_id=${info.value.activityId}`//分享海报
 
@@ -342,7 +342,8 @@ const posterParams=computed(()=>{
             <div class="active-time"> 活动时间:{{ formatActivityTime(info.startTime, info.endTime) }}</div>
         </div>
         <div class="flex report-name">
-            <span>{{ info.is_new_report==1?info.reportName:info.reportName?info.reportName.split('】')[1]:info.activityName }}</span>
+            <span>{{ info.activityName }}</span>
+            <!-- <span>{{ info.is_new_report==1?info.reportName:info.reportName?info.reportName.split('】')[1]:info.activityName }}</span> -->
             <div class="global-main-btn" v-if="info.reportLink" @click="goDetail">查看相关报告</div>
         </div>
         <!-- 音频模块 -->

+ 12 - 7
src/views/activity/List.vue

@@ -9,7 +9,7 @@ const router=useRouter()
 
 import {apiActivityList} from '@/api/activity.js'
 let listData=reactive({
-    tabActive:'1',
+    tabActive:'3',
     statusActive: '1',
     onlySeeAuth:false,
     loading:false,
@@ -78,6 +78,7 @@ const init=async ()=>{
         getList()
         hasInit.value=true
     }
+    store.commit('modifyBreadCrumb','线下沙龙')
 }
 init()
 
@@ -293,10 +294,11 @@ onMounted(() => {
   let postData = {
     path: "/pages/activity/activity",
     params:{},
-    title: "弘则FICC周度电话会安排",
+    title: "弘则FICC线下沙龙",
     shareImg:'https://hzstatic.hzinsights.com/static/icon/hzyb/activitylist_share.jpg'
   };
   wx.miniProgram.postMessage({ data: postData });
+  store.commit('modifyBreadCrumb','线下沙龙')
 });
 
 onActivated(()=>{//解决从详情返回到列表 分享时还是详情问题
@@ -304,10 +306,13 @@ onActivated(()=>{//解决从详情返回到列表 分享时还是详情问题
     let postData = {
         path: "/pages/activity/activity",
         params:{},
-        title: "弘则FICC周度电话会安排",
+        title: "弘则FICC线下沙龙",
         shareImg:'https://hzstatic.hzinsights.com/static/icon/hzyb/activitylist_share.jpg'
     };
     wx.miniProgram.postMessage({ data: postData });
+    setTimeout(() => {
+        store.commit('modifyBreadCrumb','线下沙龙')
+    }, 300);
 })
 
 
@@ -349,10 +354,10 @@ const posterParams=computed(()=>{
 <template>
     <div class="activity-list-page">
         <div class="top-nav-wrap">
-            <div class="nav-first">
+            <!-- <div class="nav-first">
                 <span :class="listData.tabActive==1&&'active'" @click="tabChange('1')">报告及线上会议</span>
                 <span :class="listData.tabActive==3&&'active'" @click="tabChange('3')">线下沙龙</span>
-            </div>
+            </div> -->
             <div class="status-box">
                 <span :class="listData.statusActive==1&&'active'" @click="statusChange('1')">本周预告</span>
                 <span :class="listData.statusActive==2&&'active'" @click="statusChange('2')">进行中</span>
@@ -513,11 +518,11 @@ const posterParams=computed(()=>{
         }
     }
     .empty-list{
-        margin-top: 140px;
+        margin-top: 100px;
     }
     .list-wrap{
         border-radius: 4px;
-        margin-top: 140px;
+        margin-top: 100px;
         .item{
             border-bottom: 1px solid #F2F2F2;
             padding: 16px 0;