Commit e1ab81bd authored by wildfirecode's avatar wildfirecode

1

parent a529cba5
...@@ -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="20" x="0"/> <e:Label id="backBtn" text="返回活动首页" y="-18.24" textColor="0x515276" size="30" x="0"/>
</e:Group> </e:Group>
<e:layout> <e:layout>
<e:VerticalLayout gap="0" horizontalAlign="center"/> <e:VerticalLayout gap="0" horizontalAlign="center"/>
......
...@@ -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;
......
...@@ -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
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment