2024年8月11日 新增虚拟号码接口
This commit is contained in:
parent
a1632cf726
commit
95e3f6d754
|
@ -234,6 +234,11 @@
|
||||||
<image src="../../static/index/function4.png"></image>
|
<image src="../../static/index/function4.png"></image>
|
||||||
<view class="box_text">视频</view>
|
<view class="box_text">视频</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="box" v-if="renzheng == 2" @click="bindPhone()">
|
||||||
|
<!-- //AxN必须实名 -->
|
||||||
|
<image src="../../static/index/function4.png"></image>
|
||||||
|
<view class="box_text">虚拟电话</view>
|
||||||
|
</view>
|
||||||
<!-- <view class="box" v-if="renzheng == 0 && XCXIsSelect != '否'" @click="goNav('/my/renzheng/rzType')">
|
<!-- <view class="box" v-if="renzheng == 0 && XCXIsSelect != '否'" @click="goNav('/my/renzheng/rzType')">
|
||||||
<image src="../../static/images/my/renzheng.png"></image>
|
<image src="../../static/images/my/renzheng.png"></image>
|
||||||
<view class="box_text">实名认证</view>
|
<view class="box_text">实名认证</view>
|
||||||
|
@ -476,6 +481,39 @@
|
||||||
this.currentEndDate = "";
|
this.currentEndDate = "";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
//绑定虚拟号
|
||||||
|
bindPhone(){
|
||||||
|
console.log('手机号是:',this.phone);
|
||||||
|
//调试时先写个假的
|
||||||
|
//this.phone = '13080011344'
|
||||||
|
this.$Request.get('/app/user/insertVirtualPhoneAxN?phone=' + this.phone).then(res => {
|
||||||
|
console.log('返回的全部数据:',res);
|
||||||
|
if (res.code == 0) {
|
||||||
|
console.log('返回数据是:',res.data);
|
||||||
|
let middleNumber = res.data.middleNumber;
|
||||||
|
console.log('虚拟号是:',middleNumber);
|
||||||
|
if(res.data.result === '000000'){
|
||||||
|
//弹出提示框,告知号码
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: '绑定号码为:' + middleNumber + ",是否拨打该电话?",
|
||||||
|
success: function(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
//直接拨打号码(拨打到打电话页(未点击拨号))
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: middleNumber,
|
||||||
|
})
|
||||||
|
} else if (res.cancel) {
|
||||||
|
console.log('用户点击取消');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$queue.showToast('绑定虚拟号错误!');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
getJqqd() {
|
getJqqd() {
|
||||||
this.$queue.showToast('敬请期待!')
|
this.$queue.showToast('敬请期待!')
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue