...
|
...
|
@@ -46,10 +46,14 @@ class LinkHandle { |
|
|
let paramsStr = hrefArr[hrefArr.length - 1];
|
|
|
let paramsObj = JSON.parse(paramsStr);
|
|
|
|
|
|
if (paramsObj.action === 'go.productDetail') {
|
|
|
if (paramsObj.action === 'go.productDetail') { // 商品详情页
|
|
|
path = `/pages/goodsDetail/goodsDetail?productSkn=${paramsObj.params.product_skn}&page_name=home`;
|
|
|
} else if (paramsObj.action === 'go.shop') { // 店铺
|
|
|
path = `/pages/goodsList/brandStore?shopId=${paramsObj.params.shop_id}`;
|
|
|
} else {
|
|
|
// TODO
|
|
|
wx.miniProgram.postMessage({
|
|
|
data: 'foo'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return path;
|
...
|
...
|
|