jssdk.js
772 Bytes
// app.js
import $ from 'jquery';
import user from './user';
import utils from './utils';
import share from './share';
import openapp from './openapp';
import promotion from './promotion';
import individuation from './individuation';
import captcha from './captcha';
$(function() {
openapp.init();
user.init().then(uid => {
individuation.init(uid); // 个性化推荐
captcha.init().then(() => {
promotion.init(uid); // 促销
});
user.auth(); // 权限验证
share.init(); // 分享
utils.init();
});
});
export default {
auth: user.auth,
favout: user.favout,
getMktCode: function(){
return user.getMktCode();
},
getUid: function(){
return user.uid;
}
};