Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
icbcRPG
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
icbcRPG
Commits
af9b61b3
Commit
af9b61b3
authored
Dec 29, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3c8f904f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
6 deletions
+30
-6
package.json
project/package.json
+1
-2
select.jsx
project/src/components/select/select.jsx
+1
-1
sign.jsx
project/src/components/sign/sign.jsx
+1
-1
userinfo.jsx
project/src/components/userinfo/userinfo.jsx
+1
-1
loading.jsx
project/src/pages/loading/loading.jsx
+1
-1
ui.js
project/src/ui.js
+25
-0
No files found.
project/package.json
View file @
af9b61b3
...
...
@@ -30,8 +30,7 @@
"redux-thunk"
:
"^2.3.0"
,
"spark-utils"
:
"^0.0.12"
,
"style-loader"
:
"^1.2.1"
,
"svgaplayerweb"
:
"^2.3.1"
,
"teddi"
:
"git+ssh://git@gitlab2.dui88.com:wildfirecode13/teddi.git"
"svgaplayerweb"
:
"^2.3.1"
},
"devDependencies"
:
{
"mockjs"
:
"^1.1.0"
...
...
project/src/components/select/select.jsx
View file @
af9b61b3
...
...
@@ -4,7 +4,7 @@ import { Toast } from '@spark/ui';
import
React
,
{
Component
}
from
'react'
;
import
dataCenter
,
{
getAPIdata
,
getHomeInfo
,
netErrMsg
,
Role
,
Store
}
from
'../../dataCenter'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
{
debounce
,
Countdown
}
from
"teddi"
;
import
{
debounce
}
from
'../../ui'
;
import
'./select.less'
;
const
startselidx
=
1
;
...
...
project/src/components/sign/sign.jsx
View file @
af9b61b3
...
...
@@ -6,8 +6,8 @@ import API from '../../api';
import
{
getHomeInfo
}
from
'../../dataCenter'
;
import
{
Aup
}
from
'../../pop'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
{
debounce
}
from
'../../ui'
;
import
'./sign.less'
;
import
{
debounce
,
Countdown
}
from
"teddi"
;
class
Sign
extends
Component
{
constructor
(
props
)
{
...
...
project/src/components/userinfo/userinfo.jsx
View file @
af9b61b3
...
...
@@ -5,8 +5,8 @@ import React, { Component } from 'react';
import
API
from
'../../api'
;
import
{
getHomeInfo
}
from
'../../dataCenter'
;
import
resList
from
'../../resconfig/resList'
;
import
{
debounce
}
from
'../../ui'
;
import
'./userinfo.less'
;
import
{
debounce
,
Countdown
}
from
"teddi"
;
class
Userinfo
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
project/src/pages/loading/loading.jsx
View file @
af9b61b3
'use strict'
;
import
{
appID
}
from
'duiba-utils'
;
import
React
,
{
Component
}
from
'react'
;
// import { Timer } from 'teddi';
import
React
,
{
Component
}
from
'react'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
...
...
project/src/ui.js
0 → 100644
View file @
af9b61b3
/**
* 防连点
* @param fn 点击处理方法
* @param wait 等待时间,单位毫秒,默认2000
*/
export
const
debounce
=
(
fn
,
wait
=
2000
,
immediate
=
true
)
=>
{
let
timer
;
return
function
()
{
if
(
timer
)
clearTimeout
(
timer
)
if
(
immediate
)
{
// 如果已经执行过,不再执行
var
callNow
=
!
timer
timer
=
setTimeout
(()
=>
{
timer
=
null
},
wait
)
if
(
callNow
)
{
fn
()
}
}
else
{
timer
=
setTimeout
(()
=>
{
fn
()
},
wait
)
}
}
}
\ No newline at end of file
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