Showing
6 changed files
with
41 additions
and
23 deletions
No preview for this file type
@@ -2,11 +2,7 @@ | @@ -2,11 +2,7 @@ | ||
2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | 2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > |
3 | <svg xmlns="http://www.w3.org/2000/svg"> | 3 | <svg xmlns="http://www.w3.org/2000/svg"> |
4 | <metadata> | 4 | <metadata> |
5 | -<<<<<<< HEAD | ||
6 | -Created by FontForge 20120731 at Tue Jan 17 16:09:10 2017 | ||
7 | -======= | ||
8 | -Created by FontForge 20120731 at Thu Dec 29 16:36:04 2016 | ||
9 | ->>>>>>> remotes/origin/master | 5 | +Created by FontForge 20120731 at Tue Jan 24 14:14:23 2017 |
10 | By admin | 6 | By admin |
11 | </metadata> | 7 | </metadata> |
12 | <defs> | 8 | <defs> |
@@ -189,6 +185,8 @@ d="M958 758q0 30 -21 51.5t-51 21.5h-749q-30 0 -51 -21.5t-21 -51.5v-748q0 -30 21 | @@ -189,6 +185,8 @@ d="M958 758q0 30 -21 51.5t-51 21.5h-749q-30 0 -51 -21.5t-21 -51.5v-748q0 -30 21 | ||
189 | z" /> | 185 | z" /> |
190 | <glyph glyph-name="wujiaoxing" unicode="" | 186 | <glyph glyph-name="wujiaoxing" unicode="" |
191 | d="M512 63l-316 -166l60 352l-256 250l354 51l158 321l158 -321l354 -51l-256 -250l60 -352z" /> | 187 | d="M512 63l-316 -166l60 352l-256 250l354 51l158 321l158 -321l354 -51l-256 -250l60 -352z" /> |
188 | + <glyph glyph-name="shanchu1" unicode="" | ||
189 | +d="M1004 851l-17 17l-475 -476l-475 476l-17 -17l475 -475l-458 -459l17 -17l458 459l458 -459l17 17l-458 459z" /> | ||
192 | <glyph glyph-name="7xiaoche" unicode="" horiz-adv-x="1163" | 190 | <glyph glyph-name="7xiaoche" unicode="" horiz-adv-x="1163" |
193 | d="M295 196q67 0 114 -47t47 -113.5t-47 -114t-114 -47.5t-114 47.5t-47 114t47 113.5t114 47zM917.5 196q66.5 0 113.5 -47t47 -113.5t-47 -114t-113.5 -47.5t-114 47.5t-47.5 114t47.5 113.5t114 47zM400 894v-99h-210v0v0l-187 -294v-372h95q27 56 80 90.5t117 34.5 | 191 | d="M295 196q67 0 114 -47t47 -113.5t-47 -114t-114 -47.5t-114 47.5t-47 114t47 113.5t114 47zM917.5 196q66.5 0 113.5 -47t47 -113.5t-47 -114t-113.5 -47.5t-114 47.5t-47.5 114t47.5 113.5t114 47zM400 894v-99h-210v0v0l-187 -294v-372h95q27 56 80 90.5t117 34.5 |
194 | t117 -34.5t80 -90.5h228q27 56 80 90.5t117.5 34.5t117.5 -34.5t79 -90.5h46v765h-760v0zM400 452h-283l159 250l124 1v-251v0v0zM893 701l-131 -276l-63 31l101 206h-105v68h198v-29v0v0z" /> | 192 | t117 -34.5t80 -90.5h228q27 56 80 90.5t117.5 34.5t117.5 -34.5t79 -90.5h46v765h-760v0zM400 452h-283l159 250l124 1v-251v0v0zM893 701l-131 -276l-63 31l101 206h-105v68h198v-29v0v0z" /> |
@@ -270,7 +268,6 @@ d="M947 179q31 0 54 -23t23 -53.5t-23 -53.5t-54 -23h-51q31 0 54 -23t23 -54t-23 -5 | @@ -270,7 +268,6 @@ d="M947 179q31 0 54 -23t23 -53.5t-23 -53.5t-54 -23h-51q31 0 54 -23t23 -54t-23 -5 | ||
270 | q0 -136 -26 -205h256q31 0 54 -23t23 -53.5t-23 -53.5t-54 -23h51q31 0 54 -23t23 -54t-23 -54t-54 -23zM102.5 -128q-42.5 0 -72.5 30t-30 72v410q0 42 30 72t72.5 30t72.5 -30t30 -72v-410q0 -42 -30 -72t-72.5 -30z" /> | 268 | q0 -136 -26 -205h256q31 0 54 -23t23 -53.5t-23 -53.5t-54 -23h51q31 0 54 -23t23 -54t-23 -54t-54 -23zM102.5 -128q-42.5 0 -72.5 30t-30 72v410q0 42 30 72t72.5 30t72.5 -30t30 -72v-410q0 -42 -30 -72t-72.5 -30z" /> |
271 | <glyph glyph-name="juxingkaobei" unicode="" | 269 | <glyph glyph-name="juxingkaobei" unicode="" |
272 | d="M186 2l391 382l-391 382l131 130l521 -512l-521 -512z" /> | 270 | d="M186 2l391 382l-391 382l131 130l521 -512l-521 -512z" /> |
273 | -<<<<<<< HEAD | ||
274 | <glyph glyph-name="shang" unicode="" | 271 | <glyph glyph-name="shang" unicode="" |
275 | d="M958 179q0 -15 -10.5 -25.5t-25.5 -10.5t-26 10l-384 384l-384 -384q-11 -10 -26 -10t-25.5 10.5t-10.5 25.5t11 26l409 410q11 10 26 10t26 -10l409 -410q11 -11 11 -26z" /> | 272 | d="M958 179q0 -15 -10.5 -25.5t-25.5 -10.5t-26 10l-384 384l-384 -384q-11 -10 -26 -10t-25.5 10.5t-10.5 25.5t11 26l409 410q11 10 26 10t26 -10l409 -410q11 -11 11 -26z" /> |
276 | <glyph glyph-name="xia" unicode="" | 273 | <glyph glyph-name="xia" unicode="" |
@@ -329,7 +326,8 @@ l-102 96v13l13 14q25 21 60.5 19.5t55.5 -26.5zM123 -5l61 143l82 -82z" /> | @@ -329,7 +326,8 @@ l-102 96v13l13 14q25 21 60.5 19.5t55.5 -26.5zM123 -5l61 143l82 -82z" /> | ||
329 | <glyph glyph-name="jinzhi" unicode="" | 326 | <glyph glyph-name="jinzhi" unicode="" |
330 | d="M998 384q0 99 -38.5 189t-103.5 155t-155 103.5t-189 38.5t-189 -38.5t-155 -103.5t-103.5 -155t-38.5 -189t38.5 -189t103.5 -155t155 -103.5t189 -38.5t189 38.5t155 103.5t103.5 155t38.5 189zM512 806q152 0 275 -102l-595 -595q-102 123 -102 275q0 85 33.5 163 | 327 | d="M998 384q0 99 -38.5 189t-103.5 155t-155 103.5t-189 38.5t-189 -38.5t-155 -103.5t-103.5 -155t-38.5 -189t38.5 -189t103.5 -155t155 -103.5t189 -38.5t189 38.5t155 103.5t103.5 155t38.5 189zM512 806q152 0 275 -102l-595 -595q-102 123 -102 275q0 85 33.5 163 |
331 | t90.5 135t135 90.5t163 33.5zM237 64l595 595q102 -123 102 -275q0 -114 -55.5 -211t-153 -154t-213.5 -57q-152 0 -275 102z" /> | 328 | t90.5 135t135 90.5t163 33.5zM237 64l595 595q102 -123 102 -275q0 -114 -55.5 -211t-153 -154t-213.5 -57q-152 0 -275 102z" /> |
332 | -======= | ||
333 | ->>>>>>> remotes/origin/master | 329 | + <glyph glyph-name="shiliangzhinengduixiang1" unicode="" |
330 | +d="M515 -128q60 0 105.5 40t52.5 98h-322q11 -58 57 -98t107 -40zM852 225q-15 31 -15 123v113q0 111 -56 200t-149 127q-7 47 -42 77.5t-81 30.5q-51 0 -87 -36q-26 -27 -35 -72q-93 -42 -149 -131t-56 -196v-113q0 -97 -16 -128q-30 -10 -46 -20q-20 -31 -20 -57 | ||
331 | +q0 -31 24 -53.5t58 -22.5h660q34 0 58 22.5t24 53.5q-4 31 -24.5 54.5t-47.5 27.5z" /> | ||
334 | </font> | 332 | </font> |
335 | </defs></svg> | 333 | </defs></svg> |
No preview for this file type
No preview for this file type
@@ -4,10 +4,11 @@ | @@ -4,10 +4,11 @@ | ||
4 | 4 | ||
5 | var $ = require('yoho-jquery'); | 5 | var $ = require('yoho-jquery'); |
6 | var dialog = require('../common/dialog'); | 6 | var dialog = require('../common/dialog'); |
7 | -var Alert = dialog.Alert; | ||
8 | var Confirm = dialog.Confirm; | 7 | var Confirm = dialog.Confirm; |
9 | var rDialog = require('./rdialog'); | 8 | var rDialog = require('./rdialog'); |
10 | var RConfirm = rDialog.RConfirm; | 9 | var RConfirm = rDialog.RConfirm; |
10 | +var RAlert = rDialog.RAlert; | ||
11 | + | ||
11 | var Cart; | 12 | var Cart; |
12 | 13 | ||
13 | var $cartnewTips = $('.cartnew-tips'), | 14 | var $cartnewTips = $('.cartnew-tips'), |
@@ -187,13 +188,13 @@ Cart = { | @@ -187,13 +188,13 @@ Cart = { | ||
187 | capi.cartItemDel(selectArray, true, PromotionArray); | 188 | capi.cartItemDel(selectArray, true, PromotionArray); |
188 | }); | 189 | }); |
189 | } else { | 190 | } else { |
190 | - new Alert('请至少选择一件商品').show(); | 191 | + var content = '<div class="alert-main"><i class="iconfont"></i>请至少选中一件商品!</div>'; |
192 | + new RAlert(content).show(); | ||
191 | } | 193 | } |
192 | }, | 194 | }, |
193 | cleanAllDisable: function() { | 195 | cleanAllDisable: function() { |
194 | var selectArray = []; | 196 | var selectArray = []; |
195 | var PromotionArray = []; | 197 | var PromotionArray = []; |
196 | - var content = '<div><i class="iconfont"></i>删除商品</div><p>确定从购物车中删除所有失效商品?</p>'; | ||
197 | 198 | ||
198 | $payWapper.find('.tr-disabled[data-role=pitem]').each(function() { | 199 | $payWapper.find('.tr-disabled[data-role=pitem]').each(function() { |
199 | 200 | ||
@@ -220,14 +221,13 @@ Cart = { | @@ -220,14 +221,13 @@ Cart = { | ||
220 | }); | 221 | }); |
221 | 222 | ||
222 | if (!$.isEmptyObject(selectArray)) { | 223 | if (!$.isEmptyObject(selectArray)) { |
223 | - new Confirm({ | ||
224 | - content: content, | ||
225 | - cb: function() { | ||
226 | - capi.cartItemDel(selectArray, true, PromotionArray); | ||
227 | - } | 224 | + var content = '<div><i class="iconfont"></i>清除失效商品</div><p>确定要清除失效商品吗?</p>'; |
225 | + new RConfirm(content, function() { | ||
226 | + capi.cartItemDel(selectArray, true, PromotionArray); | ||
228 | }).show(); | 227 | }).show(); |
229 | } else { | 228 | } else { |
230 | - new Alert('请至少选择一件商品').show(); | 229 | + var content = '<div class="alert-main"><i class="iconfont"></i>购物车中没有失效商品!</div>'; |
230 | + new RAlert(content).show(); | ||
231 | } | 231 | } |
232 | }, | 232 | }, |
233 | toFav: function() { | 233 | toFav: function() { |
@@ -253,6 +253,7 @@ Cart = { | @@ -253,6 +253,7 @@ Cart = { | ||
253 | toFavAll: function() { | 253 | toFavAll: function() { |
254 | 254 | ||
255 | var selectArray = []; | 255 | var selectArray = []; |
256 | + var content = '<div><i class="iconfont"></i>移入收藏</div><p>确定要将已选中的商品从购物车中移入收藏夹吗?<br/>移入收藏后已选中的商品将不在购物车中显示</p>'; | ||
256 | 257 | ||
257 | $payWapper.find('[data-role=cart-item-check]').each(function() { | 258 | $payWapper.find('[data-role=cart-item-check]').each(function() { |
258 | 259 | ||
@@ -272,9 +273,14 @@ Cart = { | @@ -272,9 +273,14 @@ Cart = { | ||
272 | }); | 273 | }); |
273 | 274 | ||
274 | if (!$.isEmptyObject(selectArray)) { | 275 | if (!$.isEmptyObject(selectArray)) { |
275 | - capi.cartItemDel(selectArray); | 276 | + |
277 | + new RConfirm(content, function() { | ||
278 | + capi.cartItemDel(selectArray); | ||
279 | + }); | ||
280 | + | ||
276 | } else { | 281 | } else { |
277 | - new Alert('请至少选择一件商品').show(); | 282 | + var content = '<div class="alert-main"><i class="iconfont"></i>请至少选中一件商品!</div>'; |
283 | + new RAlert(content).show(); | ||
278 | } | 284 | } |
279 | }, | 285 | }, |
280 | modNum: function() { | 286 | modNum: function() { |
@@ -1512,21 +1512,26 @@ | @@ -1512,21 +1512,26 @@ | ||
1512 | } | 1512 | } |
1513 | .r-dialog.yoho-dialog{ | 1513 | .r-dialog.yoho-dialog{ |
1514 | min-width: 370px; | 1514 | min-width: 370px; |
1515 | + min-height: 104px; | ||
1515 | box-sizing: content-box; | 1516 | box-sizing: content-box; |
1516 | } | 1517 | } |
1517 | .r-dialog{ | 1518 | .r-dialog{ |
1518 | - padding: 40px 20px; | 1519 | + padding: 74px 20px 40px 20px; |
1519 | 1520 | ||
1520 | .close { | 1521 | .close { |
1521 | - top: 20px; | ||
1522 | - right: 20px; | 1522 | + top: 16px; |
1523 | + right: 16px; | ||
1524 | + i { | ||
1525 | + font-size: 24px; | ||
1526 | + } | ||
1523 | } | 1527 | } |
1524 | 1528 | ||
1525 | .dialog-content{ | 1529 | .dialog-content{ |
1526 | 1530 | ||
1527 | font-size: 24px; | 1531 | font-size: 24px; |
1528 | color: #444; | 1532 | color: #444; |
1529 | - font-weight: 300; | 1533 | + font-weight: 500; |
1534 | + | ||
1530 | i { | 1535 | i { |
1531 | display: inline-block; | 1536 | display: inline-block; |
1532 | color: #d0021b; | 1537 | color: #d0021b; |
@@ -1544,6 +1549,7 @@ | @@ -1544,6 +1549,7 @@ | ||
1544 | margin-bottom: 30px; | 1549 | margin-bottom: 30px; |
1545 | font-size: 14px; | 1550 | font-size: 14px; |
1546 | color: #444; | 1551 | color: #444; |
1552 | + font-weight: normal; | ||
1547 | } | 1553 | } |
1548 | } | 1554 | } |
1549 | .btn { | 1555 | .btn { |
@@ -1555,6 +1561,14 @@ | @@ -1555,6 +1561,14 @@ | ||
1555 | margin-left: 20px; | 1561 | margin-left: 20px; |
1556 | } | 1562 | } |
1557 | } | 1563 | } |
1564 | + | ||
1565 | + .alert-main { | ||
1566 | + margin-bottom: 64px; | ||
1567 | + i { | ||
1568 | + -webkit-text-stroke-width: 1.5px; | ||
1569 | + text-stroke-width: 1.5px; | ||
1570 | + } | ||
1571 | + } | ||
1558 | } | 1572 | } |
1559 | 1573 | ||
1560 | 1574 |
-
Please register or login to post a comment