Commit 461d276a authored by guang.wu's avatar guang.wu

fix: 修改购物车跳转链接

parent 0d1c0e63
......@@ -111,6 +111,7 @@ export default {
if (isH5Normal && EASY_ENV_IS_BROWSER && this.wxAppId) {
try {
console.log(this.pageInfo.tenantId);
console.log('-----2222222---------');
const [schema] = await api.getMpSchema({
miniUrl: WEAPP_PATH,
params: `url=${encodeURIComponent(JSON.stringify(this.link))}`
......
import { isHarmonyOS } from '@/service/utils.service';
import hostPath from '@/config';
interface Schame {
key: string;
name: string;
......@@ -77,7 +80,7 @@ export const defaultState = {
{
name: '购物车',
icon: 'shopping-cart-o',
url: 'xyqb://shoppingCartTab',
url: isHarmonyOS ? `${hostPath.mallHost}/shopCart` : 'xyqb://shoppingCartTab',
color: '#333',
background: '#fff'
}
......
......@@ -143,6 +143,9 @@ export const isWxMp = ua.match(/miniProgram/i) == 'miniprogram' || (!EASY_ENV_IS
// 判断羊小咩(信用钱包)环境
export const isApp = ua.match(/xyqb/i) == "xyqb";
// 判断羊小咩(harmony)环境
export const isHarmonyOS = /xyqbharmonyos/.test(ua);
// 判断真享生活
export const isVcc = ua.match(/VCC/i) == "vcc";
......
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