panyong 3 rokov pred
rodič
commit
f99075816d

+ 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 = '0d2ba154ac9db2417d0b1189f9324536'
+    request.headers.wechatToken = '52dcbdef70a72bba0e32795a55dbafed'
   } else {
     request.headers.wechatToken = getCookieValue('fanbutingwechatToken')
   }

+ 4 - 0
htmldev/cps/src/router/index.js

@@ -167,6 +167,10 @@ VueRouter.prototype.push = function push (location, onResolve, onReject) {
 router.beforeEach((to, from, next) => {
   updateWechatToken()
   updateInviteId()
+  const { redirectUrl } = to.query
+  if (redirectUrl && /http/.test(decodeURIComponent(redirectUrl))) {
+    location.replace(decodeURIComponent(redirectUrl))
+  }
   next()
 })
 

+ 1 - 1
htmldev/cps/src/views/invite/index.vue

@@ -59,7 +59,7 @@ export default {
       } catch (err) {}
     },
     showShareTip (obj) {
-      platform.isWeixin && funWxShare(obj.category_name, obj.category_desc, obj.category_img_url, obj.link_url)
+      platform.isWeixin && funWxShare(obj.category_name, obj.category_desc, obj.category_img_url, `${location.origin}${location.pathname}?redirectUrl=${encodeURIComponent(obj.link_url)}`)
       this.booShareTip = true
     }
   },