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
18bd8ba0
Commit
18bd8ba0
authored
Jul 19, 2023
by
zeyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化法条摘要
parent
5109977f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
146 additions
and
27 deletions
+146
-27
myPackageA/lawManual/lawManual.vue
+146
-27
No files found.
myPackageA/lawManual/lawManual.vue
View file @
18bd8ba0
<
template
>
<
template
>
<view
class=
"container"
v-if=
"isShow"
>
<view
class=
"container"
v-if=
"
!
isShow"
>
<view
style=
"position: absolute;width: 60%;left: 20%;top: 50rpx;"
>
<view
style=
"position: absolute;width: 60%;left: 20%;top: 50rpx;"
>
<image
src=
"../../static/lawManual/backGroundImg.png"
mode=
"widthFix"
></image>
<image
src=
"../../static/lawManual/backGroundImg.png"
mode=
"widthFix"
></image>
</view>
</view>
...
@@ -912,7 +912,7 @@
...
@@ -912,7 +912,7 @@
</view>
</view>
</view>
</view>
<view
class=
"keyPoint"
>
<view
class=
"keyPoint"
>
要点:
继承份额
要点:
遗嘱的类型
</view>
</view>
<view
class=
"articleItem"
>
<view
class=
"articleItem"
>
<view
class=
"chaptersItemText"
>
<view
class=
"chaptersItemText"
>
...
@@ -1081,7 +1081,7 @@
...
@@ -1081,7 +1081,7 @@
</view>
</view>
</view>
</view>
<view
class=
"keyPoint"
>
<view
class=
"keyPoint"
>
要点:继承与遗
增
的放弃
要点:继承与遗
赠
的放弃
</view>
</view>
<view
class=
"articleItem"
>
<view
class=
"articleItem"
>
<view
class=
"chaptersItemText"
>
<view
class=
"chaptersItemText"
>
...
@@ -1678,17 +1678,25 @@
...
@@ -1678,17 +1678,25 @@
<image
mode=
"widthFix"
src=
"../../static/lawManual/backtop.png"
></image>
<image
mode=
"widthFix"
src=
"../../static/lawManual/backtop.png"
></image>
</view>
</view>
<view>
<view>
<uni-popup
ref=
"loginPopup"
>
<uni-popup
ref=
"loginPopup"
:mask-click=
"false"
>
<view
class=
"loginPopupBox"
>
<view
class=
"loginPopupBox"
>
<view
class=
"loginPopupTitle"
>
<view
class=
"loginPopupTitle"
>
登录/注册即可免费查看
登录/注册即可免费查看
</view>
</view>
<view
class=
"loginPopupInput"
>
<view
class=
"loginPopupInput"
>
<view
class=
"loginPopupInputLine"
>
<view
class=
"loginPopupInputLine"
>
<input
type=
"number"
placeholder=
"请输入手机号"
>
<input
v-model=
"mobile"
maxlength=
"11"
type=
"number"
placeholder=
"请输入手机号"
>
</view>
</view>
<view
class=
"loginPopupInputLine"
>
<view
class=
"loginPopupInputLine"
style=
"display: flex;justify-content: space-between;align-items: center;"
>
<input
type=
"number"
placeholder=
"请输入验证码"
>
<input
v-model=
"code"
maxlength=
"6"
type=
"number"
placeholder=
"请输入验证码"
>
<view
@
click=
"c_sendCode"
style=
"color: rgba(181, 151, 92, 1);width: 200rpx;font-size: 30rpx;text-align: right;"
>
{{
sendCodeHtml
}}
</view>
</view>
</view>
<view
class=
"loginPopupButtonBox"
@
click=
"loginVerification"
>
<view>
登录/注册
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -1705,11 +1713,15 @@
...
@@ -1705,11 +1713,15 @@
import
{
onPageScroll
}
from
"@dcloudio/uni-app"
;
import
{
onPageScroll
}
from
"@dcloudio/uni-app"
;
import
api
from
"@/api/api"
import
api
from
"@/api/api"
import
{
baseURL
,
apiURL
,
cffpURL
}
from
"@/environments/environment"
;
import
{
baseURL
,
apiURL
,
cffpURL
}
from
"@/environments/environment"
;
import
common
from
'../../common/common'
;
//登录弹窗
let
loginPopup
=
ref
();
let
loginPopup
=
ref
();
let
isShow
=
ref
(
false
);
let
isShow
=
ref
(
false
);
let
isShowBackTop
=
ref
(
false
);
let
isShowBackTop
=
ref
(
false
);
let
userId
=
ref
(
null
);
let
sessionId
=
ref
(
''
);
let
sessionId
=
ref
(
''
);
//返回的权限列表
let
powerCodes
=
ref
([]);
let
powerCodes
=
ref
([]);
let
showList
=
ref
([]);
let
showList
=
ref
([]);
...
@@ -1724,6 +1736,69 @@
...
@@ -1724,6 +1736,69 @@
{
id
:
'7'
,
name
:
'(附):信托新法条-归纳总结'
,
no
:
0
}
{
id
:
'7'
,
name
:
'(附):信托新法条-归纳总结'
,
no
:
0
}
])
])
//验证码倒计时
let
remainTimes
=
ref
(
60
);
//验证码文字
let
sendCodeHtml
=
ref
(
'获取验证码'
);
//计时器
let
timer
=
ref
();
//手机号
let
mobile
=
ref
(
null
);
//验证码
let
code
=
ref
(
null
);
//动态开关:是否需要登录
let
isNeedLogin
=
ref
(
false
);
//点击发送验证码
const
c_sendCode
=
()
=>
{
let
phoneRs
=
common
.
mobileNoValid
(
mobile
.
value
);
if
(
remainTimes
.
value
!=
60
)
{
return
;
}
if
(
phoneRs
)
{
uni
.
showLoading
({
mask
:
true
});
api
.
verificationCode
({
"mobileNo"
:
mobile
.
value
,
"type"
:
"1"
,
"source"
:
"cffp"
}).
then
(
res
=>
{
uni
.
hideLoading
();
if
(
res
[
'success'
])
{
uni
.
showToast
({
icon
:
'none'
,
title
:
'发送成功'
,
duration
:
2000
})
delayTime
();
}
else
{
uni
.
showToast
({
icon
:
'none'
,
title
:
res
[
'message'
],
duration
:
2000
})
}
})
}
else
{
uni
.
showToast
({
icon
:
'none'
,
title
:
'手机号格式错误'
,
duration
:
2000
})
}
}
//开启计时器
const
delayTime
=
()
=>
{
timer
.
value
=
setInterval
(()
=>
{
remainTimes
.
value
--
;
sendCodeHtml
.
value
=
`
${
remainTimes
.
value
}
(S)`
;
if
(
remainTimes
.
value
<=
0
)
{
sendCodeHtml
.
value
=
'获取验证码'
;
remainTimes
.
value
=
60
;
clearInterval
(
timer
.
value
);
}
},
1000
);
}
//返回顶部
//返回顶部
const
c_backTop
=
()
=>
{
const
c_backTop
=
()
=>
{
...
@@ -1734,21 +1809,32 @@
...
@@ -1734,21 +1809,32 @@
});
});
}
}
//发送验证码
const
verificationCode
=
()
=>
{
api
.
verificationCode
({
"mobileNo"
:
"17520202940"
,
"type"
:
"1"
,
"source"
:
"cffp"
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
//开始计时
}
});
}
//登录
//登录
const
loginVerification
=
()
=>
{
const
loginVerification
=
()
=>
{
api
.
loginVerification
({
"loginType"
:
3
,
"mobile"
:
"17520202940"
,
"code"
:
"643947"
,
"password"
:
null
,
"loginSystem"
:
"1"
}).
then
((
res
)
=>
{
if
(
!
common
.
mobileNoValid
(
mobile
.
value
)){
uni
.
showToast
({
icon
:
'none'
,
title
:
'手机号格式错误'
,
duration
:
2000
})
return
;
}
if
(
!
code
.
value
){
uni
.
showToast
({
icon
:
'none'
,
title
:
'请输入验证码'
,
duration
:
2000
})
return
;
}
api
.
loginVerification
({
"loginType"
:
3
,
"mobile"
:
mobile
.
value
,
"code"
:
code
.
value
,
"password"
:
null
,
"loginSystem"
:
"1"
}).
then
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
uni
.
setStorageSync
(
'isLogin'
,
'1'
);
loginPopup
.
value
.
close
();
uni
.
setStorageSync
(
'loginType'
,
'codelogin'
);
uni
.
setStorageSync
(
'cffp_userId'
,
String
(
res
[
'data'
][
'userId'
]));
uni
.
setStorageSync
(
'cffp_userId'
,
String
(
res
[
'data'
][
'userId'
]));
uni
.
setStorageSync
(
'uni-token'
,
res
[
'data'
][
'token'
]);
userId
.
value
=
String
(
res
[
'data'
][
'userId'
]);
powerQuery
();
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
],
title
:
res
[
'message'
],
...
@@ -1760,7 +1846,7 @@
...
@@ -1760,7 +1846,7 @@
}
}
//保存访问记录
//保存访问记录
const
accessLogSave
=
(
type
)
=>
{
const
accessLogSave
=
(
type
)
=>
{
api
.
accessLogSave
({
"userId"
:
null
,
"sessionId"
:
sessionId
.
value
,
"accessUrl"
:
cffpURL
+
"/myPackageA/lawManual/lawManual"
,
"accessType"
:
type
}).
then
(
res
=>
{
api
.
accessLogSave
({
"userId"
:
isNeedLogin
?
userId
.
value
:
null
,
"sessionId"
:
sessionId
.
value
,
"accessUrl"
:
cffpURL
+
"/myPackageA/lawManual/lawManual"
,
"accessType"
:
type
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
}
}
...
@@ -1768,7 +1854,7 @@
...
@@ -1768,7 +1854,7 @@
}
}
//获取权限
//获取权限
const
powerQuery
=
()
=>
{
const
powerQuery
=
()
=>
{
api
.
powerQuery
({
"systemType"
:
"1"
,
"userId"
:
null
,
"sessionId"
:
sessionId
.
value
}).
then
(
res
=>
{
api
.
powerQuery
({
"systemType"
:
"1"
,
"userId"
:
isNeedLogin
?
userId
.
value
:
null
,
"sessionId"
:
sessionId
.
value
}).
then
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
powerCodes
.
value
=
res
[
'data'
][
'powerCodes'
];
powerCodes
.
value
=
res
[
'data'
][
'powerCodes'
];
// powerCodes.value=[0];
// powerCodes.value=[0];
...
@@ -1807,6 +1893,8 @@
...
@@ -1807,6 +1893,8 @@
}
}
}
}
const
init
=
()
=>
{
const
init
=
()
=>
{
//本地是否有sessionId 有则直接使用,没有则生成一个
let
storageSessionId
=
uni
.
getStorageSync
(
'sessionId'
);
let
storageSessionId
=
uni
.
getStorageSync
(
'sessionId'
);
if
(
storageSessionId
)
{
if
(
storageSessionId
)
{
sessionId
.
value
=
storageSessionId
;
sessionId
.
value
=
storageSessionId
;
...
@@ -1815,7 +1903,22 @@
...
@@ -1815,7 +1903,22 @@
sessionId
.
value
=
storageSessionId
;
sessionId
.
value
=
storageSessionId
;
uni
.
setStorageSync
(
'sessionId'
,
storageSessionId
);
uni
.
setStorageSync
(
'sessionId'
,
storageSessionId
);
}
}
powerQuery
();
if
(
isNeedLogin
.
value
){
//缓存中是否有userId 如果没有弹出登录窗口
userId
.
value
=
uni
.
getStorageSync
(
'cffp_userId'
);
if
(
!
userId
.
value
){
loginPopup
.
value
.
open
();
}
else
{
powerQuery
();
}
}
else
{
powerQuery
();
}
}
}
const
uuid
=
()
=>
{
const
uuid
=
()
=>
{
...
@@ -1843,7 +1946,7 @@
...
@@ -1843,7 +1946,7 @@
}
}
onMounted
(()
=>
{
onMounted
(()
=>
{
// loginPopup.value.open();
document
.
oncontextmenu
=
function
()
{
return
false
}
//屏蔽右键菜单
document
.
oncontextmenu
=
function
()
{
return
false
}
//屏蔽右键菜单
document
.
onpaste
=
function
()
{
return
false
}
//屏蔽粘贴
document
.
onpaste
=
function
()
{
return
false
}
//屏蔽粘贴
document
.
oncopy
=
function
()
{
return
false
}
//屏蔽复制
document
.
oncopy
=
function
()
{
return
false
}
//屏蔽复制
...
@@ -1852,7 +1955,7 @@
...
@@ -1852,7 +1955,7 @@
// let uniPlatform = uni.getSystemInfoSync();
// let uniPlatform = uni.getSystemInfoSync();
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
isShow
.
value
=
ua
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
;
isShow
.
value
=
ua
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
;
if
(
isShow
.
value
)
{
if
(
!
isShow
.
value
)
{
init
();
init
();
}
}
})
})
...
@@ -1879,20 +1982,36 @@
...
@@ -1879,20 +1982,36 @@
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
.loginPopupBox
{
.loginPopupBox
{
padding
:
30
rpx
4
0
rpx
;
padding
:
0
rpx
5
0
rpx
;
border-radius
:
20
rpx
;
border-radius
:
20
rpx
;
background
:
linear-gradient
(
180deg
,
rgba
(
246
,
232
,
219
,
1
)
0%
,
rgba
(
255
,
255
,
255
,
1
)
100%
);
background
:
linear-gradient
(
180deg
,
rgba
(
246
,
232
,
219
,
1
)
0%
,
rgba
(
255
,
255
,
255
,
1
)
100%
);
.loginPopupTitle{
.loginPopupTitle{
color
:
rgba
(
17
,
24
,
38
,
1
);
color
:
rgba
(
17
,
24
,
38
,
1
);
font-size
:
34
rpx
;
font-size
:
34
rpx
;
margin-bottom
:
40
rpx
;
padding
:
50
rpx
0
70
rpx
0
;
text-align
:
center
;
font-weight
:
bold
;
}
}
.loginPopupInput
{
.loginPopupInput
{
.loginPopupInputLine{
.loginPopupInputLine{
background-color
:
#fff
;
background-color
:
#fff
;
margin-bottom
:
50
rpx
;
margin-bottom
:
35
rpx
;
padding
:
2
0
rpx
30
rpx
;
padding
:
2
5
rpx
30
rpx
;
border-radius
:
5px
;
border-radius
:
5px
;
width
:
470
rpx
;
}
}
.loginPopupButtonBox
{
padding
:
40
rpx
0
90
rpx
0
;
view{
font-size
:
32
rpx
;
color
:
#fff
;
background
:
linear-gradient
(
0deg
,
rgba
(
181
,
151
,
92
,
1
)
0%
,
rgba
(
230
,
204
,
154
,
1
)
100%
);
box-shadow
:
0px
3px
10px
rgba
(
186
,
156
,
98
,
0.57
);
border-radius
:
200
rpx
;
padding
:
35
rpx
0
;
text-align
:
center
;
}
}
}
}
}
}
...
...
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