Commit 4152d1a4 authored by AU-Pro-mac's avatar AU-Pro-mac

update

parent b96c3ab4
......@@ -368,7 +368,8 @@ Page({
},
btnImg: '//yun.duiba.com.cn/spark/assets/我也要赢大奖.a22bebbd5be4a6e557ee4ef611216ba73b729d10.png' })
} else {
if (!data.isVip || data.url) {
// old code: if (!data.isVip || data.url) {
if (code == '811001' && data.url) {
app.vipUrl = data.url
this.showCommonMoadalT1({
title: '温馨提示',
......@@ -380,6 +381,15 @@ Page({
navigateToOutside(data.url)
},
btnImg: '//yun.duiba.com.cn/spark/assets/一秒成为会员.10be8a8ede8f6c62eadb005744dc54ae182911d9.png' })
} else if (code == '810001') {
this.showCommonMoadalT1({
title: '很遗憾',
content: '新会员才能助力哦~',
confirmCallback: () => {
this.closeCommonModalT1()
},
btnImg: '//yun.duiba.com.cn/spark/assets/我也要赢大奖.a22bebbd5be4a6e557ee4ef611216ba73b729d10.png' })
} else {
commonToast(message);
}
......@@ -388,7 +398,7 @@ Page({
.catch(err => {
console.log(`%c助力失败!!!\n` + '-----yd.doHelp\n', ConsoleStyle, err)
// commonToast(err.data.url)
if (err.data && err.data.url) {
if (err.data && err.code === '811001' && err.data.url) {
app.vipUrl = err.data.url
this.showCommonMoadalT1({
title: '温馨提示',
......@@ -401,7 +411,7 @@ Page({
},
btnImg: '//yun.duiba.com.cn/spark/assets/一秒成为会员.10be8a8ede8f6c62eadb005744dc54ae182911d9.png'
})
} else if (err.code === 'testtesttest') {
} else if (err.code === '810001') {
this.showCommonMoadalT1({
title: '很遗憾',
content: '新会员才能助力哦~',
......
......@@ -5231,7 +5231,7 @@ var SuccessNoAwardPanel = (function (_super) {
closeBtn.y = -20;
this.addChild(closeBtn);
closeBtn.addEventListener(FYGE.MouseEvent.CLICK, this.back, this);
var text = Tools_1.Tools.getText(this.data && this.data.type == 6 ? "抽奖次数+1" : "奖品与你擦肩而过,\n再接再励哦~", 30, "#fff", FYGE.TEXT_ALIGN.CENTER);
var text = Tools_1.Tools.getText(this.data && this.data.type == 6 ? "抽奖次数+" + this.data.num : "奖品与你擦肩而过,\n再接再励哦~", 30, "#fff", FYGE.TEXT_ALIGN.CENTER);
text.x = bg.width - text.textWidth >> 1;
text.y = bg.height - text.textHeight >> 1;
this.addChild(text);
......
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 to comment