Commit 048eb84d authored by fwz's avatar fwz

获取申请人手机号

parent 4fa99603
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
通知类型:{{type}} 通知类型:{{type}}
</div> </div>
<div> <div>
车主手机号:{{vo.userMobile}} 车主手机号:{{vo.applyUserMobile?vo.applyUserMobile:""}}
</div> </div>
</div> </div>
<div class="item__btn" @click="goDetail(vo.id)"> <div class="item__btn" @click="goDetail(vo.id)">
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
通知类型:{{type}} 通知类型:{{type}}
</div> </div>
<div> <div>
挪车申请人:{{vo.applyUserMobile}} 挪车申请人:{{vo.applyUserMobile?vo.applyUserMobile:""}}
</div> </div>
</div> </div>
<div class="item__btn" @click="goDetail(vo.id)"> <div class="item__btn" @click="goDetail(vo.id)">
......
...@@ -32,9 +32,11 @@ ...@@ -32,9 +32,11 @@
<div class="move-car__tips"> <div class="move-car__tips">
点击下方按钮联系车主 点击下方按钮联系车主
</div> </div>
<div class="move-car__btn" @click="call">
<button class="move-car__btn" type='primary'
open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">
拨打车主电话通知 拨打车主电话通知
</div> </button>
<div class="move-car__btn" @click="wechat"> <div class="move-car__btn" @click="wechat">
微信通知(上限{{wxMaxNum}}次) 微信通知(上限{{wxMaxNum}}次)
</div> </div>
...@@ -129,15 +131,17 @@ ...@@ -129,15 +131,17 @@
changeWechat() { changeWechat() {
this.appBo.wechat = !this.appBo.wechat this.appBo.wechat = !this.appBo.wechat
}, },
//解析手机号
getPhoneNumber(e) {
let that = this
if (e.detail.errMsg == "getPhoneNumber:ok") {
that.appBo.code = e.detail.code
that.call()
} else {
uni.hideLoading()
}
},
call() { call() {
// if(this.checked){
// this.appBo.wechat = true
// }else{
// this.appBo.wechat = false
// }
// console.log(this.checked)
// this.appBo.wechat = true
this.appBo.moveCode = this.moveCode this.appBo.moveCode = this.moveCode
let opts = { let opts = {
url: '/app/contact/phone/notice', url: '/app/contact/phone/notice',
...@@ -224,8 +228,10 @@ ...@@ -224,8 +228,10 @@
this.http.httpTokenRequest(opts, {}).then(res => { this.http.httpTokenRequest(opts, {}).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
if (JSON.stringify(res.data.data) != "{}") { if (JSON.stringify(res.data.data) != "{}") {
this.appBo.carNo = res.data.data.carNo let carData = res.data.data
this.appBo.carNo = carData.carNo
this.appBo.brand = carData.brand
this.appBo.carModel = carData.carModel
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: '/pagesB/pages/move-car/scan?moveCode=' + this.moveCode url: '/pagesB/pages/move-car/scan?moveCode=' + this.moveCode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment