|
@@ -1478,10 +1478,6 @@
|
|
var winnerLimit = limit.winnerLimit || 100
|
|
var winnerLimit = limit.winnerLimit || 100
|
|
var agencyLimit = limit.agencyLimit || 100
|
|
var agencyLimit = limit.agencyLimit || 100
|
|
var wordsLimit = limit.countLimit
|
|
var wordsLimit = limit.countLimit
|
|
- var kefu = {
|
|
|
|
- qr: ''
|
|
|
|
- }
|
|
|
|
- console.log(limit);
|
|
|
|
var dataNode = new Vue({
|
|
var dataNode = new Vue({
|
|
delimiters: ['${', '}'],
|
|
delimiters: ['${', '}'],
|
|
el: '#conditions-box',
|
|
el: '#conditions-box',
|
|
@@ -1553,9 +1549,11 @@
|
|
focus: false,
|
|
focus: false,
|
|
list: []
|
|
list: []
|
|
},
|
|
},
|
|
|
|
+ kefuInfo: {}
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
$('.dataExport_table').css('display', 'block')
|
|
$('.dataExport_table').css('display', 'block')
|
|
|
|
+ this.getKefuInfo()
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
window.addEventListener('scroll', this.handleScroll, true)
|
|
window.addEventListener('scroll', this.handleScroll, true)
|
|
@@ -1657,6 +1655,19 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
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) {
|
|
toDetail (data, str) {
|
|
if(str === '1') {
|
|
if(str === '1') {
|
|
$('#buyerInput').val(data)
|
|
$('#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 () {
|
|
$('.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')
|
|
var $img = $('.custom-service-wximg-img')
|
|
- $img.attr('src', kefu.qr)
|
|
|
|
|
|
+ $img.attr('src', kefuInfo.wxer)
|
|
}
|
|
}
|
|
$('.custom-service-wximg').show()
|
|
$('.custom-service-wximg').show()
|
|
})
|
|
})
|