Commit a804e4ed authored by guang.wu's avatar guang.wu

feat: 添加跳转参数

parent b2551092
......@@ -66,7 +66,10 @@ export default {
if (isHarmonyOS) {
return btAttachVal.map(item => {
if (item.persets === '购物车') {
item.url = `${cfg.h5MallHost}/shopCart`
const appChannel = localStorage.get('appChannel') || '';
const token = localStorage.get('vccToken') || '';
const tenantId = localStorage.get('tenantId') || '';
item.url = `${cfg.h5MallHost}/shopCart?vccToken=${token}&tenantId=${tenantId}&appChannel=${appChannel}`;
}
return item;
});
......@@ -124,7 +127,7 @@ export default {
if (isH5Normal && EASY_ENV_IS_BROWSER && this.wxAppId) {
try {
console.log(this.pageInfo.tenantId);
console.log('-----3333333---------');
console.log('-----444444---------');
const [schema] = await api.getMpSchema({
miniUrl: WEAPP_PATH,
params: `url=${encodeURIComponent(JSON.stringify(this.link))}`
......
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