Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2ab4f80d
authored
May 29, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 限制表情输入
1 parent
09aa324c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
components/OrderPopup/index.vue
pages/boutique/tool/components/OrderManagement.vue
components/OrderPopup/index.vue
View file @
2ab4f80
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</view>
</view>
<template
v-if=
"componentObject[popupType] && !componentObject[popupType].hideSearch"
>
<template
v-if=
"componentObject[popupType] && !componentObject[popupType].hideSearch"
>
<view
class=
"popup-search"
>
<view
class=
"popup-search"
>
<input
class=
"input"
type=
"text"
:placeholder=
"(componentObject[popupType] && componentObject[popupType].placeholder) || '请输入'"
placeholder-class=
"placeholder"
v-model=
"componentObject[popupType].searchValue"
confirm-type=
"search"
@
confirm=
"handleSearch"
/>
<input
class=
"input"
type=
"text"
:placeholder=
"(componentObject[popupType] && componentObject[popupType].placeholder) || '请输入'"
placeholder-class=
"placeholder"
v-model=
"componentObject[popupType].searchValue"
confirm-type=
"search"
@
input=
"onSearchValueInput"
@
confirm=
"handleSearch"
/>
<view
class=
"clear flex"
@
click=
"clear"
>
<view
class=
"clear flex"
@
click=
"clear"
>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"componentObject[popupType] && componentObject[popupType].searchValue"
></uni-icons>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"componentObject[popupType] && componentObject[popupType].searchValue"
></uni-icons>
</view>
</view>
...
@@ -256,6 +256,15 @@ export default {
...
@@ -256,6 +256,15 @@ export default {
popupType
:
12
popupType
:
12
},
true
)
},
true
)
},
},
onSearchValueInput
(
e
)
{
const
filtered
=
(
e
.
detail
.
value
||
''
).
replace
(
/
(\u
d83c
[\u
df00-
\u
dfff
])
|
(\u
d83d
[\u
dc00-
\u
de4f
\u
de80-
\u
deff
])
|
(\u
d83e
[\u
dd00-
\u
ddff
])
|
[\u
2600-
\u
26FF
]
|
[\u
2700-
\u
27BF
]
|
[\u
FE0F
]
/gi
,
''
)
this
.
$nextTick
(()
=>
{
this
.
$set
(
this
.
componentObject
[
this
.
popupType
],
'searchValue'
,
filtered
)
})
},
clear
()
{
clear
()
{
this
.
componentObject
[
this
.
popupType
].
searchValue
=
''
this
.
componentObject
[
this
.
popupType
].
searchValue
=
''
this
.
handleSearch
()
this
.
handleSearch
()
...
...
pages/boutique/tool/components/OrderManagement.vue
View file @
2ab4f80
<
template
>
<
template
>
<view
class=
"order-management"
>
<view
class=
"order-management"
>
<view
class=
"search-box"
>
<view
class=
"search-box"
>
<input
class=
"search-input"
placeholder-class=
"placeholder"
v-model=
"keyword"
confirm-type=
"search"
@
confirm=
"search"
placeholder=
"输入客户姓名/商品名称/订单编号/手机号搜索"
/>
<input
class=
"search-input"
placeholder-class=
"placeholder"
v-model=
"keyword"
confirm-type=
"search"
@
input=
"onKeywordInput"
@
confirm=
"search"
placeholder=
"输入客户姓名/商品名称/订单编号/手机号搜索"
/>
<view
class=
"clear flex"
@
click=
"clear"
>
<view
class=
"clear flex"
@
click=
"clear"
>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"keyword"
></uni-icons>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"keyword"
></uni-icons>
</view>
</view>
...
@@ -237,6 +237,15 @@ export default {
...
@@ -237,6 +237,15 @@ export default {
this
.
clearWaitOrderPolling
()
this
.
clearWaitOrderPolling
()
},
},
methods
:
{
methods
:
{
onKeywordInput
(
e
)
{
const
filtered
=
(
e
.
detail
.
value
||
''
).
replace
(
/
(\u
d83c
[\u
df00-
\u
dfff
])
|
(\u
d83d
[\u
dc00-
\u
de4f
\u
de80-
\u
deff
])
|
(\u
d83e
[\u
dd00-
\u
ddff
])
|
[\u
2600-
\u
26FF
]
|
[\u
2700-
\u
27BF
]
|
[\u
FE0F
]
/gi
,
''
)
this
.
$nextTick
(()
=>
{
this
.
keyword
=
filtered
})
},
clear
()
{
clear
()
{
this
.
keyword
=
''
this
.
keyword
=
''
this
.
search
()
this
.
search
()
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment