Pārlūkot izejas kodu

feat: 落地页有权限,按钮文案调整

cuiyalong 1 mēnesi atpakaļ
vecāks
revīzija
a2ba2eeee4

+ 5 - 2
src/web/staticres/bid-fileinter/js/product-introduce.js

@@ -71,7 +71,10 @@ $(function() {
         type: 'POST',
         success: function(res) {
           if (res && Array.isArray(res.data)) {
-            _this.powerList = res.data
+            _this.powerList = res.data.concat
+            if (_this.checkHasYYSZBPower()) {
+              $('.experience-button').text('立即使用')
+            }
           }
         }
       })
@@ -231,7 +234,7 @@ $(function() {
       $('.experience-button').on('click', function() {
         var source = $(this).attr('data-source')
         if (_this.checkHasYYSZBPower()) {
-          this.goToYYSZBPage()
+          _this.goToYYSZBPage()
         } else {
           _this.doLeaveInfo(source)
         }