Explorar o código

feat: 商机情报跳转入,添加参数相关

zhangsiya hai 1 ano
pai
achega
b603c25e7e

+ 2 - 0
src/web/staticres/frontRouter/pc/user/js/set_favorite.js

@@ -40,6 +40,7 @@ var favorite = new Vue({
             wxDialogShow: false,
             timer: null,
             currentSwitchKey: null,
+            urlSource: '' // 当前页面来源
         }
     },
     computed: {},
@@ -49,6 +50,7 @@ var favorite = new Vue({
         setTimeout(() => {
           _this.getNewUerSales()
         }, 100)
+       this.urlSource = utils.getParam('source')
     },
     methods: {
        // 获取当前用户是否绑定微信、以及微信二维码

+ 3 - 2
src/web/templates/frontRouter/pc/user/sess/set_favorite.html

@@ -90,8 +90,9 @@
                     </template>
                 </div>
                 <div class="question-form-footer">
-                    <button class="footer-button skip-button" @click="skip">跳过</button>
-                    <button class="footer-button" @click.stop="postNewUerData(true)">开启剑鱼之旅</button>
+                    <button v-if="!urlSource" class="footer-button skip-button" @click="skip">跳过</button>
+                    <button v-if="!urlSource" class="footer-button" @click.stop="postNewUerData(true)">开启剑鱼之旅</button>
+                    <button v-if="urlSource" class="footer-button submit-button" @click.stop="postNewUerData(true)">提交</button>
                 </div>
             </div>
         </main>