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
54acd97e
Commit
54acd97e
authored
May 12, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增用户协议和隐私政策
parent
74c01926
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
183 additions
and
18 deletions
+183
-18
binding.vue
pages/binding/binding.vue
+34
-13
index.vue
pages/binding/index.vue
+2
-2
getPrice.vue
pagesA/pages/index/getPrice.vue
+51
-0
addCar.vue
pagesB/pages/move-car/addCar.vue
+15
-2
editCar.vue
pagesB/pages/move-car/editCar.vue
+48
-1
scan.vue
pagesB/pages/move-car/scan.vue
+33
-0
No files found.
pages/binding/binding.vue
View file @
54acd97e
...
...
@@ -16,12 +16,16 @@
<active-form
:formDate
.
sync=
"formData"
></active-form>
</view>
</div>
<div
class=
"login__read"
>
<view
class=
"login__read"
>
<view>
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
已阅读并同意
<span>
友众挪车牌用户协议(含隐私政策)
</span>
、
<span>
友众用户注册协议
</span>
、
<span>
友众隐私政策
</span>
和
<span>
联通账号认证服务条款
</span>
并使用本机号码登录
</div>
</view>
<view>
已阅读并同意
<span
@
click=
"goArticle(1)"
>
《用户注册服务协议》
</span>
、
<span
@
click=
"goArticle(2)"
>
《京东挪车牌隐私权政策》
</span>
</view>
</view>
<div>
<view
class=
"subform"
@
click=
"sub"
>
确认绑定
</view>
</div>
...
...
@@ -85,12 +89,30 @@ export default {
});
}
else
{
uni
.
showToast
({
title
:
"请阅读并同意
友众挪车牌用户协议
"
,
title
:
"请阅读并同意
《用户注册服务协议》和《京东挪车牌隐私权政策》
"
,
icon
:
'none'
,
duration
:
2000
,
});
}
},
// 跳转协议政策页面
goArticle
(
index
){
let
opts
=
{
url
:
''
,
method
:
'get'
};
if
(
index
==
1
){
opts
.
url
=
"/app/user/registerAgreement"
}
else
{
opts
.
url
=
"/app/user/ofPrivacy"
}
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
data
=
res
.
data
.
msg
uni
.
setStorageSync
(
"articelContent"
,
data
)
uni
.
navigateTo
({
url
:
'/pages/binding/article'
});
}
})
}
},
}
</
script
>
...
...
@@ -157,11 +179,10 @@ export default {
font-weight
:
500
;
color
:
#666666
;
line-height
:
36rpx
;
display
:
flex
;
align-items
:
center
;
span
{
color
:
#444
;
padding
:
0
5rpx
;
text-decoration
:
underline
#444
;
color
:
rgb
(
0
,
81
,
255
);
}
}
}
...
...
pages/binding/index.vue
View file @
54acd97e
...
...
@@ -38,7 +38,7 @@
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
已阅读并同意
<span
@
click=
"goArticle(1)"
>
《用户注册
协议》
</span>
、
<span
@
click=
"goArticle(2)"
>
《友众隐私
政策》
</span>
。若您的手机号未注册,将为您直接注册友众账号
已阅读并同意
<span
@
click=
"goArticle(1)"
>
《用户注册
服务协议》
</span>
、
<span
@
click=
"goArticle(2)"
>
《京东挪车牌隐私权
政策》
</span>
。若您的手机号未注册,将为您直接注册友众账号
</div>
</div>
</view>
...
...
@@ -72,7 +72,7 @@ export default {
//登录
checkLogin
()
{
uni
.
showToast
({
title
:
"请先阅读并同意《
友众用户注册协议》、《友众隐私
政策》"
,
title
:
"请先阅读并同意《
用户注册服务协议》、《京东挪车牌隐私权
政策》"
,
icon
:
'none'
,
duration
:
2000
,
});
...
...
pagesA/pages/index/getPrice.vue
View file @
54acd97e
...
...
@@ -43,7 +43,17 @@
<div
class=
"select__car"
@
click=
"goLoveCar"
>
从爱车选择
<image
src=
"@/static/index/zhankai.png"
alt=
""
>
</div>
<div
class=
"add__user"
>
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
请先阅读并同意
<span
@
click=
"goArticle"
>
《京东挪车牌隐私权政策》
</span>
</div>
</div>
<div
class=
"price__bottom"
>
<div
class=
"price"
>
<div
class=
"price__num"
>
...
...
@@ -120,9 +130,13 @@ export default {
carId
:
''
,
//免费挪车码
freeCode
:
{},
checked
:
false
};
},
methods
:
{
changeBtn
()
{
this
.
checked
=
!
this
.
checked
;
},
goLoveCar
()
{
uni
.
navigateTo
({
url
:
'/pagesB/pages/move-car/loveCar?price=1'
...
...
@@ -131,6 +145,14 @@ export default {
getCarCode
()
{
//跳转到获取挪车码页面
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
if
(
!
this
.
checked
)
{
uni
.
showToast
({
title
:
"请同意京东挪车牌隐私权政策"
,
icon
:
'none'
,
duration
:
2000
,
});
return
}
if
(
!
this
.
model1
.
carInfo
.
id
)
{
let
opts
=
{
url
:
'/app/vehicleAdmin/add'
,
...
...
@@ -180,6 +202,19 @@ export default {
}
})
},
// 跳转协议政策页面
goArticle
(){
let
opts
=
{
url
:
'/app/user/ofPrivacy'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
data
=
res
.
data
.
msg
uni
.
setStorageSync
(
"articelContent"
,
data
)
uni
.
navigateTo
({
url
:
'/pages/binding/article'
});
}
})
}
},
onReady
()
{
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
...
...
@@ -329,6 +364,22 @@ export default {
}
}
.add__user
{
display
:
flex
;
font-size
:
28rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
// padding-left: 20rpx;
margin-top
:
40rpx
;
margin-bottom
:
60rpx
;
span
{
color
:
rgba
(
58
,
134
,
247
,
1
);
padding
:
0
5rpx
;
}
}
.price__bottom
{
width
:
100%
;
height
:
156rpx
;
...
...
pagesB/pages/move-car/addCar.vue
View file @
54acd97e
...
...
@@ -31,7 +31,7 @@
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
勾选同意
<span>
《用户服务协议
》
</span>
请先阅读并同意
<span
@
click=
"goArticle"
>
《京东挪车牌隐私权政策
》
</span>
</div>
<div
class=
"add__btn add__no__bind"
@
click=
"addCarInfo()"
>
完成
...
...
@@ -122,7 +122,7 @@ export default {
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
if
(
!
this
.
checked
)
{
uni
.
showToast
({
title
:
"请同意
用户协议
"
,
title
:
"请同意
京东挪车牌隐私权政策
"
,
icon
:
'none'
,
duration
:
2000
,
});
...
...
@@ -148,6 +148,19 @@ export default {
uni
.
$u
.
toast
(
'校验失败'
)
})
},
// 跳转协议政策页面
goArticle
(){
let
opts
=
{
url
:
'/app/user/ofPrivacy'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
data
=
res
.
data
.
msg
uni
.
setStorageSync
(
"articelContent"
,
data
)
uni
.
navigateTo
({
url
:
'/pages/binding/article'
});
}
})
}
},
onReady
()
{
// 如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则
...
...
pagesB/pages/move-car/editCar.vue
View file @
54acd97e
...
...
@@ -29,6 +29,13 @@
</div>
</div>
<div
class=
"add__user"
>
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
请先阅读并同意
<span
@
click=
"goArticle"
>
《京东挪车牌隐私权政策》
</span>
</div>
<div
class=
"add__btn add__no__bind"
@
click=
"editCarInfo"
>
保存
</div>
...
...
@@ -91,10 +98,14 @@ export default {
},
]
},
items
:
[]
items
:
[],
checked
:
false
};
},
methods
:
{
changeBtn
()
{
this
.
checked
=
!
this
.
checked
;
},
goBack
()
{
uni
.
navigateBack
({
delta
:
1
...
...
@@ -118,6 +129,14 @@ export default {
},
editCarInfo
()
{
this
.
$refs
.
form1
.
validate
().
then
(
res
=>
{
if
(
!
this
.
checked
)
{
uni
.
showToast
({
title
:
"请同意京东挪车牌隐私权政策"
,
icon
:
'none'
,
duration
:
2000
,
});
return
}
let
opts
=
{
url
:
'/app/vehicleAdmin/edit'
,
method
:
'put'
...
...
@@ -161,6 +180,19 @@ export default {
delModal
()
{
this
.
deleteShow
=
true
},
// 跳转协议政策页面
goArticle
(){
let
opts
=
{
url
:
'/app/user/ofPrivacy'
,
method
:
'get'
};
this
.
http
.
httpTokenRequest
(
opts
,
{}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
let
data
=
res
.
data
.
msg
uni
.
setStorageSync
(
"articelContent"
,
data
)
uni
.
navigateTo
({
url
:
'/pages/binding/article'
});
}
})
}
},
onLoad
(
option
)
{
this
.
id
=
option
.
id
...
...
@@ -207,6 +239,21 @@ export default {
}
}
.add__user
{
font-size
:
28rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
padding-left
:
40rpx
;
margin-top
:
30rpx
;
margin-bottom
:
60rpx
;
span
{
color
:
rgba
(
58
,
134
,
247
,
1
);
padding
:
0
5rpx
;
}
}
.add__btn
{
width
:
670rpx
;
height
:
76rpx
;
...
...
pagesB/pages/move-car/scan.vue
View file @
54acd97e
...
...
@@ -26,6 +26,13 @@
<car-number
class=
"car__input"
v-model=
"model1.carInfo.carNo"
></car-number>
</div>
<active-form
:formDate
.
sync=
"formData"
></active-form>
<div
class=
"add__user"
>
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
请先阅读并同意
<span
@
click=
"goArticle"
>
《京东挪车牌隐私权政策》
</span>
</div>
</div>
<div
class=
"view__btn view__no__bind"
@
click=
"confirmBinding"
>
确认绑定
...
...
@@ -115,9 +122,13 @@ export default {
moveCodeInfo
:
{},
//选择车辆id
carId
:
''
,
checked
:
false
}
},
methods
:
{
changeBtn
()
{
this
.
checked
=
!
this
.
checked
;
},
// 跳转到使用说明页面
gotoExplanation
()
{
uni
.
navigateTo
({
...
...
@@ -142,6 +153,14 @@ export default {
}
this
.
moveCodeInfo
.
carNo
=
this
.
model1
.
carInfo
.
carNo
this
.
moveCodeInfo
.
moveCode
=
this
.
moveCode
if
(
!
this
.
checked
)
{
uni
.
showToast
({
title
:
"请同意京东挪车牌隐私权政策"
,
icon
:
'none'
,
duration
:
2000
,
});
return
}
let
opts
=
{
url
:
'/app/moveCode/binding/'
,
method
:
'put'
...
...
@@ -212,6 +231,20 @@ export default {
color
:
#3A86F7
;
}
.add__user
{
font-size
:
28rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
padding-left
:
40rpx
;
margin-bottom
:
20rpx
;
span
{
color
:
rgba
(
58
,
134
,
247
,
1
);
padding
:
0
5rpx
;
}
}
.view__btn
{
width
:
670rpx
;
height
:
76rpx
;
...
...
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