Commit 1dca4cc2 authored by wildfirecode's avatar wildfirecode

1

parent 8ffb4343
......@@ -32,23 +32,21 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
}
sendDojoin() {
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.dojoinFunc(tokenObj.token);
}, (key: string, messageObj: any) => {
// this.onError(net);
});
} else {
this.dojoinFunc();
}
// if (window['getDuibaToken']) {
// window['getDuibaToken']((tokenObj: any) => {
// this.dojoinFunc(tokenObj.token);
// }, (key: string, messageObj: any) => {
// // this.onError(net);
// });
// } else {
this.dojoinFunc();
// }
}
dojoinFunc(token?) {
this.broadcast('callApi', 1, 'doJoin', {
token: token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
// token: token,
activityId: window['CFG'].activityId
});
}
......
......@@ -7367,23 +7367,11 @@
this.sendDojoin();
};
SceneStart.prototype.sendDojoin = function () {
var _this = this;
if (window['getDuibaToken']) {
window['getDuibaToken'](function (tokenObj) {
_this.dojoinFunc(tokenObj.token);
}, function (key, messageObj) {
});
}
else {
this.dojoinFunc();
}
this.dojoinFunc();
};
SceneStart.prototype.dojoinFunc = function (token) {
this.broadcast('callApi', 1, 'doJoin', {
token: token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
activityId: window['CFG'].activityId
});
};
SceneStart.prototype.onGotDojoin = function () {
......
This diff is collapsed.
......@@ -57,12 +57,15 @@
<script src="debug/bundle.js"></script>
<script>
var CFG = {
activityId: 3561555,//活动id
freeLimit: 0,//剩余次数
weixinUid: '1',//微信uid
nickname: 'nickname',//昵称
avatar: 'avatar'
'startTime': 1,
'endTime': 2,
'weddingId': 1111,
'freeLimit': 0,
'weixinUid': 00000,
'nickname': 'honingwon',
'activity': 123
};
CFG._rule = 'starttttttt<br>第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行<br>第2行<br>第3行<br>第4行<br>第5行<br>第6行<br>第7行<br>第1行<br>第2行<br>第3行<br>第4行<br>第5行<br>第6行<br>第7行endddddd';
function requirelogin() {
......
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