Browse Source

Merge branch 'dev/v4.9.31_zsy' of qmx/jy into release/v4.9.31

zhangsiya 1 year ago
parent
commit
bdafdc2247

+ 1 - 0
src/web/staticres/common-module/customer-corner/mobile-template.js

@@ -19,6 +19,7 @@ var customerCornerStyle = `<style>
       opacity: 0.2;
   }
   .customer-corner-component  .content{
+      width:100%;
       height:100%;
       text-align: center;
     }

+ 18 - 20
src/web/templates/pc/dataExport_sieve.html

@@ -1478,10 +1478,6 @@
   var winnerLimit = limit.winnerLimit || 100
   var agencyLimit = limit.agencyLimit || 100
   var wordsLimit =  limit.countLimit
-  var kefu = {
-    qr: ''
-  }
-  console.log(limit);
   var dataNode = new Vue({
     delimiters: ['${', '}'],
     el: '#conditions-box',
@@ -1553,9 +1549,11 @@
           focus: false,
           list: []
       },
+      kefuInfo: {}
     },
     created () {
       $('.dataExport_table').css('display', 'block')
+      this.getKefuInfo()
     },
     mounted () {
       window.addEventListener('scroll', this.handleScroll, true)
@@ -1657,6 +1655,19 @@
       }
     },
     methods: {
+      getKefuInfo () {
+        var _this = this
+        $.ajax({
+          type: 'post',
+          url: '/bigmember/use/getCustom',
+          data: { type: "kf" },
+          success: function (res) {
+            if (res && res.data) {
+              _this.kefuInfo = res.data || {}
+            }
+          }
+        })
+      },
       toDetail (data, str) {
         if(str === '1') {
           $('#buyerInput').val(data)
@@ -2374,26 +2385,13 @@
     }
   })
 
-   function getKefuInfo () {
-    $.ajax({
-      type: 'post',
-      url: '/bigmember/use/getCustom',
-      data: { type: "kf" },
-      success: function (res) {
-        if (res && res.data) {
-          const resData = res.data || {}
-          kefu.qr = resData.wxer
-        }
-      }
-    })
-  }
-  getKefuInfo()
 
 
   $('.customWx').mouseenter(function () {
-    if(kefu && kefu.qr) {
+    var kefuInfo = dataNode.$data &&  dataNode.$data.kefuInfo ? dataNode.$data.kefuInfo : {}
+    if(kefuInfo && kefuInfo.wxer) {
       var $img = $('.custom-service-wximg-img')
-      $img.attr('src', kefu.qr)
+      $img.attr('src', kefuInfo.wxer)
     }
     $('.custom-service-wximg').show()
   })