修改我的菜单走接口&&客户列表线索池
This commit is contained in:
@@ -25,6 +25,7 @@ api = {
|
||||
upImg: baseUrl + "upimg", //上传图片
|
||||
appUserUkey: "app/user/ukey", //登录/退出登录
|
||||
appUser: "app/user", //用户信息
|
||||
appUserMenu: "app/user/menu", //用户菜单
|
||||
appSms: "app/sms", //获取验证码
|
||||
appUserTel: "app/user/tel", //获取用户手机号
|
||||
appSeriesAttrs: "app/series/attrs", //获取车型属性
|
||||
@@ -178,6 +179,7 @@ api = {
|
||||
|
||||
appClues: "app/clues", //获取线索列表 获取线索详情
|
||||
appCluesLogs: "app/clueslogs", //线索日志
|
||||
appCluesLock: "app/clues/unlock", //解锁线索
|
||||
|
||||
appSignConf: "app/sign/conf", //签到配置信息
|
||||
appUserConf: "app/sign/userConf", //用户签到配置信息
|
||||
|
||||
@@ -1094,4 +1094,16 @@ apiQuery.appPaic = function(params){
|
||||
})
|
||||
}
|
||||
|
||||
//获取用户中心菜单
|
||||
apiQuery.getUserMenu = function(params){
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(false, Config.api.appUserMenu, 2, params, "GET", resolve, reject)
|
||||
})
|
||||
}
|
||||
//解锁线索
|
||||
apiQuery.putAppCluesLock = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(true, Config.api.appCluesLock, 2, params, "PUT", resolve, reject)
|
||||
})
|
||||
}
|
||||
export default apiQuery;
|
||||
@@ -26,7 +26,6 @@ Page({
|
||||
[key]: options[key]
|
||||
})
|
||||
}
|
||||
|
||||
this.getAppCluesDetails()
|
||||
this.getAppCluesLogs()
|
||||
innerAudioContext.onEnded(() => {
|
||||
|
||||
@@ -81,8 +81,8 @@
|
||||
</view>
|
||||
<view class="fixed left-0 bottom-0 right-0 bg-fff-op90 pl40 pr40 pt20 pb40 z-index-1">
|
||||
<view class="fn-flex text-center fn-flex-between">
|
||||
<view class="fn-flex-item flexsize4 pt20 pb20 btn-36afa2 font-32 color-fff ulib-r750" bindtap="pushLink" data-url="/pages/clues/index">返回列表</view>
|
||||
<view class="fn-flex-item flexsize4 pt20 pb20 btn-36afa2 font-32 color-fff ulib-r750" bindtap="pushLink" data-url="{{ from=='customer' ? '/pages/customer/index':'/pages/clues/index'}}">返回列表</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
+383
-348
File diff suppressed because it is too large
Load Diff
+82
-79
@@ -11,9 +11,6 @@
|
||||
</block>
|
||||
</view>
|
||||
<scroll-view class="mt5 font-32 color-666 text-center space-nowrap" scroll-x="true" wx:else>
|
||||
<view class="pl20 pr20 tabmenu2 {{key == 1?'active color-36afa2':''}}" data-index="{{0}}" bindtap="changeTab">
|
||||
<view class="relative">{{'线索池'}}</view>
|
||||
</view>
|
||||
<block wx:for='{{tab}}' wx:key='list'>
|
||||
<view class="pl20 pr20 tabmenu2 {{key == item.key?'active color-36afa2':''}}" data-index="{{index}}" bindtap="changeTab">
|
||||
<view class="relative">{{item.name}}</view>
|
||||
@@ -26,18 +23,19 @@
|
||||
<view class="pl40 pb15 fn-clear">
|
||||
<view class="fn-fl">
|
||||
<text class="text-middle">共<text class="color-f9394d">{{total}}</text>条</text>
|
||||
<text class="ml20 text-middle font-22"> 排序:</text>
|
||||
<picker class="inline-block text-middle bg-f6 color-666 pt5 pb5 pl15 pr10 ulib-r750 font-22" bindchange="changeSortList" value="{{sortListIndex}}" range="{{sortList}}">
|
||||
<text>{{sortList[sortListIndex]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
<block wx:if="{{ key!= cluesTabKey}}">
|
||||
<text class="ml20 text-middle font-22"> 排序:</text>
|
||||
<picker class="inline-block text-middle bg-f6 color-666 pt5 pb5 pl15 pr10 ulib-r750 font-22" bindchange="changeSortList" value="{{sortListIndex}}" range="{{sortList}}">
|
||||
<text>{{sortList[sortListIndex]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</block>
|
||||
</view>
|
||||
<view class="fn-fr {{key<2?'pr180':'pr40'}} relative">
|
||||
<view class="fn-fr {{key<2?'pr180':'pr40'}} relative" wx:if="{{ key!= cluesTabKey}}">
|
||||
<text bindtap="showfilter" class="inner5 iconfont icon-gaojisousuo ml10"></text>
|
||||
<view bindtap="pushLink" data-url="/pages/customer/addCard/index?status={{key}}" class="absolute right-0 box-middle pt10 pb10 pl10 pr30 space-nowrap bg-333 font-22 color-fff ulib-rl750" wx:if="{{key<2}}"><i class="iconfont mr5 icon-jia"></i>客户建卡</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="pl20 pr20 fn-flex fn-flex-wrap">
|
||||
<view class="inline-block text-middle bg-f6 color-666 mb15 ml5 mr5 pt5 pb5 pl20 pr20 ulib-r10 font-22" wx:if="{{cus_id}}">{{cus_id}}</view>
|
||||
<view class="inline-block text-middle bg-f6 color-666 mb15 ml5 mr5 pt5 pb5 pl20 pr20 ulib-r10 font-22" wx:if="{{name}}">{{name}}</view>
|
||||
@@ -68,80 +66,85 @@
|
||||
</view>
|
||||
|
||||
<view class="mt10 pl30 pr30">
|
||||
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden">
|
||||
<view class="relative pr180">
|
||||
<view class="font-32">
|
||||
<text class="text-middle">{{'客户'}}</text>
|
||||
<text class="text-middle font-26 color-666">({{'12233336666'}})</text>
|
||||
</view>
|
||||
<view class="absolute right-0 top-0">
|
||||
<view class="font-26 mt10" style="color:#f63c51">{{'距转派还剩4小时23分'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="relative">
|
||||
<view class="mt25 fn-clear font-28 pr180">
|
||||
<view class="fn-fl color-333 mr15">{{'入池时间'}}</view>
|
||||
<view class="fn-fl color-666">{{'2023-04-12'}}</view>
|
||||
</view>
|
||||
<view class="mt25 fn-clear font-28 pr180">
|
||||
<view class="fn-fl color-333 mr15">{{'意向车型'}}</view>
|
||||
<view class="fn-fl color-666">{{'比亚迪·宋·2023款'}}</view>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle">
|
||||
<!-- <view class="font-26 mt10" style="color:#f63c51">{{'距转派还剩4小时23分'}}</view> -->
|
||||
<button class="btn color-fff font-26 ulib-r750" style="background-color:#f63c51"><text class="iconfont icon-xiaoji mr5"></text>解锁查看</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<block wx:for='{{list}}' wx:key='index'>
|
||||
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="/pages/customer/detail/index?id={{item.id}}">
|
||||
<view class="absolute top-0 left-0 ml40 bg-36afa2 font-22 color-fff" wx:if="{{item.defeat||item.orders_pay}}">
|
||||
<text class="pl10 pr10" wx:if="{{item.defeat}}">{{item.defeat}}</text>
|
||||
<text class="pl10 pr10 {{item.defeat&&item.orders_pay?'bls-1-eb':''}}" wx:if="{{item.orders_pay}}">{{item.orders_pay}}</text>
|
||||
</view>
|
||||
<view class="relative pr180">
|
||||
<view class="font-32">
|
||||
<text class="text-middle">{{item.name}}</text>
|
||||
<text class="text-middle font-26 color-666">({{item.mobile}})</text>
|
||||
<text class="text-middle iconfont icon-weixin1 ml10 color-00c800" wx:if="{{item.is_weChat}}"></text>
|
||||
<text class="text-middle iconfont icon-xingxing ml10 {{item.is_top==1?'color-f9394d':'color-ccc'}}" catchtap="optTop" data-index="{{index}}"></text>
|
||||
<block wx:if="{{key===cluesTabKey}}">
|
||||
<block wx:for='{{list}}' wx:key='index'>
|
||||
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bind:tap="goClues" data-row="{{ item }}">
|
||||
<view class="relative pr180">
|
||||
<view class="font-32">
|
||||
<text class="text-middle">{{item.name}}</text>
|
||||
<text class="text-middle font-26 color-666">({{item.mobile}})</text>
|
||||
</view>
|
||||
<view class="absolute right-0 top-0">
|
||||
<view class="font-26 mt10" style="color:#f63c51">{{'距转派还剩'+item.left_time+'秒'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="text-nowrap">
|
||||
<text class="mr15 font-22 color-666">编号 {{item.cid}}</text>
|
||||
<block wx:for="{{item.tags}}" wx:for-index='i' wx:for-item='tag' wx:key='i'>
|
||||
<text class="inline-block mr10 pl10 pr10 bg-666 font-18 color-fff ulib-r750" wx:if="{{i<4}}">{{tag}}</text>
|
||||
</block>
|
||||
<block wx:if="{{item.tags.length>4}}">
|
||||
...
|
||||
</block>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle">
|
||||
<!--view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{item.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-duanxinguanli"></i>
|
||||
</view-->
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{item.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
|
||||
<view class="relative">
|
||||
<view class="mt25 fn-clear font-28 pr180">
|
||||
<view class="fn-fl color-333 mr15">入池时间</view>
|
||||
<view class="fn-fl color-666">{{ item.c_time }}</view>
|
||||
</view>
|
||||
<view class="mt25 fn-clear font-28 pr180">
|
||||
<view class="fn-fl color-333 mr15">意向车型</view>
|
||||
<view class="fn-fl color-666">{{item.brand_detail}}</view>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle" wx:if="{{!item.un_lock}}" bind:tap="showUnlock" data-id="{{item.id}}">
|
||||
<!-- <view class="font-26 mt10" style="color:#f63c51">{{'距转派还剩4小时23分'}}</view> -->
|
||||
<button class="btn color-fff font-26 ulib-r750" style="background-color:#f63c51"><text class="iconfont icon-xiaoji mr5"></text>解锁查看</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<block wx:for="{{item.other_data}}" wx:for-index='key' wx:for-item='value' wx:key='i'>
|
||||
<view class="mt25 fn-clear font-28">
|
||||
<view class="fn-fl color-333">{{key}}</view>
|
||||
<block wx:if="{{key=='车管家'}}">
|
||||
<view class="fn-fr wp60 text-nowrap text-right">
|
||||
<text class="text-middle color-666" wx:if="{{value}}">{{value}}</text>
|
||||
<text class="text-middle color-f9394d" wx:else>待分配</text>
|
||||
<text class="inline-block ml10 bg-36afa2 pt5 pb5 pl15 pr15 text-middle font-22 color-fff ulib-r10" catchtap="optEmployees" data-cid="{{item.id}}" data-level="{{item.level}}" wx:if="{{item.allot == 1}}">{{value?'重新分配':'分配'}}</text>
|
||||
</view>
|
||||
</block>
|
||||
<view wx:else class="fn-fr wp60 text-nowrap text-right color-666">{{value}}</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<block wx:for='{{list}}' wx:key='index'>
|
||||
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="/pages/customer/detail/index?id={{item.id}}">
|
||||
<view class="absolute top-0 left-0 ml40 bg-36afa2 font-22 color-fff" wx:if="{{item.defeat||item.orders_pay}}">
|
||||
<text class="pl10 pr10" wx:if="{{item.defeat}}">{{item.defeat}}</text>
|
||||
<text class="pl10 pr10 {{item.defeat&&item.orders_pay?'bls-1-eb':''}}" wx:if="{{item.orders_pay}}">{{item.orders_pay}}</text>
|
||||
</view>
|
||||
<view class="relative pr180">
|
||||
<view class="font-32">
|
||||
<text class="text-middle">{{item.name}}</text>
|
||||
<text class="text-middle font-26 color-666">({{item.mobile}})</text>
|
||||
<text class="text-middle iconfont icon-weixin1 ml10 color-00c800" wx:if="{{item.is_weChat}}"></text>
|
||||
<text class="text-middle iconfont icon-xingxing ml10 {{item.is_top==1?'color-f9394d':'color-ccc'}}" catchtap="optTop" data-index="{{index}}"></text>
|
||||
</view>
|
||||
<view class="text-nowrap">
|
||||
<text class="mr15 font-22 color-666">编号 {{item.cid}}</text>
|
||||
<block wx:for="{{item.tags}}" wx:for-index='i' wx:for-item='tag' wx:key='i'>
|
||||
<text class="inline-block mr10 pl10 pr10 bg-666 font-18 color-fff ulib-r750" wx:if="{{i<4}}">{{tag}}</text>
|
||||
</block>
|
||||
<block wx:if="{{item.tags.length>4}}">
|
||||
...
|
||||
</block>
|
||||
</view>
|
||||
<view class="absolute right-0 box-middle">
|
||||
<!--view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{item.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-duanxinguanli"></i>
|
||||
</view-->
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{item.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<block wx:for="{{item.other_data}}" wx:for-index='key' wx:for-item='value' wx:key='i'>
|
||||
<view class="mt25 fn-clear font-28">
|
||||
<view class="fn-fl color-333">{{key}}</view>
|
||||
<block wx:if="{{key=='车管家'}}">
|
||||
<view class="fn-fr wp60 text-nowrap text-right">
|
||||
<text class="text-middle color-666" wx:if="{{value}}">{{value}}</text>
|
||||
<text class="text-middle color-f9394d" wx:else>待分配</text>
|
||||
<text class="inline-block ml10 bg-36afa2 pt5 pb5 pl15 pr15 text-middle font-22 color-fff ulib-r10" catchtap="optEmployees" data-cid="{{item.id}}" data-level="{{item.level}}" wx:if="{{item.allot == 1}}">{{value?'重新分配':'分配'}}</text>
|
||||
</view>
|
||||
</block>
|
||||
<view wx:else class="fn-fr wp60 text-nowrap text-right color-666">{{value}}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
</block>
|
||||
|
||||
<lcb-listmore isLoading='{{loading}}' isEnd='{{end}}' isNoData='{{noData}}'></lcb-listmore>
|
||||
</view>
|
||||
|
||||
|
||||
+44
-30
@@ -63,27 +63,29 @@ Page({
|
||||
]
|
||||
}
|
||||
// 20250624
|
||||
let mock_data = [{
|
||||
icon:'https://img.liche.cn/lichebao/menu-1.png',
|
||||
title:'积分余额',
|
||||
tip:'7999',
|
||||
url:'/pages/customer/score/index'
|
||||
},{
|
||||
icon:'https://img.liche.cn/lichebao/menu-2.png',
|
||||
title:'核销记录',
|
||||
url:'/pages/customer/score/exchange'
|
||||
},{
|
||||
icon:'https://img.liche.cn/lichebao/menu-3.png',
|
||||
title:'联系客服',
|
||||
type:1,
|
||||
url:'13455556666'
|
||||
}]
|
||||
let menu_list = mock_data.concat(list)
|
||||
|
||||
// let mock_data = [{
|
||||
// icon:'https://img.liche.cn/lichebao/menu-1.png',
|
||||
// title:'积分余额',
|
||||
// tip:'7999',
|
||||
// url:'/pages/customer/score/index'
|
||||
// },{
|
||||
// icon:'https://img.liche.cn/lichebao/menu-2.png',
|
||||
// title:'核销记录',
|
||||
// url:'/pages/customer/score/exchange'
|
||||
// },{
|
||||
// icon:'https://img.liche.cn/lichebao/menu-3.png',
|
||||
// title:'联系客服',
|
||||
// type:1,
|
||||
// url:'13455556666'
|
||||
// }]
|
||||
// let menu_list = mock_data.concat(list)
|
||||
// this.setData({
|
||||
// list: menu_list,
|
||||
// })
|
||||
this.setData({
|
||||
list: menu_list,
|
||||
list: list,
|
||||
})
|
||||
|
||||
this.otherMenu()
|
||||
this.getUserInfo()
|
||||
console.log(this.data)
|
||||
wx.getSystemInfo({
|
||||
@@ -120,17 +122,17 @@ Page({
|
||||
this.setData({
|
||||
userInfo: res
|
||||
})
|
||||
if (res.group_id != 4) {
|
||||
let list = this.data.list
|
||||
list.push({
|
||||
icon: 'https://qs.liche.cn/lichebao/mine/icon-sucai2.png',
|
||||
title: '签到码',
|
||||
url: '/pages/signup/code',
|
||||
})
|
||||
this.setData({
|
||||
list,
|
||||
})
|
||||
}
|
||||
// let list = this.data.list
|
||||
// if (res.group_id != 4) {
|
||||
// list.push({
|
||||
// icon: 'https://qs.liche.cn/lichebao/mine/icon-sucai2.png',
|
||||
// title: '签到码',
|
||||
// url: '/pages/signup/code',
|
||||
// })
|
||||
// this.setData({
|
||||
// list,
|
||||
// })
|
||||
// }
|
||||
});
|
||||
},
|
||||
|
||||
@@ -204,5 +206,17 @@ Page({
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
},
|
||||
//其他菜单
|
||||
otherMenu(){
|
||||
_.apiQuery.getUserMenu().then(res => {
|
||||
let list = res.data
|
||||
if(list){
|
||||
let menu_list = this.data.list.concat(list)
|
||||
this.setData({
|
||||
list: menu_list
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user