Authored by wenjiekong

领券提示框,还关闭图标

@@ -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 }
@@ -496,15 +496,6 @@ @@ -496,15 +496,6 @@
496 margin: 10px; 496 margin: 10px;
497 } 497 }
498 498
499 - .close-icon {  
500 - display: inline-block;  
501 - top: -20px;  
502 - right: -20px;  
503 - width: 35px;  
504 - height: 35px;  
505 - background-image: resolve("students/close.png");  
506 - }  
507 -  
508 .dia-title { 499 .dia-title {
509 display: inline-block; 500 display: inline-block;
510 padding-bottom: 7px; 501 padding-bottom: 7px;
@@ -521,15 +512,25 @@ @@ -521,15 +512,25 @@
521 } 512 }
522 } 513 }
523 514
524 -.min-screen { 515 +.stu-alert .errorText {
  516 + margin-top: 50px;
  517 +}
  518 +.stu-alert .close-icon,
  519 +.stu-dialog .close-icon{
  520 + display: inline-block;
  521 + top: -20px;
  522 + right: -20px;
  523 + width: 35px;
  524 + height: 35px;
  525 + background-image: resolve("students/close.png");
  526 +}
525 527
  528 +.min-screen {
526 .stu-page { 529 .stu-page {
527 -  
528 .stu-rights { 530 .stu-rights {
529 .stu-rights-item { 531 .stu-rights-item {
530 width: 222px; 532 width: 222px;
531 } 533 }
532 -  
533 } 534 }
534 535
535 .coupon { 536 .coupon {
@@ -542,7 +543,6 @@ @@ -542,7 +543,6 @@
542 } 543 }
543 544
544 .stu-identity { 545 .stu-identity {
545 -  
546 .identity-count, 546 .identity-count,
547 .identity-wrap { 547 .identity-wrap {
548 margin: 10px 0 10px 10px; 548 margin: 10px 0 10px 10px;