Browse Source

feat: 阳光采购详情页记录跳转来源

cuiyalong 9 months ago
parent
commit
d29b2a29c7

+ 6 - 0
apps/bigmember_pc/src/views/search/sun/model/base.js

@@ -611,6 +611,12 @@ export default function () {
       aHref+= '?kds=' + encodeURIComponent(kds)
     }
 
+    if (aHref.includes('?')) {
+      aHref += '&from=sun'
+    } else {
+      aHref += '?from=sun'
+    }
+
     const id = item.id
     try {
       that.$visited.push({

+ 1 - 0
apps/mobile/src/views/search/result/sun/index.vue

@@ -1505,6 +1505,7 @@ export default {
     goToDetail(item) {
       const { id, industry } = item
       const query = {
+        from: 'sun',
         keywords: this.pageState.splitKeys.join('+'),
       }
       if (industry) {