// miniprogram/information/information.js const app=getApp(); Component({ /** * 组件的属性列表 */ properties: { inforList:{ type: Array, value:[], } }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { wordMsg(e){ let type= this.data.inforList[e.currentTarget.dataset.idx].type; let obj=this.data.inforList[e.currentTarget.dataset.idx]; if(type=='clue'){ wx.navigateTo({ url: '/mycustomer/pages/guestclues/guestclues' }) }else if(type=='register'){ wx.navigateTo({ url: '/mycustomer/pages/managerdata/managerdata?type=4'//员工审核 }) }else if(type=='talkskill'||type=='talkskillCemApprove'){ wx.navigateTo({ url: '/mycustomer/pages/mytalkskill/mytalkskill' }) }else if(type=='fromPool'){ wx.reLaunch({ url: '/pages/customer/customer?type=1' }) }else if(type=='toPool'){ wx.reLaunch({ url: '/pages/customer/customer?type=3' }) }else if(type=='designer'){ wx.navigateTo({ url: "/mycustomer/pages/guestclues/guestclues", }); }else if(type=='returnVisit'){ if(!obj.user_type){ wx.navigateTo({ url: "/mycustomer/pages/customermsg/customermsg?cid=" + obj.data+'&idx=0&manager=1' }); }else{ wx.navigateTo({ url: "/mycustomer/pages/customermsg/customermsg?cid=" + obj.data, }); } } else if (type == 'building') { if (obj.user_type) { wx.navigateTo({ url: "/mycustomer/pages/customermsg/customermsg?cid=" + obj.user_type, }); } else { wx.navigateTo({ url: "/mycustomer/pages/guestclues/guestclues", }); } }else if(type=='notVisit'){ if(app.globalData.personMsg.is_manager==1){ wx.navigateTo({ url: "/pages/other/other?type=-87&time="+obj.addtime.split(' ')[0], }); } } else if (type == 'agentWipen') { wx.navigateTo({ url: "/pages/other/other?type=0111", }); } else if (type == 'trainClass'|| type=='courseTraining') { wx.navigateTo({ url: "/pages/other/other?type=0202&cid=" + obj.data, }); } else if(type == 'correctionPaper'){ wx.navigateTo({ url: "/pages/other/other?type=viewgrades&pid=" + obj.data, }); }else if(type=='spellgroupSuccess'||type=='spellgroupFail'){ wx.navigateTo({ url: "/pages/other/other?type=121", }); }else if(type=='customer'){ wx.navigateTo({ url: '/mycustomer/pages/customermsg/customermsg?cid=' + obj.data }) }else if(type=='activity'){ if(obj.data){ wx.navigateTo({ url: '/index/pages/activitymsg/activitymsg?aid='+obj.data+'<ype=2' }) } }else if(type=='activitySignUp'){ let crmobj=JSON.parse(obj.data); wx.navigateTo({ url: '/index/pages/activitymsg/activitymsg?aid='+crmobj.aid+'<ype=2' }) }else if(type=='share_clue'||type=='material_case'||type=='video'){ wx.navigateTo({ url: '/mycustomer/pages/guestclues/guestclues' }) }else if(type=='assignPaper'){ wx.navigateTo({ url: '/index/pages/school/school?type=313' }) } else if (type == 'customerTransfer') { wx.reLaunch({ url: '/pages/customer/customer?type=1' }) } else if (type == 'constructionApprove') { wx.navigateTo({ url: '/pages/other/other?type=8992' }) } else if (type == 'customerAssign') { wx.navigateTo({ url: "/mycustomer/pages/customermsg/customermsg?cid=" + obj.data, }); } else if (type == 'willDropCustomer') { wx.navigateTo({ url: "/pages/other/other?type=77", }); } } } })