Commit e5bd9a9d authored by fwz's avatar fwz

wechat+phone

parent 6d817986
...@@ -35,12 +35,15 @@ ...@@ -35,12 +35,15 @@
<div class="move-car__btn" @click="call"> <div class="move-car__btn" @click="call">
拨打车主电话通知 拨打车主电话通知
</div> </div>
<div class="move-car__wx"> <div class="move-car__btn" @click="wechat">
微信通知(上限3次)
</div>
<!-- <div class="move-car__wx">
<u-checkbox-group placement="row"> <u-checkbox-group placement="row">
<u-checkbox v-model="checked" @change="changeWechat"></u-checkbox> <u-checkbox v-model="checked" @change="changeWechat"></u-checkbox>
</u-checkbox-group> 微信通知(上限3次) </u-checkbox-group> 微信通知(上限3次)
</div> </div> -->
<div class="move-car__more"> <div class="move-car__more" @click="">
<div> <div>
获取同款挪车牌 获取同款挪车牌
<span> <span>
...@@ -129,31 +132,49 @@ export default { ...@@ -129,31 +132,49 @@ export default {
// this.appBo.wechat = true // this.appBo.wechat = true
this.appBo.moveCode = this.moveCode this.appBo.moveCode = this.moveCode
let opts = { url: '/app/contact/notice' , method: 'post' }; let opts = { url: '/app/contact/phone/notice' , method: 'post' };
this.http.httpTokenRequest(opts, this.appBo).then(res => { this.http.httpTokenRequest(opts, this.appBo).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
//请求成功逻辑,修改 //请求成功逻辑,修改
this.noticeResult = res.data.data this.noticeResult = res.data.data
if(!this.noticeResult.allowWechat){ if (this.noticeResult.allowPhone){
this.list[0].name = this.noticeResult.secretPhone
this.show = true;
}
}else{
this.noticeResult = res.data.data
if (this.noticeResult){
uni.showModal({ uni.showModal({
content: this.noticeResult.notAllowWechatReason, content: this.noticeResult.notAllowPhoneReason,
}) })
} }
if (!this.noticeResult.allowPhone){ }
})
},
wechat(){
this.appBo.moveCode = this.moveCode
let opts = { url: '/app/contact/wechat/notice' , method: 'post' };
this.http.httpTokenRequest(opts, this.appBo).then(res => {
if (res.data.code == 200) {
uni.showModal({
content: "微信消息发送成功",
})
}else{
//请求成功逻辑,修改
this.noticeResult = res.data.data
if (this.noticeResult){
uni.showModal({ uni.showModal({
content: this.noticeResult.notAllowPhoneReason, content: this.noticeResult.notAllowWechatReason,
}) })
}else {
this.list[0].name = this.noticeResult.secretPhone
this.show = true;
} }
} }
}) })
}, },
close() { close() {
this.show = false; this.show = false;
},
goMyMoveCar(){
}, },
selectClick(index){ selectClick(index){
if(index.name == "呼叫"){ if(index.name == "呼叫"){
......
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