Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a1a29114
authored
Nov 13, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
e7cb381d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
package.json
utils/util.js
package.json
View file @
a1a2911
...
@@ -5,9 +5,8 @@
...
@@ -5,9 +5,8 @@
"main"
:
"app.js"
,
"main"
:
"app.js"
,
"dependencies"
:
{
"dependencies"
:
{
"@vant/weapp"
:
"^1.10.9"
,
"@vant/weapp"
:
"^1.10.9"
,
"glsx-applet-component"
:
"^1.1.2
4
"
"glsx-applet-component"
:
"^1.1.2
9
"
},
},
"devDependencies"
:
{},
"scripts"
:
{
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
},
...
...
utils/util.js
View file @
a1a2911
...
@@ -198,14 +198,14 @@ const decimal = (num, fixed = 2) => {
...
@@ -198,14 +198,14 @@ const decimal = (num, fixed = 2) => {
*/
*/
const
noScroll
=
()
=>
{}
const
noScroll
=
()
=>
{}
/**设置粘贴板内容 */
/**设置粘贴板内容 */
const
setCopyData
=
(
data
,
callBack
)
=>
{
//
const setCopyData = (data, callBack) => {
wx
.
setClipboardData
({
//
wx.setClipboardData({
data
:
data
,
//
data: data,
success
(
res
)
{
//
success(res) {
if
(
callBack
&&
typeof
callBack
===
'function'
)
callBack
(
res
)
//
if (callBack && typeof callBack === 'function') callBack(res)
}
//
}
})
//
})
}
//
}
/**是否全面屏 */
/**是否全面屏 */
const
isFullSucreen
=
(
isComponents
)
=>
{
const
isFullSucreen
=
(
isComponents
)
=>
{
const
thisPage
=
$router
.
getPageInstance
()
const
thisPage
=
$router
.
getPageInstance
()
...
@@ -519,7 +519,7 @@ const Util = {
...
@@ -519,7 +519,7 @@ const Util = {
hideLoading
,
hideLoading
,
getMockConfig
,
getMockConfig
,
getViewInfo
,
getViewInfo
,
setCopyData
,
//
setCopyData,
getSceneId
,
getSceneId
,
haveEmoji
,
haveEmoji
,
showToast
,
showToast
,
...
...
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