@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hbisty/qj-common",
3
- "version": "5.0.9",
3
+ "version": "5.1.0",
4
4
  "description": "common files && template for qj-paas",
5
5
  "scripts": {
6
6
  "gulp": "gulp css"
@@ -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
- // 商品Code:goodsCode
220
+ // 商品编号:goodsNo
221
221
  // 售后:refundCode
222
222
  if (msg.platform === 'mer') { //商家端
223
- if (expData.goodsCode) { //商品列表
224
- const merGoodsPage = "/paas/merchant-pc/index.html#/goodsList?goodsNo=" + expData.goodsCode;
225
- content = content.replace(expData.goodsCode, `<a href="${merGoodsPage}">${expData.goodsCode}</a>`)
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.goodsCode) { //商品列表
242
- const opGoodsPage = "/paas/bbc-bus-pc/index.html#/auCommoditylist?goodsNo=" + expData.goodsCode;
243
- content = content.replace(expData.goodsCode, `<a href="${opGoodsPage}">${expData.goodsCode}</a>`)
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
- jumpToProduct(code) {
502
- this.$emit('jump-to-product', code)
503
- this.$message.info(`跳转至商品中心 - 商品管理 - 待审核商品列表,商品编号:${code}`)
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