diff --git a/components/foot-tab.vue b/components/foot-tab.vue index b75b261..4c53f22 100644 --- a/components/foot-tab.vue +++ b/components/foot-tab.vue @@ -116,6 +116,7 @@ if(!this.jieDuan){ let isAuth = this.$toolAll.tools.returnAuth() if(!isAuth){ + this.$requst.post('user/rand-bind-service').then(res=>{}) this.$toolAll.tools.closeTimer()//清空埋点倒计时 // uni.navigateTo({url:'/pages/tabbar/pagehome/pagehome'}) this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{}) diff --git a/components/public-customer.vue b/components/public-customer.vue index 3fa2d8b..d02f8e0 100644 --- a/components/public-customer.vue +++ b/components/public-customer.vue @@ -36,6 +36,7 @@ }, methods:{ lianK(){ + this.$requst.post('user/rand-bind-service').then(res=>{}) this.$toolAll.tools.closeTimer()//清空埋点倒计时 this.$requst.post('user/record',{type:'other',action:'ask',id:this.nid}).then(res=>{},error=>{}) let maiOjb = { diff --git a/pages.json b/pages.json index 0ffb59a..048b7e3 100644 --- a/pages.json +++ b/pages.json @@ -154,6 +154,15 @@ "enablePullDownRefresh": false } + } + ,{ + "path" : "customerCheck/customerCheck", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + } ] } diff --git a/pages/login/login.vue b/pages/login/login.vue index 440cc09..25a7b26 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -18,7 +18,7 @@ 请授权绑定手机号 - 暂不绑定 + 暂不绑定 立即绑定 diff --git a/pages/tabbar/my/my.vue b/pages/tabbar/my/my.vue index 43cd842..78485df 100644 --- a/pages/tabbar/my/my.vue +++ b/pages/tabbar/my/my.vue @@ -41,7 +41,7 @@ 员工功能 - + {{itemy.title}} @@ -110,6 +110,7 @@ {src:'/static/public/keh.png',title:'客户列表',rule:'customer-list'}, {src:'/static/public/zu.png',title:'用户足迹',rule:'footmarks'}, {src:'/static/public/scan.png',title:'扫码签到',rule:'scan'}, + {src:'/static/public/customer-check.png',title:'客服查询',rule:'customer-list'}, ], toolsList:[ {src:'/static/public/zyuy.png',title:'自助预约',num:''}, @@ -285,18 +286,17 @@ }, chooseYitem(index){//员工功能事件 // console.log('当前选项:',this.yuanList[index].title); - switch (index){ - case 0: + if(this.yuanList[index].title=='客户列表') { uni.navigateTo({ url:'/pagesB/customerList/customerList' }) - break; - case 1: + } + if(this.yuanList[index].title=='用户足迹') { uni.navigateTo({ url:'/pagesB/userFootprint/userFootprint' }) - break; - case 2: + } + if(this.yuanList[index].title=='扫码签到') { wx.scanCode({ // 微信扫码 调起客户端扫码界面进行扫码 complete: (res) => {}, //接口调用结束的回调函数(调用成功、失败都会执行) fail: (res) => {}, //接口调用失败的回调函数 @@ -315,7 +315,11 @@ },error=>{}) } }) - break; + } + if( this.yuanList[index].title=='客服查询') { + uni.navigateTo({ + url:'/pagesB/customerCheck/customerCheck' + }) } }, choosesjf(index){//文章收藏事件、积分、我的分享 diff --git a/pagesB/customerCheck/customerCheck.vue b/pagesB/customerCheck/customerCheck.vue new file mode 100644 index 0000000..3d07da8 --- /dev/null +++ b/pagesB/customerCheck/customerCheck.vue @@ -0,0 +1,124 @@ + + + + + diff --git a/pagesB/customerList/customerList.vue b/pagesB/customerList/customerList.vue index 92be629..f0158e6 100644 --- a/pagesB/customerList/customerList.vue +++ b/pagesB/customerList/customerList.vue @@ -23,7 +23,7 @@ - + {{item.name}} 来源:{{item.come}} @@ -35,8 +35,8 @@ {{item.qudao}} - 分配客服 + 分配客服 + 详细来源:{{item.source_detail}} @@ -86,7 +86,7 @@ // } if(this.total!=this.dataList.length){ this.page++ - this.checkCL() + this.checkCL(this.ntype) } else { if(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表数据') this.isZanw = false @@ -119,8 +119,8 @@ },error=>{}) }, searchEv(){//搜索事件 - this.page = 1 - this.isZanw = true + this.page = 1; + this.isZanw = true; this.checkCL(this.ntype) }, checkLY(){//查询来源渠道事件 @@ -156,7 +156,8 @@ customer:item.service[0], time:item.created_at, qudao:item.tag[0], - service:item.service + service:item.service, + source_detail:item.source_detail } this.dataList.push(cuObj) }) @@ -197,9 +198,10 @@ // console.log('开启下拉'); }, chooseXia(index){ - this.xialCurrent = index - this.ntype = this.xialone[index].name - this.category = this.xialone[index].title + this.xialCurrent = index; + this.ntype = this.xialone[index].name; + console.log(this.ntype); + this.category = this.xialone[index].title; }, chooseXiaT(e){ this.staff_id = e.id diff --git a/pagesB/problemDetail/problemDetail.vue b/pagesB/problemDetail/problemDetail.vue index 0489019..cdeff8e 100644 --- a/pagesB/problemDetail/problemDetail.vue +++ b/pagesB/problemDetail/problemDetail.vue @@ -382,6 +382,7 @@ if(this.haveImg == false) { this.vision = true } else { + this.$requst.post('user/rand-bind-service').then(res=>{}) this.$toolAll.tools.closeTimer()//清空埋点倒计时 this.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{}) let maiOjb = { diff --git a/pagesB/userFootprint/userFootprint.vue b/pagesB/userFootprint/userFootprint.vue index bd2b2eb..d302be9 100644 --- a/pagesB/userFootprint/userFootprint.vue +++ b/pagesB/userFootprint/userFootprint.vue @@ -8,7 +8,7 @@ - + 搜索 diff --git a/static/public/customer-check.png b/static/public/customer-check.png new file mode 100644 index 0000000..5b49a45 Binary files /dev/null and b/static/public/customer-check.png differ