Browse Source

feat: 物业专版文案调整

cuiyalong 3 weeks ago
parent
commit
893a9a72cf
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/web/templates/frontRouter/pc/brand/free/property.html

+ 9 - 1
src/web/templates/frontRouter/pc/brand/free/property.html

@@ -171,6 +171,9 @@ $(function () {
         success: function(res) {
           if (res && Array.isArray(res.data)) {
             _this.powerList = res.data
+            if (_this.checkPower()) {
+              $('.contact_content button').text('立即使用')
+            }
           }
         }
       })
@@ -179,10 +182,15 @@ $(function () {
       var options = options || {}
       simpleLeaveSource.doLeaveInfo(source, options)
     },
+    checkPower: function () {
+      var _this = this
+      var power = 'bi_yx_wyzb'
+      return Array.isArray(_this.powerList) && this.powerList.indexOf(power) !== -1
+    },
     initEvents: function() {
       var _this = this
       $('.contact button').on('click', function() {
-        if (Array.isArray(_this.powerList) && _this.powerList.indexOf('bi_yx_wyzb') !== -1) {
+        if (_this.checkPower()) {
           _this.toProductPage()
         } else {
           _this.doLeaveInfo('pc_property_consult')