Commit e4674d99 authored by Xuguangxing's avatar Xuguangxing

fix

parent 00cde84d
...@@ -13,9 +13,11 @@ export default { ...@@ -13,9 +13,11 @@ export default {
init: router => { init: router => {
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
Cookies.set('h', 0); Cookies.set('h', 0);
if (!to.query.vccToken) { const query = JSON.parse(JSON.stringify(to.query.vccToken));
if (Object.keys(query).indexOf('vccToken') == -1) {
to.query.vccToken = sessionStorage.get('vccToken') || ''; to.query.vccToken = sessionStorage.get('vccToken') || '';
} }
// console.log(to.query, 1);
// 所有自定义路由字段在此处理 // 所有自定义路由字段在此处理
const { meta } = to; const { meta } = to;
isWechat && localStorage.set('vccChannel', '159913'); isWechat && localStorage.set('vccChannel', '159913');
......
...@@ -107,6 +107,12 @@ const mutations = { ...@@ -107,6 +107,12 @@ const mutations = {
confirmButtonText: '打开微信小程序', confirmButtonText: '打开微信小程序',
onConfirm: () => { onConfirm: () => {
// todo 跳转到小程序 // todo 跳转到小程序
// console.log(JSON.stringify(pointer.$route.query), 2);
// console.log(
// `url=${encodeURIComponent(
// JSON.stringify(paramsParentheses(pointer) + '&vccToken={token}')
// )}`
// );
let getScheme = async function() { let getScheme = async function() {
const [res] = await groupBuy.getScheme({ const [res] = await groupBuy.getScheme({
miniUrl: 'pages/groupbuy/webview', miniUrl: 'pages/groupbuy/webview',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment