Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jd-vx-app
Commits
e5bd9a9d
Commit
e5bd9a9d
authored
May 05, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wechat+phone
parent
6d817986
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
14 deletions
+35
-14
oneMoveCar.vue
pagesB/pages/move-car/oneMoveCar.vue
+35
-14
No files found.
pagesB/pages/move-car/oneMoveCar.vue
View file @
e5bd9a9d
...
@@ -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
.
notAllow
Wechat
Reason
,
content
:
this
.
noticeResult
.
notAllow
Phone
Reason
,
})
})
}
}
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
.
notAllow
Phone
Reason
,
content
:
this
.
noticeResult
.
notAllow
Wechat
Reason
,
})
})
}
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
==
"呼叫"
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment