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
e4597e59
Commit
e4597e59
authored
May 12, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增用户协议和隐私政策
parent
276d7a36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
3 deletions
+45
-3
article.vue
pages/binding/article.vue
+26
-0
index.vue
pages/binding/index.vue
+19
-3
No files found.
pages/binding/article.vue
0 → 100644
View file @
e4597e59
<
template
>
<view
id=
"article"
v-html=
"content"
></view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
content
:
""
}
},
onLoad
(
e
)
{
// uni.setNavigationBarTitle({
// title:""
// })
let
content
=
uni
.
getStorageSync
(
"articelContent"
)
this
.
content
=
content
}
}
</
script
>
<
style
lang=
"scss"
>
#article
{
padding
:
30rpx
30rpx
50rpx
;
}
</
style
>
\ No newline at end of file
pages/binding/index.vue
View file @
e4597e59
...
...
@@ -38,7 +38,7 @@
<u-checkbox-group
placement=
"row"
>
<u-checkbox
:checked=
'checked'
@
change=
"changeBtn"
></u-checkbox>
</u-checkbox-group>
已阅读并同意
<span
>
《用户注册协议》
</span>
、
<span
>
《友众隐私政策》
</span>
。若您的手机号未注册,将为您直接注册友众账号
已阅读并同意
<span
@
click=
"goArticle(1)"
>
《用户注册协议》
</span>
、
<span
@
click=
"goArticle(2)"
>
《友众隐私政策》
</span>
。若您的手机号未注册,将为您直接注册友众账号
</div>
</div>
</view>
...
...
@@ -176,8 +176,6 @@ export default {
})
}
})
},
gotoIndex
()
{
let
jumpUrl
=
this
.
superiorUrl
...
...
@@ -215,6 +213,24 @@ export default {
url
:
'/pagesB/pages/move-car/scan?moveCode='
+
that
.
scene
});
},
// 跳转协议政策页面
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'
});
}
})
}
},
onLoad
(
e
)
{
//默认加载
let
openid
=
uni
.
getStorageSync
(
'openid'
);
...
...
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