<hi:Common_AliOHHeader runat="server" />
<script src="../../../Utility/vshopSelector/vshopSelector.js" type="text/javascript"></script>
  <div class="shoppingStepBar clearfix">
        <div class="step">
            <div class="glyphicon glyphicon-shopping-cart">
            </div>
        </div>
        <div class="step active">
            <div class="glyphicon glyphicon-pencil"></div>
        </div>
        <div class="step">
            <div class="glyphicon glyphicon-ok">
            </div>
        </div>
    </div>
    <hr />
 <div class="alert order-amount-info" style="background-color: #E6E9ED;  ">
           
        <p class="text-right" >
            订单号：<label id="lborderid"><asp:literal runat="server" id="OrderId" /></label></span>
        </p>
    
        <p class="text-right">
            应付总额：<span><strong class="text-danger">¥<label id="total" style="margin-bottom: 0;"><asp:literal runat="server" id="litOrderTotal" /></label></strong></span>
        </p>
    </div>
    <div id="divLogin" class="pbox">
        <p>请输入您的交易密码。</p>
         
        <div class="input-group">
          <input id="txtPassword" type="password" class="form-control" placeholder="请输入您的交易密码">
          <span class="input-group-btn">
          <button class="btn btn-default" type="button" ontouchstart="javascript:$('#txtPassword').attr('type','text');" ontouchend="javascript:$('#txtPassword').attr('type','password');"><span class="glyphicon glyphicon-eye-open"></span></button>
          </span>
        </div>
        <button type="button" id="btnTransactionPwd"  class="btn btn-success btn-block">确认</button>
        
    </div>
<script>
    //禁用右上角菜单
    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        WeixinJSBridge.call('hideOptionMenu');
    });
</script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#btnTransactionPwd").bind("click", function () { TransactionPwd(); }); // 
    });
    function TransactionPwd() {
           password = $.trim($("#txtPassword").val());
         if (!password || password.length < 6)
            alert_h('密码不能为空并且至少要6个字符');
        else {
            $.ajax({
                url: "/API/VshopProcess.ashx",
                type: 'post', dataType: 'json',  
                data: { action: "Transactionsubmitorder", password: password, orderid: $("#lborderid").text() },
                success: function (resultData) {
                    if (resultData.success) {
                        alert_h("交易成功！", function () {
                            location.href = "default.aspx";
                        });
                    }
                    else {
                        alert_h(resultData.mesg);
                        $("#txtPassword").val("");
                    }
                }
            });
        }
    }

     
    
</script>
<hi:Common_AliOHFooter runat="server" />

