暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

order_remarks.htm 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {include file="public/layout" /}
  2. <body class="bodystyle ey-iframes-webkit" style="cursor: default; -moz-user-select: inherit;min-width:auto;background: #fff;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page" style="padding: 0;background-color:transparent;">
  6. <div class="flexigrid">
  7. <div class="mb20"> <textarea placeholder="请输入" id="order_remarks" style="width: 100%;height: 94px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;"></textarea> </div>
  8. <div class="fr">
  9. <!-- <a href="JavaScript:void(0);" onclick="closeIframes();" style="height: 20px; padding: 7px 19px;">取消</a> -->
  10. <a href="JavaScript:void(0);" onclick="orderRemarks();" class="ncap-btn-big ncap-btn-green">确定</a>
  11. </div>
  12. </div>
  13. <div class="remarks-list">
  14. {volist name="$remarksList" id="vo"}
  15. <div class="item">
  16. <div class="line"></div>
  17. <div class="time fr"> {$vo.times}&nbsp;&nbsp;{$vo.admin_name}</div>
  18. <div class="remarks"> {$vo.remarks} </div>
  19. </div>
  20. {/volist}
  21. </div>
  22. </div>
  23. <script type="text/javascript">
  24. // 关闭自身弹窗
  25. function closeIframes(isAjax) {
  26. var parentObj = parent.layer.getFrameIndex(window.name);
  27. if (parentObj) {
  28. if (isAjax) {
  29. parent.window.location.reload();
  30. } else {
  31. parent.layer.close(parentObj);
  32. }
  33. }
  34. }
  35. function orderRemarks() {
  36. var order_id = {$order_id};
  37. var order_remarks = $('#order_remarks').val();
  38. if (!order_remarks || undefined == order_remarks) {
  39. $('#order_remarks').focus();
  40. layer.msg('请填写备注', {time: 1500});
  41. return false;
  42. }
  43. layer_loading('正在处理');
  44. $.ajax({
  45. type: 'post',
  46. url : "{:url('Shop/order_remarks')}",
  47. data: {order_id: order_id, order_remarks: order_remarks, _ajax: 1},
  48. dataType: 'json',
  49. success: function(res) {
  50. layer.closeAll();
  51. if (1 == res.code) {
  52. layer.msg(res.msg, {time: 1000}, function() {
  53. closeIframes(true);
  54. });
  55. } else {
  56. layer.alert(res.msg, {title: false, closeBtn: 0});
  57. }
  58. }
  59. });
  60. }
  61. </script>