Authored by 刘传洋

m

@@ -385,7 +385,7 @@ const getCartData = (uid, shoppingKey, cartDelList) => { @@ -385,7 +385,7 @@ const getCartData = (uid, shoppingKey, cartDelList) => {
385 385
386 return co(function * () { 386 return co(function * () {
387 let result = { 387 let result = {
388 - isEmpty: false, 388 + isEmpty: true,
389 isLogin: !!uid, 389 isLogin: !!uid,
390 searchUrl: helpers.urlFormat('', null, 'search'), // 搜索链接(再逛逛) 390 searchUrl: helpers.urlFormat('', null, 'search'), // 搜索链接(再逛逛)
391 listUrl: helpers.urlFormat('', null, 'list'), 391 listUrl: helpers.urlFormat('', null, 'list'),
@@ -25,30 +25,10 @@ @@ -25,30 +25,10 @@
25 <div class="order-pay"> 25 <div class="order-pay">
26 {{#if cart.isEmpty}} 26 {{#if cart.isEmpty}}
27 <div class="pay-wapper"> 27 <div class="pay-wapper">
28 - <table>  
29 - <thead>  
30 - <tr>  
31 - <th style="width:7%;">  
32 - 全选  
33 - </th>  
34 - <th style="width:40%;">  
35 - 商品信息  
36 - </th>  
37 - <th style="width:13%;">单价</th>  
38 - <th style="width:10%;">数量</th>  
39 - <th style="width:10%;">小计(元)</th>  
40 - <th style="width:20%;">操作</th>  
41 - </tr>  
42 - </thead>  
43 - <tbody>  
44 - <tr class="pre-sell-box">  
45 - <td colspan="6" class="cart-empty">  
46 - <a href="{{cart.guangUrl}}">选购商品</a>  
47 - <a href="{{cart.viewOrderUrl}}">查看订单</a>  
48 - </td>  
49 - </tr>  
50 - </tbody>  
51 - </table> 28 + <div class="shop-cart-empty">
  29 + <p>购物车空空的哦,去看看心仪的商品吧~</p>
  30 +
  31 + </div>
52 </div> 32 </div>
53 <div class="dev-revocation {{#unless cart.deleteShop}}none{{/unless}}"> 33 <div class="dev-revocation {{#unless cart.deleteShop}}none{{/unless}}">
54 <table> 34 <table>
@@ -72,7 +52,7 @@ @@ -72,7 +52,7 @@
72 <div class="pay-wapper"> 52 <div class="pay-wapper">
73 <div class="cart-title"> 53 <div class="cart-title">
74 <p class="left" style="width:6%;"> 54 <p class="left" style="width:6%;">
75 - <input type="checkbox"/> 全选 55 + <i class="cart-item-check iconfont cart-item-checked"></i> 全选
76 </p> 56 </p>
77 <p style="width:40%">商品信息</p> 57 <p style="width:40%">商品信息</p>
78 <p style="width:14%">单价</p> 58 <p style="width:14%">单价</p>
@@ -207,7 +187,7 @@ @@ -207,7 +187,7 @@
207 {{#unless cart.isEmpty}} 187 {{#unless cart.isEmpty}}
208 <div class="left"> 188 <div class="left">
209 <a href="javascript:void(0);" class="btn_h" style="display:none;"><span>清空商品</span></a> 189 <a href="javascript:void(0);" class="btn_h" style="display:none;"><span>清空商品</span></a>
210 - <input type="checkbox" id="cbSelAllGoods" {{#if cart.isCheckedAll}}checked="checked"{{/if}}> 190 + <i class="cart-item-check iconfont" id="cbSelAllGoods" {{#if cart.isCheckedAll}}checked="checked"{{/if}}></i>
211 <span>全选</span> 191 <span>全选</span>
212 <a class="delAll" href="javascript:void(0);">删除选中商品</a> 192 <a class="delAll" href="javascript:void(0);">删除选中商品</a>
213 <a class="removeAll" href="javascript:void(0);">移入收藏夹</a> 193 <a class="removeAll" href="javascript:void(0);">移入收藏夹</a>
@@ -6,16 +6,16 @@ @@ -6,16 +6,16 @@
6 {{#if productNum}}data-productnum="{{productNum}}"{{/if}} 6 {{#if productNum}}data-productnum="{{productNum}}"{{/if}}
7 {{#if goodsType}}data-goodstype="{{goodsType}}"{{/if}} > 7 {{#if goodsType}}data-goodstype="{{goodsType}}"{{/if}} >
8 <div class="pay-pro td" style="width: 45%;"> 8 <div class="pay-pro td" style="width: 45%;">
9 - <input class="cart-item-check {{#isChecked}}cart-item-checked{{/isChecked}}" 9 + <i class="cart-item-check iconfont {{#isChecked}}cart-item-checked{{/isChecked}}"
10 readonly="readonly" data-goodstype="{{goodsType}}" 10 readonly="readonly" data-goodstype="{{goodsType}}"
11 - {{#if isChecked}}checked{{/if}}/> 11 + {{#if isChecked}}checked{{/if}}></i>
12 <a class="pay-pro-icon" href="{{link}}" target="_blank"> 12 <a class="pay-pro-icon" href="{{link}}" target="_blank">
13 <img src="{{imgCover}}"> 13 <img src="{{imgCover}}">
14 <span class="incentive red">预售</span> 14 <span class="incentive red">预售</span>
15 </a> 15 </a>
16 <p class="pay-pro-info"> 16 <p class="pay-pro-info">
17 <a href="{{link}}" target="_blank">{{productTitle}}</a> 17 <a href="{{link}}" target="_blank">{{productTitle}}</a>
18 - <span><b title="{{productColor}}">颜色:红色{{productColor}}</b> 尺码:{{productSize}}</span> 18 + <span><b title="{{productColor}}">颜色:红色{{productColor}}</b> 尺码:{{productSize}}<i class="iconfont">&#xe6c7;</i></span>
19 </p> 19 </p>
20 </div> 20 </div>
21 <div class="product-price td" style="width:17%;">¥{{productPrice}} 21 <div class="product-price td" style="width:17%;">¥{{productPrice}}
@@ -52,4 +52,59 @@ @@ -52,4 +52,59 @@
52 <span class="cart-del-btn">删除</span> 52 <span class="cart-del-btn">删除</span>
53 <span class="cart-col-btn">移入收藏</span> 53 <span class="cart-col-btn">移入收藏</span>
54 </div> 54 </div>
  55 + <div class="goods-choose-box none" id="goodsChoose">
  56 + <div class="goods-info">
  57 + <div class="dl choose-color">
  58 + <div class="dd">颜色:</div>
  59 + <div class="dt active">
  60 + <img src="#"/>
  61 + </div>
  62 + <div class="dt">
  63 + <img src="#"/>
  64 + </div>
  65 + <div class="dt">
  66 + <img src="#"/>
  67 + </div>
  68 + </div>
  69 + <div class="dl choose-size">
  70 + <div class="dd">尺码:</div>
  71 + <div class="dt active">
  72 + 40
  73 + </div>
  74 + <div class="dt">
  75 + 42
  76 + </div>
  77 + <div class="dt">
  78 + 44
  79 + </div>
  80 + <div class="dt">
  81 + 46
  82 + </div>
  83 + <div class="dt disabled">
  84 + 48
  85 + </div>
  86 + </div>
  87 + <div class="button-group">
  88 + <button class="button-sure">确定</button>
  89 + <button class="button-cancel">取消</button>
  90 + </div>
  91 + </div>
  92 + <div class="goods-info-bigImg">
  93 + <div class="bigImg">
  94 + <img src="#"/>
  95 + </div>
  96 + <div class="bigImg none">
  97 + <img src="#"/>
  98 + </div>
  99 + <div class="bigImg none">
  100 + <img src="#"/>
  101 + </div>
  102 + <div class="bigImg none">
  103 + <img src="#"/>
  104 + </div>
  105 + <div class="bigImg none">
  106 + <img src="#"/>
  107 + </div>
  108 + </div>
  109 +</div>
55 </li> 110 </li>
No preview for this file type
@@ -2,7 +2,7 @@ @@ -2,7 +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 -Created by FontForge 20120731 at Thu Dec 15 10:53:04 2016 5 +Created by FontForge 20120731 at Wed Jan 4 17:32:53 2017
6 By admin 6 By admin
7 </metadata> 7 </metadata>
8 <defs> 8 <defs>
@@ -16,7 +16,7 @@ Created by FontForge 20120731 at Thu Dec 15 10:53:04 2016 @@ -16,7 +16,7 @@ Created by FontForge 20120731 at Thu Dec 15 10:53:04 2016
16 ascent="896" 16 ascent="896"
17 descent="-128" 17 descent="-128"
18 x-height="792" 18 x-height="792"
19 - bbox="-0.75 -212 1160 996" 19 + bbox="-6 -212 1160 996"
20 underline-thickness="0" 20 underline-thickness="0"
21 underline-position="0" 21 underline-position="0"
22 unicode-range="U+0078-E701" 22 unicode-range="U+0078-E701"
@@ -52,6 +52,8 @@ d="M384 640v-513l321 257z" /> @@ -52,6 +52,8 @@ d="M384 640v-513l321 257z" />
52 d="M286 509l-46 -45l272 -272l272 272l-46 45l-226 -226z" /> 52 d="M286 509l-46 -45l272 -272l272 272l-46 45l-226 -226z" />
53 <glyph glyph-name="chevron-right" unicode="&#xe60c;" 53 <glyph glyph-name="chevron-right" unicode="&#xe60c;"
54 d="M387 158l45 -46l272 272l-272 272l-45 -46l226 -226z" /> 54 d="M387 158l45 -46l272 272l-272 272l-45 -46l226 -226z" />
  55 + <glyph glyph-name="shoucang" unicode="&#xe641;"
  56 +d="M896 294q66 69 66 166.5t-66 166.5q-68 71 -164 69q-37 -1 -91.5 -29.5t-90.5 -57.5l-37 -28q-6 4 -15.5 12t-38.5 28t-55.5 35t-59 27.5t-56.5 12.5q-93 0 -159 -69t-66 -166.5t66 -166.5l383 -399z" />
55 <glyph glyph-name="duihao" unicode="&#xe605;" 57 <glyph glyph-name="duihao" unicode="&#xe605;"
56 d="M903 577l-68 69l-388 -388l-231 230l-68 -68l299 -298l65 65v0z" /> 58 d="M903 577l-68 69l-388 -388l-231 230l-68 -68l299 -298l65 65v0z" />
57 <glyph glyph-name="tongzhi" unicode="&#xe63f;" 59 <glyph glyph-name="tongzhi" unicode="&#xe63f;"
@@ -103,6 +105,9 @@ q5 37 20 66t39 49t55 31q31 10 66 10q33 0 63 -9.5t53 -28.5t36 -46.5t13 -64.5q0 -2 @@ -103,6 +105,9 @@ q5 37 20 66t39 49t55 31q31 10 66 10q33 0 63 -9.5t53 -28.5t36 -46.5t13 -64.5q0 -2
103 q-12 0 -23.5 4.5t-20.5 12.5q-8 7 -13 18t-5 23z" /> 105 q-12 0 -23.5 4.5t-20.5 12.5q-8 7 -13 18t-5 23z" />
104 <glyph glyph-name="add" unicode="&#xe644;" 106 <glyph glyph-name="add" unicode="&#xe644;"
105 d="M960 262h-410v-410h-76v410h-410v76h410v410h76v-410h410v-76z" /> 107 d="M960 262h-410v-410h-76v410h-410v76h410v410h76v-410h410v-76z" />
  108 + <glyph glyph-name="search1" unicode="&#xe640;"
  109 +d="M968 47l-163 164q69 108 69 234q0 119 -57.5 219t-157 158.5t-216 58.5t-216 -58.5t-157 -158.5t-57.5 -218.5t57.5 -219t157 -158.5t216.5 -58q124 0 231 69l163 -164q27 -28 65 -28t65 27.5t27 66t-27 66.5zM443.5 134q-127.5 0 -217.5 91.5t-90 220t90 219.5t217.5 91
  110 +t217.5 -91t90 -219.5t-90 -220t-217.5 -91.5z" />
106 <glyph glyph-name="xiangxia" unicode="&#xe61d;" 111 <glyph glyph-name="xiangxia" unicode="&#xe61d;"
107 d="M888 620q12 12 28.5 12t28.5 -12v0q12 -12 12 -28.5t-12 -28.5l-406 -405q-12 -12 -28.5 -12t-27.5 12v0q-12 11 -12 27.5t12 28.5zM539 214q11 -12 11 -28.5t-11 -27.5v0q-12 -12 -28.5 -12t-28.5 12l-406 405q-11 12 -11 28.5t11 28.5v0q12 12 28.5 12t28.5 -12z 112 d="M888 620q12 12 28.5 12t28.5 -12v0q12 -12 12 -28.5t-12 -28.5l-406 -405q-12 -12 -28.5 -12t-27.5 12v0q-12 11 -12 27.5t12 28.5zM539 214q11 -12 11 -28.5t-11 -27.5v0q-12 -12 -28.5 -12t-28.5 12l-406 405q-11 12 -11 28.5t11 28.5v0q12 12 28.5 12t28.5 -12z
108 M539 214z" /> 113 M539 214z" />
@@ -124,6 +129,9 @@ d="M569 607q-28 66 -74 108.5t-95 56.5t-100 2.5t-91.5 -45t-66 -94t-26.5 -137.5q0 @@ -124,6 +129,9 @@ d="M569 607q-28 66 -74 108.5t-95 56.5t-100 2.5t-91.5 -45t-66 -94t-26.5 -137.5q0
124 q0 76 -26.5 136t-67 92t-92 42.5t-101 -4t-94.5 -56t-72 -104.5z" /> 129 q0 76 -26.5 136t-67 92t-92 42.5t-101 -4t-94.5 -56t-72 -104.5z" />
125 <glyph glyph-name="logincheckbutton1" unicode="&#xe616;" 130 <glyph glyph-name="logincheckbutton1" unicode="&#xe616;"
126 d="M877 896h-730q-61 0 -104 -43t-43 -104v-730q0 -61 43 -104t104 -43h730q61 0 104 43t43 104v730q0 61 -43 104t-104 43zM939 19q0 -26 -18 -44t-44 -18h-730q-26 0 -44 18t-18 44v730q0 26 18 44t44 18h730q26 0 44 -18t18 -44v-730z" /> 131 d="M877 896h-730q-61 0 -104 -43t-43 -104v-730q0 -61 43 -104t104 -43h730q61 0 104 43t43 104v730q0 61 -43 104t-104 43zM939 19q0 -26 -18 -44t-44 -18h-730q-26 0 -44 18t-18 44v730q0 26 18 44t44 18h730q26 0 44 -18t18 -44v-730z" />
  132 + <glyph glyph-name="like" unicode="&#xe642;"
  133 +d="M703 695q-113 0 -191 -81q-79 81 -191 81t-191 -79t-79 -190q0 -31 6.5 -59.5t20.5 -56t23 -42t26 -39.5q42 -60 127.5 -138t142 -120.5t71.5 -51.5q21 -14 44 -14q25 0 44 14q10 7 30.5 22t66 51t87 72t86 81.5t71.5 83.5q17 25 26 39.5t23 42t20.5 56t6.5 59.5
  134 +q0 111 -79 190t-191 79z" />
127 <glyph glyph-name="aaa" unicode="&#xe601;" 135 <glyph glyph-name="aaa" unicode="&#xe601;"
128 d="M505 337l2 -2q2 -1 3.5 -1t3.5 1l430 364q2 2 1 5.5t-5 3.5h-435h-424q-4 0 -5 -3.5t1 -5.5zM72 669q-3 2 -6 0.5t-3 -4.5v-584q0 -4 3.5 -5t5.5 1l288 346zM953 669.5q-3 1.5 -5 -0.5l-288 -246l287 -346q3 -2 6 -1t3 5v584q0 3 -3 4.5zM641 406l-131 -111l-5 5 136 d="M505 337l2 -2q2 -1 3.5 -1t3.5 1l430 364q2 2 1 5.5t-5 3.5h-435h-424q-4 0 -5 -3.5t1 -5.5zM72 669q-3 2 -6 0.5t-3 -4.5v-584q0 -4 3.5 -5t5.5 1l288 346zM953 669.5q-3 1.5 -5 -0.5l-288 -246l287 -346q3 -2 6 -1t3 5v584q0 3 -3 4.5zM641 406l-131 -111l-5 5
129 l-125 103l-275 -328q-2 -3 -1 -6t5 -3h396h407q4 0 5 3t-1 6z" /> 137 l-125 103l-275 -328q-2 -3 -1 -6t5 -3h396h407q4 0 5 3t-1 6z" />
@@ -222,14 +230,57 @@ t-34 14t-14 34t14 34l192 191l-192 192q-14 14 -14 34t14 34t34 14t34 -14l192 -192l @@ -222,14 +230,57 @@ t-34 14t-14 34t14 34l192 191l-192 192q-14 14 -14 34t14 34t34 14t34 -14l192 -192l
222 d="M611 55h-39q-10 0 -10 -9q0 -21 -14.5 -36t-35.5 -15t-35.5 15t-14.5 36q0 9 -10 9h-40q-9 0 -9 -9q0 -45 32.5 -77t76.5 -32t76.5 32t32.5 77q0 9 -10 9v0zM920 105q0 6 -3 11q-6 48 -31.5 89t-65.5 69v170q0 96 -55 175t-145 113q-3 42 -34.5 70.5t-73.5 28.5 230 d="M611 55h-39q-10 0 -10 -9q0 -21 -14.5 -36t-35.5 -15t-35.5 15t-14.5 36q0 9 -10 9h-40q-9 0 -9 -9q0 -45 32.5 -77t76.5 -32t76.5 32t32.5 77q0 9 -10 9v0zM920 105q0 6 -3 11q-6 48 -31.5 89t-65.5 69v170q0 96 -55 175t-145 113q-3 42 -34.5 70.5t-73.5 28.5
223 t-73.5 -28.5t-35.5 -70.5q-89 -34 -144 -113t-55 -175v-170q-40 -28 -65.5 -69t-31.5 -89q-4 -8 -2 -16q-1 -7 -1 -15q0 -9 10 -9h796q10 0 10 9q0 7 -1 15q1 3 1 5v0zM569 686q20 -5 39 -12q69 -29 111 -92.5t42 -137.5v-198q0 -6 5 -9q66 -33 87 -102h-682q21 70 87 102 231 t-73.5 -28.5t-35.5 -70.5q-89 -34 -144 -113t-55 -175v-170q-40 -28 -65.5 -69t-31.5 -89q-4 -8 -2 -16q-1 -7 -1 -15q0 -9 10 -9h796q10 0 10 9q0 7 -1 15q1 3 1 5v0zM569 686q20 -5 39 -12q69 -29 111 -92.5t42 -137.5v-198q0 -6 5 -9q66 -33 87 -102h-682q21 70 87 102
224 q5 3 5 9v198q0 85 54 153.5t137 88.5q8 2 8 9v27q0 21 15 35.5t35 14.5t35 -14.5t15 -35.5v-27q0 -7 7 -9v0zM569 686z" /> 232 q5 3 5 9v198q0 85 54 153.5t137 88.5q8 2 8 9v27q0 21 15 35.5t35 14.5t35 -14.5t15 -35.5v-27q0 -7 7 -9v0zM569 686z" />
  233 + <glyph glyph-name="jian" unicode="&#xe643;"
  234 +d="M512 832q-91 0 -174 -35.5t-143 -95.5t-95 -143t-35 -174t35 -174t95 -142.5t143 -95t174 -35.5t174 35.5t143 95t95.5 142.5t35.5 174t-35.5 174t-95.5 143t-143 95.5t-174 35.5v0zM753 350h-206v0h-69v0h-207v69h207v0v0h69h206v-69v0zM753 350z" />
  235 + <glyph glyph-name="jia" unicode="&#xe645;"
  236 +d="M512 832q-91 0 -174 -35.5t-143 -95.5t-95.5 -142.5t-35.5 -173.5t35.5 -173.5t95.5 -142.5t143 -95.5t174 -35.5t174 35.5t143 95.5t95.5 142.5t35.5 173.5t-35.5 173.5t-95.5 142.5t-143 95.5t-174 35.5v0zM753 351h-207v-207h-68v207h-207v68h207v207h68v-207h207v-68
  237 +v0zM753 351z" />
225 <glyph glyph-name="wenhao1" unicode="&#xe628;" 238 <glyph glyph-name="wenhao1" unicode="&#xe628;"
226 d="M512 886q-102 0 -195 -39.5t-160.5 -107t-107 -160.5t-39.5 -195t39.5 -195t107 -160.5t160.5 -107t195 -39.5t195 39.5t160.5 107t107 160.5t39.5 195t-39.5 195t-107 160.5t-160.5 107t-195 39.5zM521 -15q-34 0 -58.5 24t-24.5 58.5t24.5 58.5t58.5 24t58 -24t24 -58 239 d="M512 886q-102 0 -195 -39.5t-160.5 -107t-107 -160.5t-39.5 -195t39.5 -195t107 -160.5t160.5 -107t195 -39.5t195 39.5t160.5 107t107 160.5t39.5 195t-39.5 195t-107 160.5t-160.5 107t-195 39.5zM521 -15q-34 0 -58.5 24t-24.5 58.5t24.5 58.5t58.5 24t58 -24t24 -58
227 q1 -34 -23.5 -58.5t-58.5 -24.5zM738 477q-17 -34 -67 -83q-45 -43 -60 -61q-12 -16 -17 -35q-6 -22 -6 -61l1 -31h-142v30q0 56 9 90q11 38 30 64q17 23 62 71q43 44 52 60q8 13 8 44q0 28 -20 51q-20 21 -61 21q-29 0 -48.5 -9.5t-28.5 -27.5t-12.5 -36t-3.5 -43v-30h-142 240 q1 -34 -23.5 -58.5t-58.5 -24.5zM738 477q-17 -34 -67 -83q-45 -43 -60 -61q-12 -16 -17 -35q-6 -22 -6 -61l1 -31h-142v30q0 56 9 90q11 38 30 64q17 23 62 71q43 44 52 60q8 13 8 44q0 28 -20 51q-20 21 -61 21q-29 0 -48.5 -9.5t-28.5 -27.5t-12.5 -36t-3.5 -43v-30h-142
228 l1 31q2 72 18 111q16 40 52 73q34 31 78 46q41 14 88 14q96 0 160 -56v0q66 -59 66 -154q0 -43 -17 -79z" /> 241 l1 31q2 72 18 111q16 40 52 73q34 31 78 46q41 14 88 14q96 0 160 -56v0q66 -59 66 -154q0 -43 -17 -79z" />
  242 + <glyph glyph-name="youjiantou" unicode="&#xe69a;"
  243 +d="M327 -128q16 0 24 12l376 500l-373 500q-7 9 -20 11t-22 -5q-11 -6 -12.5 -19.5t6.5 -22.5l346 -464l-349 -464q-7 -9 -5 -22t11 -20q6 -6 18 -6z" />
  244 + <glyph glyph-name="jiantou" unicode="&#xe69b;"
  245 +d="M697 -128q-16 0 -24 12l-376 500l373 500q7 9 20 11t22 -5t11 -20t-5 -22l-346 -464l349 -467q7 -9 5 -22t-11 -20q-6 -3 -18 -3z" />
229 <glyph glyph-name="2" unicode="&#xe62b;" 246 <glyph glyph-name="2" unicode="&#xe62b;"
230 d="M562 224h109v-111h-109v111zM889 224h109v-111h-109v111zM562 113h109v-110h-109v110zM438 458h-438v438h438v-438zM111 569h216v216h-216v-216zM1000 458h-438v438h438v-438zM673 569h216v216h-216v-216zM438 -106h-438v438h438v-438zM111 5h216v216h-216v-216zM561 335 247 d="M562 224h109v-111h-109v111zM889 224h109v-111h-109v111zM562 113h109v-110h-109v110zM438 458h-438v438h438v-438zM111 569h216v216h-216v-216zM1000 458h-438v438h438v-438zM673 569h216v216h-216v-216zM438 -106h-438v438h438v-438zM111 5h216v216h-216v-216zM561 335
231 h222v-111h-222v111zM889 334h109v-111h-109v111zM780 113h109v-111h-109v111zM562 2h218v-110h-218v110zM889 2h109v-110h-109v110z" /> 248 h222v-111h-222v111zM889 334h109v-111h-109v111zM780 113h109v-111h-109v111zM562 2h218v-110h-218v110zM889 2h109v-110h-109v110z" />
232 <glyph glyph-name="subtract" unicode="&#xe63c;" 249 <glyph glyph-name="subtract" unicode="&#xe63c;"
233 d="M928 418h-832q-13 0 -22.5 -9.5t-9.5 -23t9.5 -22.5t22.5 -9h832q13 0 22.5 9t9.5 22.5t-9.5 23t-22.5 9.5z" /> 250 d="M928 418h-832q-13 0 -22.5 -9.5t-9.5 -23t9.5 -22.5t22.5 -9h832q13 0 22.5 9t9.5 22.5t-9.5 23t-22.5 9.5z" />
  251 + <glyph glyph-name="shiliangzhinengduixiang" unicode="&#xe6ba;"
  252 +d="M875 747q-99 98 -231 133t-263.5 0t-229.5 -133q-98 -99 -133 -231t0 -263.5t133 -229.5q73 -74 167 -112.5t194 -38.5q101 0 195 38t168 111q73 74 111 170t38 193t-38 193t-111 170zM810 86q-60 -61 -139.5 -92.5t-159.5 -31.5t-159.5 31.5t-140.5 92.5
  253 +q-80 81 -108 189.5t1 217t110 189.5q61 61 138 93t160 32t160 -32t138 -93q81 -81 110 -189.5t0 -217t-110 -189.5zM786 595l-485 -485q67 -52 149.5 -67t164 10t142.5 86q93 93 101 224t-72 232zM723 658q-90 71 -211 71q-69 0 -132.5 -26t-112.5 -76q-61 -62 -86 -143
  254 +t-10 -163.5t67 -150.5z" />
  255 + <glyph glyph-name="xingzhuangkaobei" unicode="&#xe6bb;"
  256 +d="M947 179q31 0 54 -23t23 -53.5t-23 -53.5t-54 -23h-51q31 0 54 -23t23 -54t-23 -54t-54 -23h-563q-31 0 -54 23t-23 54v461q0 20 5 30q8 20 28.5 33t43.5 13q128 96 128 205q0 71 0.5 99.5t5.5 58.5t15.5 38.5t29.5 8.5q21 0 46 -11t50 -33.5t41.5 -64.5t16.5 -96
  257 +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" />
  258 + <glyph glyph-name="juxingkaobei" unicode="&#xe6bc;"
  259 +d="M186 2l391 382l-391 382l131 130l521 -512l-521 -512z" />
  260 + <glyph glyph-name="shang" unicode="&#xe6c0;"
  261 +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" />
  262 + <glyph glyph-name="xia" unicode="&#xe6c1;"
  263 +d="M958 589q0 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" />
  264 + <glyph glyph-name="tishi" unicode="&#xe6c2;"
  265 +d="M512 -62q-91 0 -173.5 35.5t-142 95t-95 142t-35.5 173.5t35.5 173.5t95 142t142 95t173.5 35.5t173.5 -35.5t142 -95t95 -142t35.5 -173.5t-35.5 -173.5t-95 -142t-142 -95t-173.5 -35.5zM512 766q-104 0 -192 -51t-139 -139t-51 -192t51 -192t139 -139t192 -51t192 51
  266 +t139 139t51 192t-51 192t-139 139t-192 51zM464 592q0 -20 14 -34t34 -14t34 14t14 34t-14 34t-34 14t-34 -14t-14 -34zM512 128q-13 0 -22.5 9.5t-9.5 22.5v288q0 13 9.5 22.5t22.5 9.5t22.5 -9.5t9.5 -22.5v-288q0 -13 -9.5 -22.5t-22.5 -9.5z" />
  267 + <glyph glyph-name="yuanxingweixuanzhong" unicode="&#xe6c3;"
  268 +d="M512 -64q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5t-131.5 -316.5t-316.5 -131.5zM512 768q-159 0 -271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5t-112.5 271.5t-271.5 112.5z" />
  269 + <glyph glyph-name="gouwuche2" unicode="&#xe6c5;"
  270 +d="M374 44.5q0 -29.5 21 -50.5t50.5 -21t50.5 21t21 50.5t-21 50t-50.5 20.5t-50.5 -20.5t-21 -50zM704 44.5q0 -29.5 21 -50.5t50.5 -21t50.5 21t21 50.5t-21 50t-50.5 20.5t-50.5 -20.5t-21 -50zM895 171h-576q-7 0 -12.5 4.5t-7.5 11.5l-123 497h-114q-8 0 -14 6t-6 14.5
  271 +t6 14.5t14 6h130q16 0 20 -16l123 -497h542l51 410h-543q-8 0 -14 6t-6 14.5t6 14.5t14 6h566q9 0 15 -7q5 -6 5 -14v-2l-56 -451q-1 -7 -6.5 -12.5t-13.5 -5.5z" />
  272 + <glyph glyph-name="qianbi" unicode="&#xe6c7;"
  273 +d="M921.5 780.5q-39.5 39.5 -95 39.5t-95.5 -39l-15 -16l190 -191l16 16q39 39 39 95t-39.5 95.5zM904 640l-123 123q25 15 56.5 11t52.5 -25q22 -22 25.5 -53t-11.5 -56zM658 693l177 -178l25 26l-177 178zM126 7l76 153l-35 45l-101 -258l284 75l-46 36zM405 134l-127 127
  274 +l377 370l-36 36l-415 -420l187 -188l418 418l-36 36z" />
  275 + <glyph glyph-name="aixin" unicode="&#xe6c8;"
  276 +d="M289 849q-115 0 -196 -89t-81 -215q0 -47 14.5 -93.5t28.5 -71.5t39 -64q30 -47 81 -104.5t97.5 -101.5t99.5 -89.5t74.5 -62.5t35.5 -28t30.5 -11t30.5 11t35.5 28t74.5 62.5t99.5 89.5t97.5 101.5t81 104.5q20 30 29.5 47.5t24.5 49t21.5 64t6.5 68.5q0 125 -81 214.5
  277 +t-196 89.5q-63 0 -119 -29.5t-96 -83.5l-8 -11l-8 11q-41 54 -97.5 83.5t-118.5 29.5zM512 -34l-6 5q-283 226 -377 374q-38 59 -56 102.5t-18 97.5q0 105 68.5 179.5t165.5 74.5q67 0 124.5 -39.5t86.5 -105.5h1l2 -7q2 -8 9 -8t9 8l2 7h1q30 67 87 106t124 39
  278 +q97 0 165.5 -74.5t68.5 -179.5q0 -54 -18 -97.5t-56 -102.5q-94 -148 -377 -374z" />
  279 + <glyph glyph-name="Fill" unicode="&#xe6c9;"
  280 +d="M512 52q-34 0 -58.5 24.5t-24.5 59t24.5 58.5t58.5 24t58.5 -24t24.5 -58.5t-24.5 -59t-58.5 -24.5zM457 660q0 23 16 39.5t39 16.5t39 -16.5t16 -39.5v-304q0 -22 -16 -38.5t-39 -16.5t-39 16.5t-16 38.5v304zM512 896h-6q-104 0 -199 -40.5t-163.5 -109t-109 -163.5
  281 +t-40.5 -199t40.5 -199t109 -163.5t163.5 -109t199 -40.5h6h6q104 0 199 40.5t163.5 109t109 163.5t40.5 199t-40.5 199t-109 163.5t-163.5 109t-199 40.5h-6z" />
  282 + <glyph glyph-name="xuanzhong" unicode="&#xe6cb;"
  283 +d="M512 832q-91 0 -174 -35.5t-143 -95.5t-95.5 -142.5t-35.5 -174t35.5 -174t95.5 -142.5t143 -95.5t174 -35.5t174 35.5t143 95.5t95 142.5t35 174t-35 174t-95 142.5t-143 95.5t-174 35.5zM758 508l-266 -267v0l-2 -1l-17 -17q-2 -3 -5 -5l-2 -2q-2 -1 -6 -1t-6 1l-2 3
  284 +l-6 4l-15 16l-2 3h-1l-163 171q-12 14 -6 20l26 25q7 6 20 -7l156 -164l259 259q13 13 19 6l26 -25q6 -7 -7 -19z" />
234 </font> 285 </font>
235 </defs></svg> 286 </defs></svg>
No preview for this file type
No preview for this file type
@@ -118,7 +118,7 @@ @@ -118,7 +118,7 @@
118 </div> 118 </div>
119 <div class="submit"> 119 <div class="submit">
120 <button class="btn-red"><i class="addCart"></i>添加到购物车</button> 120 <button class="btn-red"><i class="addCart"></i>添加到购物车</button>
121 - <button><i class="favCount"></i>收藏商品</button> 121 + <button class="btn-favCount"><i class="favCount"></i>收藏商品</button>
122 </div> 122 </div>
123 </div> 123 </div>
124 124

48.9 KB | W: | H:

47.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -10,8 +10,11 @@ var lazyLoad = require('yoho-jquery-lazyload'); @@ -10,8 +10,11 @@ var lazyLoad = require('yoho-jquery-lazyload');
10 var Dialog = require('../common/dialog').Dialog; 10 var Dialog = require('../common/dialog').Dialog;
11 var Alert = Dialog.Alert; 11 var Alert = Dialog.Alert;
12 var $cartGoodsDetail = $('#goodsTogetherDetail'), 12 var $cartGoodsDetail = $('#goodsTogetherDetail'),
  13 + $goodsChoose = $('#goodsChoose'),
  14 + $goodsItem = $('.cart-table li'),
13 pacList = 0, 15 pacList = 0,
14 shopNum = 1, 16 shopNum = 1,
  17 + productId,
15 promotionId, 18 promotionId,
16 shopNumAll; 19 shopNumAll;
17 20
@@ -185,6 +188,47 @@ $('body').on('click', '.cut, .add', function() { @@ -185,6 +188,47 @@ $('body').on('click', '.cut, .add', function() {
185 188
186 }); 189 });
187 190
  191 +// 凑单弹框 商品信息弹出框,加入收藏夹
  192 +$cartGoodsDetail.on('click', '.btn-favCount', function() {
  193 + $.ajax({
  194 + type: 'POST',
  195 + dataType: 'json',
  196 + url: '',
  197 + data: {
  198 + productId: productId,
  199 + type: 'add'
  200 + }
  201 + }).then(function(d) {
  202 + if (d.code === 200) {
  203 + new Alert(d.message).show();
  204 + } else if (d.code === 403) {
  205 + if (d.data.url) {
  206 + window.location = d.data.url;
  207 + }
  208 + } else {
  209 + new Alert(d.message).show();
  210 + }
  211 + });
  212 +});
  213 +
  214 +
  215 +// 购物车列表 显示隐藏
  216 +$goodsItem.on('click', '.pay-pro-info span', function() {
  217 + $('.pay-pro-info').find('span').removeClass('active');
  218 + $(this).addClass('active');
  219 + $('.goods-choose-box').addClass('none');
  220 + $(this).parents('li').children('.goods-choose-box').removeClass('none');
  221 +});
  222 +
  223 +// 购物车列表 修改 颜色
  224 +$goodsChoose.on('click', '.choose-color .dt', function() {
  225 + pacList = $(this).index();
  226 + $('.choose-color').find('.dt').removeClass('active');
  227 + $(this).addClass('active');
  228 + $('.bigImg').addClass('none').eq($(this).index()).removeClass('none');
  229 +});
  230 +
  231 +
188 232
189 var giftBtn = '[data-role=gift-view-btn],[data-role=gift-resel-btn],[data-role=gift-sel-btn]'; 233 var giftBtn = '[data-role=gift-view-btn],[data-role=gift-resel-btn],[data-role=gift-sel-btn]';
190 234
@@ -285,6 +285,7 @@ @@ -285,6 +285,7 @@
285 border: 1px solid #b0b0b0; 285 border: 1px solid #b0b0b0;
286 background-color: #fff; 286 background-color: #fff;
287 box-sizing: border-box; 287 box-sizing: border-box;
  288 + outline: none;
288 i{ 289 i{
289 width: 16px; 290 width: 16px;
290 height: 16px; 291 height: 16px;
  1 +@red: #d0021b;
1 .order-ensure-page{ 2 .order-ensure-page{
2 3
3 .order-title { 4 .order-title {
@@ -608,6 +609,12 @@ @@ -608,6 +609,12 @@
608 &.right { 609 &.right {
609 text-align: right; 610 text-align: right;
610 } 611 }
  612 + &:nth-child(1) {
  613 + padding-left:20px;
  614 + }
  615 + }
  616 + .cart-item-check {
  617 + margin-top: 0;
611 } 618 }
612 } 619 }
613 620
@@ -705,6 +712,15 @@ @@ -705,6 +712,15 @@
705 li { 712 li {
706 position: relative; 713 position: relative;
707 padding: 0 30px 0 60px; 714 padding: 0 30px 0 60px;
  715 + &:hover {
  716 + .pay-pro-info span {
  717 + border-color: #e0e0e0;
  718 + i {
  719 + visibility: visible;
  720 + }
  721 + }
  722 +
  723 + }
708 } 724 }
709 .tr{ 725 .tr{
710 border-bottom: 1px solid #e0e0e0; 726 border-bottom: 1px solid #e0e0e0;
@@ -731,23 +747,6 @@ @@ -731,23 +747,6 @@
731 } 747 }
732 } 748 }
733 749
734 - .cart-item-check {  
735 - position: absolute;  
736 - left: 15px;  
737 - width: 15px;  
738 - height: 15px;  
739 - float: left;  
740 - margin-top: 25px;  
741 - margin-left: 15px;  
742 - display: inline-block;  
743 - border: none;  
744 - background: url(/cart/ico_radius.png);  
745 - background-repeat: no-repeat;  
746 - cursor: pointer;  
747 - &.cart-item-checked{  
748 - background: url(/cart/ico_radius_checked.png);  
749 - }  
750 - }  
751 .cart-item-disabled { 750 .cart-item-disabled {
752 position: absolute; 751 position: absolute;
753 left: 15px; 752 left: 15px;
@@ -792,23 +791,36 @@ @@ -792,23 +791,36 @@
792 791
793 .pay-pro-info { 792 .pay-pro-info {
794 float: left; 793 float: left;
  794 + text-align: left;
795 padding-left: 15px; 795 padding-left: 15px;
796 padding-top: 10px; 796 padding-top: 10px;
797 margin-left: 0; 797 margin-left: 0;
798 - a{ 798 + a {
799 display:block; 799 display:block;
800 width:280px; 800 width:280px;
  801 + min-height: 40px;
  802 + padding-left: 3px;
801 color: #444; 803 color: #444;
802 font-size: 15px; 804 font-size: 15px;
803 line-height: 1.25; 805 line-height: 1.25;
804 text-decoration: none; 806 text-decoration: none;
805 text-align:left; 807 text-align:left;
806 } 808 }
807 - span{  
808 - display: block; 809 + span {
  810 + display: inline-block;
  811 + padding-left: 3px;
809 font-size: 13px; 812 font-size: 13px;
810 color: #9a9a9a; 813 color: #9a9a9a;
811 text-align: left; 814 text-align: left;
  815 + border: 1px dashed transparent;
  816 + box-sizing: border-box;
  817 + &:hover {
  818 + border-color: #d0021b !important;
  819 + i {
  820 + color: #d0021b !important;
  821 + visibility: visible;
  822 + }
  823 + }
812 b { 824 b {
813 display: inline-block; 825 display: inline-block;
814 vertical-align: bottom; 826 vertical-align: bottom;
@@ -820,6 +832,171 @@ @@ -820,6 +832,171 @@
820 font-style: normal; 832 font-style: normal;
821 font-weight: 400; 833 font-weight: 400;
822 } 834 }
  835 + i {
  836 + font-size: 14px;
  837 + margin-left: 40px;
  838 + display: inline-block;
  839 + width: 14px;
  840 + height: 14px;
  841 + vertical-align: baseline;
  842 + margin-right: 3px;
  843 + visibility: hidden;
  844 + }
  845 + &.active {
  846 + border-color: #d0021b !important;
  847 + i {
  848 + color: #d0021b;
  849 + visibility: visible;
  850 + }
  851 + }
  852 +
  853 + }
  854 + }
  855 +
  856 + .goods-choose-box {
  857 + position: absolute;
  858 + top: 50%;
  859 + left: 50%;
  860 + margin-top: -96px;
  861 + margin-left: -70px;
  862 + padding: 30px 15px;
  863 + border: 1px solid #000;
  864 + background-color: #fff;
  865 + z-index: 20;
  866 + &:after{
  867 + position: absolute;
  868 + top: 50%;
  869 + left: -16px;
  870 + margin-top: -7px;
  871 + content: '';
  872 + display: inline-block;
  873 + width: 0;
  874 + height: 0;
  875 + border-right: 16px solid #000;
  876 + border-top: 8px solid transparent;
  877 + border-bottom: 8px solid transparent;
  878 + }
  879 + &:before{
  880 + position: absolute;
  881 + top: 50%;
  882 + left: -14px;
  883 + margin-top: -6px;
  884 + z-index: 20;
  885 + content: '';
  886 + display: inline-block;
  887 + width: 0;
  888 + height: 0;
  889 + border-right: 14px solid #fff;
  890 + border-top: 7px solid transparent;
  891 + border-bottom: 7px solid transparent;
  892 + }
  893 + .goods-info {
  894 + float: left;
  895 + max-width: 165px;
  896 + }
  897 + .goods-info-bigImg {
  898 + float: left;
  899 + }
  900 + .bigImg {
  901 + margin-left: 40px;
  902 + width: 115px;
  903 + height: 150px;
  904 + border: 1px solid #eaeaea;
  905 + img {
  906 + width: 100%;
  907 + }
  908 + }
  909 + .choose-color{
  910 + margin-bottom: 23px;
  911 + .dd{
  912 + height:35px;
  913 + line-height:35px;
  914 + }
  915 +
  916 + .dt {
  917 + width: 25px;
  918 + height: 35px;
  919 + }
  920 + .active {
  921 + border-color: #000;
  922 + }
  923 + }
  924 + .choose-size {
  925 + margin-bottom: 13px;
  926 + .dd{
  927 + height:18px;
  928 + line-height:18px;
  929 + }
  930 + .dt {
  931 + width: 25px;
  932 + height: 16px;
  933 + font-size: 12px;
  934 + color: #000;
  935 + text-align: center;
  936 + line-height: 16px;
  937 + margin-bottom: 10px;
  938 + &:nth-child(5n) {
  939 + margin-left: 37px;
  940 + }
  941 + }
  942 + .active {
  943 + border-color: #000;
  944 + }
  945 + .disabled {
  946 + color: #e8e8e8;
  947 + }
  948 + }
  949 + .dl{
  950 + *zoom: 1;
  951 + &:after{
  952 + content: ".";
  953 + display: block;
  954 + height: 0;
  955 + clear: both;
  956 + visibility: hidden;
  957 + }
  958 + }
  959 + .dd {
  960 + float: left;
  961 + color: #000;
  962 + font-size: 13px;
  963 + margin-right: 7px;
  964 + }
  965 + .dt {
  966 + float: left;
  967 + border: 1px solid #eaeaea;
  968 + margin-right: 8px;
  969 + &:last-child {
  970 + margin-right: 0;
  971 + }
  972 + img {
  973 + width: 100%;
  974 + }
  975 + }
  976 + .button-group {
  977 + margin-left:37px;
  978 + button{
  979 + width: 50px;
  980 + height: 20px;
  981 + border-radius: 0;
  982 + -webkit-border-radius: 0;
  983 + -moz-border-radius: 0;
  984 + font-size: 12px;
  985 + padding: 0;
  986 + border: none;
  987 + line-height: 20px;
  988 + cursor: pointer;
  989 + outline: none;
  990 + }
  991 + .button-sure {
  992 + background-color: #d0021b;
  993 + color: #fff;
  994 + margin-right: 18px;
  995 + }
  996 + .button-cancel {
  997 + background-color: #e0e0e0;
  998 + color: #000;
  999 + }
823 } 1000 }
824 } 1001 }
825 1002
@@ -895,7 +1072,6 @@ @@ -895,7 +1072,6 @@
895 text-align: left; 1072 text-align: left;
896 left: 22%; 1073 left: 22%;
897 } 1074 }
898 -  
899 } 1075 }
900 .sale-info { 1076 .sale-info {
901 &.active { 1077 &.active {
@@ -999,6 +1175,10 @@ @@ -999,6 +1175,10 @@
999 overflow: hidden; 1175 overflow: hidden;
1000 font-size: 14px; 1176 font-size: 14px;
1001 1177
  1178 + .cart-item-check {
  1179 + margin-top:0;
  1180 + }
  1181 +
1002 .left { 1182 .left {
1003 float: left; 1183 float: left;
1004 1184
@@ -1057,6 +1237,23 @@ @@ -1057,6 +1237,23 @@
1057 1237
1058 } 1238 }
1059 1239
  1240 + .cart-item-check {
  1241 + position: absolute;
  1242 + left: 15px;
  1243 + width: 15px;
  1244 + height: 15px;
  1245 + color:#e9e9e9;
  1246 + float: left;
  1247 + margin-top: 25px;
  1248 + margin-left: 15px;
  1249 + display: inline-block;
  1250 + cursor: pointer;
  1251 + &:before { content: "\e6c3"; }
  1252 + &.cart-item-checked{
  1253 + &:before { content: "\e6cb"; }
  1254 + }
  1255 + }
  1256 +
1060 .cartnew-submit { 1257 .cartnew-submit {
1061 height: 50px; 1258 height: 50px;
1062 line-height: 50px; 1259 line-height: 50px;
@@ -1140,7 +1337,7 @@ @@ -1140,7 +1337,7 @@
1140 1337
1141 .goods { 1338 .goods {
1142 width: 990px; 1339 width: 990px;
1143 - height: 300px; 1340 + height: 310px;
1144 margin: 20px 0; 1341 margin: 20px 0;
1145 overflow: hidden; 1342 overflow: hidden;
1146 } 1343 }
@@ -1175,6 +1372,7 @@ @@ -1175,6 +1372,7 @@
1175 1372
1176 .price { 1373 .price {
1177 text-align: center; 1374 text-align: center;
  1375 + margin-bottom: 10px;
1178 } 1376 }
1179 1377
1180 .sale-price,.market-price { 1378 .sale-price,.market-price {