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
9b6fd952
Commit
9b6fd952
authored
Dec 29, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
6cda7d4a
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
48 additions
and
12 deletions
+48
-12
index.html
project/public/index.html
+2
-2
sparkrc.js
project/sparkrc.js
+1
-1
app.less
project/src/app.less
+31
-0
rule.jsx
project/src/components/rule/rule.jsx
+1
-1
select.jsx
project/src/components/select/select.jsx
+2
-2
sign.jsx
project/src/components/sign/sign.jsx
+2
-2
userinfo.jsx
project/src/components/userinfo/userinfo.jsx
+3
-3
loading.jsx
project/src/pages/loading/loading.jsx
+3
-1
config.js
project/src/util/config.js
+2
-0
enum.js
project/src/util/enum.js
+1
-0
No files found.
project/public/index.html
View file @
9b6fd952
...
@@ -75,12 +75,12 @@
...
@@ -75,12 +75,12 @@
</script>
</script>
<script
src=
"https://yun.duiba.com.cn/db_games/debug/vconsole.min.js"
></script>
<
!-- <
script src="https://yun.duiba.com.cn/db_games/debug/vconsole.min.js"></script>
<script>
<script>
// init vConsole
// init vConsole
var vConsole = new VConsole();
var vConsole = new VConsole();
console.log('Hello world');
console.log('Hello world');
</script>
</script>
-->
<!-- <script src="https://js.fundebug.cn/fundebug.2.0.0.min.js"
<!-- <script src="https://js.fundebug.cn/fundebug.2.0.0.min.js"
...
...
project/sparkrc.js
View file @
9b6fd952
...
@@ -4,6 +4,6 @@ module.exports = {
...
@@ -4,6 +4,6 @@ module.exports = {
TEMP_DIR
:
"./.temp"
,
TEMP_DIR
:
"./.temp"
,
ENTRY
:
"src/app.jsx"
,
ENTRY
:
"src/app.jsx"
,
TEMPLATE
:
"./public/index.html"
,
TEMPLATE
:
"./public/index.html"
,
MOCK_STATUS
:
fals
e
,
MOCK_STATUS
:
tru
e
,
PX2REM
:
true
PX2REM
:
true
};
};
project/src/app.less
View file @
9b6fd952
...
@@ -78,3 +78,34 @@ body {
...
@@ -78,3 +78,34 @@ body {
.canvasLayer{
.canvasLayer{
z-index: 99999;
z-index: 99999;
}
}
.popcontainer {
position: fixed;
// width: 750px;
// height: 1624px;
// top: 50%;
// left: 50%;
// margin-top:-812px;
// margin-left:-375px;
width: 100%;
height: calc(100vh);
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
background: rgba(0, 0, 0, 0.7);
}
.popcontainer_empty {
position: fixed;
width: 750px;
height: 1624px;
top: 50%;
left: 50%;
margin-left:-375px;
margin-top:-812px;
pointer-events: none;
// background: rgba(0, 0, 0, 0.01);
}
\ No newline at end of file
project/src/components/rule/rule.jsx
View file @
9b6fd952
...
@@ -31,7 +31,7 @@ class Rule extends Component {
...
@@ -31,7 +31,7 @@ class Rule extends Component {
<
span
ref=
"rule_txt_ref"
className=
"rule_txt "
uuid=
"b1275bdd-01e4-42f2-81c2-12a732f7f38c"
>
<
span
ref=
"rule_txt_ref"
className=
"rule_txt "
uuid=
"b1275bdd-01e4-42f2-81c2-12a732f7f38c"
>
</
span
>
</
span
>
<
img
<
img
onClick=
{
this
.
props
.
onClose
}
onClick=
{
this
.
props
.
closeWin
}
className=
"rule_close "
className=
"rule_close "
uuid=
"af9001ed-b3c5-404d-ab2a-34939510ea61"
uuid=
"af9001ed-b3c5-404d-ab2a-34939510ea61"
src=
{
this
.
state
.
resList
[
'3814359c-5889-4ffa-8b76-bc52f58ebd5d'
].
url
}
src=
{
this
.
state
.
resList
[
'3814359c-5889-4ffa-8b76-bc52f58ebd5d'
].
url
}
...
...
project/src/components/select/select.jsx
View file @
9b6fd952
...
@@ -38,7 +38,7 @@ class Select extends Component {
...
@@ -38,7 +38,7 @@ class Select extends Component {
// console.log("figureid设置==》",Role);
// console.log("figureid设置==》",Role);
// setTimeout(() => {
// setTimeout(() => {
// console.log('关闭这个弹窗');
// console.log('关闭这个弹窗');
// this.props.
onClose
();
// this.props.
closeWin
();
// }, 1000);
// }, 1000);
this
.
nshowidx
=
startselidx
;
this
.
nshowidx
=
startselidx
;
...
@@ -169,7 +169,7 @@ class Select extends Component {
...
@@ -169,7 +169,7 @@ class Select extends Component {
}
}
}
}
getHomeInfo
();
getHomeInfo
();
this
.
props
.
onClose
();
this
.
props
.
closeWin
();
dataCenter
.
setData
(
Store
.
needguide
,
true
);
dataCenter
.
setData
(
Store
.
needguide
,
true
);
}
else
{
}
else
{
if
(
updateuinfo
){
if
(
updateuinfo
){
...
...
project/src/components/sign/sign.jsx
View file @
9b6fd952
...
@@ -36,7 +36,7 @@ class Sign extends Component {
...
@@ -36,7 +36,7 @@ class Sign extends Component {
if
(
res
.
data
.
type
!==
'joyBean'
)
{
if
(
res
.
data
.
type
!==
'joyBean'
)
{
// Aup.show('PrizeRule', res.data, this);
// Aup.show('PrizeRule', res.data, this);
}
else
{
}
else
{
this
.
props
.
onClose
();
this
.
props
.
closeWin
();
Toast
(
`恭喜你成功领取
${
res
.
data
.
awardName
}
`
)
Toast
(
`恭喜你成功领取
${
res
.
data
.
awardName
}
`
)
}
}
}
else
{
}
else
{
...
@@ -116,7 +116,7 @@ class Sign extends Component {
...
@@ -116,7 +116,7 @@ class Sign extends Component {
src=
{
this
.
state
.
resList
[
'7d7b7747-b417-45c0-959c-3d39603afc69'
].
url
}
src=
{
this
.
state
.
resList
[
'7d7b7747-b417-45c0-959c-3d39603afc69'
].
url
}
/>
/>
<
img
<
img
onClick=
{
this
.
props
.
onClose
}
onClick=
{
this
.
props
.
closeWin
}
className=
"sign_close "
className=
"sign_close "
uuid=
"e112e990-527f-4a53-8eb4-3eb6bc60ad40"
uuid=
"e112e990-527f-4a53-8eb4-3eb6bc60ad40"
src=
{
this
.
state
.
resList
[
'104ff753-c9bc-4218-969c-3c3fa4d11610'
].
url
}
src=
{
this
.
state
.
resList
[
'104ff753-c9bc-4218-969c-3c3fa4d11610'
].
url
}
...
...
project/src/components/userinfo/userinfo.jsx
View file @
9b6fd952
...
@@ -40,7 +40,7 @@ class Userinfo extends Component {
...
@@ -40,7 +40,7 @@ class Userinfo extends Component {
console
.
log
(
'res'
,
res
);
console
.
log
(
'res'
,
res
);
if
(
res
&&
res
.
success
)
{
if
(
res
&&
res
.
success
)
{
getHomeInfo
();
getHomeInfo
();
this
.
props
.
onClose
();
this
.
props
.
closeWin
();
}
else
{
}
else
{
switch
(
res
.
code
)
{
switch
(
res
.
code
)
{
case
'10004'
:
case
'10004'
:
...
@@ -72,7 +72,7 @@ class Userinfo extends Component {
...
@@ -72,7 +72,7 @@ class Userinfo extends Component {
// // }
// // }
// // }
// // }
// // getHomeInfo();
// // getHomeInfo();
// // this.props.
onClose
();
// // this.props.
closeWin
();
// // dataCenter.setData(Store.needguide,true);
// // dataCenter.setData(Store.needguide,true);
// } else {
// } else {
// // if(updateuinfo){
// // if(updateuinfo){
...
@@ -105,7 +105,7 @@ class Userinfo extends Component {
...
@@ -105,7 +105,7 @@ class Userinfo extends Component {
{
figureId
==
2
&&
<
img
className=
"userinfo_avatar "
src=
"//yun.duiba.com.cn/spark/assets/042c2b238932872aa066fd989f2169715789a3c3.png"
/>
}
{
figureId
==
2
&&
<
img
className=
"userinfo_avatar "
src=
"//yun.duiba.com.cn/spark/assets/042c2b238932872aa066fd989f2169715789a3c3.png"
/>
}
{
figureId
==
3
&&
<
img
className=
"userinfo_avatar "
src=
"//yun.duiba.com.cn/spark/assets/5a672d98433d289091b879a2d546970c281cb9d2.png"
/>
}
{
figureId
==
3
&&
<
img
className=
"userinfo_avatar "
src=
"//yun.duiba.com.cn/spark/assets/5a672d98433d289091b879a2d546970c281cb9d2.png"
/>
}
<
img
<
img
onClick=
{
this
.
props
.
onClose
}
onClick=
{
this
.
props
.
closeWin
}
className=
"userinfo_close "
className=
"userinfo_close "
uuid=
"4f217b43-8438-451e-b28f-0e9d611fce2b"
uuid=
"4f217b43-8438-451e-b28f-0e9d611fce2b"
src=
{
this
.
state
.
resList
[
'c7826e1a-8b74-44da-922f-0fe078587999'
].
url
}
src=
{
this
.
state
.
resList
[
'c7826e1a-8b74-44da-922f-0fe078587999'
].
url
}
...
...
project/src/pages/loading/loading.jsx
View file @
9b6fd952
...
@@ -8,6 +8,8 @@ import resList from '../../resconfig/resList'; //import API from '../../api';
...
@@ -8,6 +8,8 @@ import resList from '../../resconfig/resList'; //import API from '../../api';
import
API
from
'../../api'
;
import
API
from
'../../api'
;
import
'./loading.less'
;
import
'./loading.less'
;
import
dataCenter
,
{
getAPIdata
,
getHomeInfo
,
Store
}
from
'../../dataCenter'
;
import
dataCenter
,
{
getAPIdata
,
getHomeInfo
,
Store
}
from
'../../dataCenter'
;
import
ViewCtrl
from
"../../util/viewCtrl"
;
import
Enum
from
'../../util/enum'
;
class
Loading
extends
Component
{
class
Loading
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -107,7 +109,7 @@ class Loading extends Component {
...
@@ -107,7 +109,7 @@ class Loading extends Component {
if
(
newUser
)
{
if
(
newUser
)
{
//新用户,走选择,然后再走引导,引导结束后,走签到
//新用户,走选择,然后再走引导,引导结束后,走签到
// Aup.show('Select', {}, this
);
ViewCtrl
.
showWin
(
Enum
.
Com
.
Select
);
isnewUser
=
1
;
isnewUser
=
1
;
}
}
}
}
...
...
project/src/util/config.js
View file @
9b6fd952
import
Userinfo
from
"../components/userinfo/userinfo.jsx"
;
import
Userinfo
from
"../components/userinfo/userinfo.jsx"
;
import
Select
from
"../components/select/select.jsx"
;
// import Comtask from '../components/comtask/comtask.jsx';
// import Comtask from '../components/comtask/comtask.jsx';
// import ComconfirmExchange from '../components/comconfirmExcahnge/comconfirmExcahnge.jsx';
// import ComconfirmExchange from '../components/comconfirmExcahnge/comconfirmExcahnge.jsx';
// import ComExchangesuccess from '../components/comexchangesuccess/comexchangesuccess.jsx';
// import ComExchangesuccess from '../components/comexchangesuccess/comexchangesuccess.jsx';
...
@@ -8,6 +9,7 @@ const { default: Enum } = require("./enum");
...
@@ -8,6 +9,7 @@ const { default: Enum } = require("./enum");
let
comMap
=
new
Map
();
let
comMap
=
new
Map
();
comMap
.
set
(
Enum
.
Com
.
Userinfo
,
Userinfo
);
comMap
.
set
(
Enum
.
Com
.
Userinfo
,
Userinfo
);
comMap
.
set
(
Enum
.
Com
.
Select
,
Select
);
// comMap.set(Enum.Com.comtask, Comtask);
// comMap.set(Enum.Com.comtask, Comtask);
// comMap.set(Enum.Com.comconfirmExchange, ComconfirmExchange);
// comMap.set(Enum.Com.comconfirmExchange, ComconfirmExchange);
// comMap.set(Enum.Com.comExchangesuccess, ComExchangesuccess);
// comMap.set(Enum.Com.comExchangesuccess, ComExchangesuccess);
...
...
project/src/util/enum.js
View file @
9b6fd952
...
@@ -24,6 +24,7 @@ const Enum = {
...
@@ -24,6 +24,7 @@ const Enum = {
comconfirmExchange
:
2003
,
comconfirmExchange
:
2003
,
comExchangesuccess
:
2004
,
comExchangesuccess
:
2004
,
Userinfo
:
2005
,
Userinfo
:
2005
,
Select
:
2006
,
},
},
Store
:{
Store
:{
...
...
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