Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
b55b9aa5
Commit
b55b9aa5
authored
Jul 19, 2023
by
zeyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.优化目录跳转逻辑
parent
153a5abb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
+25
-1
myPackageA/lawManual/lawManual.vue
+25
-1
No files found.
myPackageA/lawManual/lawManual.vue
View file @
b55b9aa5
...
...
@@ -32,7 +32,10 @@
目录
</view>
<view
v-for=
"item in showList"
@
click=
"accessLogSave(item.id)"
>
<a
:href=
"'#catalogue'+item.id"
>
第
{{
indexList
[
item
.
no
-
1
]
}}
篇
{{
item
.
id
==
7
?
''
:
':'
}}{{
item
.
name
}}
</a>
<!-- 第
{{
indexList
[
item
.
no
-
1
]
}}
篇
{{
item
.
id
==
7
?
''
:
':'
}}{{
item
.
name
}}
-->
<a
href=
"javascript:void(0);"
>
第
{{
indexList
[
item
.
no
-
1
]
}}
篇
{{
item
.
id
==
7
?
''
:
':'
}}{{
item
.
name
}}
</a>
</view>
<!--
<view
@
click=
"accessLogSave(2)"
v-if=
"powerCodes.includes('2') || powerCodes.includes('0')"
>
<a
href=
"#catalogue2"
>
第二篇:民法典婚姻家庭编
</a>
...
...
@@ -1751,6 +1754,23 @@
let
isNeedLogin
=
ref
(
false
);
const
c_scrollInfoView
=
(
id
)
=>
{
uni
.
pageScrollTo
({
duration
:
300
,
// 滚动动画过渡时间
// scrollTop: data['top'], // 滚动的值
selector
:
id
,
})
// document.querySelector(id).scrollIntoView({ behavior: "smooth" })
// uni.createSelectorQuery().select(id).boundingClientRect(data => {
// console.log(data);
// // 调用页面滚动的api
// uni.pageScrollTo({
// duration: 300, // 滚动动画过渡时间
// scrollTop: data['top'], // 滚动的值
// })
// }).exec();
}
//点击发送验证码
const
c_sendCode
=
()
=>
{
let
phoneRs
=
common
.
mobileNoValid
(
mobile
.
value
);
...
...
@@ -1846,6 +1866,10 @@
}
//保存访问记录
const
accessLogSave
=
(
type
)
=>
{
if
(
type
!=
0
){
c_scrollInfoView
(
'#catalogue'
+
type
);
}
api
.
accessLogSave
({
"userId"
:
isNeedLogin
?
userId
.
value
:
null
,
"sessionId"
:
sessionId
.
value
,
"accessUrl"
:
cffpURL
+
"/myPackageA/lawManual/lawManual"
,
"accessType"
:
type
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
...
...
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