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
94b7e40d
Commit
94b7e40d
authored
Dec 26, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d9e0469a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
95 additions
and
62 deletions
+95
-62
index.js
project/mock/e-family/index.js
+4
-9
proxy.js
project/mock/proxy.js
+1
-1
apicfg.js
project/src/api/apicfg.js
+1
-1
select.jsx
project/src/components/select/select.jsx
+14
-2
sign.jsx
project/src/components/sign/sign.jsx
+55
-46
userinfo.jsx
project/src/components/userinfo/userinfo.jsx
+15
-3
main3.jsx
project/src/pages/main3/main3.jsx
+5
-0
No files found.
project/mock/e-family/index.js
View file @
94b7e40d
...
@@ -11,12 +11,7 @@ export const homeInfo = {
...
@@ -11,12 +11,7 @@ export const homeInfo = {
"success"
:
true
"success"
:
true
}
}
export
const
updateUinfo
=
{
export
const
updateUinfo
=
{
"code"
:
"10004"
,
"data"
:
null
,
"message"
:
"昵称包含敏感词"
,
"success"
:
false
}
"code"
:
null
,
"data"
:
1
,
"message"
:
'dfs'
,
"success"
:
false
}
export
const
doshare
=
{
export
const
doshare
=
{
"code"
:
null
,
"code"
:
null
,
"data"
:
true
,
"data"
:
true
,
...
@@ -28,7 +23,7 @@ export const signInfo = {
...
@@ -28,7 +23,7 @@ export const signInfo = {
"data"
:
{
"data"
:
{
"todaySigned"
:
0
,
"todaySigned"
:
0
,
"continuousDays"
:
6
,
"continuousDays"
:
6
,
"needPopup"
:
0
,
"needPopup"
:
1
,
"signLists"
:
[
"signLists"
:
[
{
{
"awardName"
:
"欢趣豆"
,
"awardName"
:
"欢趣豆"
,
...
@@ -113,7 +108,7 @@ export const pagelist = list
...
@@ -113,7 +108,7 @@ export const pagelist = list
// ]
// ]
export
const
dosign
=
{
export
const
dosign
=
{
"code"
:
null
,
"code"
:
10010
,
"data"
:
{
"data"
:
{
"result"
:
true
,
"result"
:
true
,
"type"
:
"daPaiCoupons"
,
"type"
:
"daPaiCoupons"
,
...
@@ -121,7 +116,7 @@ export const dosign = {
...
@@ -121,7 +116,7 @@ export const dosign = {
"awardPic"
:
"//yun.dui88.com/projectxh5/coupon-250-250.png"
"awardPic"
:
"//yun.dui88.com/projectxh5/coupon-250-250.png"
},
},
"message"
:
null
,
"message"
:
null
,
"success"
:
tru
e
"success"
:
fals
e
}
}
// export const dosign ={
// export const dosign ={
...
...
project/mock/proxy.js
View file @
94b7e40d
...
@@ -11,10 +11,10 @@ export default {
...
@@ -11,10 +11,10 @@ export default {
[
`/projectx/
${
projectId
}
/e-family/update.do`
]:
efamily
.
updateUinfo
,
[
`/projectx/
${
projectId
}
/e-family/update.do`
]:
efamily
.
updateUinfo
,
[
`/projectx/
${
projectId
}
/e-family/share.do`
]:
efamily
.
doshare
,
[
`/projectx/
${
projectId
}
/e-family/share.do`
]:
efamily
.
doshare
,
[
`/projectx/
${
projectId
}
/e-family/signInfo.do`
]:
efamily
.
signInfo
,
[
`/projectx/
${
projectId
}
/e-family/signInfo.do`
]:
efamily
.
signInfo
,
[
`/projectx/
${
projectId
}
/e-family/sign.do`
]:
efamily
.
dosign
,
[
`/customActivity/icbcefamily/pageList`
]:
efamily
.
pagelist
,
[
`/customActivity/icbcefamily/pageList`
]:
efamily
.
pagelist
,
},
},
post
:
{
post
:
{
[
`/projectx/
${
projectId
}
/e-family/sign.do`
]:
efamily
.
dosign
,
[
`/projectx/
${
projectId
}
/join.do`
]:
collect_0722
.
join
[
`/projectx/
${
projectId
}
/join.do`
]:
collect_0722
.
join
}
}
};
};
\ No newline at end of file
project/src/api/apicfg.js
View file @
94b7e40d
...
@@ -7,7 +7,7 @@ const apiCfg = {
...
@@ -7,7 +7,7 @@ const apiCfg = {
signInfo
:
`/projectx/
${
projectId
}
/e-family/signInfo.do`
,
signInfo
:
`/projectx/
${
projectId
}
/e-family/signInfo.do`
,
dosign
:{
dosign
:{
uri
:
`/projectx/
${
projectId
}
/e-family/sign.do`
,
uri
:
`/projectx/
${
projectId
}
/e-family/sign.do`
,
withToken
:
true
withToken
:
true
,
},
},
pageList
:
`/customActivity/icbcefamily/pageList`
,
pageList
:
`/customActivity/icbcefamily/pageList`
,
}
}
...
...
project/src/components/select/select.jsx
View file @
94b7e40d
...
@@ -164,8 +164,20 @@ class Select extends Component {
...
@@ -164,8 +164,20 @@ class Select extends Component {
dataCenter
.
setData
(
Store
.
needguide
,
true
);
dataCenter
.
setData
(
Store
.
needguide
,
true
);
}
else
{
}
else
{
if
(
updateuinfo
){
if
(
updateuinfo
){
let
msg
=
updateuinfo
.
message
;
// let msg = updateuinfo.message;
Toast
(
msg
);
// Toast(msg);
switch
(
updateuinfo
.
code
)
{
case
10004
:
Toast
(
'存在敏感词,请重新检查昵称'
)
break
;
case
10005
:
Toast
(
'网络错误,发放欢趣豆失败'
)
break
;
default
:
Toast
(
updateuinfo
.
message
||
'网络异常,请稍后重试~'
)
}
}
else
{
}
else
{
Toast
(
netErrMsg
)
Toast
(
netErrMsg
)
}
}
...
...
project/src/components/sign/sign.jsx
View file @
94b7e40d
...
@@ -29,17 +29,26 @@ class Sign extends Component {
...
@@ -29,17 +29,26 @@ class Sign extends Component {
doSign
=
()
=>
{
doSign
=
()
=>
{
API
.
dosign
().
then
((
res
)
=>
{
API
.
dosign
().
then
((
res
)
=>
{
const
continuousDays
=
this
.
state
.
continuousDays
+
1
;
if
(
res
&&
res
.
success
)
{
this
.
setState
({
todaySigned
:
true
,
continuousDays
:
continuousDays
});
const
continuousDays
=
this
.
state
.
continuousDays
+
1
;
getHomeInfo
();
this
.
setState
({
todaySigned
:
true
,
continuousDays
:
continuousDays
});
getHomeInfo
();
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
.
onClose
();
Toast
(
`恭喜你成功领取
${
res
.
data
.
awardName
}
`
)
Toast
(
`恭喜你成功领取
${
res
.
data
.
awardName
}
`
)
}
}
else
{
switch
(
res
.
code
)
{
case
10010
:
Toast
(
'网络错误,请联系客服'
)
break
;
default
:
Toast
(
res
.
message
||
'网络异常,请稍后重试~'
)
}
}
}
});
});
};
};
...
@@ -52,49 +61,49 @@ class Sign extends Component {
...
@@ -52,49 +61,49 @@ class Sign extends Component {
let
lineList
=
[];
let
lineList
=
[];
switch
(
continuousDays
)
{
switch
(
continuousDays
)
{
case
0
:
case
0
:
lineList
=
[]
lineList
=
[]
break
;
break
;
case
1
:
case
1
:
if
(
todaySigned
)
if
(
todaySigned
)
lineList
=
[]
lineList
=
[]
else
else
lineList
=
[
1
]
lineList
=
[
1
]
break
;
break
;
case
2
:
case
2
:
if
(
todaySigned
)
if
(
todaySigned
)
lineList
=
[
1
]
lineList
=
[
1
]
else
else
lineList
=
[
1
,
1
]
lineList
=
[
1
,
1
]
break
;
break
;
case
3
:
case
3
:
if
(
todaySigned
)
if
(
todaySigned
)
lineList
=
[
1
,
1
]
lineList
=
[
1
,
1
]
else
else
lineList
=
[
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
]
break
;
break
;
case
4
:
case
4
:
if
(
todaySigned
)
if
(
todaySigned
)
lineList
=
[
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
]
else
else
lineList
=
[
1
,
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
,
1
]
break
;
break
;
case
5
:
case
5
:
if
(
todaySigned
)
if
(
todaySigned
)
lineList
=
[
1
,
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
,
1
]
else
else
lineList
=
[
1
,
1
,
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
,
1
,
1
]
break
;
break
;
case
6
:
case
6
:
if
(
todaySigned
)
if
(
todaySigned
)
lineList
=
[
1
,
1
,
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
,
1
,
1
]
else
else
lineList
=
[
1
,
1
,
1
,
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
,
1
,
1
,
1
]
break
;
break
;
case
7
:
case
7
:
if
(
todaySigned
)
if
(
todaySigned
)
lineList
=
[
1
,
1
,
1
,
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
,
1
,
1
,
1
]
else
else
lineList
=
[
1
,
1
,
1
,
1
,
1
,
1
,
1
]
lineList
=
[
1
,
1
,
1
,
1
,
1
,
1
,
1
]
break
;
break
;
}
}
...
@@ -357,16 +366,16 @@ class Sign extends Component {
...
@@ -357,16 +366,16 @@ class Sign extends Component {
src=
{
this
.
state
.
resList
[
'534772d2-3e5a-487d-8236-8913de270cb0'
].
url
}
src=
{
this
.
state
.
resList
[
'534772d2-3e5a-487d-8236-8913de270cb0'
].
url
}
/>
/>
)
}
)
}
<
img
<
img
onClick=
{
()
=>
{
location
.
href
=
'ff1c082c5.html'
}
}
onClick=
{
()
=>
{
location
.
href
=
'ff1c082c5.html'
}
}
className=
"sign_recordbtn "
className=
"sign_recordbtn "
src=
"//yun.duiba.com.cn/spark/assets/3d41e1c0c6efe7f06324dd82292b728242d3eef8.png"
src=
"//yun.duiba.com.cn/spark/assets/3d41e1c0c6efe7f06324dd82292b728242d3eef8.png"
/>
/>
{
!
todaySigned
&&
(
{
!
todaySigned
&&
(
<
img
<
img
onClick=
{
debounce
(
this
.
doSign
,
2000
,
1
)
}
onClick=
{
debounce
(
this
.
doSign
,
2000
,
1
)
}
className=
"sign_btn md11"
className=
"sign_btn md11"
uuid=
"4dfe2b82-10bd-4442-a01e-65c18869a18e"
uuid=
"4dfe2b82-10bd-4442-a01e-65c18869a18e"
src=
{
this
.
state
.
resList
[
'13b618c4-cd2a-4037-9664-b77381fbfade'
].
url
}
src=
{
this
.
state
.
resList
[
'13b618c4-cd2a-4037-9664-b77381fbfade'
].
url
}
...
...
project/src/components/userinfo/userinfo.jsx
View file @
94b7e40d
...
@@ -23,8 +23,8 @@ class Userinfo extends Component {
...
@@ -23,8 +23,8 @@ class Userinfo extends Component {
}
}
var
regEn
=
/
[
`~!@#$%^&*()_+<>?:"{},.
\/
;'[
\]]
/im
,
var
regEn
=
/
[
`~!@#$%^&*()_+<>?:"{},.
\/
;'[
\]]
/im
,
regCn
=
/
[
·!#¥(——):;“”‘、,|《。》?、【】[
\]]
/im
;
regCn
=
/
[
·!#¥(——):;“”‘、,|《。》?、【】[
\]]
/im
;
if
(
regEn
.
test
(
planame
)
||
regCn
.
test
(
planame
))
{
if
(
regEn
.
test
(
planame
)
||
regCn
.
test
(
planame
))
{
Toast
(
"昵称格式错误,只能使用6个字符以内的字母、数字、中文"
);
Toast
(
"昵称格式错误,只能使用6个字符以内的字母、数字、中文"
);
return
false
;
return
false
;
}
}
...
@@ -35,7 +35,19 @@ class Userinfo extends Component {
...
@@ -35,7 +35,19 @@ class Userinfo extends Component {
getHomeInfo
();
getHomeInfo
();
this
.
props
.
onClose
();
this
.
props
.
onClose
();
}
else
{
}
else
{
Toast
(
res
.
message
||
'网络异常,请稍后重试~'
)
switch
(
res
.
code
)
{
case
10004
:
Toast
(
'存在敏感词,请重新检查昵称'
)
break
;
case
10005
:
Toast
(
'网络错误,发放欢趣豆失败'
)
break
;
case
10011
:
Toast
(
'今天不可修改昵称哦~请明天再试试'
)
break
;
default
:
Toast
(
res
.
message
||
'网络异常,请稍后重试~'
)
}
}
}
}).
catch
(
e
=>
{
}).
catch
(
e
=>
{
console
.
log
(
'err'
,
e
);
console
.
log
(
'err'
,
e
);
...
...
project/src/pages/main3/main3.jsx
View file @
94b7e40d
...
@@ -11,6 +11,7 @@ import { getStepData, widgetConfig } from './widgetConfig';
...
@@ -11,6 +11,7 @@ import { getStepData, widgetConfig } from './widgetConfig';
import
{
GDispatcher
}
from
"spark-wrapper-fyge"
import
{
GDispatcher
}
from
"spark-wrapper-fyge"
import
dataCenter
,
{
Store
}
from
'../../dataCenter'
;
import
dataCenter
,
{
Store
}
from
'../../dataCenter'
;
import
{
getSVGA
}
from
'../../svga'
;
import
{
getSVGA
}
from
'../../svga'
;
import
{
Toast
}
from
'@spark/ui'
;
let
_widget
;
let
_widget
;
class
Main3
extends
Component
{
class
Main3
extends
Component
{
...
@@ -34,6 +35,10 @@ class Main3 extends Component {
...
@@ -34,6 +35,10 @@ class Main3 extends Component {
}
}
gotoURL
=
(
type
)
=>
{
gotoURL
=
(
type
)
=>
{
if
(
type
===
'renwudating'
){
Toast
(
'暂未开放,敬请期待'
)
return
;
}
const
urlmap
=
{
const
urlmap
=
{
ganji
:
'https://baidu.com?ganji'
,
ganji
:
'https://baidu.com?ganji'
,
equnongchang
:
'https://baidu.com?equnongchang'
,
equnongchang
:
'https://baidu.com?equnongchang'
,
...
...
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