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
0668d7ce
Commit
0668d7ce
authored
Sep 02, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:鸿蒙判断工具方法,整改图片删除,整改日期下拉15,30
parent
e471aeba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
util.js
sdk/util.js
+6
-0
_anquan_changshi-detail-text.js
src/_anquan_changshi-detail-text.js
+6
-1
_check_info.html
src/_check_info.html
+1
-1
_check_info.js
src/_check_info.js
+1
-1
No files found.
sdk/util.js
View file @
0668d7ce
...
...
@@ -341,6 +341,12 @@ gemhoUtil.isIOSStrict = function() {
}
gemhoUtil
.
isHarmonyOS
=
function
()
{
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
const
isHarmonyOS
=
/harmonyos|harmony|hmos/
.
test
(
userAgent
);
return
isHarmonyOS
;
}
gemhoUtil
.
validateChineseName
=
function
(
name
)
{
const
regex
=
/^
(?:[\u
4E00-
\u
9FA5
\u
3007
\u
3400-
\u
4DBF
\u
F900-
\u
FAFF
]
|
[\u
D840-
\u
D87F
][\u
DC00-
\u
DFFD
])
+
(?:
·
(?:[\u
4E00-
\u
9FA5
\u
3007
\u
3400-
\u
4DBF
\u
F900-
\u
FAFF
]
|
[\u
D840-
\u
D87F
][\u
DC00-
\u
DFFD
])
+
)
*$/
;
...
...
src/_anquan_changshi-detail-text.js
View file @
0668d7ce
...
...
@@ -154,11 +154,16 @@ window.addEventListener("load", function () {
return
}
if
(
gemhoUtil
.
isIOSStrict
()){
// 如果是苹果手机,预览pdf直接调转
if
(
!
gemhoUtil
.
isIOSStrict
()){
// 如果是苹果手机,预览pdf直接调转
location
.
href
=
this
.
detailInfo
.
file
return
}
if
(
!
gemhoUtil
.
isHarmonyOS
()){
// 如果是鸿蒙手机,预览pdf直接调转
location
.
href
=
this
.
detailInfo
.
file
return
}
vant
.
Toast
.
loading
({
message
:
'
正在加载...
'
,
...
...
src/_check_info.html
View file @
0668d7ce
...
...
@@ -232,7 +232,7 @@
<img
:src=
"previewUrl + imgItem"
style=
"width: 1.6rem; height: 1.6rem;"
@
click=
"showImage4camera(item.photos, index)"
/>
<div
class=
"van-uploader__preview-delete"
@
click=
"handleDeleteFloorPlan(item,
index)"
><i
@
click=
"handleDeleteFloorPlan(item,index)"
><i
class=
"van-icon van-icon-cross van-uploader__preview-delete-icon"
></i></div>
</div>
<div
v-if=
"item.photos.length < 4"
>
...
...
src/_check_info.js
View file @
0668d7ce
...
...
@@ -238,7 +238,7 @@ window.onload = function () {
});
},
// 处理平面图删除
handleDeleteFloorPlan
(
item
,
type
)
{
handleDeleteFloorPlan
(
item
,
index
)
{
item
.
photos
.
splice
(
index
,
1
);
},
paizhao
(
item
)
{
...
...
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