bind_order_notify.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <block name="content">
  2. <!DOCTYPE html>
  3. <html lang="zh-cmn-Hans">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  7. <title>绑定订单通知</title>
  8. <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/0.4.2/weui.min.css"/>
  9. </head>
  10. <body>
  11. <div class="weui_cells_tips" style="margin-top:50%;">点击确认按钮,您的店铺有新的订单,将会微信消息通知您!</div>
  12. <div class="weui_btn_area">
  13. <a class="weui_btn weui_btn_primary" href="javascript:" id="submit-btn">确定</a>
  14. </div>
  15. <div id="toast" style="display: none;">
  16. <div class="weui_mask_transparent"></div>
  17. <div class="weui_toast">
  18. <i class="weui_icon_toast"></i>
  19. <p class="weui_toast_content">绑定成功</p>
  20. </div>
  21. </div>
  22. <script src="http://style.114jd.cn/style/js/global/lib/jquery/jquery-2.1.1.min.js" ></script>
  23. <script>
  24. $(document).ready(function(){
  25. $("#submit-btn").click(function(e){
  26. var params = $("#apply_form").serialize();
  27. var url="{:U('Seller/bind_post',array('seller_id' => $seller_id))}";
  28. var successFun=function(result){
  29. if(result.code=='200'){
  30. $('#toast').show();
  31. setTimeout(function () {
  32. $('#toast').hide();
  33. location.href="{:U('Index/index')}";
  34. }, 1500);
  35. }else{
  36. alert(result.msg);
  37. }
  38. };
  39. $.ajax({
  40. type: "POST",
  41. url:url,
  42. data: params,
  43. dataType: "json",
  44. success: successFun
  45. });
  46. });
  47. });
  48. </script>
  49. </body>
  50. </html>
  51. </block>