add.html 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <form id="add-form" class="form-horizontal" role="form" method="POST" action="">
  2. <div class="form-group">
  3. <label for="c-message_name" class="control-label col-xs-12 col-sm-2">{:__('推送消息名称')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-message_name" class="form-control" name="row[material_name]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label for="c-message_type" class="control-label col-xs-12 col-sm-2">{:__('消息类型')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <div class="radio" id="c-message_type">
  12. <label for="row[material_type]-{1}"><input id="row[material_type]-{1}" class="message_type_1" name="row[material_type]" type="radio" value="1" checked/> 文本类型</label>
  13. <label for="row[material_type]-{2}"><input id="row[material_type]-{2}" class="message_type_2" name="row[material_type]" type="radio" value="2" /> 图文类型</label>
  14. <label for="row[material_type]-{3}"><input id="row[material_type]-{3}" class="message_type_3" name="row[material_type]" type="radio" value="3" /> 图片消息</label>
  15. </div>
  16. <br>
  17. <!-- 内容展示区 -->
  18. <div class="message_type_container"
  19. style=" width: 100%;
  20. padding: 6px 12px;
  21. text-align: center;
  22. font-size: 12px;
  23. line-height: 1.42857143;
  24. color: #555555;
  25. background-color: #fff;
  26. background-image: none;
  27. border: 1px solid #ccc;"
  28. >
  29. <div class="message_type_content_contianer"
  30. style="
  31. width: 100%;
  32. min-height: 30px;
  33. background: #F1EFEF;
  34. margin-bottom: 12px;
  35. "
  36. >
  37. <div class="text_container toggleContainer"></div>
  38. <div class="imgtext_container toggleContainer"></div>
  39. <div class="img_container toggleContainer"></div>
  40. </div>
  41. <div class="message_type_add_btn_contianer">
  42. <a href="javascript:;" class="btn btn-info btn-embossed" id="message_type_add_btn">添加消息</a>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label for="c-test_message" class="control-label col-xs-12 col-sm-2">{:__('测试用户ID')}:</label>
  49. <div class="col-xs-12 col-sm-8">
  50. {if in_array(1,$userGroupIds) || in_array(6,$userGroupIds) || in_array(7,$userGroupIds) || in_array(8,$userGroupIds)}
  51. <input type="hidden" id="test_channel_id" name="row[test_channel_id]" value="">
  52. <button type="button" class="btn btn-default btn-add-test-subscription-list" title="添加测试公众号" style="color:blue;"><i class="fa fa-eraser"></i> 添加测试公众号 </button><br><br>
  53. <table class="table table-bordered table-striped" id="gzh_table1">
  54. <thead>
  55. <tr>
  56. <th style="text-align: center; vertical-align: middle; ">公众号名称</th>
  57. <th style="text-align: center; vertical-align: middle; ">账号</th>
  58. <th style="text-align: center; vertical-align: middle; ">用户名称</th>
  59. <th style="text-align: center; vertical-align: middle; ">用户昵称</th>
  60. <th style="text-align: center; vertical-align: middle; ">操作</th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. <tr>
  65. <td></td>
  66. <td></td>
  67. <td></td>
  68. <td></td>
  69. <td></td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. {/if}
  74. <input id="c-test_message" class="form-control" name="row[test_message]" type="text" value="" style="width: 30%">
  75. <button type="button" class="btn btn-default btn-test_user" title="测试预览" style="color:blue;"><i class="fa fa-eraser"></i> 测试预览 </button>
  76. <br><span><font color="red">设置完后,建议您先测试发送,确认ok后再保存<br>
  77. 用测试粉丝账号进入服务号菜单中的用户中心-个人中心,填写完整粉丝数字ID
  78. 测试ID,需与本服务号有过48小时互动</font></span>
  79. </div>
  80. </div>
  81. <input id="message_content" type="hidden" name="row[material_content]" value="" />
  82. <div class="form-group layer-footer">
  83. <label class="control-label col-xs-12 col-sm-2"></label>
  84. <div class="col-xs-12 col-sm-8">
  85. <button type="submit" id="mater_submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  86. <!-- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
  87. </div>
  88. </div>
  89. </form>
  90. <style>
  91. .msg_preview{
  92. width: 100%;
  93. position: relative;
  94. border: 1px solid #ccc;
  95. margin-bottom: 3px;
  96. }
  97. .h180{
  98. height: 180px;
  99. }
  100. .preview_img_imgtext{
  101. width: 100%;
  102. height: 100%;
  103. display: block;
  104. }
  105. .preview_handler{
  106. position: absolute;
  107. width: 100%;
  108. height: 50px;
  109. /* background: rgba(0,0,0,.3); */
  110. bottom: 0;
  111. }
  112. .preview_imgtext_title{
  113. margin: 0;
  114. float: left;
  115. height: 50px;
  116. line-height: 50px;
  117. padding: 0;
  118. width: 80%;
  119. overflow: hidden;
  120. text-align: left;
  121. color:#fff;
  122. font-weight: 400;
  123. }
  124. .preview_del{
  125. float: right;
  126. width: 8%;
  127. line-height: 30px;
  128. height: 30px;
  129. margin-top: 10px;
  130. border: none;
  131. border-radius: 5px;
  132. margin-right: 3px;
  133. color:#fff;
  134. background: #333333;
  135. font-weight: 500;
  136. }
  137. .preview_edit{
  138. float: right;
  139. width: 8%;
  140. line-height: 30px;
  141. height: 30px;
  142. margin-top: 10px;
  143. border: none;
  144. border-radius: 5px;
  145. margin-right: 3px;
  146. color:#fff;
  147. background: #333333;
  148. font-weight: 500;
  149. }
  150. .msg_preview_title2{
  151. overflow: hidden;
  152. padding: 0;
  153. padding-right: 120px;
  154. padding-left: 30px;
  155. height: 120px;
  156. text-align: left;
  157. line-height: 120px;
  158. margin: 0;
  159. background: #fff;
  160. text-overflow: ellipsis;
  161. display: -webkit-box;
  162. -webkit-line-clamp: 2;
  163. -webkit-box-orient: vertical;
  164. line-height: 60px;
  165. }
  166. .msg_preview_img2{
  167. width: 120px;
  168. height: 120px;
  169. }
  170. .msg_preview_text{
  171. min-height: 50px;
  172. position: relative;
  173. margin-bottom: 3px;
  174. background-color: #f3f0f0;
  175. }
  176. .msg_preview_title3{
  177. display: inline-block;
  178. min-height: 50px;
  179. line-height: 50px;
  180. width: 80%;
  181. color:#000;
  182. overflow: hidden;
  183. white-space: nowrap;
  184. text-overflow: ellipsis;
  185. text-align: left;
  186. }
  187. .msg_preview_img3{
  188. width: 100%;
  189. height: 100%;
  190. }
  191. </style>