123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513 |
- <style type="text/css">
- .img_txt_add_but:hover, .img_txt_add_but:active, .img_txt_add_but:focus{
- color: #1581ff
- }
- </style>
- <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
- <div class="form-group">
- <label for="module" class="control-label col-xs-12 col-sm-2">标题:</label>
- <div class="col-xs-12 col-sm-8">
- <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} />
- </div>
- </div>
- <div class="form-group group-type" id="group-type-news">
- <input type="hidden" name="row[message_json]" value='{$row.message_json}' class="img_txt_hidde_input" />
- <label class="control-label col-xs-12 col-sm-2">消息内容:</label>
- <div class="col-xs-12 col-sm-8 new-template-wrap">
- <div class="img_txt_box">
- <div class="img_txt_list">
- </div>
- </div>
- </div>
- </div>
- <!--消息内容 end-->
- <div class="form-group">
- <label for="description" class="control-label col-xs-12 col-sm-2">简介:</label>
- <div class="col-xs-12 col-sm-8">
- <textarea type="text" class="form-control" rows="4" id="description" maxlength="120">{$row.description ?? ''}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label for="c-sendtime" class="control-label col-xs-12 col-sm-2">{:__('Sendtime')}:</label>
- <div class="col-xs-12 col-sm-8">
- <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',###}">
- {if condition="$canedit neq 1"}
- <div class="s_time_box">
- <span stime="600000">10分钟后</span>
- <span stime="1800000">30分钟后</span>
- <span stime="3600000">1小时后</span>
- </div>
- <div class="s_time_txt">客服消息发送对象与时间关系较大,若发送时间较晚,则可能预估送达偏差较大</div>
- {/if}
- </div>
- </div>
- <div class="form-group">
- <label for="status" class="control-label col-xs-12 col-sm-2">接收用户:</label>
- <div class="col-xs-12 col-sm-8">
- <div class="radio">
- <label for="type-tag"><input id="type-tag" checked name="row[type]" type="radio" value="tag"> 按标签选择</label>
- <label for="type-all"><input id="type-all" name="row[type]" type="radio" value="all"> 全部用户</label></div>
- </div>
- </div>
- <div class="form-group group-tag-type" id="group-tag-type-tag">
- <input id="usercondition" type="hidden" name='row[user_json]' class="img_txt_hidde_input_no" value='{$row.user_json}' />
- <label for="c-text-content" class="control-label col-xs-12 col-sm-2"></label>
- <div class="col-xs-12 col-sm-8">
- <div class="s_tag_box">
- <div class="s_tag_li">
- <strong>性别:</strong>
- <div id="sex" class="s_tag_li_list">
- <span data-sex="-1" class="s_s_tag">不限</span>
- <span data-sex="1">男</span>
- <span data-sex="2">女</span>
- <span data-sex="0">未知</span>
- </div>
- </div>
- <div class="s_tag_li">
- <strong>标签:</strong>
- <div id="ctag" class="s_tag_li_list">
- <span data-cid="-1" class="s_s_tag">不限</span>
- </div>
- </div>
- <div class="s_tag_li">
- <strong>消费情况:</strong>
- <div id="consume" class="s_tag_li_list">
- <span data-fee="-1" class="s_s_tag">不限</span>
- <span data-fee="1">未付费</span>
- <span data-fee="2">普通付费</span>
- <span data-fee="3">年费会员</span>
- </div>
- </div>
- <div class="s_tag_li">
- <strong>书币剩余:</strong>
- <div id="kandian" class="s_tag_li_list">
- <span data-kandian="-1" class="s_s_tag">不限</span>
- <span data-kandian="1">低于500</span>
- <span data-kandian="2">低于2000</span>
- <span data-kandian="3">2000以上</span>
- </div>
- </div>
- <div class="s_tag_li">
- <strong>关注时间:</strong>
- <div id="subTime" class="s_tag_li_list">
- <span data-week="-1" class="s_s_tag">不限</span>
- <span data-week="1">1周内</span>
- <span data-week="2">2周内</span>
- <span data-week="3">1月内</span>
- <span data-week="4">2月内</span>
- <span data-week="5">更早</span>
- </div>
- </div>
- <!--<div class="s_tag_footer">-->
- <!--<strong>符合条件的人数:</strong>-->
- <!--<span id="mustbe">约--人</span>-->
- <!--<a href="javascript:;" class="s_tag_fans_num">查看粉丝数</a>-->
- <!--<div class="s_tag_fans_allowed">查看粉丝数</div>-->
- <!--</div>-->
- </div>
- </div>
- </div>
- <!-- 按标签选择 -->
- {if condition="$canedit neq 1"}
- <div class="form-group">
- <label for="module" class="control-label col-xs-12 col-sm-2">测试粉丝ID:</label>
- <div class="col-xs-12 col-sm-8">
- <input id="admin_id" name="row[admin_id]" type="hidden" value="{$admin_id}" />
- <div class="test_fans_input"><input type="text" id="userId" placeholder="请输入粉丝id" /></div>
- <a href="javascript:;" class="test_fans_but">测试粉丝</a>
- <div class="s_time_txt">设置完后,建议您先测试发送,确认ok后再保存<br>用测试粉丝账号进入服务号菜单中的用户中心-个人中心,填写完整粉丝数字ID<br>测试ID,需与本服务号有过48小时互动</div>
- </div>
- </div>
- {/if}
- <div class="form-group {:input('get.callback')?'':'hidden layer-footer'}">
- <div class="col-xs-2"></div>
- <div class="col-xs-12 col-sm-8">
- {if condition="$canedit neq 1"}
- <button type="submit" class="btn btn-success btn-embossed disabled">保存</button>
- {/if}
- <span class="s_time_txt" style="color: red">{if condition="$canedit eq 1"}发送前10分钟及超过发送时间禁止编辑{/if}</span>
- </div>
- </div>
- </form>
- <style type="text/css">
- ::-webkit-input-placeholder{
- color:#d2d2d2;
- }
- :-moz-placeholder{
- color:#d2d2d2;
- }
- ::-moz-placeholder{
- color:#d2d2d2;
- }
- :-ms-input-placeholder{
- color:#d2d2d2;
- }
- input::-webkit-outer-spin-button,
- input::-webkit-inner-spin-button {
- -webkit-appearance: none !important;
- margin: 0;
- }
- .test_fans_input{
- float: left;
- padding: 6px 10px;
- height: 30px;
- width: 30%;
- border: 1px solid #ddd;
- box-sizing: border-box;
- }
- .test_fans_input input{
- display: block;
- margin: 0;
- padding: 0;
- width: 100%;
- height: 100%;
- border: 0;
- color: #666;
- font-size: 14px;
- outline: none;
- }
- .test_fans_but{
- display: block;
- margin: 0 0 10px 32%;
- height: 30px;
- width: 90px;
- background-color: #f0a233;
- font-size: 14px;
- color: #fff;
- text-align: center;
- line-height: 30px;
- }
- .s_time_box{
- overflow: hidden;
- }
- .s_time_box span{
- float: left;
- margin: 6px 10px 6px 0;
- height: 24px;
- font-size: 14px;
- line-height: 24px;
- cursor: pointer;
- color: #1581ff;
- }
- .s_time_txt{
- overflow: hidden;
- margin: 0 0 10px;
- font-size: 14px;
- color: #666;
- line-height: 24px;
- }
- .s_tag_box{
- overflow: hidden;
- padding: 20px 20px 0;
- background-color: #f1f1f1;
- }
- .s_tag_li,
- .s_tag_footer{
- overflow: hidden;
- }
- .s_tag_li strong{
- float: left;
- height: 36px;
- width: 90px;
- font-size: 14px;
- color: #666;
- text-align: right;
- font-weight: normal;
- line-height: 36px;
- }
- .s_tag_li_list{
- margin-left: 100px;
- overflow: hidden;
- }
- .s_tag_li_list span{
- overflow: hidden;
- float: left;
- margin: 6px 10px 6px 0;
- padding: 0 6px;
- height: 24px;
- color: #666;
- cursor: pointer;
- line-height: 24px;
- border-radius: 2px;
- }
- .s_tag_li_list .s_s_tag{
- background-color: #1581ff;
- color: #fff;
- }
- .s_tag_footer{
- margin-top: 10px;
- padding: 10px 0;
- border-top: 1px solid #ddd;
- line-height: 24px;
- }
- .s_tag_footer strong,
- .s_tag_footer span{
- display: inline;
- height: 24px;
- width: 90px;
- font-size: 14px;
- color: #666;
- text-align: right;
- font-weight: normal;
- line-height: 36px;
- }
- .img_txt_box{
- padding: 20px;
- width: 380px;
- background-color: #f1f1f1;
- box-sizing: border-box;
- }
- .img_txt_list{
- padding: 10px 0;
- background-color: #fff;
- }
- .img_txt_list > div:last-child{
- border-bottom: 0;
- }
- .img_txt_one{
- padding: 0 20px 10px;
- border-bottom: 1px solid #e9e9e9;
- }
- .img_txt_one_tit{
- overflow: hidden;
- margin-bottom: 10px;
- border-bottom: 1px solid #e9e9e9;
- cursor: pointer;
- }
- .img_txt_one_tit i,
- .img_txt_li_txt i{
- float: right;
- height: 22px;
- width: 22px;
- background-color: #18bc9c;
- text-align: center;
- color: #fff;
- cursor: pointer;
- line-height: 22px;
- }
- .img_txt_one_h3,
- .img_txt_li_h3,
- .img_txt_one_url,
- .img_txt_li_url{
- overflow: hidden;
- margin: 0 26px 0 0;
- padding: 0 0 4px 0;
- font-size: 14px;
- color: rgba(0,0,0,0.6);
- line-height: 22px;
- }
- .img_txt_one_url,
- .img_txt_li_url{
- margin: 0 60px 0 0;
- }
- .img_txt_edit_url{
- margin-left: 6px;
- }
- .img_txt_li_h3{
- margin-bottom: 8px;
- height: 44px;
- }
- .img_txt_one_h3 input,
- .img_txt_li_h3 input,
- .img_txt_one_url input,
- .img_txt_li_url input{
- display: block;
- margin: 0;
- padding: 0;
- border: 0;
- width: 100%;
- height: 22px;
- font-size: 14px;
- color: rgba(0,0,0,0.6);
- outline: none;
- }
- .img_txt_one_url input,
- .img_txt_li_url input{
- color: #1581ff;
- }
- .img_txt_one_img{
- overflow: hidden;
- cursor: pointer;
- }
- .img_txt_one_img img{
- display: block;
- margin: 0;
- padding: 0;
- border: 0;
- width:100%;
- }
- .img_txt_li{
- position: relative;
- left: 0;
- top: 0;
- overflow: hidden;
- padding: 10px 20px;
- border-bottom: 1px solid #e9e9e9;
- }
- .img_txt_li_img{
- overflow: hidden;
- float: right;
- height: 78px;
- width: 78px;
- }
- .img_txt_li_img img{
- display: block;
- width: 78px;
- height: 78px;
- }
- .img_txt_li_txt{
- position: relative;
- left: 0;
- top: 0;
- margin: 0 88px 0 0;
- overflow: hidden;
- }
- .img_txt_li_txt a,
- .img_txt_one_tit a{
- display: block;
- overflow: hidden;
- padding: 3px 0;
- height: 26px;
- font-size: 14px;
- color: #1581ff;
- line-height: 20px;
- white-space: normal;
- word-break: break-all;
- word-wrap: break-word;
- box-sizing: border-box;
- }
- .img_txt_add_but{
- display: block;
- margin-top: 20px;
- height: 40px;
- font-size: 16px;
- color: #1581ff;
- text-align: center;
- line-height: 40px;
- }
- .img_txt_add_but i{
- font-size: 16px;
- vertical-align: middle;
- }
- .img_txt_remvoe{
- display: none;
- position: absolute;
- right: 0;
- bottom: 0;
- height: 36px;
- width: 36px;
- cursor: pointer;
- }
- .img_txt_li:hover .img_txt_remvoe{
- display: block;
- }
- .img_txt_remvoe:before {
- content: "";
- width: 0;
- height: 0;
- overflow: hidden;
- border: 18px solid transparent;
- border-bottom-color: #d0021b;
- border-right-color: #d0021b;
- _border-bottom-style: solid;
- _border-right-style: solid;
- position: absolute;
- left: 0;
- top: 0;
- }
- .img_txt_remvoe:after {
- content: "\f1f8";
- position: absolute;
- right: 2px;
- bottom: 2px;
- color: #fff;
- font-size: 16px;
- }
- .s_tag_footer span{
- margin-right: 20px;
- }
- a{
- opacity: .8;
- }
- a:hover{
- color: #fff;
- opacity: 1;
- }
- .s_tag_fans_num{
- display: inline-block;
- padding: 0 10px;
- height: 24px;
- font-size: 12px;
- color: #fff;
- background-color: #f0a233;
- border-radius: 2px;
- }
- a:active,
- a:focus {
- outline: none;
- text-decoration: none;
- color: #fff;
- }
- .s_tag_fans_show .s_tag_fans_allowed{
- display: inline-block;
- }
- .s_tag_fans_show .s_tag_fans_num{
- display: none;
- }
- .s_tag_fans_allowed{
- display: none;
- padding: 0 10px;
- height: 24px;
- font-size: 12px;
- color: #fff;
- background-color: #ddd;
- cursor: not-allowed;
- border-radius: 2px;
- }
- </style>
- {if condition="$canedit eq 1"}
- <script>
- var canedit = true;
- </script>
- {else /}
- <script>
- var canedit = false;
- </script>
- {/if}
- <script>
- var datas = {};
- </script>
|