Skip to content

Commit e6e42eb

Browse files
committed
Refine hint for price
1 parent 6cb4478 commit e6e42eb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

www/cart/order.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ <h4>Pyarmor 马上有一个重大升级,预计在 2023年3月8号 之前发布
320320
<div class="panel panel-default" style="margin-top: 1em; border: 0;">
321321
<div class="">
322322
<div class="payment-way" id="payment-weixin">
323-
<button type="button" class="btn btn-success weixin-payment-link" data-toggle="modal" data-target=".popup-weixin-payment">微信扫码支付 298元(无发票)</button>
323+
<button type="button" class="btn btn-success weixin-payment-link" data-toggle="modal" data-target=".popup-weixin-payment">微信扫码支付 298元(基础版-无发票)</button>
324324
<p class="help-block" style="display: none;">如果需要收款人姓名校验二维码,请填写<strong>赵俊德</strong></p>
325325
</div>
326326
<div class="payment-way" id="payment-alipay" style="display: none;">
327-
<button type="button" class="btn btn-success alipay-payment-link" data-toggle="modal" data-target=".popup-alipay-payment">支付宝扫码支付 298元(无发票)</button>
327+
<button type="button" class="btn btn-success alipay-payment-link" data-toggle="modal" data-target=".popup-alipay-payment">支付宝扫码支付 298元(基础版-无发票)</button>
328328
</div>
329329
<div class="payment-way" id="payment-bank" style="display: none;">
330330
<div class="panel panel-default">

www/cart/order.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,13 @@ function setPaymentAmount() {
352352
var tax = document.querySelector( 'input[name="tax"]' ).checked;
353353
var price = tax ? (lic == 'Z' ? '562' : lic == 'G' ? '918' : lic == 'C' ? '569' : '359') :
354354
(lic == 'Z' ? '512' : lic == 'G' ? '868' : lic == 'C' ? '520' : '298');
355-
var unithint = tax ? '元(有电子发票)' : '元(无发票)';
355+
var suffix = tax ? '元(有电子发票)' : '元(无发票)';
356356

357357
document.querySelector( '.popup-weixin-payment img' ).src = 'weixin-' + price + '.jpg';
358358
document.querySelector( '.popup-alipay-payment img' ).src = 'alipay-' + price + '.jpg';
359-
document.getElementById('transfer-amount').innerHTML = price + unithint;
360-
document.querySelector( '.weixin-payment-link' ).innerHTML = '微信扫码支付 ' + price + unithint;
361-
document.querySelector( '.alipay-payment-link' ).innerHTML = '支付宝扫码支付 ' + price + unithint;
359+
document.getElementById('transfer-amount').innerHTML = price + suffix;
360+
document.querySelector( '.weixin-payment-link' ).innerHTML = '微信扫码支付 ' + price + suffix;
361+
document.querySelector( '.alipay-payment-link' ).innerHTML = '支付宝扫码支付 ' + price + suffix;
362362
}
363363

364364
function setProductTax() {

0 commit comments

Comments
 (0)