Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔立强
db-game-template
Commits
e1ab81bd
Commit
e1ab81bd
authored
Dec 06, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a529cba5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
16 deletions
+15
-16
common_backbtn.png
egret/resource/assets/common/common_backbtn.png
+0
-0
HisDreamSkin.exml
egret/resource/skins/HisDreamSkin.exml
+2
-2
ShareDreamScene.ts
egret/src/ShareDreamScene.ts
+3
-3
gotoShare.ts
egret/src/gotoShare.ts
+9
-10
join1dreamDetail.json
mock/esports/join1dreamDetail.json
+1
-1
No files found.
egret/resource/assets/common/common_backbtn.png
View replaced file @
a529cba5
View file @
e1ab81bd
894 Bytes
|
W:
|
H:
3.72 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/HisDreamSkin.exml
View file @
e1ab81bd
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
</e:Group>
</e:Group>
<e:Group
id=
"back"
x=
"248"
y=
"654"
height=
"
29
"
>
<e:Group
id=
"back"
x=
"248"
y=
"654"
height=
"
45
"
>
<e:Label
id=
"backBtn"
text=
"返回活动首页"
y=
"-18.24"
textColor=
"0x515276"
size=
"
2
0"
x=
"0"
/>
<e:Label
id=
"backBtn"
text=
"返回活动首页"
y=
"-18.24"
textColor=
"0x515276"
size=
"
3
0"
x=
"0"
/>
</e:Group>
</e:Group>
<e:layout>
<e:layout>
<e:VerticalLayout
gap=
"0"
horizontalAlign=
"center"
/>
<e:VerticalLayout
gap=
"0"
horizontalAlign=
"center"
/>
...
...
egret/src/ShareDreamScene.ts
View file @
e1ab81bd
...
@@ -11,9 +11,9 @@ export default class ShareDreamScene extends Scene {
...
@@ -11,9 +11,9 @@ export default class ShareDreamScene extends Scene {
this
.
showlog
();
this
.
showlog
();
let
{
id2
,
address
,
avatar
,
url
,
content
,
title
}
=
getRequest
();
let
{
id2
,
address
,
avatar
,
url
,
content
,
title
}
=
getRequest
();
this
[
'from'
].
text
=
`来自
${
getProvince
(
address
)}
的梦想`
;
this
[
'from'
].
text
=
`来自
${
getProvince
(
decodeURIComponent
(
address
)
)}
的梦想`
;
this
[
'idtxt'
].
text
=
`编号:
${
id2
}
`
;
this
[
'idtxt'
].
text
=
`编号:
${
id2
}
`
;
this
[
'title'
].
text
=
title
;
this
[
'title'
].
text
=
decodeURIComponent
(
title
)
;
this
.
type
=
type
;
this
.
type
=
type
;
this
[
'avatar'
].
mask
=
this
[
'avatarMask'
];
this
[
'avatar'
].
mask
=
this
[
'avatarMask'
];
...
@@ -22,7 +22,7 @@ export default class ShareDreamScene extends Scene {
...
@@ -22,7 +22,7 @@ export default class ShareDreamScene extends Scene {
this
[
'avatar'
].
source
=
decodeURIComponent
(
avatar
);
this
[
'avatar'
].
source
=
decodeURIComponent
(
avatar
);
this
.
loadImg
(
decodeURIComponent
(
url
));
this
.
loadImg
(
decodeURIComponent
(
url
));
content
=
decodeURIComponent
(
content
);
content
=
content
.
slice
(
0
,
60
)
+
'...'
;
content
=
content
.
slice
(
0
,
60
)
+
'...'
;
this
[
'content'
].
text
=
content
;
this
[
'content'
].
text
=
content
;
...
...
egret/src/gotoShare.ts
View file @
e1ab81bd
...
@@ -4,16 +4,18 @@ export default () => {
...
@@ -4,16 +4,18 @@ export default () => {
const
{
avatar
,
dreamPic
:
url
,
address
,
id
,
dreamTitle
:
title
,
dreamContent
:
content
}
=
DataManager
.
ins
.
getData
(
'yyh_join1_dreamDetail'
).
data
;
const
{
avatar
,
dreamPic
:
url
,
address
,
id
,
dreamTitle
:
title
,
dreamContent
:
content
}
=
DataManager
.
ins
.
getData
(
'yyh_join1_dreamDetail'
).
data
;
// let shareUrl = 'http://yazuwei.activity-1.m.duiba.com.cn/projectx/pa1462f11/fea2bff6f.html';
// const prefix = `?avatar=${encodeURIComponent(avatar)}&url=${encodeURIComponent(url)}&address=${address}&id2=${id}&title=${title}&content=${content}`;
// shareUrl += prefix;
// shareUrl = 'http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl=' + encodeURIComponent(shareUrl)
let
shareUrl
=
'http://yazuwei.activity-1.m.duiba.com.cn/projectx/pa1462f11/fea2bff6f.html'
;
let
shareUrl
=
'http://yazuwei.activity-1.m.duiba.com.cn/projectx/pa1462f11/fea2bff6f.html'
;
// let shareUrl = location.origin + '/projectx/pa1462f11/fea2bff6f.html';
const
prefix
=
`?avatar=
${
encodeURIComponent
(
avatar
)}
&url=
${
encodeURIComponent
(
url
)}
&address=
${
encodeURIComponent
(
address
)}
&id2=
${
id
}
&title=
${
encodeURIComponent
(
title
)}
&content=
${
encodeURIComponent
(
content
)}
`
;
// let shareUrl = window.location.href.replace('index','fea2bff6f');
const
prefix
=
`?avatar=
${(
avatar
)}
&url=
${(
url
)}
&address=
${
address
}
&id2=
${
id
}
&title=
${
title
}
&content=
${
content
}
`
shareUrl
+=
prefix
;
shareUrl
+=
prefix
;
shareUrl
=
'http://aghzact.zjkczn.com/h5/defaultActive.html?activeUrl='
+
encodeURIComponent
(
shareUrl
)
console
.
log
(
shareUrl
);
console
.
log
(
shareUrl
,
prefix
);
window
[
'AlipayJSBridge'
].
call
(
window
[
'AlipayJSBridge'
].
call
(
'esportsShare'
,
'esportsShare'
,
...
@@ -23,7 +25,4 @@ export default () => {
...
@@ -23,7 +25,4 @@ export default () => {
imgUrl
:
'https://yun.duiba.com.cn/db_games/yyhlogo2.png'
,
imgUrl
:
'https://yun.duiba.com.cn/db_games/yyhlogo2.png'
,
url
:
shareUrl
,
type
:
'3'
url
:
shareUrl
,
type
:
'3'
});
});
}
}
\ No newline at end of file
mock/esports/join1dreamDetail.json
View file @
e1ab81bd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
"consumerId"
:
"500208012"
,
"consumerId"
:
"500208012"
,
"dreamContent"
:
"test content2"
,
"dreamContent"
:
"test content2"
,
"dreamPic"
:
"http://yun.duiba.com.cn/duibaimage/1574660334863500208012.png"
,
"dreamPic"
:
"http://yun.duiba.com.cn/duibaimage/1574660334863500208012.png"
,
"dreamStatus"
:
"
2
"
,
"dreamStatus"
:
"
1
"
,
"dreamTitle"
:
"testtitle2"
,
"dreamTitle"
:
"testtitle2"
,
"energy"
:
2
,
"energy"
:
2
,
"energyLimit"
:
100
,
"energyLimit"
:
100
,
...
...
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