123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- ##tlayout("wap/layout.htm",{head_title:"订单支付"}){
- <div class="body">
- <div class="pay_choose">
- <div class="tip_title">订单信息</div>
- <div class="wells_row wells_row_notomargin">
- <div class="wells_item">
- <span class="wells_item_hd">订单号</span>
- <span class="right_title right_title_w100">
- ${orders.code!}
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">创建时间</span>
- <span class="right_title right_title_w100">
- ${orders.create_date!,dateFormat='yyyy-MM-dd HH:mm'}
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">商品小计</span>
- <span class="right_title right_title_w100">
- <div class="color_red">¥${orders.subtotal!}</div>
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">运费</span>
- <span class="right_title right_title_w100">
- <div class="color_red">¥${orders.freight_price!}</div>
- </span>
- </div>
- <div class="wells_item">
- <span class="wells_item_hd">总计</span>
- <span class="right_title right_title_w100">
- <div class="color_red">¥${orders.grand_total!}</div>
- </span>
- </div>
- ##if(orders.invoice_name!=null && orders.invoice_name!=""){
- <div class="wells_item">
- <span class="wells_item_hd">发票抬头</span>
- <span class="right_title right_title_w100">
- ${orders.invoice_name!}
- </span>
- </div>
- ##}
- ##if(orders.invoice_number!=null && orders.invoice_number!=""){
- <div class="wells_item">
- <span class="wells_item_hd">发票税号</span>
- <span class="right_title right_title_w100">
- ${orders.invoice_number!}
- </span>
- </div>
- ##}
- ##if(orders.remark!=null && orders.remark!=""){
- <div class="wells_item">
- <span class="wells_item_hd">订单备注</span>
- <span class="right_title right_title_w100">
- ${orders.remark!}
- </span>
- </div>
- ##}
- </div>
- </div>
- <div class="weui_btn_area">
- <a href="javascript:void(0)" onclick="wxPay()" class="weui_btn btn_success">微信支付</a>
- </div>
- <div class="weui_btn_area">
- <a href="/wap/shop/bankPay?code=${orders.code!}" class="weui_btn btn_detail">银行卡支付</a>
- </div>
- </div>
- <a href="/wap" class="goback"><span>首页</span></a>
- <script>
- var new_post=1;
- function wxPay(){
-
- if(new_post==1){
- new_post=0;
- $.post("/wap/shop/getPackage",{code:"${orders.code!}"},function(data){
- if(data.success){
- WeixinJSBridge.invoke('getBrandWCPayRequest',{
- "appId":data.appId,
- "timeStamp":data.timeStamp,
- "nonceStr":data.nonceStr,
- "package":data._package,
- "signType": "MD5",
- "paySign":data.paySign
- },
- function(res){
- new_post=1;
- if(res.err_msg=='get_brand_wcpay_request:ok'){
- setTimeout(function(){
- window.location.href="/wap/user/orders";
- }, 1500);
- }else{
- alert("支付失败");
- }
- });
- }else{
- alert(data.msg);
- }
- });
- }else{
- alert("支付请求中...");
- return;
- }
- }
- </script>
- ##}
|