添加后台代理代码
This commit is contained in:
42
codes/agent/game/dlweb/api/web2/components/home-nav.js
Normal file
42
codes/agent/game/dlweb/api/web2/components/home-nav.js
Normal file
@@ -0,0 +1,42 @@
|
||||
var homeNav = {
|
||||
template: '<footer class="footer"><ul class="footer_ul"><li :class="{ blue: pageName == \'invite.html\'}" v-if="shareMode"><a :href="inviteUrl"><i class="glyphicon glyphicon-qrcode"></i><p>邀请码</p></a></li><li :class="{ blue: pageName == \'Charge_card.html\'}"><a :href="managePlayerUrl"><i class="glyphicon glyphicon-plus"></i><p>玩家赠卡</p></a></li><li :class="{ blue: pageName == \'charge_star.html\'}" v-if="agentInfo.is_show_recharge_star == 1"><a :href="managePlayerUrlStar"><i class="glyphicon glyphicon-th-list"></i><p>玩家赠{{lang.singStarName}}</p></a></li><li v-if="userInfo.salestype == 11" :class="{ blue: pageName == \'SalesTransCard.html\'}"><a :href="manageSalesUrl"><i class="glyphicon glyphicon-th-list"></i><p>账户赠卡</p></a></li><li :class="{ blue: pageName == \'your_purchase_new.html\'}" v-if="lang.isShow"><a :href="manageAskUrl"><i class="glyphicon glyphicon-usd"></i><p>充值中心</p></a></li><li :class="{ blue: pageName == \'guanlitj.html\'}"><a :href="manageStatisticsUrl"><i class="glyphicon glyphicon-cog"></i><p>信息管理</p></a></li></ul></footer>',
|
||||
data: function () {
|
||||
return {
|
||||
params: {},
|
||||
userInfo: {},
|
||||
agentInfo: {},
|
||||
lang: {},
|
||||
pageName: 'Charge_card.html',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
shareMode: function () {
|
||||
var isWeiXin = $.isWeiXin();
|
||||
var mode = parseInt(this.agentInfo.agentmode);
|
||||
if(isWeiXin && mode === 2)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
},
|
||||
inviteUrl: function () { return './invite.html?agentid=' + this.params.agentid + '&channelid=' + this.params.channelid+'&__HTML_VERSION__=3';},
|
||||
managePlayerUrl: function () { return './Charge_card.html?agentid=' + this.params.agentid + '&channelid=' + this.params.channelid+'&__HTML_VERSION__=3';},
|
||||
managePlayerUrlStar: function () { return './charge_star.html?agentid=' + this.params.agentid + '&channelid=' + this.params.channelid+'&__HTML_VERSION__=3';},
|
||||
manageSalesUrl: function () { return './SalesTransCard.html?agentid=' + this.params.agentid + '&channelid=' + this.params.channelid+'&__HTML_VERSION__=3';},
|
||||
manageAskUrl: function () { return './your_purchase_new.html?agentid=' + this.params.agentid + '&channelid=' + this.params.channelid+'&__HTML_VERSION__=3';},
|
||||
manageStatisticsUrl: function () { return './guanlitj.html?agentid=' + this.params.agentid + '&channelid=' + this.params.channelid+'&__HTML_VERSION__=3';}
|
||||
},
|
||||
created: function () {
|
||||
this.params = $.getQueryObj();
|
||||
var params = this.params;
|
||||
this.lang = lang[params.agentid] ? lang[params.agentid] : lang.default;
|
||||
|
||||
this.pageName = $.getPageName();
|
||||
var that = this;
|
||||
$.getAgentInfo(function (agentInfo) {
|
||||
that.agentInfo = agentInfo;
|
||||
$.getUserInfo(function (userInfo) {
|
||||
that.userInfo = userInfo;
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user