edit.html 14 KB

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