Prechádzať zdrojové kódy

cps:分享赚钱中转页优化

panyong 3 rokov pred
rodič
commit
cff78d717c

+ 3 - 1
htmldev/cps/src/App.vue

@@ -41,7 +41,9 @@ export default {
   },
   async created () {
     const { name } = this.$route
-    if (name !== 'PaymentCode') {
+    const { redirectUrl } = this.$route.query
+    // 为中转页的时候不调用
+    if (name !== 'PaymentCode' && !redirectUrl) {
       this.$store.dispatch('common/getUserInfo')
       this.$store.dispatch('common/getOrdertype')
     }

+ 1 - 1
htmldev/cps/src/api/request.js

@@ -55,7 +55,7 @@ request.interceptors.request.use(request => {
 
   // 因为微信开发者工具重复授权,本地开发时写死
   if (/^(0|192|10|localhost)/.test(domain)) {
-    request.headers.wechatToken = '52dcbdef70a72bba0e32795a55dbafed'
+    request.headers.wechatToken = '677696fe417ac48ef00d507a08df8457'
   } else {
     request.headers.wechatToken = getCookieValue('fanbutingwechatToken')
   }

+ 5 - 1
htmldev/cps/src/views/marketing/save/index.vue

@@ -82,9 +82,13 @@ export default {
     }
   },
   activated () {
+    const { redirectUrl } = this.$route.query
     if (!this.$route.meta.isUseCache) {
       this.isRefresh = false
-      this.fetchData()
+      // 分享赚钱中转页是首页
+      if (!redirectUrl) {
+        this.fetchData()
+      }
     } else {
       if (this.shopsScroll) {
         this.shopsScroll.refresh()