editold.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. <style type="text/css">
  2. .img_txt_add_but:hover, .img_txt_add_but:active, .img_txt_add_but:focus{
  3. color: #1581ff
  4. }
  5. </style>
  6. <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
  7. <div class="form-group">
  8. <label for="module" class="control-label col-xs-12 col-sm-2">标题:</label>
  9. <div class="col-xs-12 col-sm-8">
  10. <input type="text" class="form-control" id="title" name="row[title]" maxlength="20" value="{$row.title}" data-rule="required" {if condition="$canedit eq 1"}readonly{/if} />
  11. </div>
  12. </div>
  13. <div class="form-group group-type" id="group-type-news">
  14. <input type="hidden" name="row[message_json]" value='{$row.message_json}' class="img_txt_hidde_input" />
  15. <label class="control-label col-xs-12 col-sm-2">消息内容:</label>
  16. <div class="col-xs-12 col-sm-8 new-template-wrap">
  17. <div class="img_txt_box">
  18. <div class="img_txt_list">
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. <!--消息内容 end-->
  24. <div class="form-group">
  25. <label for="description" class="control-label col-xs-12 col-sm-2">简介:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. <textarea type="text" class="form-control" rows="4" id="description" maxlength="120">{$row.description ?? ''}</textarea>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label for="c-sendtime" class="control-label col-xs-12 col-sm-2">{:__('Sendtime')}:</label>
  32. <div class="col-xs-12 col-sm-8">
  33. <input id="c-sendtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[sendtime]" type="text"{if condition="$canedit eq 1"}disabled{/if} value="{$row.sendtime|date='Y-m-d H:i:s',###}">
  34. {if condition="$canedit neq 1"}
  35. <div class="s_time_box">
  36. <span stime="600000">10分钟后</span>
  37. <span stime="1800000">30分钟后</span>
  38. <span stime="3600000">1小时后</span>
  39. </div>
  40. <div class="s_time_txt">客服消息发送对象与时间关系较大,若发送时间较晚,则可能预估送达偏差较大</div>
  41. {/if}
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label for="status" class="control-label col-xs-12 col-sm-2">接收用户:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <div class="radio">
  48. <label for="type-tag"><input id="type-tag" checked name="row[type]" type="radio" value="tag"> 按标签选择</label>
  49. <label for="type-all"><input id="type-all" name="row[type]" type="radio" value="all"> 全部用户</label></div>
  50. </div>
  51. </div>
  52. <div class="form-group group-tag-type" id="group-tag-type-tag">
  53. <input id="usercondition" type="hidden" name='row[user_json]' class="img_txt_hidde_input_no" value='{$row.user_json}' />
  54. <label for="c-text-content" class="control-label col-xs-12 col-sm-2"></label>
  55. <div class="col-xs-12 col-sm-8">
  56. <div class="s_tag_box">
  57. <div class="s_tag_li">
  58. <strong>性别:</strong>
  59. <div id="sex" class="s_tag_li_list">
  60. <span data-sex="-1" class="s_s_tag">不限</span>
  61. <span data-sex="1">男</span>
  62. <span data-sex="2">女</span>
  63. <span data-sex="0">未知</span>
  64. </div>
  65. </div>
  66. <div class="s_tag_li">
  67. <strong>标签:</strong>
  68. <div id="ctag" class="s_tag_li_list">
  69. <span data-cid="-1" class="s_s_tag">不限</span>
  70. </div>
  71. </div>
  72. <div class="s_tag_li">
  73. <strong>消费情况:</strong>
  74. <div id="consume" class="s_tag_li_list">
  75. <span data-fee="-1" class="s_s_tag">不限</span>
  76. <span data-fee="1">未付费</span>
  77. <span data-fee="2">普通付费</span>
  78. <span data-fee="3">年费会员</span>
  79. </div>
  80. </div>
  81. <div class="s_tag_li">
  82. <strong>书币剩余:</strong>
  83. <div id="kandian" class="s_tag_li_list">
  84. <span data-kandian="-1" class="s_s_tag">不限</span>
  85. <span data-kandian="1">低于500</span>
  86. <span data-kandian="2">低于2000</span>
  87. <span data-kandian="3">2000以上</span>
  88. </div>
  89. </div>
  90. <div class="s_tag_li">
  91. <strong>关注时间:</strong>
  92. <div id="subTime" class="s_tag_li_list">
  93. <span data-week="-1" class="s_s_tag">不限</span>
  94. <span data-week="1">1周内</span>
  95. <span data-week="2">2周内</span>
  96. <span data-week="3">1月内</span>
  97. <span data-week="4">2月内</span>
  98. <span data-week="5">更早</span>
  99. </div>
  100. </div>
  101. <!--<div class="s_tag_footer">-->
  102. <!--<strong>符合条件的人数:</strong>-->
  103. <!--<span id="mustbe">约&#45;&#45;人</span>-->
  104. <!--<a href="javascript:;" class="s_tag_fans_num">查看粉丝数</a>-->
  105. <!--<div class="s_tag_fans_allowed">查看粉丝数</div>-->
  106. <!--</div>-->
  107. </div>
  108. </div>
  109. </div>
  110. <!-- 按标签选择 -->
  111. {if condition="$canedit neq 1"}
  112. <div class="form-group">
  113. <label for="module" class="control-label col-xs-12 col-sm-2">测试粉丝ID:</label>
  114. <div class="col-xs-12 col-sm-8">
  115. <input id="admin_id" name="row[admin_id]" type="hidden" value="{$admin_id}" />
  116. <div class="test_fans_input"><input type="text" id="userId" placeholder="请输入粉丝id" /></div>
  117. <a href="javascript:;" class="test_fans_but">测试粉丝</a>
  118. <div class="s_time_txt">设置完后,建议您先测试发送,确认ok后再保存<br>用测试粉丝账号进入服务号菜单中的用户中心-个人中心,填写完整粉丝数字ID<br>测试ID,需与本服务号有过48小时互动</div>
  119. </div>
  120. </div>
  121. {/if}
  122. <div class="form-group {:input('get.callback')?'':'hidden layer-footer'}">
  123. <div class="col-xs-2"></div>
  124. <div class="col-xs-12 col-sm-8">
  125. {if condition="$canedit neq 1"}
  126. <button type="submit" class="btn btn-success btn-embossed disabled">保存</button>
  127. {/if}
  128. <span class="s_time_txt" style="color: red">{if condition="$canedit eq 1"}发送前10分钟及超过发送时间禁止编辑{/if}</span>
  129. </div>
  130. </div>
  131. </form>
  132. <style type="text/css">
  133. ::-webkit-input-placeholder{
  134. color:#d2d2d2;
  135. }
  136. :-moz-placeholder{
  137. color:#d2d2d2;
  138. }
  139. ::-moz-placeholder{
  140. color:#d2d2d2;
  141. }
  142. :-ms-input-placeholder{
  143. color:#d2d2d2;
  144. }
  145. input::-webkit-outer-spin-button,
  146. input::-webkit-inner-spin-button {
  147. -webkit-appearance: none !important;
  148. margin: 0;
  149. }
  150. .test_fans_input{
  151. float: left;
  152. padding: 6px 10px;
  153. height: 30px;
  154. width: 30%;
  155. border: 1px solid #ddd;
  156. box-sizing: border-box;
  157. }
  158. .test_fans_input input{
  159. display: block;
  160. margin: 0;
  161. padding: 0;
  162. width: 100%;
  163. height: 100%;
  164. border: 0;
  165. color: #666;
  166. font-size: 14px;
  167. outline: none;
  168. }
  169. .test_fans_but{
  170. display: block;
  171. margin: 0 0 10px 32%;
  172. height: 30px;
  173. width: 90px;
  174. background-color: #f0a233;
  175. font-size: 14px;
  176. color: #fff;
  177. text-align: center;
  178. line-height: 30px;
  179. }
  180. .s_time_box{
  181. overflow: hidden;
  182. }
  183. .s_time_box span{
  184. float: left;
  185. margin: 6px 10px 6px 0;
  186. height: 24px;
  187. font-size: 14px;
  188. line-height: 24px;
  189. cursor: pointer;
  190. color: #1581ff;
  191. }
  192. .s_time_txt{
  193. overflow: hidden;
  194. margin: 0 0 10px;
  195. font-size: 14px;
  196. color: #666;
  197. line-height: 24px;
  198. }
  199. .s_tag_box{
  200. overflow: hidden;
  201. padding: 20px 20px 0;
  202. background-color: #f1f1f1;
  203. }
  204. .s_tag_li,
  205. .s_tag_footer{
  206. overflow: hidden;
  207. }
  208. .s_tag_li strong{
  209. float: left;
  210. height: 36px;
  211. width: 90px;
  212. font-size: 14px;
  213. color: #666;
  214. text-align: right;
  215. font-weight: normal;
  216. line-height: 36px;
  217. }
  218. .s_tag_li_list{
  219. margin-left: 100px;
  220. overflow: hidden;
  221. }
  222. .s_tag_li_list span{
  223. overflow: hidden;
  224. float: left;
  225. margin: 6px 10px 6px 0;
  226. padding: 0 6px;
  227. height: 24px;
  228. color: #666;
  229. cursor: pointer;
  230. line-height: 24px;
  231. border-radius: 2px;
  232. }
  233. .s_tag_li_list .s_s_tag{
  234. background-color: #1581ff;
  235. color: #fff;
  236. }
  237. .s_tag_footer{
  238. margin-top: 10px;
  239. padding: 10px 0;
  240. border-top: 1px solid #ddd;
  241. line-height: 24px;
  242. }
  243. .s_tag_footer strong,
  244. .s_tag_footer span{
  245. display: inline;
  246. height: 24px;
  247. width: 90px;
  248. font-size: 14px;
  249. color: #666;
  250. text-align: right;
  251. font-weight: normal;
  252. line-height: 36px;
  253. }
  254. .img_txt_box{
  255. padding: 20px;
  256. width: 380px;
  257. background-color: #f1f1f1;
  258. box-sizing: border-box;
  259. }
  260. .img_txt_list{
  261. padding: 10px 0;
  262. background-color: #fff;
  263. }
  264. .img_txt_list > div:last-child{
  265. border-bottom: 0;
  266. }
  267. .img_txt_one{
  268. padding: 0 20px 10px;
  269. border-bottom: 1px solid #e9e9e9;
  270. }
  271. .img_txt_one_tit{
  272. overflow: hidden;
  273. margin-bottom: 10px;
  274. border-bottom: 1px solid #e9e9e9;
  275. cursor: pointer;
  276. }
  277. .img_txt_one_tit i,
  278. .img_txt_li_txt i{
  279. float: right;
  280. height: 22px;
  281. width: 22px;
  282. background-color: #18bc9c;
  283. text-align: center;
  284. color: #fff;
  285. cursor: pointer;
  286. line-height: 22px;
  287. }
  288. .img_txt_one_h3,
  289. .img_txt_li_h3,
  290. .img_txt_one_url,
  291. .img_txt_li_url{
  292. overflow: hidden;
  293. margin: 0 26px 0 0;
  294. padding: 0 0 4px 0;
  295. font-size: 14px;
  296. color: rgba(0,0,0,0.6);
  297. line-height: 22px;
  298. }
  299. .img_txt_one_url,
  300. .img_txt_li_url{
  301. margin: 0 60px 0 0;
  302. }
  303. .img_txt_edit_url{
  304. margin-left: 6px;
  305. }
  306. .img_txt_li_h3{
  307. margin-bottom: 8px;
  308. height: 44px;
  309. }
  310. .img_txt_one_h3 input,
  311. .img_txt_li_h3 input,
  312. .img_txt_one_url input,
  313. .img_txt_li_url input{
  314. display: block;
  315. margin: 0;
  316. padding: 0;
  317. border: 0;
  318. width: 100%;
  319. height: 22px;
  320. font-size: 14px;
  321. color: rgba(0,0,0,0.6);
  322. outline: none;
  323. }
  324. .img_txt_one_url input,
  325. .img_txt_li_url input{
  326. color: #1581ff;
  327. }
  328. .img_txt_one_img{
  329. overflow: hidden;
  330. cursor: pointer;
  331. }
  332. .img_txt_one_img img{
  333. display: block;
  334. margin: 0;
  335. padding: 0;
  336. border: 0;
  337. width:100%;
  338. }
  339. .img_txt_li{
  340. position: relative;
  341. left: 0;
  342. top: 0;
  343. overflow: hidden;
  344. padding: 10px 20px;
  345. border-bottom: 1px solid #e9e9e9;
  346. }
  347. .img_txt_li_img{
  348. overflow: hidden;
  349. float: right;
  350. height: 78px;
  351. width: 78px;
  352. }
  353. .img_txt_li_img img{
  354. display: block;
  355. width: 78px;
  356. height: 78px;
  357. }
  358. .img_txt_li_txt{
  359. position: relative;
  360. left: 0;
  361. top: 0;
  362. margin: 0 88px 0 0;
  363. overflow: hidden;
  364. }
  365. .img_txt_li_txt a,
  366. .img_txt_one_tit a{
  367. display: block;
  368. overflow: hidden;
  369. padding: 3px 0;
  370. height: 26px;
  371. font-size: 14px;
  372. color: #1581ff;
  373. line-height: 20px;
  374. white-space: normal;
  375. word-break: break-all;
  376. word-wrap: break-word;
  377. box-sizing: border-box;
  378. }
  379. .img_txt_add_but{
  380. display: block;
  381. margin-top: 20px;
  382. height: 40px;
  383. font-size: 16px;
  384. color: #1581ff;
  385. text-align: center;
  386. line-height: 40px;
  387. }
  388. .img_txt_add_but i{
  389. font-size: 16px;
  390. vertical-align: middle;
  391. }
  392. .img_txt_remvoe{
  393. display: none;
  394. position: absolute;
  395. right: 0;
  396. bottom: 0;
  397. height: 36px;
  398. width: 36px;
  399. cursor: pointer;
  400. }
  401. .img_txt_li:hover .img_txt_remvoe{
  402. display: block;
  403. }
  404. .img_txt_remvoe:before {
  405. content: "";
  406. width: 0;
  407. height: 0;
  408. overflow: hidden;
  409. border: 18px solid transparent;
  410. border-bottom-color: #d0021b;
  411. border-right-color: #d0021b;
  412. _border-bottom-style: solid;
  413. _border-right-style: solid;
  414. position: absolute;
  415. left: 0;
  416. top: 0;
  417. }
  418. .img_txt_remvoe:after {
  419. content: "\f1f8";
  420. position: absolute;
  421. right: 2px;
  422. bottom: 2px;
  423. color: #fff;
  424. font-size: 16px;
  425. }
  426. .s_tag_footer span{
  427. margin-right: 20px;
  428. }
  429. a{
  430. opacity: .8;
  431. }
  432. a:hover{
  433. color: #fff;
  434. opacity: 1;
  435. }
  436. .s_tag_fans_num{
  437. display: inline-block;
  438. padding: 0 10px;
  439. height: 24px;
  440. font-size: 12px;
  441. color: #fff;
  442. background-color: #f0a233;
  443. border-radius: 2px;
  444. }
  445. a:active,
  446. a:focus {
  447. outline: none;
  448. text-decoration: none;
  449. color: #fff;
  450. }
  451. .s_tag_fans_show .s_tag_fans_allowed{
  452. display: inline-block;
  453. }
  454. .s_tag_fans_show .s_tag_fans_num{
  455. display: none;
  456. }
  457. .s_tag_fans_allowed{
  458. display: none;
  459. padding: 0 10px;
  460. height: 24px;
  461. font-size: 12px;
  462. color: #fff;
  463. background-color: #ddd;
  464. cursor: not-allowed;
  465. border-radius: 2px;
  466. }
  467. </style>
  468. {if condition="$canedit eq 1"}
  469. <script>
  470. var canedit = true;
  471. </script>
  472. {else /}
  473. <script>
  474. var canedit = false;
  475. </script>
  476. {/if}
  477. <script>
  478. var datas = {};
  479. </script>