Browse Source

feat:pc分流

wangxiaogang 3 years ago
parent
commit
a385ca15b7

BIN
src/web/staticres/frontRouter/pc/mesgCenter/image/sixin@2x.png


+ 8 - 0
src/web/staticres/frontRouter/pc/mesgCenter/js/index-pc.js

@@ -29,6 +29,14 @@ var vm = new Vue({
     this.tabsData('0')
   },
   methods: {
+    kfHref() {
+      var shunt = JSON.parse(localStorage.getItem('kf-shunt-data'))
+      if (shunt.url && shunt.url == 'zcpc') {
+        $('.help-slide-zx.open-customer').trigger('click')
+      } else {
+        location.href = shunt.url + '&mini=1'
+      }
+    },
     kfClick() {
       $('.help-slide-zx.open-customer').trigger('click')
     },

+ 4 - 2
src/web/staticres/public-pc/js/pc-bottom.js

@@ -196,8 +196,10 @@ $(function () {
 $('.help-slide-bottom .open-customer').on('click', function (e) {
   e.stopPropagation()
   var shunt = JSON.parse(localStorage.getItem('kf-shunt-data'))
-  if (shunt.url && shunt.url !== 'zcpc') {
-    location.href = shunt.url
+  if (shunt.url && shunt.url == 'zcpc') {
+    return
+  } else {
+    location.href = shunt.url + '&mini=0'
   }
 })
 var openCustomDig = false

+ 8 - 1
src/web/templates/frontRouter/pc/messageCenter/sess/index.html

@@ -21,7 +21,7 @@
 	{{include "/common/pchead.html"}}
 	  <section class="mesg-container" v-cloak>
         <div class="main-mesg">
-          <h3 @click="kfClick">消息中心</h3>
+          <h3>消息中心</h3>
           <div class="tips" @click="linked(tabsList.lasts.id, tabsList.lasts.link, tabsList.lasts.isRead,1,tabsList.lasts.msg_type,tabsList.lasts.msgLogId)" v-show="tabsList.lasts">
             <div class="imgs">
               <img :src='imgSrcs[tabsList.lasts.msg_type].url' v-if="tabsList.lasts.msg_type">
@@ -76,6 +76,13 @@
                   ></el-pagination>
                 </div>
               </el-tab-pane>
+              <el-tab-pane>
+                <div class="msg-label" slot="label" @click="kfHref">
+                  <img src='{{Msg "seo" "cdn"}}/frontRouter/pc/mesgCenter/image/sixin@2x.png?v={{Msg "seo" "version"}}'>
+                  <!-- <i class="b-item" v-show="item.count">{item.count > 99 ? '99+' : item.count}</i> -->
+                  <p class="words">私信</p>
+                </div>
+              </el-tab-pane>
             </el-tabs>
           </div>
         </div>

+ 1 - 1
src/web/templates/micro/social-pc/index.html

@@ -63,7 +63,7 @@
         [
             {
                 name: 'social-pc',
-                entry: '//localhost:8081/page_social_pc/index.html',
+                entry: '/page_social_pc/index.html',
                 container: '#main-app',
                 activeRule: '/'
             }