/** * Created by xw on 2020/7/22. */ var InformationPage = new Vue({ el:"#informationPage", data: { clubId:0, clubInfo:{}, saleName:''// 分配销售人名称 }, filters: { FirstFormat: function(type) { //处理金额 let name = '' switch (type) { case 1: name = '医美' break case 2: name = '生美' break case 3: name = '项目公司' break case 4: name = '个人' break case 5: name = '其他' break } return name }, TwoFormat: function(type) { //处理金额 let text = '' switch (type) { case 1: text = '诊所' break case 2: text = '门诊' break case 3: text = '医院' break } return text } }, methods: { userClubRecordLinkage: function () { var _this = this; UserApi.userClubRecordLinkage({clubId: _this.clubId}, function (response) { if (response.code == 0) { _this.saleName = response.data.saleName; _this.clubInfo = response.data.club; } else { console.log('获取机构信息异常') } }) } }, created: function () { }, mounted: function () { var _this = this; _this.clubId = getUrlParam("clubId"); _this.userClubRecordLinkage(); } });