Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
efa2150e
Commit
efa2150e
authored
Jul 22, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 安全常识富文本显示处理,home跳转页rev添加。
parent
ba1ce7ce
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12460 additions
and
16 deletions
+12460
-16
home.js
home.js
+3
-1
quill.js
sdk/quilljs/quill.js
+11489
-0
quill.snow.css
sdk/quilljs/quill.snow.css
+946
-0
_anquan_changshi-detail-text.html
src/_anquan_changshi-detail-text.html
+8
-7
_anquan_changshi-detail-text.js
src/_anquan_changshi-detail-text.js
+14
-8
No files found.
home.js
View file @
efa2150e
...
...
@@ -82,6 +82,7 @@ window.onload = function() {
merId
:
this
.
userInfo
.
merId
||
''
,
unitName
:
this
.
userInfo
.
unitName
,
smallPlaceTypeName
:
this
.
userInfo
.
smallPlaceTypeName
,
rev
:
(
+
new
Date
())
}
if
(
gemhoUtil
.
isShop
())
{
param
=
{
...
...
@@ -108,7 +109,8 @@ window.onload = function() {
const
strUrl
=
new
URL
(
data
);
const
param
=
{
merId
:
strUrl
.
searchParams
.
get
(
'
merId
'
),
accessType
:
strUrl
.
searchParams
.
get
(
'
accessType
'
)
accessType
:
strUrl
.
searchParams
.
get
(
'
accessType
'
),
rev
:
(
+
new
Date
())
};
if
(
param
.
merId
==
null
||
param
.
merId
==
''
)
{
alert
(
'
请扫描正确的商家二维码
'
)
...
...
sdk/quilljs/quill.js
0 → 100644
View file @
efa2150e
This diff is collapsed.
Click to expand it.
sdk/quilljs/quill.snow.css
0 → 100644
View file @
efa2150e
This diff is collapsed.
Click to expand it.
src/_anquan_changshi-detail-text.html
View file @
efa2150e
...
...
@@ -3,10 +3,13 @@
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewport-fit:cover"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewport-fit:cover"
>
<title>
安全常识
</title>
<script
src=
"../sdk/pdf.js"
></script>
<script
type=
"text/javascript"
src=
"../sdk/includeHead.js"
></script>
<link
href=
"../sdk/quilljs/quill.snow.css"
rel=
"stylesheet"
>
<script
src=
"../sdk/quilljs/quill.js"
></script>
</head>
<body>
<div
id=
"app"
>
...
...
@@ -29,10 +32,8 @@
</div>
</div>
</div>
<!-- 两列图文列表 -->
<div
style=
"padding: .2rem .3rem;"
v-html=
"detailInfo.content"
>
收快递费了时代峰峻
<div>
<div
id=
"editor-container"
></div>
</div>
</div>
...
...
src/_anquan_changshi-detail-text.js
View file @
efa2150e
...
...
@@ -85,12 +85,13 @@ function closePreview() {
currentPageNum
=
1
;
}
var
VUE
=
null
var
quill
=
null
window
.
addEventListener
(
"
load
"
,
function
()
{
VUE
=
new
Vue
({
el
:
'
#app
'
,
data
()
{
return
{
detailInfo
:{}
detailInfo
:
{}
}
},
created
()
{
...
...
@@ -132,11 +133,16 @@ window.addEventListener("load", function () {
})
},
0
);
this
.
detailInfo
=
JSON
.
parse
(
res
).
data
if
(
this
.
detailInfo
.
file
)
{
this
.
detailInfo
.
fileName
=
this
.
detailInfo
.
file
.
split
(
'
/
'
)[
this
.
detailInfo
.
file
.
split
(
'
/
'
).
length
-
1
]
if
(
this
.
detailInfo
.
file
)
{
this
.
detailInfo
.
fileName
=
this
.
detailInfo
.
file
.
split
(
'
/
'
)[
this
.
detailInfo
.
file
.
split
(
'
/
'
).
length
-
1
]
}
console
.
log
(
this
.
detailInfo
,
'
sssss
'
)
// 初始化编辑器
quill
=
new
Quill
(
'
#editor-container
'
,
{
theme
:
'
snow
'
,
readOnly
:
true
,
modules
:
{
toolbar
:
false
// 关键配置:禁用工具栏
},
});
quill
.
root
.
innerHTML
=
this
.
detailInfo
.
content
||
''
}
})
...
...
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