Commit 1dca4cc2 authored by wildfirecode's avatar wildfirecode

1

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