|
@@ -147,6 +147,7 @@ var fileRecorder = new Vue({
|
|
|
this.getUserPower()
|
|
|
this.subPoint()
|
|
|
this.subRecord()
|
|
|
+ this.getKefuInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
getUserPower () {
|
|
@@ -158,28 +159,25 @@ var fileRecorder = new Vue({
|
|
|
if (res && res.data) {
|
|
|
for (var key in res.data) {
|
|
|
_this.$set(_this.userPower, key, res.data[key])
|
|
|
- _this.calcKefuInfo()
|
|
|
+ // _this.calcKefuInfo()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- calcKefuInfo: function () {
|
|
|
- var customers = this.userPower.customers
|
|
|
- if (!$.isArray(customers)) {
|
|
|
- return
|
|
|
- }
|
|
|
- var target;
|
|
|
- for (var i = 0; i < customers.length; i++) {
|
|
|
- if (customers[i].remark.indexOf('成功') > -1) {
|
|
|
- target = customers[i]
|
|
|
- break
|
|
|
+ getKefuInfo: function () {
|
|
|
+ var _this = this
|
|
|
+ $.ajax({
|
|
|
+ type: 'post',
|
|
|
+ url: '/bigmember/use/getCustom',
|
|
|
+ success: function (res) {
|
|
|
+ if (res && res.data) {
|
|
|
+ const resData = res.data || {}
|
|
|
+ _this.kefu.qr = resData.wxer
|
|
|
+ _this.kefu.name = resData.remark
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- if (target) {
|
|
|
- this.kefu.qr = target.wxer
|
|
|
- this.kefu.name = target.remark
|
|
|
- }
|
|
|
+ })
|
|
|
},
|
|
|
cellClick (row, column, cell, event) {
|
|
|
console.log(row, column, cell, event)
|