Authored by 郝肖肖

'立即购买错误提示'

@@ -90,45 +90,50 @@ class BuyNowController { @@ -90,45 +90,50 @@ class BuyNowController {
90 let mobile = _.get(userProfile, 'data.mobile', ''); 90 let mobile = _.get(userProfile, 'data.mobile', '');
91 let orderAddress = _.get(result, 'address', []); 91 let orderAddress = _.get(result, 'address', []);
92 let addressList = _.get(address, 'data', []); 92 let addressList = _.get(address, 'data', []);
  93 + let orderEnsure = {};
93 94
94 - orderAddress.length && _.forEach(addressList, address => { //eslint-disable-line  
95 - if (address.address_id === orderAddress.address_id) {  
96 - mobile = address.mobile;  
97 - return false;  
98 - }  
99 - });  
100 -  
101 - // 兼容原有的数据格式  
102 - orderInfo.deliveryId = orderInfo.delivery_way;  
103 - orderInfo.deliveryTimeId = orderInfo.delivery_time;  
104 - orderInfo.couponCode = orderInfo.coupon_code;  
105 - orderInfo.yohoCoin = orderInfo.use_yoho_coin;  
106 - orderInfo.paymentType = orderInfo.payment_type;  
107 -  
108 - let orderEnsure = _.assign(  
109 - paymentProcess.tranformPayment(_.get(result, 'data', {}), orderInfo, null, null, computeData.data),  
110 - {  
111 - coupon: paymentProcess.coupon(  
112 - _.get(validCouponCount, 'data.count', 0),  
113 - orderInfo,  
114 - computeData.data  
115 - ),  
116 - selectAddressUrl: helpers.urlFormat('/cart/index/buynow/selectAddress', {  
117 - product_sku: product_sku,  
118 - buy_number: buy_number  
119 - }),  
120 - selectCouponUrl: helpers.urlFormat('/cart/index/buynow/selectCoupon', {  
121 - product_sku: product_sku,  
122 - buy_number: buy_number  
123 - }),  
124 - isOrdinaryCart: true,  
125 - choseGiftCard: helpers.urlFormat('/cart/index/buynow/selectGiftcard'),  
126 - giftCards: paymentProcess.handleGiftCards({  
127 - validGiftCardCount: _.get(validGiftCardCount, 'data.count', 0),  
128 - orderCompute: computeData.data  
129 - })  
130 - }  
131 - ); 95 + if (result.code !== 200 && result.message) {
  96 + orderEnsure = {message: result.message};
  97 + } else {
  98 + orderAddress.length && _.forEach(addressList, address => { //eslint-disable-line
  99 + if (address.address_id === orderAddress.address_id) {
  100 + mobile = address.mobile;
  101 + return false;
  102 + }
  103 + });
  104 +
  105 + // 兼容原有的数据格式
  106 + orderInfo.deliveryId = orderInfo.delivery_way;
  107 + orderInfo.deliveryTimeId = orderInfo.delivery_time;
  108 + orderInfo.couponCode = orderInfo.coupon_code;
  109 + orderInfo.yohoCoin = orderInfo.use_yoho_coin;
  110 + orderInfo.paymentType = orderInfo.payment_type;
  111 +
  112 + orderEnsure = _.assign(
  113 + paymentProcess.tranformPayment(_.get(result, 'data', {}), orderInfo, null, null, computeData.data),
  114 + {
  115 + coupon: paymentProcess.coupon(
  116 + _.get(validCouponCount, 'data.count', 0),
  117 + orderInfo,
  118 + computeData.data
  119 + ),
  120 + selectAddressUrl: helpers.urlFormat('/cart/index/buynow/selectAddress', {
  121 + product_sku: product_sku,
  122 + buy_number: buy_number
  123 + }),
  124 + selectCouponUrl: helpers.urlFormat('/cart/index/buynow/selectCoupon', {
  125 + product_sku: product_sku,
  126 + buy_number: buy_number
  127 + }),
  128 + isOrdinaryCart: true,
  129 + choseGiftCard: helpers.urlFormat('/cart/index/buynow/selectGiftcard'),
  130 + giftCards: paymentProcess.handleGiftCards({
  131 + validGiftCardCount: _.get(validGiftCardCount, 'data.count', 0),
  132 + orderCompute: computeData.data
  133 + })
  134 + }
  135 + );
  136 + }
132 137
133 return res.render('buynow/order-ensure', { 138 return res.render('buynow/order-ensure', {
134 pageHeader: headerModel.setNav({ 139 pageHeader: headerModel.setNav({
1 <div class="order-ensure-page yoho-page"> 1 <div class="order-ensure-page yoho-page">
2 - <input id="cart-token" type="hidden" name="token" value="{{cartToken}}">  
3 - {{# orderEnsure}}  
4 - {{#if addressInfo}}  
5 - <div class="address block address-wrap {{#if @root.pageChannel.boys}} boys{{/if}}{{#if @root.pageChannel.girls}} girls{{/if}}{{#if @root.pageChannel.kids}} kids{{/if}}{{#if @root.pageChannel.lifeStyle}} life-style{{/if}}" data-id ="{{addressId}}">  
6 - <div class="info">  
7 - <span class="info-name">{{name}}</span>  
8 - <span class="info-phone">{{phoneNum}}</span>  
9 - <a href="{{selectAddressUrl}}"><span class="info-address">{{addressInfo}}</span></a>  
10 - <i class="iconfont">&#xe637;</i> 2 +<input id="cart-token" type="hidden" name="token" value="{{cartToken}}">
  3 +{{# orderEnsure}}
  4 + {{#if message}}
  5 + <div class="order-ensure-error">
  6 + {{message}}
11 </div> 7 </div>
12 - <a class="rest" href="{{selectAddressUrl}}">其他地址<span class="iconfont">&#xe614;</span></a>  
13 - </div>  
14 {{else}} 8 {{else}}
15 - <div class="address block address-wrap not-address">  
16 - <i class="iconfont">&#xe637;</i>  
17 - <a class="choose" href="{{selectAddressUrl}}">请选择收货地址<span class="iconfont">&#xe614;</span></a> 9 + {{#if addressInfo}}
  10 + <div class="address block address-wrap {{#if @root.pageChannel.boys}} boys{{/if}}{{#if @root.pageChannel.girls}} girls{{/if}}{{#if @root.pageChannel.kids}} kids{{/if}}{{#if @root.pageChannel.lifeStyle}} life-style{{/if}}" data-id ="{{addressId}}">
  11 + <div class="info">
  12 + <span class="info-name">{{name}}</span>
  13 + <span class="info-phone">{{phoneNum}}</span>
  14 + <a href="{{selectAddressUrl}}"><span class="info-address">{{addressInfo}}</span></a>
  15 + <i class="iconfont">&#xe637;</i>
  16 + </div>
  17 + <a class="rest" href="{{selectAddressUrl}}">其他地址<span class="iconfont">&#xe614;</span></a>
18 </div> 18 </div>
19 - {{/if}}  
20 - <section class="dispatch block">  
21 - <div class="sub-block payment-type">  
22 - <h3>  
23 - <p>支付方式</p>  
24 - {{#each paymentWay}}  
25 - {{#if recommend}}<span>{{name}}</span>{{/if}}  
26 - {{/each}}  
27 - <i class="iconfont down">&#xe616;</i>  
28 - <i class="iconfont hide up">&#xe615;</i>  
29 - </h3>  
30 - <ul>  
31 - {{#each paymentWay}}  
32 - {{#if isSupport}}  
33 - <li {{#if recommend}}class="chosed"{{/if}}>  
34 - <span {{#if isSupportMessage}}data-message="{{isSupportMessage}}"{{/if}}>{{name}}</span>  
35 - <i class="right iconfont {{#if recommend}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}" data-payment-type="{{paymentType}}"></i>  
36 - </li>  
37 - {{/if}}  
38 - {{/each}}  
39 - </ul>  
40 - </div>  
41 - <div class="sub-block delivery-id">  
42 - <h3>  
43 - <p>配送方式</p>  
44 - {{#each dispatchMode}}  
45 - {{#if isSelected}}<span>{{name}}:运费¥{{cost}}</span>{{/if}}  
46 - {{/each}}  
47 - <i class="iconfont down">&#xe616;</i>  
48 - <i class="iconfont hide up">&#xe615;</i>  
49 - </h3>  
50 - <ul class="dispatch-mode">  
51 - {{#each dispatchMode}}  
52 - <li class="{{#if isSelected}}chosed{{/if}}{{#if is_support_message}} no-support{{/if}}" data-id="{{id}}">  
53 - <span>{{name}}:运费¥{{cost}} {{#if is_support_message}}({{is_support_message}}){{/if}}</span>  
54 - <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}"></i>  
55 - </li>  
56 - {{/each}}  
57 - </ul>  
58 - </div>  
59 - <div class="sub-block dispatch-time">  
60 - <h3>  
61 - <p>送货时间</p>  
62 - {{#each dispatchTime}}  
63 - {{#if isSelected}}<span>{{name}}</span>{{/if}}  
64 - {{/each}}  
65 - <i class="iconfont down">&#xe616;</i>  
66 - <i class="iconfont hide up">&#xe615;</i>  
67 - </h3>  
68 - <ul>  
69 - <li class="dispatch-time-info">快递公司会尽力按您选择的送货时间配送,如遇特殊情况(天气、环境等)无法按您要求时间配送,还请您谅解。</li>  
70 - {{#each dispatchTime}}  
71 - <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">  
72 - <span>{{name}}</span>  
73 - <i class="right iconfont radio {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}" ></i> 19 + {{else}}
  20 + <div class="address block address-wrap not-address">
  21 + <i class="iconfont">&#xe637;</i>
  22 + <a class="choose" href="{{selectAddressUrl}}">请选择收货地址<span class="iconfont">&#xe614;</span></a>
  23 + </div>
  24 + {{/if}}
  25 + <section class="dispatch block">
  26 + <div class="sub-block payment-type">
  27 + <h3>
  28 + <p>支付方式</p>
  29 + {{#each paymentWay}}
  30 + {{#if recommend}}<span>{{name}}</span>{{/if}}
  31 + {{/each}}
  32 + <i class="iconfont down">&#xe616;</i>
  33 + <i class="iconfont hide up">&#xe615;</i>
  34 + </h3>
  35 + <ul>
  36 + {{#each paymentWay}}
  37 + {{#if isSupport}}
  38 + <li {{#if recommend}}class="chosed"{{/if}}>
  39 + <span {{#if isSupportMessage}}data-message="{{isSupportMessage}}"{{/if}}>{{name}}</span>
  40 + <i class="right iconfont {{#if recommend}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}" data-payment-type="{{paymentType}}"></i>
  41 + </li>
  42 + {{/if}}
  43 + {{/each}}
  44 + </ul>
  45 + </div>
  46 + <div class="sub-block delivery-id">
  47 + <h3>
  48 + <p>配送方式</p>
  49 + {{#each dispatchMode}}
  50 + {{#if isSelected}}<span>{{name}}:运费¥{{cost}}</span>{{/if}}
  51 + {{/each}}
  52 + <i class="iconfont down">&#xe616;</i>
  53 + <i class="iconfont hide up">&#xe615;</i>
  54 + </h3>
  55 + <ul class="dispatch-mode">
  56 + {{#each dispatchMode}}
  57 + <li class="{{#if isSelected}}chosed{{/if}}{{#if is_support_message}} no-support{{/if}}" data-id="{{id}}">
  58 + <span>{{name}}:运费¥{{cost}} {{#if is_support_message}}({{is_support_message}}){{/if}}</span>
  59 + <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{id}}"></i>
74 </li> 60 </li>
75 - {{/each}}  
76 - </ul>  
77 - </div>  
78 - </section> 61 + {{/each}}
  62 + </ul>
  63 + </div>
  64 + <div class="sub-block dispatch-time">
  65 + <h3>
  66 + <p>送货时间</p>
  67 + {{#each dispatchTime}}
  68 + {{#if isSelected}}<span>{{name}}</span>{{/if}}
  69 + {{/each}}
  70 + <i class="iconfont down">&#xe616;</i>
  71 + <i class="iconfont hide up">&#xe615;</i>
  72 + </h3>
  73 + <ul>
  74 + <li class="dispatch-time-info">快递公司会尽力按您选择的送货时间配送,如遇特殊情况(天气、环境等)无法按您要求时间配送,还请您谅解。</li>
  75 + {{#each dispatchTime}}
  76 + <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">
  77 + <span>{{name}}</span>
  78 + <i class="right iconfont radio {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}" ></i>
  79 + </li>
  80 + {{/each}}
  81 + </ul>
  82 + </div>
  83 + </section>
79 84
80 - {{#if isJit}}  
81 - {{> home/order/jit-more}}  
82 - {{/if}}  
83 - <section class="block goods-bottom">  
84 - {{#each goods}}  
85 - {{> home/order/good}}  
86 - {{/each}}  
87 - <div class="goods-num">{{num}}件商品 合计<span>{{goodsPrice}}</span></div>  
88 - </section> 85 + {{#if isJit}}
  86 + {{> home/order/jit-more}}
  87 + {{/if}}
  88 + <section class="block goods-bottom">
  89 + {{#each goods}}
  90 + {{> home/order/good}}
  91 + {{/each}}
  92 + <div class="goods-num">{{num}}件商品 合计<span>{{goodsPrice}}</span></div>
  93 + </section>
89 94
90 - <section class="block">  
91 - <ul class="sale-invoice">  
92 - {{!-- 优惠券 --}}  
93 - {{#if isOrdinaryCart}}  
94 - <li class="coupon">  
95 - <a href="{{selectCouponUrl}}">  
96 - <span class="title">优惠券/优惠券码</span>  
97 - {{# coupon}}  
98 - {{#if isLimit}}  
99 - <span class="coupon-info pull-right">  
100 - 该商品不可使用优惠券  
101 - <i class="iconfont">&#xe614;</i>  
102 - </span>  
103 - {{^}}  
104 - <span class="count">{{#if selectedAmount}}已选{{selectedAmount}}{{^}}{{count}}张可用{{/if}}</span>  
105 - <span class="coupon-info pull-right">  
106 - {{info}}<i class="iconfont">&#xe614;</i>  
107 - </span>  
108 - {{/if}}  
109 - {{/coupon}}  
110 - </a>  
111 - </li>  
112 - {{/if}} 95 + <section class="block">
  96 + <ul class="sale-invoice">
  97 + {{!-- 优惠券 --}}
  98 + {{#if isOrdinaryCart}}
  99 + <li class="coupon">
  100 + <a href="{{selectCouponUrl}}">
  101 + <span class="title">优惠券/优惠券码</span>
  102 + {{# coupon}}
  103 + {{#if isLimit}}
  104 + <span class="coupon-info pull-right">
  105 + 该商品不可使用优惠券
  106 + <i class="iconfont">&#xe614;</i>
  107 + </span>
  108 + {{^}}
  109 + <span class="count">{{#if selectedAmount}}已选{{selectedAmount}}{{^}}{{count}}张可用{{/if}}</span>
  110 + <span class="coupon-info pull-right">
  111 + {{info}}<i class="iconfont">&#xe614;</i>
  112 + </span>
  113 + {{/if}}
  114 + {{/coupon}}
  115 + </a>
  116 + </li>
  117 + {{/if}}
113 118
114 - {{!-- 有货币 --}}  
115 - <li class="coin" data-yoho-coin="{{yohoCoinCompute.yohoCoin}}" data-yoho-coin-click={{yohoCoinCompute.yohoCoinClick}}>  
116 - <span class="title">有货币</span>  
117 - <span class="desc msg">{{yohoCoinCompute.yohoCoinMsg}}</span>  
118 - <span class="yoho-coin-help">?</span>  
119 - {{#if yohoCoinCompute.useYohoCoin}}  
120 - <span class="coin-check">  
121 - <i class="iconfont checkbox icon-cb-radio"></i>  
122 - </span>  
123 - {{else}}  
124 - <span class="coin-check">  
125 - <i class="iconfont checkbox icon-radio"></i>  
126 - </span> 119 + {{!-- 有货币 --}}
  120 + <li class="coin" data-yoho-coin="{{yohoCoinCompute.yohoCoin}}" data-yoho-coin-click={{yohoCoinCompute.yohoCoinClick}}>
  121 + <span class="title">有货币</span>
  122 + <span class="desc msg">{{yohoCoinCompute.yohoCoinMsg}}</span>
  123 + <span class="yoho-coin-help">?</span>
  124 + {{#if yohoCoinCompute.useYohoCoin}}
  125 + <span class="coin-check">
  126 + <i class="iconfont checkbox icon-cb-radio"></i>
  127 + </span>
  128 + {{else}}
  129 + <span class="coin-check">
  130 + <i class="iconfont checkbox icon-radio"></i>
  131 + </span>
  132 + {{/if}}
  133 + </li>
  134 +
  135 + {{!-- 礼品卡 --}}
  136 + {{#if giftCards}}
  137 + <li class="gift-card">
  138 + <a href="{{choseGiftCard}}">
  139 + <span class="title">礼品卡</span>
  140 + {{# giftCards}}
  141 + <span class="count">{{leftInfo}}</span>
  142 + <span class="gift-card-info pull-right">
  143 + <span id="giftCardRightInfo">{{rightInfo}}</span><i class="iconfont">&#xe614;</i>
  144 + </span>
  145 + {{/giftCards}}
  146 + </a>
  147 + </li>
127 {{/if}} 148 {{/if}}
128 - </li>  
129 149
130 - {{!-- 礼品卡 --}}  
131 - {{#if giftCards}}  
132 - <li class="gift-card">  
133 - <a href="{{choseGiftCard}}">  
134 - <span class="title">礼品卡</span>  
135 - {{# giftCards}}  
136 - <span class="count">{{leftInfo}}</span>  
137 - <span class="gift-card-info pull-right">  
138 - <span id="giftCardRightInfo">{{rightInfo}}</span><i class="iconfont">&#xe614;</i>  
139 - </span>  
140 - {{/giftCards}} 150 + {{!-- 发票 --}}
  151 + {{#if invoice}}
  152 + <li class="invoice {{#if needInvoice}}focus{{/if}}">
  153 + <input type="hidden" class="user-mobile" value="{{@root.userMobile}}" />
  154 + <span class="title">发票</span>
  155 + <span class="iconfont checkbox {{#if needInvoice}}icon-cb-radio{{else}}icon-radio{{/if}}"></span>
  156 + <a id="invoice" class="invoice-info" href="/cart/index/buynow/selectInvoice?product_sku={{@root.product_sku}}">
  157 + <span class="title">发票信息</span>
  158 + <span class="invoice-type">{{invoiceText}}<i class="iconfont">&#xe614;</i></span>
141 </a> 159 </a>
142 </li> 160 </li>
143 - {{/if}} 161 + {{/if}}
  162 + </ul>
144 163
145 - {{!-- 发票 --}}  
146 - {{#if invoice}}  
147 - <li class="invoice {{#if needInvoice}}focus{{/if}}">  
148 - <input type="hidden" class="user-mobile" value="{{@root.userMobile}}" />  
149 - <span class="title">发票</span>  
150 - <span class="iconfont checkbox {{#if needInvoice}}icon-cb-radio{{else}}icon-radio{{/if}}"></span>  
151 - <a id="invoice" class="invoice-info" href="/cart/index/buynow/selectInvoice?product_sku={{@root.product_sku}}">  
152 - <span class="title">发票信息</span>  
153 - <span class="invoice-type">{{invoiceText}}<i class="iconfont">&#xe614;</i></span>  
154 - </a>  
155 - </li> 164 + <form id="msg" action="" method="post">
  165 + <input type="text" name="msg" value="{{msg}}" maxlength="40" placeholder="留言">
  166 + </form>
  167 + <ul class="sale-invoice">
  168 + <li class="no-print-price">
  169 + <span class="title">不打印价格</span>
  170 + <span class="desc">送朋友可不打印价格哦</span>
  171 + <span class="check">
  172 + <i class="iconfont checkbox{{#if isPrintPrice}} icon-radio{{else}} icon-cb-radio{{/if}}"></i>
  173 + </span>
  174 + </li>
  175 + </ul>
  176 + </section>
  177 + <section class="price-cal block">
  178 + <ul class="total">
  179 + {{#cartPayData}}
  180 + <li>
  181 + <p>{{promotion}}</p>
  182 + <span>{{promotion_amount}}</span>
  183 + </li>
  184 + {{/cartPayData}}
  185 + </ul>
  186 + <div class="price-cost">
  187 + 实付金额
  188 + <span>¥{{round price 2}}</span>
  189 + </div>
  190 +
  191 + {{#if returnYohoCoin}}
  192 + <div class="yoho-coin">
  193 + 共返有货币: {{yohoCoinNum}}
  194 + </div>
156 {{/if}} 195 {{/if}}
157 - </ul>  
158 196
159 - <form id="msg" action="" method="post">  
160 - <input type="text" name="msg" value="{{msg}}" maxlength="40" placeholder="留言">  
161 - </form>  
162 - <ul class="sale-invoice">  
163 - <li class="no-print-price">  
164 - <span class="title">不打印价格</span>  
165 - <span class="desc">送朋友可不打印价格哦</span>  
166 - <span class="check">  
167 - <i class="iconfont checkbox{{#if isPrintPrice}} icon-radio{{else}} icon-cb-radio{{/if}}"></i>  
168 - </span>  
169 - </li>  
170 - </ul>  
171 - </section>  
172 - <section class="price-cal block">  
173 - <ul class="total">  
174 - {{#cartPayData}}  
175 - <li>  
176 - <p>{{promotion}}</p>  
177 - <span>{{promotion_amount}}</span>  
178 - </li>  
179 - {{/cartPayData}}  
180 - </ul>  
181 - <div class="price-cost">  
182 - 实付金额  
183 - <span>¥{{round price 2}}</span> 197 + </section>
  198 + {{#if addressInfo}}
  199 + <div class="address-bottom">
  200 + <div class="back"></div>
  201 + <span>送至:{{addressInfo}}</span>
  202 + </div>
  203 + {{/if}}
  204 + <div class="bill">
  205 + 您需要支付:<span>¥{{round price 2}}</span>
  206 + <a href="javascript:;">提交订单</a>
184 </div> 207 </div>
185 208
186 - {{#if returnYohoCoin}}  
187 - <div class="yoho-coin">  
188 - 共返有货币: {{yohoCoinNum}} 209 + <div class="yoho-coin-help-dialog-bg"></div>
  210 + <div class="yoho-coin-help-dialog">
  211 + <div class="yoho-coin-title">有货币使用条件:</div>
  212 + <div class="yoho-coin-content">
  213 + <p>1.订单金额大于20元(含)</p>
  214 + <p>2.有货币数量大于{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}个(含)</p>
  215 + <p>3.有货币支付不得超过每笔订单应付金额的{{yohoCoinCompute.yoho_coin_pay_rule.max_pay_rate_desc}}</p>
  216 + <p>备注:使用有货币数量为{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}的整数倍,100有货币抵1元。</p>
  217 + </div>
  218 + <div class="yoho-coin-footer">知道了</div>
189 </div> 219 </div>
  220 + {{#if errorMsg}}
  221 + <div class="yoho-coin-help-dialog-bg"></div>
  222 + <div class="yoho-coin-help-dialog">
  223 + <div class="yoho-coin-content">{{errorMsg}}</div>
  224 + <div class="yoho-coin-footer">返回</div>
  225 + </div>
190 {{/if}} 226 {{/if}}
191 227
192 - </section>  
193 - {{#if addressInfo}}  
194 - <div class="address-bottom">  
195 - <div class="back"></div>  
196 - <span>送至:{{addressInfo}}</span>  
197 - </div> 228 + <input type="hidden" id="product-sku" name="product-sku" value="{{sku}}">
  229 + {{#with seckill}}
  230 + <input type="hidden" id="activity-id" name="activity-id" value="{{activityId}}">
  231 + {{/with}}
198 {{/if}} 232 {{/if}}
199 - <div class="bill">  
200 - 您需要支付:<span>¥{{round price 2}}</span>  
201 - <a href="javascript:;">提交订单</a>  
202 - </div>  
203 -  
204 - <div class="yoho-coin-help-dialog-bg"></div>  
205 - <div class="yoho-coin-help-dialog">  
206 - <div class="yoho-coin-title">有货币使用条件:</div>  
207 - <div class="yoho-coin-content">  
208 - <p>1.订单金额大于20元(含)</p>  
209 - <p>2.有货币数量大于{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}个(含)</p>  
210 - <p>3.有货币支付不得超过每笔订单应付金额的{{yohoCoinCompute.yoho_coin_pay_rule.max_pay_rate_desc}}</p>  
211 - <p>备注:使用有货币数量为{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}的整数倍,100有货币抵1元。</p>  
212 - </div>  
213 - <div class="yoho-coin-footer">知道了</div>  
214 - </div>  
215 -  
216 - <input type="hidden" id="product-sku" name="product-sku" value="{{sku}}">  
217 - {{#with seckill}}  
218 - <input type="hidden" id="activity-id" name="activity-id" value="{{activityId}}">  
219 - {{/with}}  
220 - {{else}}  
221 - <div class="order-ensure-error">  
222 - {{message}}  
223 - </div>  
224 - {{/ orderEnsure}} 233 +{{/ orderEnsure}}
225 </div> 234 </div>
226 {{> rich_tip}} 235 {{> rich_tip}}
@@ -768,7 +768,7 @@ @@ -768,7 +768,7 @@
768 width: 100%; 768 width: 100%;
769 height: 100%; 769 height: 100%;
770 position: fixed; 770 position: fixed;
771 - z-index: 1; 771 + z-index: 3;
772 left: 0; 772 left: 0;
773 top: 0; 773 top: 0;
774 opacity: 0.3; 774 opacity: 0.3;
@@ -780,7 +780,7 @@ @@ -780,7 +780,7 @@
780 width: 540px; 780 width: 540px;
781 height: 510px; 781 height: 510px;
782 background-color: #fff; 782 background-color: #fff;
783 - z-index: 2; 783 + z-index: 4;
784 border-radius: 10px; 784 border-radius: 10px;
785 left: 50%; 785 left: 50%;
786 margin-left: -270px; 786 margin-left: -270px;