Authored by 周少峰

Merge branch 'release/5.9' of git.yoho.cn:fe/yohobuy-node into release/5.9

@@ -32,6 +32,7 @@ const addTicket = co(function * (uid, sku, count, yohoCoin) { @@ -32,6 +32,7 @@ const addTicket = co(function * (uid, sku, count, yohoCoin) {
32 }; 32 };
33 } 33 }
34 34
  35 + result.virtualGood = true;
35 result.goodsList = _handleGoodsList(_.get(ticketInfo, 'data.goods_list', [])); 36 result.goodsList = _handleGoodsList(_.get(ticketInfo, 'data.goods_list', []));
36 result.last_order_amount = _handleAmount(ticketInfo); 37 result.last_order_amount = _handleAmount(ticketInfo);
37 Object.assign(result, _handleUseYhoCoin(_.get(ticketInfo, 'data.shopping_cart_data', {}))); 38 Object.assign(result, _handleUseYhoCoin(_.get(ticketInfo, 'data.shopping_cart_data', {})));
@@ -44,9 +44,12 @@ @@ -44,9 +44,12 @@
44 data-price="{{last_price}}" data-num="{{buy_number}}"> 44 data-price="{{last_price}}" data-num="{{buy_number}}">
45 <td{{#if @first}} class="border-top"{{/if}}></td> 45 <td{{#if @first}} class="border-top"{{/if}}></td>
46 <td class="border-top aline-left"> 46 <td class="border-top aline-left">
47 - <a class="image" href="{{linkToGoods}}"> 47 + <a class="image ticket-cover" href="{{linkToGoods}}">
  48 + <span class="ticket-image">
48 <img src="{{image2 goods_images w=64 h=85}}" class="thumb"> 49 <img src="{{image2 goods_images w=64 h=85}}" class="thumb">
49 - <p class="name"> 50 + <span class="ticket-image-tag">虚拟商品</span>
  51 + </span>
  52 + <p class="ticket-name">
50 {{product_name}} 53 {{product_name}}
51 </p> 54 </p>
52 </a> 55 </a>
@@ -165,6 +165,8 @@ @@ -165,6 +165,8 @@
165 </p> 165 </p>
166 <div class="content"> 166 <div class="content">
167 <span>付款方式:{{payMode}}</span> 167 <span>付款方式:{{payMode}}</span>
  168 + <br />
  169 + <br />
168 <span>电话号码:{{phone}}</span> 170 <span>电话号码:{{phone}}</span>
169 </div> 171 </div>
170 </div> 172 </div>
@@ -46,6 +46,10 @@ function validateUserInfo(info) { @@ -46,6 +46,10 @@ function validateUserInfo(info) {
46 errTip = '您还没有填写手机号'; 46 errTip = '您还没有填写手机号';
47 } 47 }
48 48
  49 + if (!errTip && !/^\d{11}$/ig.test(info.mobile)) {
  50 + errTip = '手机号只能是11位数字';
  51 + }
  52 +
49 if (errTip) { 53 if (errTip) {
50 new dialog.Alert((errTip)).show(); 54 new dialog.Alert((errTip)).show();
51 return false; 55 return false;
@@ -865,6 +865,38 @@ @@ -865,6 +865,38 @@
865 } 865 }
866 } 866 }
867 867
  868 + .ticket-cover {
  869 + .ticket-image {
  870 + display: inline-block;
  871 + position: relative;
  872 + }
  873 +
  874 + .ticket-image-tag {
  875 + display: block;
  876 + position: absolute;
  877 + bottom: 0;
  878 + left: 0;
  879 + right: 0;
  880 + height: 15px;
  881 + line-height: 16px;
  882 + text-align: center;
  883 + color: #fff;
  884 + background: #333;
  885 + }
  886 +
  887 + .ticket-name {
  888 + display: inline-block;
  889 + width: 280px;
  890 + max-height: 68px;
  891 + font-size: 15px;
  892 + padding-left: 20px;
  893 + line-height: 1.5;
  894 + overflow: hidden;
  895 + word-break: break-all;
  896 + vertical-align: top;
  897 + }
  898 + }
  899 +
868 .use-coupons { 900 .use-coupons {
869 .tip-box { 901 .tip-box {
870 width: 60%; 902 width: 60%;