Showing
1 changed file
with
6 additions
and
2 deletions
@@ -46,10 +46,14 @@ class LinkHandle { | @@ -46,10 +46,14 @@ class LinkHandle { | ||
46 | let paramsStr = hrefArr[hrefArr.length - 1]; | 46 | let paramsStr = hrefArr[hrefArr.length - 1]; |
47 | let paramsObj = JSON.parse(paramsStr); | 47 | let paramsObj = JSON.parse(paramsStr); |
48 | 48 | ||
49 | - if (paramsObj.action === 'go.productDetail') { | 49 | + if (paramsObj.action === 'go.productDetail') { // 商品详情页 |
50 | path = `/pages/goodsDetail/goodsDetail?productSkn=${paramsObj.params.product_skn}&page_name=home`; | 50 | path = `/pages/goodsDetail/goodsDetail?productSkn=${paramsObj.params.product_skn}&page_name=home`; |
51 | + } else if (paramsObj.action === 'go.shop') { // 店铺 | ||
52 | + path = `/pages/goodsList/brandStore?shopId=${paramsObj.params.shop_id}`; | ||
51 | } else { | 53 | } else { |
52 | - // TODO | 54 | + wx.miniProgram.postMessage({ |
55 | + data: 'foo' | ||
56 | + }); | ||
53 | } | 57 | } |
54 | 58 | ||
55 | return path; | 59 | return path; |
-
Please register or login to post a comment