瀏覽代碼

feat: 调整绑定手机号参数

zhangyuhan 5 月之前
父節點
當前提交
141e9be982
共有 1 個文件被更改,包括 10 次插入6 次删除
  1. 10 6
      apps/mobile/src/views/ai-search/index.vue

+ 10 - 6
apps/mobile/src/views/ai-search/index.vue

@@ -696,7 +696,7 @@ function doLookMoreList(item) {
     id: item.id
   })
 }
-function doCellAction(item, type) {
+function doCellAction(item, type, isMore = false) {
   console.log(item)
   if (type === 'reload') {
     doAjaxSendMessage(item.message, type)
@@ -712,7 +712,7 @@ function doCellAction(item, type) {
     }).then((res) => {
       // that.$toast('感谢')
     })
-    trickClick('cell-action-点赞', {
+    trickClick(isMore ? 'cell-action-点赞' : 'cell-action-list-点赞', {
       message: item.message,
       id: item.id
     })
@@ -728,7 +728,7 @@ const moreLike = computed(() => {
 })
 
 function doMoreLike() {
-  doCellAction(moreLike.value, 'zan')
+  doCellAction(moreLike.value, 'zan', 'more')
 }
 
 const pageUserInfo = ref({})
@@ -757,13 +757,17 @@ function checkBindPhone() {
   if (needLogin.value) {
     return openLinkOfOther(LINKS.APP登录页.app, {
       query: {
-        to: 'back'
+        to: 'back',
+        from: that.$route.query.from,
+        activity: that.$route.query.from || that.$route.query.activity
       }
     })
   }
   if (needBindPhone.value) {
     const query = {
-      mode: 'mergeBind'
+      mode: 'mergeBind',
+      from: that.$route.query.from,
+      activity: that.$route.query.from || that.$route.query.activity
     }
     return openAppOrWxPage(LINKS.绑定手机号, { query })
   }
@@ -1251,7 +1255,7 @@ init()
           <div
             class="more-header-icon mini-tip-container"
             :class="{ 'is-active': moreLike.like == 1 }"
-            @click="doMoreLike"
+            @click="doMoreLike('more')"
           >
             <img
               v-show="moreLike.like == 0"