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
dab0ec64
Commit
dab0ec64
authored
Apr 27, 2022
by
fwz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端
parent
96971673
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
42 deletions
+81
-42
main.vue
pages/main.vue
+16
-1
oneMoveCar.vue
pagesB/pages/move-car/oneMoveCar.vue
+52
-37
scan.vue
pagesB/pages/move-car/scan.vue
+13
-4
No files found.
pages/main.vue
View file @
dab0ec64
...
@@ -44,6 +44,7 @@ export default {
...
@@ -44,6 +44,7 @@ export default {
onShow
:
function
()
{},
onShow
:
function
()
{},
methods
:
{
methods
:
{
tabChange
(
index
)
{
tabChange
(
index
)
{
let
that
=
this
switch
(
index
)
{
switch
(
index
)
{
case
0
:
case
0
:
this
.
tab
=
'index'
this
.
tab
=
'index'
...
@@ -65,7 +66,7 @@ export default {
...
@@ -65,7 +66,7 @@ export default {
let
param
=
{
code
:
scene
}
let
param
=
{
code
:
scene
}
let
opts
=
{
url
:
'/app/index/check/move/code'
,
method
:
'post'
}
let
opts
=
{
url
:
'/app/index/check/move/code'
,
method
:
'post'
}
console
.
log
(
param
);
console
.
log
(
param
);
that
.
http
.
httpTokenRequest
(
opts
,
param
).
then
(
res
=>
{
that
.
http
.
httpTokenRequest
(
opts
,
param
).
then
(
res
=>
{
console
.
info
(
res
)
console
.
info
(
res
)
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
data
.
bindFlag
)
{
if
(
res
.
data
.
data
.
bindFlag
)
{
...
@@ -95,6 +96,20 @@ export default {
...
@@ -95,6 +96,20 @@ export default {
}
}
this
.
$forceUpdate
();
this
.
$forceUpdate
();
},
},
//跳转到挪车页面
gotoMoveCar
(
s
)
{
let
that
=
this
;
uni
.
navigateTo
({
url
:
'/pagesB/pages/move-car/oneMoveCar?scene='
+
s
});
},
//跳转到绑定页面
gotoBindMoveCar
(
s
)
{
let
that
=
this
;
uni
.
navigateTo
({
url
:
'/pagesB/pages/move-car/scan?moveCode='
+
s
});
},
},
},
onLoad
()
{}
onLoad
()
{}
}
}
...
...
pagesB/pages/move-car/oneMoveCar.vue
View file @
dab0ec64
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
车牌号:
车牌号:
</div>
</div>
<div
class=
"item__content"
>
<div
class=
"item__content"
>
{{
appB
usCar
.
carNo
}}
{{
appB
o
.
carNo
}}
</div>
</div>
</div>
</div>
<div
class=
"car_item__two"
>
<div
class=
"car_item__two"
>
...
@@ -89,8 +89,6 @@ export default {
...
@@ -89,8 +89,6 @@ export default {
appBo
:
{
appBo
:
{
//车牌号
//车牌号
carNo
:
''
,
carNo
:
''
,
//申请人手机号
applyUserMobile
:
''
,
//省
//省
provinceName
:
''
,
provinceName
:
''
,
//市
//市
...
@@ -100,44 +98,59 @@ export default {
...
@@ -100,44 +98,59 @@ export default {
//详细地址
//详细地址
detailInfo
:
''
,
detailInfo
:
''
,
//是否微信通知
//是否微信通知
isWechat
:
false
,
wechat
:
false
,
//是否成功
},
isSuccess
:
false
,
noticeResult
:
{
//日志唯一编码
secretPhone
:
''
,
logCode
:
''
,
allowPhone
:
false
,
allowWechat
:
false
,
notAllowPhoneReason
:
''
,
notAllowWechatReason
:
''
,
},
},
}
}
},
},
methods
:
{
methods
:
{
call
()
{
call
()
{
this
.
show
=
true
;
if
(
this
.
checked
){
this
.
appBo
.
wechat
=
true
}
else
{
this
.
appBo
.
wechat
=
false
}
this
.
appBo
.
moveCode
=
this
.
moveCode
let
opts
=
{
url
:
'/app/contact/notice'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
appBo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
//请求成功逻辑,修改
this
.
noticeResult
=
res
.
data
.
data
if
(
!
this
.
noticeResult
.
allowWechat
){
uni
.
showLoading
({
title
:
this
.
noticeResult
.
notAllowWechatReason
});
}
if
(
!
this
.
noticeResult
.
allowPhone
){
uni
.
showLoading
({
title
:
this
.
noticeResult
.
notAllowPhoneReason
});
}
else
{
this
.
list
[
0
].
name
=
this
.
noticeResult
.
secretPhone
this
.
show
=
true
;
}
}
})
},
},
close
()
{
close
()
{
this
.
show
=
false
;
this
.
show
=
false
;
},
},
selectClick
(
index
){
selectClick
(
index
){
if
(
index
.
name
==
"2367虚拟号码345"
){
if
(
index
.
name
==
"呼叫"
){
uni
.
makePhoneCall
({
}
else
if
(
index
.
name
==
"呼叫"
){
honeNumber
:
this
.
noticeResult
.
secretPhone
//请求拨打电话路径
});
let
opts
=
{
url
:
'/app/contact/dialPhone'
,
method
:
'post'
};
}
else
if
(
index
.
name
==
"取消"
){
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
this
.
show
=
false
;
if
(
res
.
data
.
code
==
200
)
{
}
//请求成功逻辑,修改
}
})
//记录修改
let
optsOne
=
{
url
:
'/app/moveLog/updateLog'
,
method
:
'post'
};
this
.
http
.
httpTokenRequest
(
optsOne
,
this
.
appBo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
//请求成功逻辑,后端应记录此次电话拨打
}
})
}
else
{
}
},
},
goMyCar
()
{
goMyCar
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -145,12 +158,13 @@ export default {
...
@@ -145,12 +158,13 @@ export default {
})
})
},
},
getCarNumber
(){
getCarNumber
(){
//
let opts = { url: '/app/moveCode/owner/' + this.moveCode, method: 'get' };
let
opts
=
{
url
:
'/app/moveCode/owner/'
+
this
.
moveCode
,
method
:
'get'
};
let
opts
=
{
url
:
'/app/moveCode/owner/MV123'
,
method
:
'get'
};
//
let opts = { url: '/app/moveCode/owner/MV123', method: 'get' };
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
.
appBusCar
=
res
.
data
.
data
this
.
appBo
.
carNo
=
res
.
data
.
data
.
carNo
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pagesB/pages/move-car/scan?moveCode='
+
this
.
moveCode
url
:
'/pagesB/pages/move-car/scan?moveCode='
+
this
.
moveCode
...
@@ -268,16 +282,17 @@ export default {
...
@@ -268,16 +282,17 @@ export default {
onLoad
(
e
)
{
onLoad
(
e
)
{
// 在页面加载的时候去判断用户有没有授权地理位置,没授权的话引导用户去设置页手动授权
// 在页面加载的时候去判断用户有没有授权地理位置,没授权的话引导用户去设置页手动授权
this
.
getAuthorize
()
this
.
getAuthorize
()
if
(
e
.
query
)
{
console
.
log
(
e
)
if
(
e
.
scene
)
{
//获取二维码携带的参数
//获取二维码携带的参数
//扫码后得到的参数
//扫码后得到的参数
let
scene
=
decodeURIComponent
(
e
.
query
.
scene
)
//
let scene = decodeURIComponent(e.query.scene)
// scene = scene.split('&')
// scene = scene.split('&')
// let data = {
// let data = {
// //场景值
// //场景值
// scene: e.scene
// scene: e.scene
// }
// }
this
.
moveCode
=
scene
this
.
moveCode
=
e
.
scene
//console.log('scene: ' + scene);
//console.log('scene: ' + scene);
}
}
},
},
...
...
pagesB/pages/move-car/scan.vue
View file @
dab0ec64
...
@@ -36,10 +36,7 @@ export default {
...
@@ -36,10 +36,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
model1
:
{
model1
:
{
userInfo
:
{
carInfo
:
{},
name
:
""
,
sex
:
""
,
},
},
},
formData
:
[{
formData
:
[{
id
:
"kjjns"
,
//id必须唯一 可以是数字
id
:
"kjjns"
,
//id必须唯一 可以是数字
...
@@ -130,6 +127,7 @@ export default {
...
@@ -130,6 +127,7 @@ export default {
}
}
//console.log(this.moveCodeInfo)
//console.log(this.moveCodeInfo)
this
.
moveCodeInfo
.
moveCode
=
this
.
moveCode
let
opts
=
{
url
:
'/app/moveCode/binding/'
,
method
:
'put'
};
let
opts
=
{
url
:
'/app/moveCode/binding/'
,
method
:
'put'
};
this
.
http
.
httpTokenRequest
(
opts
,
this
.
moveCodeInfo
).
then
(
res
=>
{
this
.
http
.
httpTokenRequest
(
opts
,
this
.
moveCodeInfo
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
...
@@ -156,6 +154,16 @@ export default {
...
@@ -156,6 +154,16 @@ export default {
this
.
model1
.
carInfo
=
res
.
data
.
data
this
.
model1
.
carInfo
=
res
.
data
.
data
}
}
})
})
this
.
formData
.
forEach
(
e
=>
{
if
(
e
.
label
==
'车牌号'
){
e
.
rules
.
value
=
this
.
model1
.
carInfo
.
carNo
}
else
if
(
e
.
label
==
'品牌'
){
e
.
rules
.
value
=
this
.
model1
.
carInfo
.
brand
}
else
if
(
e
.
label
==
'车型'
){
e
.
rules
.
value
=
this
.
model1
.
carInfo
.
carModel
}
})
console
.
log
(
this
.
formData
)
}
}
},
},
},
},
...
@@ -163,6 +171,7 @@ export default {
...
@@ -163,6 +171,7 @@ export default {
this
.
moveCode
=
option
.
moveCode
this
.
moveCode
=
option
.
moveCode
},
},
onShow
:
function
(){
onShow
:
function
(){
this
.
getCarInfo
()
//console.log( this.$store.state.selectedCar);
//console.log( this.$store.state.selectedCar);
}
}
}
}
...
...
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