Merge branch 'release/1.0' of git.yoho.cn:fe/yoho-blk into release/1.0
Showing
10 changed files
with
16 additions
and
9 deletions
@@ -541,7 +541,7 @@ const getOrderDetail = (uid, code) => { | @@ -541,7 +541,7 @@ const getOrderDetail = (uid, code) => { | ||
541 | 541 | ||
542 | detail.paymentTypeStr = paymentTypeStr[detail.paymentType]; | 542 | detail.paymentTypeStr = paymentTypeStr[detail.paymentType]; |
543 | 543 | ||
544 | - detail.address = detail.area + detail.address; | 544 | + detail.allAddress = detail.area + detail.address; |
545 | 545 | ||
546 | detail.expressInfo = express; | 546 | detail.expressInfo = express; |
547 | detail.expressInfo.addressList = _convertAddress(express.expressDetail, detail.createTime); | 547 | detail.expressInfo.addressList = _convertAddress(express.expressDetail, detail.createTime); |
1 | <div class="user-info info-box" data-area="{{areaCode}}"> | 1 | <div class="user-info info-box" data-area="{{areaCode}}"> |
2 | <h4 class="status-title">收货人信息</h4> | 2 | <h4 class="status-title">收货人信息</h4> |
3 | <p class="text user-name-sel" data-name="{{userName}}">收货人:{{userName}}</p> | 3 | <p class="text user-name-sel" data-name="{{userName}}">收货人:{{userName}}</p> |
4 | - <p class="text user-addr-sel" data-address="{{address}}">收货地址:{{address}}</p> | 4 | + <p class="text user-addr-sel" data-address="{{address}}">收货地址:{{allAddress}}</p> |
5 | <p class="text user-mo-sel" data-mobile="{{mobile}}">联系电话:{{mobile}}</p> | 5 | <p class="text user-mo-sel" data-mobile="{{mobile}}">联系电话:{{mobile}}</p> |
6 | <p class="text user-ph-sel hide" data-phone="{{phone}}">联系电话:{{phone}}</p> | 6 | <p class="text user-ph-sel hide" data-phone="{{phone}}">联系电话:{{phone}}</p> |
7 | </div> | 7 | </div> |
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | </div> | 33 | </div> |
34 | <div class="form-group"> | 34 | <div class="form-group"> |
35 | <label class="label-name">手机:</label> | 35 | <label class="label-name">手机:</label> |
36 | - {{#if info.verify_mobile}} | 36 | + {{#if info.mobile}} |
37 | <input id="mobile" class="input no-edit" value="{{info.mobile}}"> | 37 | <input id="mobile" class="input no-edit" value="{{info.mobile}}"> |
38 | <a class="blue operation" href="{{stepUrl}}/modifyMobile">修改</a> | 38 | <a class="blue operation" href="{{stepUrl}}/modifyMobile">修改</a> |
39 | {{else}} | 39 | {{else}} |
@@ -150,7 +150,7 @@ const shop = { | @@ -150,7 +150,7 @@ const shop = { | ||
150 | }; | 150 | }; |
151 | 151 | ||
152 | res.display('shop-list', _.assign(data, { | 152 | res.display('shop-list', _.assign(data, { |
153 | - products: DataHelper.handleProductList(ret.productList, q), | 153 | + products: DataHelper.handleProductList(ret.productList, q, false), |
154 | order: q.order | 154 | order: q.order |
155 | })); | 155 | })); |
156 | } else { | 156 | } else { |
@@ -407,7 +407,9 @@ const helpers = { | @@ -407,7 +407,9 @@ const helpers = { | ||
407 | * @param list | 407 | * @param list |
408 | * @returns {*} | 408 | * @returns {*} |
409 | */ | 409 | */ |
410 | - handleProductList(list, q) { | 410 | + handleProductList(list, q, showBrand) { |
411 | + showBrand = typeof showBrand === 'undefined' ? true : showBrand; | ||
412 | + | ||
411 | if (_.isArray(list)) { | 413 | if (_.isArray(list)) { |
412 | list.forEach(g => { | 414 | list.forEach(g => { |
413 | let goodsList = g.goodsList; | 415 | let goodsList = g.goodsList; |
@@ -426,6 +428,7 @@ const helpers = { | @@ -426,6 +428,7 @@ const helpers = { | ||
426 | } | 428 | } |
427 | g.salesPrice = g.salesPrice || g.marketPrice; | 429 | g.salesPrice = g.salesPrice || g.marketPrice; |
428 | g.defaultImages = defaultImages; | 430 | g.defaultImages = defaultImages; |
431 | + g.showBrand = showBrand; | ||
429 | if (g.salesPrice === g.marketPrice) { | 432 | if (g.salesPrice === g.marketPrice) { |
430 | delete g.marketPrice; | 433 | delete g.marketPrice; |
431 | } | 434 | } |
@@ -6,9 +6,11 @@ | @@ -6,9 +6,11 @@ | ||
6 | <img class="lazy" data-original="{{image defaultImages 263 344}}" width="263" height="344" alt=""> | 6 | <img class="lazy" data-original="{{image defaultImages 263 344}}" width="263" height="344" alt=""> |
7 | </a> | 7 | </a> |
8 | </div> | 8 | </div> |
9 | + {{#if showBrand}} | ||
9 | <div class="goods-brand"> | 10 | <div class="goods-brand"> |
10 | <a href="/product/shop/{{brandDomain}}" target="_self">{{brandName}}</a> | 11 | <a href="/product/shop/{{brandDomain}}" target="_self">{{brandName}}</a> |
11 | </div> | 12 | </div> |
13 | + {{/if}} | ||
12 | <div class="goods-name"> | 14 | <div class="goods-name"> |
13 | <a href="{{url}}" target="_blank">{{productName}}</a> | 15 | <a href="{{url}}" target="_blank">{{productName}}</a> |
14 | </div> | 16 | </div> |
@@ -31,6 +31,8 @@ var disableSMSBtn = function() { | @@ -31,6 +31,8 @@ var disableSMSBtn = function() { | ||
31 | var validatePhoneNumLocal = function(phoneNum) { | 31 | var validatePhoneNumLocal = function(phoneNum) { |
32 | var length = phoneNum.length; | 32 | var length = phoneNum.length; |
33 | 33 | ||
34 | + phoneNum = parseInt(phoneNum, 10); | ||
35 | + | ||
34 | if (length === 0) { | 36 | if (length === 0) { |
35 | new _alert('请输入手机号码!').show(); | 37 | new _alert('请输入手机号码!').show(); |
36 | return false; | 38 | return false; |
@@ -311,7 +311,7 @@ | @@ -311,7 +311,7 @@ | ||
311 | } | 311 | } |
312 | } | 312 | } |
313 | .goods-name { | 313 | .goods-name { |
314 | - padding: 5px; | 314 | + padding: 10px; |
315 | width: 265px; | 315 | width: 265px; |
316 | overflow: hidden; | 316 | overflow: hidden; |
317 | text-overflow: ellipsis; | 317 | text-overflow: ellipsis; |
@@ -319,7 +319,7 @@ | @@ -319,7 +319,7 @@ | ||
319 | } | 319 | } |
320 | 320 | ||
321 | .goods-price { | 321 | .goods-price { |
322 | - padding: 15px; | 322 | + padding: 10px; |
323 | font-size: 16px; | 323 | font-size: 16px; |
324 | font-weight: 700; | 324 | font-weight: 700; |
325 | 325 |
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | <div class="input-row necessary"> | 15 | <div class="input-row necessary"> |
16 | <span class="asterisk">*</span> | 16 | <span class="asterisk">*</span> |
17 | <label for="user-address">详细地址:</label> | 17 | <label for="user-address">详细地址:</label> |
18 | - <input class="input validate" class="long" type="text" id="user-address" placeholder="街道名称或小区名称" value={{address}}> | 18 | + <input class="input validate" class="long" type="text" id="user-address" placeholder="街道名称或小区名称" value="{{address}}"> |
19 | </div> | 19 | </div> |
20 | <div class="input-row necessary"> | 20 | <div class="input-row necessary"> |
21 | <span class="asterisk">*</span> | 21 | <span class="asterisk">*</span> |
-
Please register or login to post a comment