Bladeren bron

fix: 更新留资插件

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 5 dagen geleden
bovenliggende
commit
0a26fef8c9

File diff suppressed because it is too large
+ 0 - 0
src/web/staticres/common-module/plugins/js/leave-source-vue.umd.js


+ 3 - 9
src/web/staticres/frontRouter/pc/user/js/set_favorite.js

@@ -288,19 +288,13 @@ var favorite = new Vue({
               params['source'] = _this.urlSource || ''
             }
             console.info('params', params)
-            if (window.leaveSourceVue && window.leaveSourceVue.PCLeaveDialog && window.leaveSourceVue.PCLeaveDialog.props) {
-                window.leaveSourceVue.PCLeaveDialog.props.type = '2';
-            }
-
-            if (window.leaveSourceVue && window.leaveSourceVue.PCContentCard && window.leaveSourceVue.PCContentCard.data && 
-                window.leaveSourceVue.PCContentCard.data.confirmPhoneDialog && window.leaveSourceVue.PCContentCard.data.confirmPhoneDialog.props) {
-                window.leaveSourceVue.PCContentCard.data.confirmPhoneDialog.props.type = '2';
-            }
             window.leaveSourceVue.doLeave({
               source: _this.urlSource || 'pc_ServiceList_experience',
               clueText: '新用户留资',
               platform: 'pc',
               props: {
+                type: '2',
+                setClass: 'newUserSale',
                 onPopupVisibleChange: function (visible) {
                   if (!visible) {
                     $.ajax({
@@ -321,7 +315,7 @@ var favorite = new Vue({
                       }
                     })
                   }
-                }
+                },
               }
             })
         },

Some files were not shown because too many files changed in this diff