|
@@ -162,6 +162,7 @@ alertConfig = { |
|
@@ -162,6 +162,7 @@ alertConfig = { |
162
|
content: '恭喜您,成功领取优惠券',
|
162
|
content: '恭喜您,成功领取优惠券',
|
163
|
subContents: ['特殊情况下到账有延时', '请耐心等待'],
|
163
|
subContents: ['特殊情况下到账有延时', '请耐心等待'],
|
164
|
className: 'subcontent-dialog',
|
164
|
className: 'subcontent-dialog',
|
|
|
165
|
+ myCloseIcon: 'close-icon',
|
165
|
refreshOnClose: true,
|
166
|
refreshOnClose: true,
|
166
|
btns: [
|
167
|
btns: [
|
167
|
{
|
168
|
{
|
|
@@ -186,6 +187,7 @@ alertConfig = { |
|
@@ -186,6 +187,7 @@ alertConfig = { |
186
|
content: '您已领取过优惠券',
|
187
|
content: '您已领取过优惠券',
|
187
|
subContent: '快去选购心仪的潮品吧',
|
188
|
subContent: '快去选购心仪的潮品吧',
|
188
|
className: 'subcontent-dialog',
|
189
|
className: 'subcontent-dialog',
|
|
|
190
|
+ myCloseIcon: 'close-icon',
|
189
|
btns: [
|
191
|
btns: [
|
190
|
{
|
192
|
{
|
191
|
id: 1,
|
193
|
id: 1,
|
|
@@ -201,6 +203,7 @@ alertConfig = { |
|
@@ -201,6 +203,7 @@ alertConfig = { |
201
|
content: '优惠券已过期',
|
203
|
content: '优惠券已过期',
|
202
|
subContent: '去领最新的优惠券吧',
|
204
|
subContent: '去领最新的优惠券吧',
|
203
|
className: 'subcontent-dialog',
|
205
|
className: 'subcontent-dialog',
|
|
|
206
|
+ myCloseIcon: 'close-icon',
|
204
|
btns: [
|
207
|
btns: [
|
205
|
{
|
208
|
{
|
206
|
id: 1,
|
209
|
id: 1,
|
|
@@ -213,6 +216,7 @@ alertConfig = { |
|
@@ -213,6 +216,7 @@ alertConfig = { |
213
|
content: '领取失败',
|
216
|
content: '领取失败',
|
214
|
subContents: ['请刷新重试,', '多次无效请联系客服'],
|
217
|
subContents: ['请刷新重试,', '多次无效请联系客服'],
|
215
|
className: 'subcontent-dialog',
|
218
|
className: 'subcontent-dialog',
|
|
|
219
|
+ myCloseIcon: 'close-icon',
|
216
|
btns: [
|
220
|
btns: [
|
217
|
{
|
221
|
{
|
218
|
id: 1,
|
222
|
id: 1,
|
|
@@ -265,9 +269,13 @@ function requestCoupon(id) { |
|
@@ -265,9 +269,13 @@ function requestCoupon(id) { |
265
|
|
269
|
|
266
|
},
|
270
|
},
|
267
|
error: function() {
|
271
|
error: function() {
|
268
|
- var Alert = require('../common/dialog').Alert;
|
272
|
+ var opt = {
|
|
|
273
|
+ className: 'stu-alert',
|
|
|
274
|
+ myCloseIcon: 'close-icon',
|
|
|
275
|
+ content: '<p class="errorText">网络异常</p>'
|
|
|
276
|
+ }
|
269
|
|
277
|
|
270
|
- new Alert('网络异常').show();
|
278
|
+ new Dialog(opt).show();
|
271
|
}
|
279
|
}
|
272
|
});
|
280
|
});
|
273
|
}
|
281
|
}
|