dengjie ;拨打电话功能

This commit is contained in:
邓洁
2023-02-04 20:01:53 +08:00
parent 08ebc6574d
commit 4b40658fb5
6 changed files with 59 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view class="login-content">
<view style="text-align: center;margin-bottom:30rpx;">
<text>请登录后查看</text>
<text>{{loginText}}</text>
</view>
<view style="padding-left: 30rpx;padding-right: 30rpx;display: flex;">
<u-button type="info" :plain="true" size="nomal" @click="$emit('fail')">取消</u-button>
@@ -18,7 +18,20 @@
} from '@/service/request.js'
export default {
data() {
return {}
return {
loginText: '请登录后查看'
}
},
props: {
timoutText: {
type: String,
default: ''
}
},
created() {
if (this.timoutText == 1) {
this.loginText = "登录超时,请重新登录"
}
},
methods: {
getphonenumber(e) {

View File

@@ -111,7 +111,8 @@
},
confirm() {
this.showM = false
let phone = ''
let phone = this.mobile
phone = phone.toString()
uni.makePhoneCall({
phoneNumber: phone,
success: function() {