12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <form bindsubmit='doBuy'>
- <div class="tit ">正在购买</div>
- <div class='msg' node-act="buytip">查看购买说明</div>
- <div id="tips" style="display: none;">查看购买说明</div>
- <div class="list">
- <div class="item active" data-id="1">
- <span class='name'>购买1本</span>
- <span>¥8.00</span>
- </div>
- <div class="item" data-id="2">
- <span class='name'>购买1本</span>
- <span>¥8.00</span>
- </div>
- <div class="item" data-id="3">
- <span class='name'>购买1本</span>
- <span>¥8.00</span>
- </div>
- <div class="item" data-id="4">
- <span class='name'>购买1本</span>
- <span>¥8.00</span>
- </div>
- <div class="item" data-id="5">
- <span class='name'>购买1本</span>
- <span>¥8.00</span>
- </div>
- <div class="item" data-id="6">
- <span class='name'>购买1本</span>
- <span>¥8.00</span>
- </div>
- </div>
- <div class="btn-wrapper ">
- <div class="button cancel" node-act="hideBuy">取消</div>
- <div class="button primary " node-act="doBuy">确认</div>
- </div>
- </form>
- <script>
- $('[node-act="hideBuy"]').on('click',function(){
- $('#buylayer').removeClass('slidein')
- $('#buylayermask').hide();
- })
- $('[node-act="doBuy"]').on('click',function(){
- if (payStatus == false) {
- var url = $('.list .active').attr('data-pay');
- if (!url) {
- alert('错误的信息');
- location.reload();
- return;
- }
- $(this).html('支付中...');
- payStatus = true;
- pay(url);
- }
- })
- $('[node-act="buytip"]').on('click', function () {
- $('#buytip .p').html($('#tips').html());
- $('#buytip').show()
- })
- $('[node-act="hideTip"]').on('click', function () {
- $('#buytip').hide()
- })
- </script>
|