Commit e4674d99 authored by Xuguangxing's avatar Xuguangxing

fix

parent 00cde84d
......@@ -13,9 +13,11 @@ export default {
init: router => {
router.beforeEach((to, from, next) => {
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') || '';
}
// console.log(to.query, 1);
// 所有自定义路由字段在此处理
const { meta } = to;
isWechat && localStorage.set('vccChannel', '159913');
......
......@@ -107,6 +107,12 @@ const mutations = {
confirmButtonText: '打开微信小程序',
onConfirm: () => {
// todo 跳转到小程序
// console.log(JSON.stringify(pointer.$route.query), 2);
// console.log(
// `url=${encodeURIComponent(
// JSON.stringify(paramsParentheses(pointer) + '&vccToken={token}')
// )}`
// );
let getScheme = async function() {
const [res] = await groupBuy.getScheme({
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