bind_pickup_order.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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%;">&nbsp;</div>
  12. <?php if( !empty($pick_up_info) ){ ?>
  13. <div class="weui_cells_tips" style="">门店:<?php echo $pick_up_info['pick_name']; ?></div>
  14. <?php }else{ ?>
  15. <div class="weui_cells_tips" style="">所有门店</div>
  16. <?php } ?>
  17. <div class="weui_cells_tips" style="">点击确认按钮,您将拥有店铺的核销权限!</div>
  18. <div class="weui_btn_area">
  19. <a class="weui_btn weui_btn_primary" href="javascript:" id="submit-btn">确定</a>
  20. </div>
  21. <div id="toast" style="display: none;">
  22. <div class="weui_mask_transparent"></div>
  23. <div class="weui_toast">
  24. <i class="weui_icon_toast"></i>
  25. <p class="weui_toast_content">绑定成功</p>
  26. </div>
  27. </div>
  28. <script src="__PUBLIC__/js/jquery/jquery-2.0.3.min.js" ></script>
  29. <script>
  30. $(document).ready(function(){
  31. $("#submit-btn").click(function(e){
  32. var params = $("#apply_form").serialize();
  33. var url="{:U('Seller/bind_pickup_post',array('seller_id' => $seller_id,'pick_up_id' =>$pick_up_id))}";
  34. var successFun=function(result){
  35. if(result.code=='200'){
  36. $('#toast').show();
  37. setTimeout(function () {
  38. $('#toast').hide();
  39. location.href="{:U('Index/index')}";
  40. }, 1500);
  41. }else{
  42. alert(result.msg);
  43. }
  44. };
  45. $.ajax({
  46. type: "POST",
  47. url:url,
  48. data: params,
  49. dataType: "json",
  50. success: successFun
  51. });
  52. });
  53. });
  54. </script>
  55. </body>
  56. </html>
  57. </block>