@hbisty/qj-common 5.0.9 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/SiteMsg/index.vue +16 -11
package/package.json
CHANGED
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
/>
|
|
129
129
|
</el-tooltip>
|
|
130
130
|
</div>
|
|
131
|
-
<div class="msg-content-text" v-html="renderContent(msg)"></div>
|
|
131
|
+
<div class="msg-content-text" v-html="renderContent(msg)" @click="handleLinkClick"></div>
|
|
132
132
|
</div>
|
|
133
133
|
|
|
134
134
|
<el-empty
|
|
@@ -217,12 +217,12 @@ export default {
|
|
|
217
217
|
// 平台类型消息跳转处理
|
|
218
218
|
// 订单号:contractBillcode
|
|
219
219
|
// 订单批次号:contractBbillcode
|
|
220
|
-
//
|
|
220
|
+
// 商品编号:goodsNo
|
|
221
221
|
// 售后:refundCode
|
|
222
222
|
if (msg.platform === 'mer') { //商家端
|
|
223
|
-
if (expData.
|
|
224
|
-
const merGoodsPage = "/paas/merchant-pc/index.html#/goodsList?goodsNo=" + expData.
|
|
225
|
-
content = content.replace(expData.
|
|
223
|
+
if (expData.goodsNo) { //商品列表
|
|
224
|
+
const merGoodsPage = "/paas/merchant-pc/index.html#/goodsList?goodsNo=" + expData.goodsNo;
|
|
225
|
+
content = content.replace(expData.goodsNo, `<a href="${merGoodsPage}">${expData.goodsNo}</a>`)
|
|
226
226
|
}
|
|
227
227
|
if (expData.contractBillcode) { //订单号
|
|
228
228
|
if (msg.mnslistBustypeExt === 'mer_service_after_sale_audit') { //退单列表
|
|
@@ -238,9 +238,9 @@ export default {
|
|
|
238
238
|
content = content.replace(expData.businessDes1, `<a href="${merReceivablePage}">${expData.businessDes1}</a>`)
|
|
239
239
|
}
|
|
240
240
|
} else if (msg.platform === 'op') { //运营端
|
|
241
|
-
if (expData.
|
|
242
|
-
const opGoodsPage = "/paas/bbc-bus-pc/index.html#/auCommoditylist?goodsNo=" + expData.
|
|
243
|
-
content = content.replace(expData.
|
|
241
|
+
if (expData.goodsNo) { //商品列表
|
|
242
|
+
const opGoodsPage = "/paas/bbc-bus-pc/index.html#/auCommoditylist?goodsNo=" + expData.goodsNo;
|
|
243
|
+
content = content.replace(expData.goodsNo, `<a href="${opGoodsPage}">${expData.goodsNo}</a>`)
|
|
244
244
|
}
|
|
245
245
|
} else if (msg.platform === 'buy') { //商城端
|
|
246
246
|
if (expData.businessDes1) { //应付账单列表
|
|
@@ -498,9 +498,14 @@ export default {
|
|
|
498
498
|
this.markAllChecked = false
|
|
499
499
|
}
|
|
500
500
|
},
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
501
|
+
handleLinkClick(e) {
|
|
502
|
+
const link = e.target.closest('a')
|
|
503
|
+
if (!link) return
|
|
504
|
+
e.preventDefault()
|
|
505
|
+
const href = link.getAttribute('href')
|
|
506
|
+
window.location.href = href
|
|
507
|
+
window.location.reload()
|
|
508
|
+
|
|
504
509
|
},
|
|
505
510
|
closeDrawer() {
|
|
506
511
|
this.drawerVisible = false
|