电话接入
This commit is contained in:
@@ -34,21 +34,15 @@ api = {
|
||||
appSmsCusorder: "app/sms/cusorder", //订单发短信
|
||||
appCustomerlogs: "app/customerlogs", //获取日志
|
||||
appCustomerData: "app/customers/data", //获取客户详细信息
|
||||
|
||||
appCusorder: "app/cusorder", //新建订单 /获取订单列表 /获取订单详情 /修改付款方式
|
||||
appCusorderTabs: "app/cusorder/tabs", //获取tab
|
||||
|
||||
appEmployees: "app/employees", //获取客户详细信息 /获取店员列表 /更新店员信息 /删除店员
|
||||
|
||||
appLoan: "app/loan", //获取贷款产品信息 /创建贷款信息 /修改贷款信息
|
||||
|
||||
appIdcard: "app/idcard", //创建申请开票信息
|
||||
|
||||
appUserCal: "app/user/cal", //获取用户统计
|
||||
|
||||
appCusorderCkcar: "app/cusorder/ckcar", //确认交付
|
||||
|
||||
appCustomersAdmins: "app/customers/admins", //分配客户
|
||||
appXz: "app/xz", //获取虚拟电话
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -299,4 +299,11 @@ apiQuery.putAppCustomersAdmins = function (params) {
|
||||
})
|
||||
}
|
||||
|
||||
//获取虚拟电话
|
||||
apiQuery.getAppXz = function (params) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
HttpRequest(false, Config.api.appXz, 2, params, "GET", resolve, reject)
|
||||
})
|
||||
}
|
||||
|
||||
export default apiQuery;
|
||||
@@ -238,6 +238,18 @@ Page({
|
||||
}
|
||||
},
|
||||
|
||||
//拨打客户电话xz
|
||||
call(e) {
|
||||
let params = {};
|
||||
params['id'] = e.currentTarget.dataset.id;
|
||||
params['type'] = 0;
|
||||
_.apiQuery.getAppXz(params).then(res=>{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
//页面相关事件处理函数--监听用户下拉动作
|
||||
onPullDownRefresh(){
|
||||
this.setData({
|
||||
|
||||
@@ -114,21 +114,15 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//拨打客户电话Yx
|
||||
//拨打客户电话xz
|
||||
call(e) {
|
||||
let params = {};
|
||||
params['id'] = e.currentTarget.dataset.id;
|
||||
_.apiQuery.getAppYx(params).then(res=>{
|
||||
if(!!res.data.service_msg){
|
||||
this.setData({
|
||||
isShowNote:true,
|
||||
notemsg:res.data.service_msg,
|
||||
})
|
||||
}else{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
}
|
||||
params['type'] = 0;
|
||||
_.apiQuery.getAppXz(params).then(res=>{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
+6
-12
@@ -214,21 +214,15 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//拨打客户电话Yx
|
||||
//拨打客户电话xz
|
||||
call(e) {
|
||||
let params = {};
|
||||
params['id'] = e.currentTarget.dataset.id;
|
||||
_.apiQuery.getAppYx(params).then(res=>{
|
||||
if(!!res.data.service_msg){
|
||||
this.setData({
|
||||
isShowNote:true,
|
||||
notemsg:res.data.service_msg,
|
||||
})
|
||||
}else{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
}
|
||||
params['type'] = 0;
|
||||
_.apiQuery.getAppXz(params).then(res=>{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -482,4 +482,16 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
//拨打客户电话xz
|
||||
call(e) {
|
||||
let params = {};
|
||||
params['id'] = e.currentTarget.dataset.id;
|
||||
params['type'] = 1;
|
||||
_.apiQuery.getAppXz(params).then(res=>{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
})
|
||||
@@ -10,10 +10,10 @@
|
||||
<view class="mt5 font-22 color-666">手机号:{{info.mobile}}</view>
|
||||
</view>
|
||||
<view class="absolute right-0 mr30 box-middle">
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{detailinfo.id}}">
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{info.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-liuyan"></i>
|
||||
</view>
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{detailinfo.id}}">
|
||||
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{info.id}}">
|
||||
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -56,21 +56,15 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
//拨打客户电话Yx
|
||||
//拨打客户电话xz
|
||||
call(e) {
|
||||
let params = {};
|
||||
params['id'] = e.currentTarget.dataset.id;
|
||||
_.apiQuery.getAppYx(params).then(res=>{
|
||||
if(!!res.data.service_msg){
|
||||
this.setData({
|
||||
isShowNote:true,
|
||||
notemsg:res.data.service_msg,
|
||||
})
|
||||
}else{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
}
|
||||
params['type'] = 1;
|
||||
_.apiQuery.getAppXz(params).then(res=>{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
+6
-12
@@ -87,21 +87,15 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
//拨打客户电话Yx
|
||||
//拨打客户电话xz
|
||||
call(e) {
|
||||
let params = {};
|
||||
params['id'] = e.currentTarget.dataset.id;
|
||||
_.apiQuery.getAppYx(params).then(res=>{
|
||||
if(!!res.data.service_msg){
|
||||
this.setData({
|
||||
isShowNote:true,
|
||||
notemsg:res.data.service_msg,
|
||||
})
|
||||
}else{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
}
|
||||
params['type'] = 1;
|
||||
_.apiQuery.getAppXz(params).then(res=>{
|
||||
wx.makePhoneCall({
|
||||
phoneNumber: res.data.mobile,
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user