增加docke部署
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
var userInfo = {
|
||||
/*template: `
|
||||
<ul class="list-unstyled user-info">
|
||||
<li><img :src="userInfo.headimgurl" alt="" class="avatar"></li>
|
||||
<li><p class="nickname">{{userInfo.nickname}}</p></li>
|
||||
<li>
|
||||
<div>
|
||||
<p><img :src="agentInfo.agentlogo" alt="" class="logo"></p>
|
||||
<p><button class="btn btn-success" @click="goShortRoom">配置VIP</button></p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
`,*/
|
||||
template : '<ul class="list-unstyled user-info"><li><img :src="userInfo.headimgurl" alt="" class="avatar"></li><li><p class="nickname">{{userInfo.nickname}}</p></li><li><img :src="agentInfo.agentlogo" alt="" class="logo"></li></ul>',
|
||||
data: function () {
|
||||
return {
|
||||
userInfo: {},
|
||||
agentInfo: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goShortRoom: function () {
|
||||
var p = $.getQueryObj();
|
||||
var url = "short_room.html?agentid="+p.agentid+"&channelid="+p.channelid;
|
||||
|
||||
if(p.unionid)
|
||||
url = url + "&unionid=" + this.params.unionid;
|
||||
|
||||
if(p.unionid)
|
||||
url = url + "&playerid=" + this.params.playerid;
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
},
|
||||
created: function () {
|
||||
var that = this;
|
||||
$.getAgentInfo(function (agentInfo) {
|
||||
that.agentInfo = agentInfo;
|
||||
$.getWxInfo(function (res) {
|
||||
that.userInfo = res;
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user