|
|
|
@ -452,7 +452,7 @@ |
|
|
|
|
|
|
|
<span class="box-flex t-remark">实付款 {if $total.exchange_integral}<em class="t-first">{$total.exchange_integral}积分 + </em>{/if}<em class="t-first" id="amount">{$total.amount_formated}</em></span> |
|
|
|
|
|
|
|
<a href="javascript:;" type="button" class="btn-submit" onclick="$('#theForm').submit();">{if $total.exchange_integral}确认兑换{else}提交订单{/if}</a> |
|
|
|
<a href="javascript:;" type="button" class="btn-submit" onclick="wxpay()">{if $total.exchange_integral}确认兑换{else}提交订单{/if}</a> |
|
|
|
<!-- <a href="javascript:;" id="testPaymentBtn" type="button" class="btn-submit" onclick="processPayment()">测试支付</a> sc_test --> |
|
|
|
<!-- 引入jQuery库 --> |
|
|
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
|
|
|
@ -462,6 +462,10 @@ |
|
|
|
|
|
|
|
<!-- JavaScript代码 --> |
|
|
|
<script> |
|
|
|
function wxpay() { |
|
|
|
console.log(123); |
|
|
|
// $('#theForm').submit(); |
|
|
|
} |
|
|
|
function processPayment() { |
|
|
|
// 在这里执行任何必要的操作 |
|
|
|
var param1 = 'some value'; // 将参数存储在变量中 |
|
|
|
|