설명 없음
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.

notice_details_wechat.htm 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {include file="public/layout" /}
  2. <body class="eyou_body_xin">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div id="geduan_div" class="h10"></div>
  6. <div class="page" style="min-width: auto; padding-bottom: 15px;">
  7. <div class="flexigrid">
  8. {include file="notice/notice_details_bar" /}
  9. <!-- 操作说明 -->
  10. <div id="explanation" class="explanation" style="color: rgb(44, 188, 163); background-color: rgb(237, 251, 248); margin-bottom: 15px;">
  11. <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
  12. <h4 title="提示相关设置操作时应注意的要点">提示</h4>
  13. <span title="收起提示" id="explanationZoom" style="display: block;"></span>
  14. </div>
  15. <ul>
  16. <li>1.登录 <a href="https://mp.weixin.qq.com" target="_blank">微信公众号</a>,在模板消息里的所在行业设置为: <font color="#fe7300">IT科技/互联网|电子商务、其他/其他</font></li>
  17. <li>2.如果所选服务类目的行业和以上不一致,将会导致模板消息不可用</li>
  18. <li style="color: red;">3.请先把登录账号与您的微信进行绑定关联,否则接收不到推送信息!<a href="javascript:void(0);" data-href="{:url('Admin/admin_edit', ['id'=>$admin_id,'iframe'=>1])}" onclick="openHelpframe(this, '个人信息', '100%', '100%');">打开个人信息</a></li>
  19. </ul>
  20. </div>
  21. <form class="form-horizontal pl10 pr10" id="post_form" action="" method="post">
  22. <div class="ncap-form-default tab_div_1">
  23. <!-- 微信模板消息 -->
  24. <dl class="row">
  25. <dt class="tit">是否开启</dt>
  26. <dd class="opt">
  27. <ul class="nc-row ncap-waybill-list">
  28. <li style="width: 100%;">
  29. <label class="label" >
  30. <input class="check" type="radio" name="is_open" value="1" {notempty name="$info.is_open"}checked="checked"{/notempty}><span>开启</span>
  31. </label>
  32. &nbsp; &nbsp;
  33. <label class="label" >
  34. <input class="check" type="radio" name="is_open" value="0" {empty name="$info.is_open"}checked="checked"{/empty}><span>关闭</span>
  35. </label>
  36. </li>
  37. </ul>
  38. </dd>
  39. </dl>
  40. <dl class="row">
  41. <dt class="tit"> <label for="">模板演示</label> </dt>
  42. <dd class="opt">
  43. <div class="default-template-content"><img src="__STATIC__/admin/images/notice_template_wxapp_bg.png" alt="" class="bg-img">
  44. <div class="line"></div>
  45. <div class="wxapp-notice">
  46. <div class="title">
  47. <div class="logo">
  48. <div>公众号名称</div>
  49. </div>
  50. </div>
  51. <div class="content">
  52. <div class="template-title">{$info.template_title}</div>
  53. <div class="template-html">
  54. {volist name="$info['tpl_data']['keywordsList']" id="vo"}
  55. <div class="flex">
  56. <div class="label">{$vo.name}</div>
  57. <div>{$vo.example}</div>
  58. </div>
  59. {/volist}
  60. </div>
  61. </div>
  62. {notempty name="$weixin_data['appid']"}
  63. <div class="template-link">小程序名称 <i class="iconfont e-right" style="float: right;"></i></div>
  64. {else /}
  65. <div class="template-link">查看详情 <i class="iconfont e-right" style="float: right;"></i></div>
  66. {/notempty}
  67. </div>
  68. </div>
  69. </dd>
  70. </dl>
  71. <!-- 微信模板消息 -->
  72. </div>
  73. <div class="ncap-form-default">
  74. <div class="bot2" style="padding-left: 160px;">
  75. <input type="hidden" name="tpl_id" value="{$info.tpl_id}">
  76. <input type="hidden" name="send_type" value="{$send_type}">
  77. <input type="hidden" name="send_scene" value="{$info.send_scene}">
  78. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">保存</a>
  79. <a class="ncap-btn-big ncap-btn-no" href="javascript:history.back();" title="返回">返回</a>
  80. </div>
  81. </div>
  82. </form>
  83. </div>
  84. </div>
  85. <script type="text/javascript">
  86. function checkForm() {
  87. layer_loading('正在处理');
  88. $.ajax({
  89. type: 'post',
  90. url : "{:url('Notice/notice_details_wechat', ['_ajax'=>1])}",
  91. data: $('#post_form').serialize(),
  92. dataType: 'json',
  93. success: function(res) {
  94. layer.closeAll();
  95. if (res.code == 1) {
  96. layer.msg(res.msg, {shade: layer_shade, time: 1000}, function() {
  97. window.location.reload();
  98. });
  99. } else {
  100. showErrorAlert(res.msg);
  101. }
  102. },
  103. error: function(e){
  104. layer.closeAll();
  105. showErrorAlert(e.responseText);
  106. }
  107. });
  108. }
  109. </script>
  110. {include file="public/footer" /}