Commit 932985ef by dabai

xx

parent 611f095f
Showing with 53 additions and 0 deletions
......@@ -51,6 +51,59 @@ function $ajax(opt) {
})
}
function getInit() {
return new Promise(function(resovle, reject) {
$ajax({
url: '/active201904/getUserInfo.html',
}).then(function(res) {
if(res.vest == 41) {
if(url_get_params().appversion < 5960) {
currencyUnit = '樱花'; //貨幣單位
incomeUnit = '花瓣'; //收益單位
headUrl = 'https://app.ixiulive.com/static/images/headc.png';
currencyImg = '<img class="current2" src="https://app.ixiulive.com/static/images/current2.png" />';
currencyImg2 = 'https://app.ixiulive.com/static/images/current2s.png';
incomeImg = '<img class="income2" src="https://app.ixiulive.com/static/images/income2.png" />';
giftObjImg = 'https://app.ixiulive.com/static/images/current2.png';
} else {
currencyUnit = '寶石'; //貨幣單位
incomeUnit = '羽毛'; //收益單位
headUrl = 'https://app.ixiulive.com/static/images/head2.png';
currencyImg = '<img class="current4" src="https://app.ixiulive.com/static/images/current4.png" />';
currencyImg2 = 'https://app.ixiulive.com/static/images/current4s.png';
incomeImg = '<img class="income4" src="https://app.ixiulive.com/static/images/income4.png" />';
giftObjImg = 'https://app.ixiulive.com/static/images/current4.png';
}
} else if(res.vest == 40) {
currencyUnit = '金幣'; //貨幣單位
incomeUnit = '金豆'; //收益單位
headUrl = 'https://app.ixiulive.com/static/images/headp.png';
currencyImg = '<img class="current3" src="https://app.ixiulive.com/static/images/current3.png" />';
currencyImg2 = 'https://app.ixiulive.com/static/images/current3s.png';
incomeImg = '<img class="income3" src="https://app.ixiulive.com/static/images/income3.png" />';
giftObjImg = 'https://app.ixiulive.com/static/images/current3.png';
} else if(res.vest == 50 || res.vest == 60) {
currencyUnit = '寶石'; //貨幣單位
incomeUnit = '羽毛'; //收益單位
headUrl = 'https://app.ixiulive.com/static/images/head2.png';
currencyImg = '<img class="current4" src="https://app.ixiulive.com/static/images/current4.png" />';
currencyImg2 = 'https://app.ixiulive.com/static/images/current4s.png';
incomeImg = '<img class="income4" src="https://app.ixiulive.com/static/images/income4.png" />';
giftObjImg = 'https://app.ixiulive.com/static/images/current4.png';
} else {
currencyUnit = '寶石'; //貨幣單位
incomeUnit = '螢火'; //收益單位
headUrl = 'https://zhibocdn.yabolive.net/comm/user/boy.png';
currencyImg = '<img class="current1" src="https://app.ixiulive.com/static/images/current1.png" />';
currencyImg2 = 'https://app.ixiulive.com/static/images/current1s.png';
incomeImg = '<img class="income1" src="https://app.ixiulive.com/static/images/income11.png" />';
giftObjImg = 'https://app.ixiulive.com/static/images/current1.png';
}
resovle(res);
})
})
}
function getTime(time) {
var timezone = 8; //目标时区时间,东八区
var offset_GMT = new Date(time).getTimezoneOffset(); // 本地时间和格林威治的时间差,单位为分钟
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment