Authored by wenjiekong

领券提示框,还关闭图标

... ... @@ -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();
}
});
}
... ...
... ... @@ -496,15 +496,6 @@
margin: 10px;
}
.close-icon {
display: inline-block;
top: -20px;
right: -20px;
width: 35px;
height: 35px;
background-image: resolve("students/close.png");
}
.dia-title {
display: inline-block;
padding-bottom: 7px;
... ... @@ -521,15 +512,25 @@
}
}
.min-screen {
.stu-alert .errorText {
margin-top: 50px;
}
.stu-alert .close-icon,
.stu-dialog .close-icon{
display: inline-block;
top: -20px;
right: -20px;
width: 35px;
height: 35px;
background-image: resolve("students/close.png");
}
.min-screen {
.stu-page {
.stu-rights {
.stu-rights-item {
width: 222px;
}
}
.coupon {
... ... @@ -542,8 +543,7 @@
}
.stu-identity {
.identity-count,
.identity-count,
.identity-wrap {
margin: 10px 0 10px 10px;
padding: 10px;
... ... @@ -562,6 +562,6 @@
height: 340px;
margin-left: 10px;
}
}
}
}
}
}
... ...