information.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // miniprogram/information/information.js
  2. const app=getApp();
  3. Component({
  4. /**
  5. * 组件的属性列表
  6. */
  7. properties: {
  8. inforList:{
  9. type: Array,
  10. value:[],
  11. }
  12. },
  13. /**
  14. * 组件的初始数据
  15. */
  16. data: {
  17. },
  18. /**
  19. * 组件的方法列表
  20. */
  21. methods: {
  22. wordMsg(e){
  23. let type= this.data.inforList[e.currentTarget.dataset.idx].type;
  24. let obj=this.data.inforList[e.currentTarget.dataset.idx];
  25. if(type=='clue'){
  26. wx.navigateTo({
  27. url: '/mycustomer/pages/guestclues/guestclues'
  28. })
  29. }else if(type=='register'){
  30. wx.navigateTo({
  31. url: '/mycustomer/pages/managerdata/managerdata?type=4'//员工审核
  32. })
  33. }else if(type=='talkskill'||type=='talkskillCemApprove'){
  34. wx.navigateTo({
  35. url: '/mycustomer/pages/mytalkskill/mytalkskill'
  36. })
  37. }else if(type=='fromPool'){
  38. wx.reLaunch({
  39. url: '/pages/customer/customer?type=1'
  40. })
  41. }else if(type=='toPool'){
  42. wx.reLaunch({
  43. url: '/pages/customer/customer?type=3'
  44. })
  45. }else if(type=='designer'){
  46. wx.navigateTo({
  47. url: "/mycustomer/pages/guestclues/guestclues",
  48. });
  49. }else if(type=='returnVisit'){
  50. if(!obj.user_type){
  51. wx.navigateTo({
  52. url: "/mycustomer/pages/customermsg/customermsg?cid=" + obj.data+'&idx=0&manager=1'
  53. });
  54. }else{
  55. wx.navigateTo({
  56. url: "/mycustomer/pages/customermsg/customermsg?cid=" + obj.data,
  57. });
  58. }
  59. } else if (type == 'building') {
  60. if (obj.user_type) {
  61. wx.navigateTo({
  62. url: "/mycustomer/pages/customermsg/customermsg?cid=" + obj.user_type,
  63. });
  64. } else {
  65. wx.navigateTo({
  66. url: "/mycustomer/pages/guestclues/guestclues",
  67. });
  68. }
  69. }else if(type=='notVisit'){
  70. if(app.globalData.personMsg.is_manager==1){
  71. wx.navigateTo({
  72. url: "/pages/other/other?type=-87&time="+obj.addtime.split(' ')[0],
  73. });
  74. }
  75. } else if (type == 'agentWipen') {
  76. wx.navigateTo({
  77. url: "/pages/other/other?type=0111",
  78. });
  79. } else if (type == 'trainClass'|| type=='courseTraining') {
  80. wx.navigateTo({
  81. url: "/pages/other/other?type=0202&cid=" + obj.data,
  82. });
  83. } else if(type == 'correctionPaper'){
  84. wx.navigateTo({
  85. url: "/pages/other/other?type=viewgrades&pid=" + obj.data,
  86. });
  87. }else if(type=='spellgroupSuccess'||type=='spellgroupFail'){
  88. wx.navigateTo({
  89. url: "/pages/other/other?type=121",
  90. });
  91. }else if(type=='customer'){
  92. wx.navigateTo({
  93. url: '/mycustomer/pages/customermsg/customermsg?cid=' + obj.data
  94. })
  95. }else if(type=='activity'){
  96. if(obj.data){
  97. wx.navigateTo({
  98. url: '/index/pages/activitymsg/activitymsg?aid='+obj.data+'&ltype=2'
  99. })
  100. }
  101. }else if(type=='activitySignUp'){
  102. let crmobj=JSON.parse(obj.data);
  103. wx.navigateTo({
  104. url: '/index/pages/activitymsg/activitymsg?aid='+crmobj.aid+'&ltype=2'
  105. })
  106. }else if(type=='share_clue'||type=='material_case'||type=='video'){
  107. wx.navigateTo({
  108. url: '/mycustomer/pages/guestclues/guestclues'
  109. })
  110. }else if(type=='assignPaper'){
  111. wx.navigateTo({
  112. url: '/index/pages/school/school?type=313'
  113. })
  114. } else if (type == 'customerTransfer') {
  115. wx.reLaunch({
  116. url: '/pages/customer/customer?type=1'
  117. })
  118. } else if (type == 'constructionApprove') {
  119. wx.navigateTo({
  120. url: '/pages/other/other?type=8992'
  121. })
  122. } else if (type == 'customerAssign') {
  123. wx.navigateTo({
  124. url: "/mycustomer/pages/customermsg/customermsg?cid=" + obj.data,
  125. });
  126. } else if (type == 'willDropCustomer') {
  127. wx.navigateTo({
  128. url: "/pages/other/other?type=77",
  129. });
  130. }
  131. }
  132. }
  133. })