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