12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- var consultDialog = new Vue({
- el: '#consultDialog',
- delimiters: ['{', '}'],
- data: function () {
- return {
- isshow: false,
- text: '扫一扫,立即联系客户经理',
- // 扫一扫,立即联系您的专属客服
- url: '',
- img: "",
- vip_img: "",
- isbuy_vip: false,
- isbuy_big: false,
- vipshow: false
- }
- },
- created: function () {
- },
- mounted: function () {
- this.getimage()
- },
- methods: {
- getimage: function () {
- var this_ = this
- $.ajax({
- type: 'POST',
- url: '/bigmember/use/equity',
- data: {
- },
- success: function (res) {
- if (res.data) {
- var customers = res.data.customers
- customers.forEach(function (ele) {
- if (ele.vip == false) {
- this_.img = ele.wxer
- } else if (ele.vip == true) {
- this_.vip_img = ele.wxer
- }
- });
- this_.getstates()
- }
- }
- })
- },
- getstates: function () {
- var this_ = this
- $.ajax({
- type: 'POST',
- url: '/bigmember/use/isAdd',
- data: {
- },
- success: function (res) {
- if (res.data) {
- if (res.data.vipStatus > 0) {
- this_.isbuy_vip = true
- } else {
- this_.isbuy_vip = false
- }
- if (res.data.memberStatus > 0) {
- this_.isbuy_big = true
- } else {
- this_.isbuy_big = false
- }
- }
- if(this_.isbuy_big){
- this_.url = this_.vip_img
- this_.text='扫一扫,立即联系您的专属客服'
- }else{
- this_.url = this_.img
- this_.text='扫一扫,立即联系客户经理'
- }
- }
- })
- },
- close: function (val) {
- this[val] = false
- },
- }
- })
|