拨打电话

This commit is contained in:
老叶
2023-03-21 10:02:16 +08:00
parent 6dcdcd9e05
commit 9a996d1fd2
12 changed files with 149 additions and 58 deletions
+19 -1
View File
@@ -55,6 +55,9 @@ Page({
wxgrimg:'',//个微
wxgrimg_url:'',//个微
isShowCall:false,//是否显示拨打电话确认弹框
phoneNumber:'',//拨打的电话号码
},
onLoad(options) {
for (let key in options) {
@@ -578,7 +581,8 @@ Page({
params['id'] = e.currentTarget.dataset.id;
params['type'] = 0;
_.apiQuery.getAppXz(params).then(res=>{
wx.makePhoneCall({
this.setData({
isShowCall:true,
phoneNumber:res.data.mobile,
})
})
@@ -1206,6 +1210,20 @@ Page({
})
},
//隐藏电话弹框
hideCall(){
this.setData({
isShowCall:false,
})
},
//拨打电话
makePhoneCall(){
wx.makePhoneCall({
phoneNumber: this.data.phoneNumber,
})
},
//页面相关事件处理函数--监听用户下拉动作
onPullDownRefresh(){
this.setData({
+17
View File
@@ -522,3 +522,20 @@
</view>
</view>
</lcb-msg>
<!-- 拨打电话 -->
<lcb-msg isShow="{{isShowCall}}">
<view slot="content">
<view class="pt70 pb50">
<view class="font-36 text-center">现在呼叫 {{phoneNumber}} </view>
</view>
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
<button bindtap="hideCall" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">
取消
</button>
<button bindtap="makePhoneCall" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">
确定
</button>
</view>
</view>
</lcb-msg>
+18 -1
View File
@@ -39,6 +39,9 @@ Page({
distBiz_id:'',
bizArray: [],
bizobj: [],
isShowCall:false,//是否显示拨打电话确认弹框
phoneNumber:'',//拨打的电话号码
},
onLoad(options) {
for (let key in options) {
@@ -183,7 +186,8 @@ Page({
params['id'] = e.currentTarget.dataset.id;
params['type'] = 0;
_.apiQuery.getAppXz(params).then(res=>{
wx.makePhoneCall({
this.setData({
isShowCall:true,
phoneNumber:res.data.mobile,
})
})
@@ -523,6 +527,19 @@ Page({
})
},
//隐藏电话弹框
hideCall(){
this.setData({
isShowCall:false,
})
},
//拨打电话
makePhoneCall(){
wx.makePhoneCall({
phoneNumber: this.data.phoneNumber,
})
},
//页面相关事件处理函数--监听用户下拉动作
onPullDownRefresh(){
+17
View File
@@ -189,3 +189,20 @@
</view>
</view>
</page-container>
<!-- 拨打电话 -->
<lcb-msg isShow="{{isShowCall}}">
<view slot="content">
<view class="pt70 pb50">
<view class="font-36 text-center">现在呼叫 {{phoneNumber}} </view>
</view>
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
<button bindtap="hideCall" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">
取消
</button>
<button bindtap="makePhoneCall" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">
确定
</button>
</view>
</view>
</lcb-msg>
+19 -1
View File
@@ -93,6 +93,9 @@ Page({
city_id:'',
countyIndex:-1,
county_id:'',
isShowCall:false,//是否显示拨打电话确认弹框
phoneNumber:'',//拨打的电话号码
},
onLoad(options) {
for (let key in options) {
@@ -392,7 +395,8 @@ Page({
params['id'] = e.currentTarget.dataset.id;
params['type'] = 0;
_.apiQuery.getAppXz(params).then(res=>{
wx.makePhoneCall({
this.setData({
isShowCall:true,
phoneNumber:res.data.mobile,
})
})
@@ -1062,6 +1066,20 @@ Page({
}
},
//隐藏电话弹框
hideCall(){
this.setData({
isShowCall:false,
})
},
//拨打电话
makePhoneCall(){
wx.makePhoneCall({
phoneNumber: this.data.phoneNumber,
})
},
//页面相关事件处理函数--监听用户下拉动作
onPullDownRefresh(){
this.setData({
+17
View File
@@ -415,3 +415,20 @@
</view>
</view>
</page-container>
<!-- 拨打电话 -->
<lcb-msg isShow="{{isShowCall}}">
<view slot="content">
<view class="pt70 pb50">
<view class="font-36 text-center">现在呼叫 {{phoneNumber}} </view>
</view>
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
<button bindtap="hideCall" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">
取消
</button>
<button bindtap="makePhoneCall" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">
确定
</button>
</view>
</view>
</lcb-msg>
+19 -1
View File
@@ -50,6 +50,9 @@ Page({
register_img:{},
car_img:{},
isShowCall:false,//是否显示拨打电话确认弹框
phoneNumber:'',//拨打的电话号码
},
onLoad: function (options) {
for (let key in options) {
@@ -835,7 +838,8 @@ Page({
params['id'] = e.currentTarget.dataset.id;
params['type'] = 1;
_.apiQuery.getAppXz(params).then(res=>{
wx.makePhoneCall({
this.setData({
isShowCall:true,
phoneNumber:res.data.mobile,
})
})
@@ -875,6 +879,20 @@ Page({
})
},
//隐藏电话弹框
hideCall(){
this.setData({
isShowCall:false,
})
},
//拨打电话
makePhoneCall(){
wx.makePhoneCall({
phoneNumber: this.data.phoneNumber,
})
},
//随车工具
changeTool(e) {
let carToolList = this.data.carToolList
+17
View File
@@ -387,3 +387,20 @@
</view>
</view>
</lcb-msg>
<!-- 拨打电话 -->
<lcb-msg isShow="{{isShowCall}}">
<view slot="content">
<view class="pt70 pb50">
<view class="font-36 text-center">现在呼叫 {{phoneNumber}} </view>
</view>
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
<button bindtap="hideCall" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">
取消
</button>
<button bindtap="makePhoneCall" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">
确定
</button>
</view>
</view>
</lcb-msg>
-12
View File
@@ -685,18 +685,6 @@ 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,
})
})
},
//查看图片
previewImage: function (e) {
if(e.currentTarget.dataset.type=='bill_img'){
-12
View File
@@ -59,18 +59,6 @@ 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,
})
})
},
//显示短信弹框
showMessage(e){
this.setData({
-12
View File
@@ -101,18 +101,6 @@ 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,
})
})
},
//显示短信弹框
showMessage(e){
this.setData({
-12
View File
@@ -154,18 +154,6 @@ 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,
})
})
},
// 输入
searchInput(e){
this.setData({