修改微信跳转bug

master
tpingzhang 5 years ago
parent a0bb839f8b
commit cdbd86373f

@ -69,7 +69,7 @@
<span>{$price}元</span> <span>{$price}元</span>
</div> </div>
<a class="order-payinfo-item" <a class="order-payinfo-item"
href="#;" onclick="jump('{$url}')" href="#;" onclick="jump('{$url}', '{$order_id}')"
title="支付宝"> title="支付宝">
<div class="order-payinfo-icon"> <div class="order-payinfo-icon">
<img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="支付宝"> <img src="__IMG__/ssg/alipay/zfb-pic.jpg" alt="支付宝">
@ -86,9 +86,9 @@
</div> </div>
</body> </body>
<script> <script>
function jump(pay_url) { function jump(pay_url, order_id) {
if(isWeiXin()){ if(isWeiXin()){
window.location.href = "/sdk.php/Ipa365/paytip/order_id/"+pay_url; window.location.href = "/sdk.php/Ipa365/paytip/order_id/"+order_id;
}else{ }else{
window.location.href=pay_url; window.location.href=pay_url;
} }

Loading…
Cancel
Save