selfpay.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {php define(MUI, true);}
  2. {template 'common/header'}
  3. <header class="mui-bar mui-bar-nav">
  4. <h1 class="mui-title">{$_W['user']['store_name']}</h1>
  5. </header>
  6. {template 'nav'}
  7. <header class="mui-bar mui-bar-nav">
  8. <h1 class="mui-title">自助付款</h1>
  9. </header>
  10. <div class="mui-content self-help-pay">
  11. <div class="mui-banner mui-text-center">
  12. <img src="{$fans['avatar']}" alt="" class="mui-logo mui-img-circle"/>
  13. </div>
  14. <form action="" method="post">
  15. <input type="hidden" name="openid" value="{$fans['openid']}"/>
  16. <input type="hidden" name="nickname" value="{$fans['nickname']}"/>
  17. <input type="hidden" name="token" value="{$_W['token']}"/>
  18. <input type="hidden" name="submit" value="{$_W['token']}"/>
  19. <div class="mui-card">
  20. <div class="mui-card-block">
  21. <div class="mui-card-title">金额(元)</div>
  22. <textarea name="fee" rows="3" class="mui-border0" placeholder="¥"></textarea>
  23. </div>
  24. </div>
  25. <div class="mui-content-padded">
  26. <button class="mui-btn mui-btn-success mui-btn-block">立即支付</button>
  27. <div class="mui-text-muted mui-text-center">支付完成后,如需退款请及时联系卖家</div>
  28. </div>
  29. </form>
  30. </div>
  31. <script>
  32. $(function(){
  33. $('#pay-form').submit(function(){
  34. var fee = $.trim($('#pay-form :text[name="fee"]').val());
  35. if(!fee) {
  36. alert('付款金额应大于0');
  37. return false;
  38. }
  39. return true;
  40. });
  41. });
  42. </script>
  43. {template 'common/footer'}