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
abf50c06
Commit
abf50c06
authored
Dec 22, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:wildfirecode13/icbcrpg
parents
239b2c4c
d82767b4
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
687 additions
and
463 deletions
+687
-463
.DS_Store
.DS_Store
+0
-0
guide1.png
project/public/assets/guide1.png
+0
-0
index.html
project/public/index.html
+2
-0
select.jsx
project/src/components/select/select.jsx
+8
-1
dataCenter.js
project/src/dataCenter.js
+13
-1
bundle.js
project/src/pages/main3/bundle.js
+269
-110
main3.jsx
project/src/pages/main3/main3.jsx
+16
-334
meta.json
project/src/pages/main3/meta.json
+14
-14
widgetConfig.js
project/src/pages/main3/widgetConfig.js
+365
-3
No files found.
.DS_Store
View file @
abf50c06
No preview for this file type
project/public/assets/guide1.png
100755 → 100644
View replaced file @
239b2c4c
View file @
abf50c06
162 KB
|
W:
|
H:
49.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
project/public/index.html
View file @
abf50c06
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
<script
id=
"scriptjs"
src=
"//yun.duiba.com.cn/js-libs/px-token/0.0.4/px-token.min.js"
></script>
<script
id=
"scriptjs"
src=
"//yun.duiba.com.cn/js-libs/px-token/0.0.4/px-token.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/js-libs/rem/1.1.0/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/js-libs/rem/1.1.0/rem.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/h5/lib/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/h5/lib/zepto.min.js"
></script>
<script
src=
"http://yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js"
></script>
<script>
<script>
function
getApp
()
{
function
getApp
()
{
return
{
return
{
...
...
project/src/components/select/select.jsx
View file @
abf50c06
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
{
Toast
}
from
'@spark/ui'
;
import
{
Toast
}
from
'@spark/ui'
;
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
dataCenter
,
{
getAPIdata
,
netErrMsg
,
Role
,
Store
}
from
'../../dataCenter'
;
import
dataCenter
,
{
getAPIdata
,
getHomeInfo
,
netErrMsg
,
Role
,
Store
}
from
'../../dataCenter'
;
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
resList
from
'../../resconfig/resList'
;
//import API from '../../api';
import
'./select.less'
;
import
'./select.less'
;
...
@@ -130,7 +130,14 @@ class Select extends Component {
...
@@ -130,7 +130,14 @@ class Select extends Component {
nickName
:
planame
,
nickName
:
planame
,
figureId
:
Role
[
this
.
nshowidx
].
figureid
figureId
:
Role
[
this
.
nshowidx
].
figureid
});
});
// updateuinfo = {
// "code": null,
// "data": true,
// "message": null,
// "success": true
// }
if
(
updateuinfo
&&
updateuinfo
.
success
){
if
(
updateuinfo
&&
updateuinfo
.
success
){
getHomeInfo
();
this
.
props
.
onClose
();
this
.
props
.
onClose
();
dataCenter
.
setData
(
Store
.
needguide
,
true
);
dataCenter
.
setData
(
Store
.
needguide
,
true
);
}
else
{
}
else
{
...
...
project/src/dataCenter.js
View file @
abf50c06
...
@@ -43,7 +43,19 @@ export async function getAPIdata(netname,reqdata=null){
...
@@ -43,7 +43,19 @@ export async function getAPIdata(netname,reqdata=null){
}
}
export
async
function
getHomeInfo
(){
export
async
function
getHomeInfo
(){
let
homeinfo
=
await
getAPIdata
(
Store
.
homeinfo
);
let
homeinfo
=
await
getAPIdata
(
Store
.
homeinfo
);
// homeinfo = {
// "code": null,
// "data": {
// "canUpdateNickName": null,
// "figures": [
// { "figureId": "1" }, { "figureId": "2" }, { "figureId": "3" }
// ],
// "newUser": true,
// "userInfo": null
// },
// "message": null,
// "success": true
// }
if
(
homeinfo
&&
homeinfo
.
success
&&
homeinfo
.
data
){
if
(
homeinfo
&&
homeinfo
.
success
&&
homeinfo
.
data
){
dataCenter
.
setData
(
Store
.
homeinfo
,
homeinfo
.
data
);
dataCenter
.
setData
(
Store
.
homeinfo
,
homeinfo
.
data
);
}
}
...
...
project/src/pages/main3/bundle.js
View file @
abf50c06
This diff is collapsed.
Click to expand it.
project/src/pages/main3/main3.jsx
View file @
abf50c06
...
@@ -6,8 +6,8 @@ import API from '../../api';
...
@@ -6,8 +6,8 @@ import API from '../../api';
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'../../pop'
;
import
{
Aup
,
AUPOP
,
AUP_MBX_STATE
}
from
'../../pop'
;
import
'./main3.less'
;
import
'./main3.less'
;
import
{
CanvasWidget
}
from
'spark-utils'
;
import
{
CanvasWidget
}
from
'spark-utils'
;
import
{
Guideact
}
from
'
@spark/guideact'
;
//'./bundle
';//
import
{
Guideact
}
from
'
./bundle'
;
//'@spark/guideact
';//
import
{
widgetConfig
}
from
'./widgetConfig'
;
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'
;
let
_widget
;
let
_widget
;
...
@@ -23,7 +23,7 @@ class Main3 extends Component {
...
@@ -23,7 +23,7 @@ class Main3 extends Component {
};
};
}
}
updateMoney
(){
updateMoney
()
{
console
.
log
(
'update money'
)
console
.
log
(
'update money'
)
}
}
...
@@ -33,7 +33,7 @@ class Main3 extends Component {
...
@@ -33,7 +33,7 @@ class Main3 extends Component {
}
}
onClick_signBtn
=
()
=>
{
onClick_signBtn
=
()
=>
{
API
.
signInfo
().
then
((
res
)
=>
{
API
.
signInfo
().
then
((
res
)
=>
{
Aup
.
show
(
'Sign'
,
res
.
data
,
this
);
Aup
.
show
(
'Sign'
,
res
.
data
,
this
);
})
})
}
}
...
@@ -55,15 +55,15 @@ class Main3 extends Component {
...
@@ -55,15 +55,15 @@ class Main3 extends Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
this
.
freshHomeInfo
();
this
.
initEvent
();
this
.
initEvent
();
if
(
this
.
props
.
data
&&!
this
.
props
.
data
.
isnewUser
)
{
//不是新用户
if
(
this
.
props
.
data
&&!
this
.
props
.
data
.
isnewUser
)
{
//不是新用户
API
.
signInfo
().
then
((
res
)
=>
{
API
.
signInfo
().
then
((
res
)
=>
{
const
{
needPopup
}
=
res
.
data
;
const
{
needPopup
}
=
res
.
data
;
if
(
needPopup
)
if
(
needPopup
)
Aup
.
show
(
'Sign'
,
res
.
data
,
this
);
Aup
.
show
(
'Sign'
,
res
.
data
,
this
);
});
});
this
.
freshHomeInfo
();
}
}
}
}
initEvent
()
{
initEvent
()
{
...
@@ -99,327 +99,8 @@ class Main3 extends Component {
...
@@ -99,327 +99,8 @@ class Main3 extends Component {
}
}
//新手引导的位置设定
//新手引导的位置设定
setGuideConfig
()
{
setGuideConfig
()
{
let
clientWidth
=
document
.
body
.
clientWidth
;
this
.
guideconfig
=
getStepData
();
let
clientHeight
=
document
.
body
.
clientHeight
;
_widget
&&
_widget
.
dispatchInEvent
(
"setStepConfig"
,
this
.
guideconfig
);
let
canvaswid
=
750
;
let
canvashei
=
clientHeight
*
750
/
clientWidth
;
console
.
log
(
"CANVAS宽高===》"
,
canvaswid
,
canvashei
);
let
holedata
=
{
holetype
:
"cirect"
,
holex
:
15
,
holey
:
33
,
holesize
:
[
395
,
112
,
70
]
}
let
txtdata
=
{
text
:
"您可以在此处编辑信息查看欢趣豆数量"
,
txtwidth
:
750
,
txtx
:
0
,
txty
:
224
,
txtalign
:
"center"
}
let
roledata
=
[
{
rolex
:
375
,
roley
:
911
,
roletex
:
"guide2_1"
}
];
let
nextbtndata
=
{
btnx
:
485
,
btny
:
303
,
btntex
:
"nextbtn"
}
let
skipbtndata
=
{
skipx
:
(
canvaswid
-
107
)
/
2
,
skipy
:
canvashei
-
200
,
skiplevel
:
9
,
skiptex
:
"skipbtn"
,
};
let
touchdata
=
{
touchx
:
0
,
touchy
:
0
,
touchsize
:
[
canvaswid
,
canvashei
]
}
this
.
guideconfig
[
1
]
=
{
hole
:
null
,
txt
:
null
,
role
:
[
{
rolex
:
40
,
roley
:
(
canvashei
-
764
)
/
2
,
roletex
:
"guide1"
}
],
nextbtn
:
null
,
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
1
,
stepdata
:
this
.
guideconfig
[
1
]
});
this
.
guideconfig
[
2
]
=
{
hole
:
{
holetype
:
"cirect"
,
holex
:
15
,
holey
:
33
,
holesize
:
[
395
,
112
,
70
]
},
txt
:
{
text
:
"您可以在此处编辑信息查看欢趣豆数量"
,
txtwidth
:
750
,
txtx
:
0
,
txty
:
224
,
txtalign
:
"center"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
485
,
btny
:
303
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
2
,
stepdata
:
this
.
guideconfig
[
2
]
});
this
.
guideconfig
[
3
]
=
{
hole
:
{
holetype
:
"cirect"
,
holex
:
600
,
holey
:
26
,
holesize
:
[
135
,
440
,
40
]
},
txt
:
{
text
:
"点击图标您可查看规则、进行分享和签到
\n
\n
偷偷告诉您,连签7天可获得大额欢趣豆哦~"
,
txtwidth
:
455
,
txtx
:
100
,
txty
:
245
,
txtalign
:
"left"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
100
,
btny
:
520
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
3
,
stepdata
:
this
.
guideconfig
[
3
]
});
this
.
guideconfig
[
4
]
=
{
hole
:
{
holetype
:
"cir"
,
holex
:
185
,
holey
:
465
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"欢趣豆可以兑换立减金,
\n
进入趣赶集即可进行
\n
兑换哦~"
,
txtwidth
:
375
,
txtx
:
375
,
txty
:
357
,
txtalign
:
"left"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
375
,
btny
:
536
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
4
,
stepdata
:
this
.
guideconfig
[
4
]
});
this
.
guideconfig
[
5
]
=
{
hole
:
{
holetype
:
"cir"
,
holex
:
540
,
holey
:
600
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"农场主集结~在这里
\n
就是向往的生活!
\n
收获成果的同时还可
\n
以兑换丰厚礼物哦"
,
txtwidth
:
320
,
txtx
:
55
,
txty
:
580
,
txtalign
:
"left"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
55
,
btny
:
780
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
5
,
stepdata
:
this
.
guideconfig
[
5
]
});
this
.
guideconfig
[
6
]
=
{
hole
:
{
holetype
:
"cir"
,
holex
:
170
,
holey
:
820
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"点击任务大厅,进入
\n
任务界面,完成任务
\n
可获得好礼哦~"
,
txtwidth
:
375
,
txtx
:
375
,
txty
:
500
,
txtalign
:
"left"
},
role
:[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
375
,
btny
:
665
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
6
,
stepdata
:
this
.
guideconfig
[
6
]
});
let
offsety7
=
0
;
let
holly
=
1110
;
if
((
holly
+
165
/
2
)
>
canvashei
-
300
){
let
holly1
=
canvashei
-
300
-
165
/
2
;
offsety7
=
holly
-
holly1
;
}
this
.
guideconfig
[
7
]
=
{
hole
:
{
holetype
:
"cir"
,
holex
:
575
,
holey
:
1110
-
offsety7
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"点击小卖铺可以进到
\n
商城页面,在这里购
\n
买心仪的物品哦~"
,
txtwidth
:
320
,
txtx
:
85
,
txty
:
500
-
offsety7
,
txtalign
:
"left"
},
role
:[
{
rolex
:
0
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
86
,
btny
:
665
-
offsety7
,
btntex
:
"nextbtn"
},
skipbtn
:
{
skipx
:
(
canvaswid
-
107
)
/
2
,
skipy
:
canvashei
-
200
,
skiplevel
:
6
,
skiptex
:
"skipbtn"
,
},
touch
:
touchdata
,
pagey
:
offsety7
,
}
console
.
log
(
"77777偏移===》"
,
offsety7
);
_widget
&&
_widget
.
dispatchInEvent
(
"setStepData"
,
{
step
:
7
,
stepdata
:
this
.
guideconfig
[
7
]
});
this
.
startGuide
();
this
.
startGuide
();
}
}
startGuide
()
{
startGuide
()
{
...
@@ -434,9 +115,9 @@ class Main3 extends Component {
...
@@ -434,9 +115,9 @@ class Main3 extends Component {
case
"guidecomplete"
:
case
"guidecomplete"
:
dataCenter
.
setData
(
Store
.
needguide
,
false
);
dataCenter
.
setData
(
Store
.
needguide
,
false
);
API
.
signInfo
().
then
((
res
)
=>
{
API
.
signInfo
().
then
((
res
)
=>
{
const
{
needPopup
}
=
res
.
data
;
const
{
needPopup
}
=
res
.
data
;
if
(
needPopup
)
if
(
needPopup
)
Aup
.
show
(
'Sign'
,
res
.
data
,
this
);
Aup
.
show
(
'Sign'
,
res
.
data
,
this
);
})
})
break
;
break
;
...
@@ -444,9 +125,10 @@ class Main3 extends Component {
...
@@ -444,9 +125,10 @@ class Main3 extends Component {
case
"nowstep"
:
case
"nowstep"
:
//当前所处引导步骤
//当前所处引导步骤
let
nowstepdata
=
this
.
guideconfig
[
payload
];
let
nowstepdata
=
this
.
guideconfig
[
payload
];
if
(
nowstepdata
)
{
let
nowpagey
=
nowstepdata
.
pagey
;
let
nowpagey
=
nowstepdata
.
pagey
;
this
.
refs
.
main3
.
scrollTop
=
nowpagey
;
this
.
refs
.
main3
.
scrollTop
=
nowpagey
*
window
.
remScale
;
console
.
log
(
"滑动位置调整===》"
,
nowpagey
);
}
break
;
break
;
default
:
default
:
...
...
project/src/pages/main3/meta.json
View file @
abf50c06
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
"txt"
:
null
,
"txt"
:
null
,
"role"
:
[
"role"
:
[
{
{
"rolex"
:
4
0
,
"rolex"
:
36
0
,
"roley"
:
460
,
"roley"
:
875
,
"roletex"
:
"guide1"
"roletex"
:
"guide1"
}
}
],
],
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
},
},
"role"
:
[
"role"
:
[
{
{
"rolex"
:
3
75
,
"rolex"
:
3
60
,
"roley"
:
911
,
"roley"
:
875
,
"roletex"
:
"guide2_1"
"roletex"
:
"guide2_1"
}
}
],
],
...
@@ -93,8 +93,8 @@
...
@@ -93,8 +93,8 @@
},
},
"role"
:
[
"role"
:
[
{
{
"rolex"
:
3
75
,
"rolex"
:
3
60
,
"roley"
:
911
,
"roley"
:
875
,
"roletex"
:
"guide2_1"
"roletex"
:
"guide2_1"
}
}
],
],
...
@@ -137,8 +137,8 @@
...
@@ -137,8 +137,8 @@
},
},
"role"
:
[
"role"
:
[
{
{
"rolex"
:
3
75
,
"rolex"
:
3
60
,
"roley"
:
911
,
"roley"
:
875
,
"roletex"
:
"guide2_1"
"roletex"
:
"guide2_1"
}
}
],
],
...
@@ -181,8 +181,8 @@
...
@@ -181,8 +181,8 @@
},
},
"role"
:
[
"role"
:
[
{
{
"rolex"
:
3
75
,
"rolex"
:
3
60
,
"roley"
:
911
,
"roley"
:
875
,
"roletex"
:
"guide2_1"
"roletex"
:
"guide2_1"
}
}
],
],
...
@@ -225,8 +225,8 @@
...
@@ -225,8 +225,8 @@
},
},
"role"
:
[
"role"
:
[
{
{
"rolex"
:
3
75
,
"rolex"
:
3
60
,
"roley"
:
911
,
"roley"
:
875
,
"roletex"
:
"guide2_1"
"roletex"
:
"guide2_1"
}
}
],
],
...
@@ -344,8 +344,8 @@
...
@@ -344,8 +344,8 @@
},
},
"role"
:
[
"role"
:
[
{
{
"rolex"
:
238
,
"rolex"
:
0
,
"roley"
:
768
,
"roley"
:
0
,
"roletex"
:
"guide2_1"
"roletex"
:
"guide2_1"
}
}
],
],
...
...
project/src/pages/main3/widgetConfig.js
View file @
abf50c06
let
clientWidth
=
document
.
body
.
clientWidth
;
let
clientHeight
=
document
.
body
.
clientHeight
;
let
canvaswid
=
750
;
let
canvashei
=
clientHeight
*
750
/
clientWidth
;
let
holedata
=
{
holetype
:
"cirect"
,
holex
:
15
,
holey
:
33
,
holesize
:
[
395
,
112
,
70
]
}
let
txtdata
=
{
text
:
"您可以在此处编辑信息查看欢趣豆数量"
,
txtwidth
:
750
,
txtx
:
0
,
txty
:
224
,
txtalign
:
"center"
}
let
roledata
=
[
{
rolex
:
375
,
roley
:
canvashei
-
550
,
}
]
let
nextbtndata
=
{
btnx
:
485
,
btny
:
303
,
btntex
:
"nextbtn"
}
let
skipbtndata
=
{
skipx
:
(
canvaswid
-
107
)
/
2
,
skipy
:
canvashei
-
200
,
skiplevel
:
7
,
skiptex
:
"skipbtn"
,
};
let
touchdata
=
{
touchx
:
0
,
touchy
:
0
,
touchsize
:
[
canvaswid
,
canvashei
]
}
function
getstep1
()
{
return
{
hole
:
null
,
txt
:
null
,
role
:
roledata
,
nextbtn
:
null
,
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
}
function
getstep2
(){
return
{
hole
:
{
holetype
:
"cirect"
,
holex
:
15
,
holey
:
33
,
holesize
:
[
395
,
112
,
70
]
},
txt
:
{
text
:
"您可以在此处编辑信息查看欢趣豆数量"
,
txtwidth
:
750
,
txtx
:
0
,
txty
:
224
,
txtalign
:
"center"
},
role
:
roledata
,
nextbtn
:
{
btnx
:
485
,
btny
:
303
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
}
function
getstep3
(){
return
{
hole
:
{
holetype
:
"cirect"
,
holex
:
600
,
holey
:
26
,
holesize
:
[
135
,
440
,
40
]
},
txt
:
{
text
:
"点击图标您可查看规则、进行分享和签到
\n
\n
偷偷告诉您,连签7天可获得大额欢趣豆哦~"
,
txtwidth
:
455
,
txtx
:
100
,
txty
:
245
,
txtalign
:
"left"
},
role
:
roledata
,
nextbtn
:
{
btnx
:
100
,
btny
:
520
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
}
function
getstep4
(){
return
{
hole
:
{
holetype
:
"cir"
,
holex
:
185
,
holey
:
465
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"欢趣豆可以兑换立减金,
\n
进入趣赶集即可进行
\n
兑换哦~"
,
txtwidth
:
375
,
txtx
:
375
,
txty
:
357
,
txtalign
:
"left"
},
role
:
roledata
,
nextbtn
:
{
btnx
:
375
,
btny
:
536
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
}
function
getstep5
(){
return
{
hole
:
{
holetype
:
"cir"
,
holex
:
540
,
holey
:
600
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"农场主集结~在这里
\n
就是向往的生活!
\n
收获成果的同时还可
\n
以兑换丰厚礼物哦"
,
txtwidth
:
320
,
txtx
:
55
,
txty
:
580
,
txtalign
:
"left"
},
role
:
roledata
,
nextbtn
:
{
btnx
:
55
,
btny
:
780
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
}
function
getstep6
(){
return
{
hole
:
{
holetype
:
"cir"
,
holex
:
170
,
holey
:
820
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"点击任务大厅,进入
\n
任务界面,完成任务
\n
可获得好礼哦~"
,
txtwidth
:
375
,
txtx
:
375
,
txty
:
500
,
txtalign
:
"left"
},
role
:
roledata
,
nextbtn
:
{
btnx
:
375
,
btny
:
665
,
btntex
:
"nextbtn"
},
skipbtn
:
skipbtndata
,
touch
:
touchdata
,
pagey
:
0
,
}
}
function
getstep7
(){
let
offsety
=
0
;
let
holly
=
1110
;
if
((
holly
+
165
/
2
)
>
canvashei
-
300
)
{
let
holly1
=
canvashei
-
300
-
165
/
2
;
offsety
=
holly
-
holly1
;
}
if
(
canvashei
+
offsety
>
1624
){
offsety
=
1624
-
canvashei
;
}
return
{
hole
:
{
holetype
:
"cir"
,
holex
:
575
,
holey
:
1110
-
offsety
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"点击小卖铺可以进到
\n
商城页面,在这里购
\n
买心仪的物品哦~"
,
txtwidth
:
320
,
txtx
:
85
,
txty
:
750
-
offsety
,
txtalign
:
"left"
},
role
:
[
{
rolex
:
0
,
roley
:
canvashei
-
550
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
86
,
btny
:
910
-
offsety
,
btntex
:
"nextbtn"
},
skipbtn
:
{
skipx
:
(
canvaswid
-
107
)
/
2
,
skipy
:
canvashei
-
200
,
skiplevel
:
6
,
skiptex
:
"skipbtn"
,
},
touch
:
touchdata
,
pagey
:
offsety
,
}
}
function
getstep8
(){
let
offsety
=
0
;
let
holly
=
1325
;
if
((
holly
+
165
/
2
)
>
canvashei
-
300
)
{
let
holly1
=
canvashei
-
300
-
165
/
2
;
offsety
=
holly
-
holly1
;
}
if
(
canvashei
+
offsety
>
1624
){
offsety
=
1624
-
canvashei
;
}
return
{
hole
:
{
holetype
:
"cir"
,
holex
:
180
,
holey
:
1325
-
offsety
,
holesize
:
[
165
,
440
]
},
txt
:
{
text
:
"这就是你的小家啦~
\n
进入我的e家可以查看在小
\n
镇获得的各项荣誉勋章"
,
txtwidth
:
375
,
txtx
:
375
,
txty
:
1100
-
offsety
,
txtalign
:
"left"
},
role
:
[
{
rolex
:
220
,
roley
:
(
canvashei
-
400
)
/
2
-
100
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
375
,
btny
:
1280
-
offsety
,
btntex
:
"nextbtn"
},
skipbtn
:
{
skipx
:
(
canvaswid
-
107
)
/
2
,
skipy
:
canvashei
-
200
,
skiplevel
:
6
,
skiptex
:
"skipbtn"
,
},
touch
:
touchdata
,
pagey
:
offsety
,
}
}
function
getstep9
(){
return
{
hole
:
null
,
txt
:
{
text
:
"小镇将会越来越热闹
\n
小e也会在这儿一直陪伴你哦,
\n
那么赶紧去逛逛吧~"
,
txtwidth
:
750
,
txtx
:
0
,
txty
:
canvashei
-
400
,
txtalign
:
"center"
},
role
:
[
{
rolex
:
0
,
roley
:
(
canvashei
-
1624
)
/
2
-
100
,
roletex
:
"guide2_1"
}
],
nextbtn
:
{
btnx
:
250
,
btny
:
canvashei
-
250
,
btntex
:
"finaguidebtn"
},
skipbtn
:
null
,
touch
:
touchdata
,
pagey
:
0
,
}
}
export
function
getStepData
()
{
let
stepdata1
=
getstep1
();
let
stepdata2
=
getstep2
();
let
stepdata3
=
getstep3
();
let
stepdata4
=
getstep4
();
let
stepdata5
=
getstep5
();
let
stepdata6
=
getstep6
();
let
stepdata7
=
getstep7
();
let
stepdata8
=
getstep8
();
let
stepdata9
=
getstep9
();
return
{
1
:
stepdata1
,
2
:
stepdata2
,
3
:
stepdata3
,
4
:
stepdata4
,
5
:
stepdata5
,
6
:
stepdata6
,
7
:
stepdata7
,
8
:
stepdata8
,
9
:
stepdata9
,
}
}
export
let
widgetConfig
=
{
export
let
widgetConfig
=
{
props
:{
props
:
{
},
},
assets
:[
assets
:
[
]
]
}
}
\ 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