var downloadGame = {
//template: '
{{ v.name }}
{{ v.memo }}
游戏包大小:{{ isIOS ? v.ios_size : v.android_size }}
抵制不良游戏拒绝盗版游戏注意自我保护谨防受骗上当
适度游戏益脑沉迷游戏伤身合理安排时间享受健康生活
',
/*template: `
-
{{ v.name }}
{{ v.memo }}
游戏包大小:{{ isIOS ? v.ios_size : v.android_size }}
抵制不良游戏拒绝盗版游戏注意自我保护谨防受骗上当
适度游戏益脑沉迷游戏伤身合理安排时间享受健康生活
`,*/
template: '{{ v.name }}
{{ v.memo }}
游戏包大小:{{ isIOS ? v.ios_size : v.android_size }}
抵制不良游戏拒绝盗版游戏注意自我保护谨防受骗上当
适度游戏益脑沉迷游戏伤身合理安排时间享受健康生活
',
data: function () {
return {
isIOS: false,
isWechat: false,
isShow: false,
isIOSImgShow: false,
info: {},
helpPic: [
'./images/ios.png',
'./images/ios2.png',
'./images/and.png'
]
}
},
methods: {
/**
* 下载链接
* @param i
* @param marketid
* @param type
*/
download: function (i, marketid, type) {
console.log(i, marketid);
// 是否是微信端
if (this.isWechat) {
// 是否显示帮助图片
this.isShow = true;
if (this.isIOS) {
if (marketid === '2')
this.isIOSImgShow = true;
else
this.isIOSImgShow = false;
}
} else {
// 是否显示帮助图片
this.isShow = false;
// 下载地址
var url = '';
if(type === 0) {
// 常用下载链接
if (this.isIOS)
url = this.info.list[i].ios_down;
else
url = this.info.list[i].android_down;
} else {
// 备用下载链接
if (this.isIOS)
url = this.info.list[i].ios_down_2;
else
url = this.info.list[i].android_down_2;
}
window.location.href = url;
}
}
},
created: function () {
this.isIOS = $.whichSystem();
this.isWechat = $.isWeiXin();
var p = $.getQueryObj();
$.api(
"Youle.Youle.gameList",
{agentid: p.agentid, channelid: p.channelid},
function (res) {
this.info = res;
}.bind(this), true
)
}
}