跳转样式问题

This commit is contained in:
2023-01-10 18:44:39 +08:00
parent aaa2deef85
commit 73acb0bc09
14 changed files with 415 additions and 161 deletions

View File

@@ -25,17 +25,27 @@ Vue.component('face', face)
Vue.component('face-null', faceNull)
Vue.prototype.linkToGoods = function (goodsId, skuId) { // 跳转买家端商品
console.log(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`)
window.open(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
if (localStorage.getItem('storeFlag') == 'false') {
window.open(`${config.PC_STORE_GOODS}goods-operation-edit?id=${goodsId}`, '_blank')
} else {
window.open(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
}
};
Vue.prototype.linkToStore = function (storeId) { // 跳转家端商品
Vue.prototype.linkToStore = function (storeId) { // 跳转家端商品
console.log(`${config.PC_URL}/Merchant?id=${storeId}`)
window.open(`${config.PC_URL}/Merchant?id=${storeId}`, '_blank')
};
// 订单跳转商家订单页面
Vue.prototype.linkToOrders = function (sn) { // 跳转买家端订单
window.open(`${config.STORE_URL}/order-detail?sn=${sn}`, '_blank')
Vue.prototype.linkToOrders = function (sn) {
if (localStorage.getItem('storeFlag') == 'false') {
// 商家
window.open(`${config.PC_STORE_GOODS}order-detail?sn=${sn}`, '_blank')
} else {
// 用户
window.open(`${config.STORE_URL}/OrderDetail?sn=${sn}`, '_blank')
}
};
const Instance = new Vue({
router,
store,