clubinfo.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. * Created by xw on 2020/7/22.
  3. */
  4. var InformationPage = new Vue({
  5. el:"#informationPage",
  6. data: {
  7. clubId:0,
  8. clubInfo:{},
  9. saleName:''// 分配销售人名称
  10. },
  11. filters: {
  12. FirstFormat: function(type) {
  13. //处理金额
  14. let name = ''
  15. switch (type) {
  16. case 1:
  17. name = '医美'
  18. break
  19. case 2:
  20. name = '生美'
  21. break
  22. case 3:
  23. name = '项目公司'
  24. break
  25. case 4:
  26. name = '个人'
  27. break
  28. case 5:
  29. name = '其他'
  30. break
  31. }
  32. return name
  33. },
  34. TwoFormat: function(type) {
  35. //处理金额
  36. let text = ''
  37. switch (type) {
  38. case 1:
  39. text = '诊所'
  40. break
  41. case 2:
  42. text = '门诊'
  43. break
  44. case 3:
  45. text = '医院'
  46. break
  47. }
  48. return text
  49. }
  50. },
  51. methods: {
  52. userClubRecordLinkage: function () {
  53. var _this = this;
  54. UserApi.userClubRecordLinkage({clubId: _this.clubId}, function (response) {
  55. if (response.code == 0) {
  56. _this.saleName = response.data.saleName;
  57. _this.clubInfo = response.data.club;
  58. } else {
  59. console.log('获取机构信息异常')
  60. }
  61. })
  62. }
  63. },
  64. created: function () {
  65. },
  66. mounted: function () {
  67. var _this = this;
  68. _this.clubId = getUrlParam("clubId");
  69. _this.userClubRecordLinkage();
  70. }
  71. });