...
|
...
|
@@ -40,7 +40,17 @@ class LinkHandle { |
|
|
* 转换为小程序页面地址
|
|
|
*/
|
|
|
transToPath(href) {
|
|
|
let path = href;
|
|
|
let path = '';
|
|
|
|
|
|
let hrefArr = href.split('?openby:yohobuy=');
|
|
|
let paramsStr = hrefArr[hrefArr.length - 1];
|
|
|
let paramsObj = JSON.parse(paramsStr);
|
|
|
|
|
|
if (paramsObj.action === 'go.productDetail') {
|
|
|
path = `/pages/goodsDetail/goodsDetail?productSkn=${paramsObj.params.product_skn}&page_name=home`;
|
|
|
} else {
|
|
|
// TODO
|
|
|
}
|
|
|
|
|
|
return path;
|
|
|
}
|
...
|
...
|
|