Brak opisu
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_applets.htm 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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">【商家自营】-【服饰内衣】</font></li>
  17. <li>2.如果所选服务类目的行业和以上不一致,将会导致订阅消息不可用</li>
  18. </ul>
  19. </div>
  20. <form class="form-horizontal pl10 pr10" id="post_form" action="" method="post">
  21. <div class="ncap-form-default tab_div_1">
  22. <!-- 微信模板消息 -->
  23. <dl class="row">
  24. <dt class="tit">是否开启</dt>
  25. <dd class="opt">
  26. <ul class="nc-row ncap-waybill-list">
  27. <li style="width: 100%;">
  28. <label class="label" >
  29. <input class="check" type="radio" name="is_open" value="1" {notempty name="$info.is_open"}checked="checked"{/notempty}><span>开启</span>
  30. </label>
  31. &nbsp; &nbsp;
  32. <label class="label" >
  33. <input class="check" type="radio" name="is_open" value="0" {empty name="$info.is_open"}checked="checked"{/empty}><span>关闭</span>
  34. </label>
  35. </li>
  36. </ul>
  37. </dd>
  38. </dl>
  39. <dl class="row">
  40. <dt class="tit"> <label for="">模板演示</label> </dt>
  41. <dd class="opt">
  42. <div class="default-template-content"><img src="__STATIC__/admin/images/notice_template_wxapp_bg.png" alt="" class="bg-img">
  43. <div class="line"></div>
  44. <div class="wxapp-notice">
  45. <div class="title">
  46. <div class="logo">
  47. <div>小程序名称</div>
  48. </div>
  49. </div>
  50. <div class="content">
  51. <div class="template-title">{$info.template_title}</div>
  52. <div class="template-html">
  53. {volist name="$info['tpl_data']['keywordsList']" id="vo"}
  54. <div class="flex">
  55. <div class="label">{$vo.name}</div>
  56. <div>{$vo.example}</div>
  57. </div>
  58. {/volist}
  59. </div>
  60. </div>
  61. <div class="template-link">进入小程序查看 <i class="iconfont e-right" style="float: right;"></i></div>
  62. </div>
  63. </div>
  64. </dd>
  65. </dl>
  66. <!-- 微信模板消息 -->
  67. </div>
  68. <div class="ncap-form-default">
  69. <div class="bot2" style="padding-left: 160px;">
  70. <input type="hidden" name="tpl_id" value="{$info.tpl_id}">
  71. <input type="hidden" name="send_type" value="{$send_type}">
  72. <input type="hidden" name="send_scene" value="{$info.send_scene}">
  73. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">保存</a>
  74. <a class="ncap-btn-big ncap-btn-no" href="javascript:history.back();" title="返回">返回</a>
  75. </div>
  76. </div>
  77. </form>
  78. </div>
  79. </div>
  80. <script type="text/javascript">
  81. function checkForm() {
  82. layer_loading('正在处理');
  83. $.ajax({
  84. type: 'post',
  85. url : "{:url('Notice/notice_details_applets', ['_ajax'=>1])}",
  86. data: $('#post_form').serialize(),
  87. dataType: 'json',
  88. success: function(res) {
  89. layer.closeAll();
  90. if (res.code == 1) {
  91. layer.msg(res.msg, {shade: layer_shade, time: 1000}, function() {
  92. window.location.reload();
  93. });
  94. } else {
  95. showErrorAlert(res.msg);
  96. }
  97. },
  98. error: function(e){
  99. layer.closeAll();
  100. showErrorAlert(e.responseText);
  101. }
  102. });
  103. }
  104. </script>
  105. {include file="public/footer" /}