Authored by 周少峰

Merge branch 'master' of git.yoho.cn:fe/yohobuy-node

1 { 1 {
2 "name": "yohobuy-node", 2 "name": "yohobuy-node",
3 - "version": "4.9.1", 3 + "version": "4.9.10",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -16,10 +16,8 @@ var defaultOptions = { @@ -16,10 +16,8 @@ var defaultOptions = {
16 var tpl = 16 var tpl =
17 '<div class="yoho-dialog {{className}} hide">' + 17 '<div class="yoho-dialog {{className}} hide">' +
18 '{{#if closeIcon}}' + 18 '{{#if closeIcon}}' +
19 - '<span class="close {{#if myCloseIcon}}{{myCloseIcon}}{{/if}}">' +  
20 - '{{#unless myCloseIcon}}' +  
21 - '<i class="iconfont">&#xe602;</i>' +  
22 - '{{/unless}}' + 19 + '<span class="close">' +
  20 + '<i class="iconfont">&#xe60d;</i>' +
23 '</span>' + 21 '</span>' +
24 '{{/if}}' + 22 '{{/if}}' +
25 '<div class="content">' + 23 '<div class="content">' +
@@ -120,7 +120,6 @@ function givePoint(op, parameter) { @@ -120,7 +120,6 @@ function givePoint(op, parameter) {
120 function createStuDialog(cont) { 120 function createStuDialog(cont) {
121 var opt = { 121 var opt = {
122 className: 'stu-dialog', 122 className: 'stu-dialog',
123 - myCloseIcon: 'close-icon',  
124 content: cont 123 content: cont
125 124
126 }; 125 };
@@ -228,7 +227,6 @@ alertConfig = { @@ -228,7 +227,6 @@ alertConfig = {
228 content: '恭喜您,成功领取优惠券', 227 content: '恭喜您,成功领取优惠券',
229 subContents: ['特殊情况下到账有延时', '请耐心等待'], 228 subContents: ['特殊情况下到账有延时', '请耐心等待'],
230 className: 'subcontent-dialog', 229 className: 'subcontent-dialog',
231 - myCloseIcon: 'close-icon',  
232 refreshOnClose: true, 230 refreshOnClose: true,
233 btns: [ 231 btns: [
234 { 232 {
@@ -253,7 +251,6 @@ alertConfig = { @@ -253,7 +251,6 @@ alertConfig = {
253 content: '您已领取过优惠券', 251 content: '您已领取过优惠券',
254 subContent: '快去选购心仪的潮品吧', 252 subContent: '快去选购心仪的潮品吧',
255 className: 'subcontent-dialog', 253 className: 'subcontent-dialog',
256 - myCloseIcon: 'close-icon',  
257 btns: [ 254 btns: [
258 { 255 {
259 id: 1, 256 id: 1,
@@ -269,7 +266,6 @@ alertConfig = { @@ -269,7 +266,6 @@ alertConfig = {
269 content: '优惠券已过期', 266 content: '优惠券已过期',
270 subContent: '去领最新的优惠券吧', 267 subContent: '去领最新的优惠券吧',
271 className: 'subcontent-dialog', 268 className: 'subcontent-dialog',
272 - myCloseIcon: 'close-icon',  
273 btns: [ 269 btns: [
274 { 270 {
275 id: 1, 271 id: 1,
@@ -282,7 +278,6 @@ alertConfig = { @@ -282,7 +278,6 @@ alertConfig = {
282 content: '领取失败', 278 content: '领取失败',
283 subContents: ['请刷新重试,', '多次无效请联系客服'], 279 subContents: ['请刷新重试,', '多次无效请联系客服'],
284 className: 'subcontent-dialog', 280 className: 'subcontent-dialog',
285 - myCloseIcon: 'close-icon',  
286 btns: [ 281 btns: [
287 { 282 {
288 id: 1, 283 id: 1,
@@ -337,7 +332,6 @@ function requestCoupon(id) { @@ -337,7 +332,6 @@ function requestCoupon(id) {
337 error: function() { 332 error: function() {
338 var opt = { 333 var opt = {
339 className: 'stu-alert', 334 className: 'stu-alert',
340 - myCloseIcon: 'close-icon',  
341 content: '<p>网络异常</p>' 335 content: '<p>网络异常</p>'
342 }; 336 };
343 337
@@ -529,15 +529,17 @@ @@ -529,15 +529,17 @@
529 margin-top: 50px; 529 margin-top: 50px;
530 } 530 }
531 531
532 -.stu-alert .close-icon,  
533 -.stu-dialog .close-icon,  
534 -.subcontent-dialog .close-icon { 532 +.stu-dialog .close {
535 display: inline-block; 533 display: inline-block;
536 top: -20px; 534 top: -20px;
537 right: -20px; 535 right: -20px;
538 width: 35px; 536 width: 35px;
539 height: 35px; 537 height: 35px;
540 background-image: resolve("students/close.png"); 538 background-image: resolve("students/close.png");
  539 +
  540 + .iconfont {
  541 + display: none;
  542 + }
541 } 543 }
542 544
543 .min-screen { 545 .min-screen {