Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions
@@ -0,0 +1,30 @@
const CoreView = require('backbone/core-view');
const template = require('./trial-notification.tpl');
const checkAndBuildOpts = require('builder/helpers/required-opts');
const REQUIRED_OPTS = [
'userModel',
'upgradeUrl',
'trialDays'
];
module.exports = CoreView.extend({
initialize: function (options) {
checkAndBuildOpts(options, REQUIRED_OPTS, this);
this.userAccount = this._userModel.get('account_type');
},
render: function () {
this.clearSubViews();
this.$el.html(
template({
upgradeUrl: this._upgradeUrl,
trialDays: this._trialDays
})
);
return this;
}
});