mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 08:25:52 +08:00
fix: 🐛 解决几个已知的bug
This commit is contained in:
@@ -49,10 +49,14 @@ Vue.prototype.linkTo = function (goodsId, skuId) {
|
||||
|
||||
window.open(src, "_blank");
|
||||
};
|
||||
Vue.prototype.wapLinkTo = function (goodsId, skuId) { // app端二维码
|
||||
return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`
|
||||
Vue.prototype.wapLinkTo = function (goodsId, skuId) {
|
||||
// app端二维码
|
||||
if (skuId) {
|
||||
return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`;
|
||||
} else {
|
||||
return `${WAP_URL}/pages/product/goods?goodsId=${goodsId}`;
|
||||
}
|
||||
};
|
||||
|
||||
// 引入价格格式化组件
|
||||
import priceColorScheme from 'price-color'
|
||||
Vue.use(priceColorScheme);
|
||||
|
||||
Reference in New Issue
Block a user