...
|
...
|
@@ -162,6 +162,7 @@ alertConfig = { |
|
|
content: '恭喜您,成功领取优惠券',
|
|
|
subContents: ['特殊情况下到账有延时', '请耐心等待'],
|
|
|
className: 'subcontent-dialog',
|
|
|
myCloseIcon: 'close-icon',
|
|
|
refreshOnClose: true,
|
|
|
btns: [
|
|
|
{
|
...
|
...
|
@@ -186,6 +187,7 @@ alertConfig = { |
|
|
content: '您已领取过优惠券',
|
|
|
subContent: '快去选购心仪的潮品吧',
|
|
|
className: 'subcontent-dialog',
|
|
|
myCloseIcon: 'close-icon',
|
|
|
btns: [
|
|
|
{
|
|
|
id: 1,
|
...
|
...
|
@@ -201,6 +203,7 @@ alertConfig = { |
|
|
content: '优惠券已过期',
|
|
|
subContent: '去领最新的优惠券吧',
|
|
|
className: 'subcontent-dialog',
|
|
|
myCloseIcon: 'close-icon',
|
|
|
btns: [
|
|
|
{
|
|
|
id: 1,
|
...
|
...
|
@@ -213,6 +216,7 @@ alertConfig = { |
|
|
content: '领取失败',
|
|
|
subContents: ['请刷新重试,', '多次无效请联系客服'],
|
|
|
className: 'subcontent-dialog',
|
|
|
myCloseIcon: 'close-icon',
|
|
|
btns: [
|
|
|
{
|
|
|
id: 1,
|
...
|
...
|
@@ -265,9 +269,13 @@ function requestCoupon(id) { |
|
|
|
|
|
},
|
|
|
error: function() {
|
|
|
var Alert = require('../common/dialog').Alert;
|
|
|
var opt = {
|
|
|
className: 'stu-alert',
|
|
|
myCloseIcon: 'close-icon',
|
|
|
content: '<p class="errorText">网络异常</p>'
|
|
|
}
|
|
|
|
|
|
new Alert('网络异常').show();
|
|
|
new Dialog(opt).show();
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
|