Authored by 张帅

后台发布相关

@@ -46,21 +46,21 @@ @@ -46,21 +46,21 @@
46 <link rel="stylesheet" href="/pfcms/js/emoji/emojionearea.css"> 46 <link rel="stylesheet" href="/pfcms/js/emoji/emojionearea.css">
47 <script type="text/javascript" src="/pfcms/js/emoji/emojionearea.js"></script> 47 <script type="text/javascript" src="/pfcms/js/emoji/emojionearea.js"></script>
48 </head> 48 </head>
49 -<body class="easyui-layout" > 49 +<body class="easyui-layout " fit="true">
50 <div region="north" style="height: 100px;"> 50 <div region="north" style="height: 100px;">
51 <script> 51 <script>
52 document.write(addHead('种草社区管理', '种草内容发布')); 52 document.write(addHead('种草社区管理', '种草内容发布'));
53 </script> 53 </script>
54 54
55 </div> 55 </div>
56 -<div region="center" id="labelGroupList" style="margin-left: 20px">  
57 - <div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll"> 56 +<div region="center" id="labelGroupList" style="margin-left: 20px;width: 100%">
  57 + <div id="tt" class="easyui-layout" style="overflow-y: scroll;overflow-x: auto;">
58 <form name="publishArticleForm" id="publishArticleForm" method="post" > 58 <form name="publishArticleForm" id="publishArticleForm" method="post" >
59 <div style="margin-top: 20px;margin-left: 30px"> 59 <div style="margin-top: 20px;margin-left: 30px">
60 <table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab"> 60 <table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">
61 61
62 <tr style="height: 60px"> 62 <tr style="height: 60px">
63 - <td > 63 + <td style="width:100% ">
64 <div style="float: left;width:60%;" > 64 <div style="float: left;width:60%;" >
65 <span style="color:red">*</span><label>选择用户</label> <br> 65 <span style="color:red">*</span><label>选择用户</label> <br>
66 <input id="articleUid" name="authorUid" style="width:100% " class="easyui-textbox" /> <br> 66 <input id="articleUid" name="authorUid" style="width:100% " class="easyui-textbox" /> <br>
@@ -72,15 +72,20 @@ @@ -72,15 +72,20 @@
72 </tr> 72 </tr>
73 73
74 <tr style="height: 60px"> 74 <tr style="height: 60px">
75 - <td> 75 + <td style="width:100%; word-wrap:break-word;" >
76 <span style="color:red">*</span><label>文字内容</label> <br> 76 <span style="color:red">*</span><label>文字内容</label> <br>
77 - <textarea rows="5" id="content" style="width:60%; white-space: pre-wrap;" name = "content" class="form-control" placeholder="请在这里输入1-500字的笔记" required="" maxlength="500"></textarea>  
78 - <span id="content-count">0</span>/500 77 + <div style="width:600px; word-wrap:break-word;float: left;position: relative" >
  78 + <textarea rows="5" id="content" style="width:60%; white-space: pre-wrap;" name = "content" class="form-control" placeholder="请在这里输入1-500字的笔记" required="" maxlength="500"></textarea>
  79 + <!--<div style="position: absolute;bottom:0;right:-50px"> <span id="content-count">0</span>/500</div>-->
  80 +
  81 + </div>
  82 +
  83 + <!--<div style="clear: both;"> <span id="content-count">0</span>/500</div>-->
79 </td> 84 </td>
80 </tr> 85 </tr>
81 86
82 <tr style="height: 60px"> 87 <tr style="height: 60px">
83 - <td> 88 + <td style="width:100%;">
84 <label>选择标签</label> <br> 89 <label>选择标签</label> <br>
85 <span style="color:red">至多添加5个标签,非必填项</span><label></label><br> 90 <span style="color:red">至多添加5个标签,非必填项</span><label></label><br>
86 <input id="labelId" name="labelId" class="easyui-combobox" style="width:60% "/> 91 <input id="labelId" name="labelId" class="easyui-combobox" style="width:60% "/>
@@ -152,33 +157,18 @@ @@ -152,33 +157,18 @@
152 // options 157 // options
153 autoHideFilters: true, 158 autoHideFilters: true,
154 autocomplete : false, 159 autocomplete : false,
  160 + search :false,
  161 + recentEmojis: false,
  162 + tones: false,
155 filters: { 163 filters: {
156 // see in source file 164 // see in source file
157 - smileys_people: {  
158 - icon: "yum",  
159 - title: "Smileys & People",  
160 - emoji: "grinning grimacing grin joy smiley smile sweat_smile laughing innocent wink blush slight_smile " +  
161 - "upside_down relaxed yum relieved heart_eyes kissing_heart kissing kissing_smiling_eyes " +  
162 - "kissing_closed_eyes stuck_out_tongue_winking_eye stuck_out_tongue_closed_eyes stuck_out_tongue " +  
163 - "money_mouth nerd sunglasses hugging smirk no_mouth neutral_face expressionless unamused rolling_eyes " +  
164 - "thinking flushed disappointed worried angry rage pensive confused slight_frown frowning2 persevere " +  
165 - "confounded tired_face weary triumph open_mouth scream fearful cold_sweat hushed frowning anguished " +  
166 - "cry disappointed_relieved sleepy sweat sob dizzy_face astonished zipper_mouth mask thermometer_face " +  
167 - "head_bandage sleeping zzz poop smiling_imp imp japanese_ogre japanese_goblin skull ghost alien robot " +  
168 - "smiley_cat smile_cat joy_cat heart_eyes_cat smirk_cat kissing_cat scream_cat crying_cat_face " +  
169 - "pouting_cat raised_hands clap wave thumbsup thumbsdown punch fist v ok_hand raised_hand open_hands " +  
170 - "muscle pray point_up point_up_2 point_down point_left point_right middle_finger hand_splayed metal " +  
171 - "vulcan writing_hand nail_care lips tongue ear nose eye eyes bust_in_silhouette busts_in_silhouette " +  
172 - "speaking_head baby boy girl man woman person_with_blond_hair older_man older_woman man_with_gua_pi_mao " +  
173 - "man_with_turban cop construction_worker guardsman spy santa angel princess bride_with_veil walking " +  
174 - "runner dancer dancers couple two_men_holding_hands two_women_holding_hands bow information_desk_person " +  
175 - "no_good ok_woman raising_hand person_with_pouting_face person_frowning haircut massage couple_with_heart " +  
176 - "couple_ww couple_mm couplekiss kiss_ww kiss_mm family family_mwg family_mwgb family_mwbb family_mwgg " +  
177 - "family_wwb family_wwg family_wwgb family_wwbb family_wwgg family_mmb family_mmg family_mmgb family_mmbb " +  
178 - "family_mmgg womans_clothes shirt jeans necktie dress bikini kimono lipstick kiss footprints high_heel " +  
179 - "sandal boot mans_shoe athletic_shoe womans_hat tophat helmet_with_cross mortar_board crown school_satchel " +  
180 - "pouch purse handbag briefcase eyeglasses dark_sunglasses ring closed_umbrella"  
181 - } 165 + animals_nature : true,
  166 + food_drink :true,
  167 + activity: true,
  168 + travel_places :true,
  169 + objects:true,
  170 + symbols: true,
  171 + flags:true
182 } 172 }
183 173
184 }); 174 });
@@ -262,21 +252,25 @@ @@ -262,21 +252,25 @@
262 } 252 }
263 }); 253 });
264 254
265 - /*字数限制*/  
266 - $("#content").on("input propertychange", function() {  
267 - debugger  
268 - var $this = $(this);  
269 - var count = $this.val().length;  
270 - $("#content-count").text(count);  
271 - }); 255 + // /* 字数限制*/
  256 + // $("#content").on("input propertychange", function() {
  257 + // debugger
  258 + // var $this = $(this);
  259 + // var count = $this.val().length;
  260 + // $("#content-count").text(count);
  261 + // });
272 262
273 - /*字数限制*/  
274 - $("#content").on("change", function() {  
275 - debugger  
276 - var $this = $(this);  
277 - var count = $this.val().length;  
278 - $("#content-count").text(count);  
279 - }); 263 + // /*字数限制*/
  264 + // $("#content").on("keydown keyup mousedown blur change", function() {
  265 + // debugger
  266 + // var $this = $(this);
  267 + // var count = $this.val().length;
  268 + // if(count>10){
  269 + // var text = $this.val().substring(0,10);
  270 + // $this.val(text);
  271 + // }
  272 + // $("#content-count").text(count);
  273 + // });
280 274
281 275
282 $("#labelId").combobox({ 276 $("#labelId").combobox({
@@ -84,7 +84,7 @@ @@ -84,7 +84,7 @@
84 .emojionearea, .emojionearea.form-control { 84 .emojionearea, .emojionearea.form-control {
85 display: block; 85 display: block;
86 position: relative !important; 86 position: relative !important;
87 - width: 60%; 87 + width: 100%;
88 height: auto; 88 height: auto;
89 padding: 0; 89 padding: 0;
90 font-size: 14px; 90 font-size: 14px;
@@ -168,7 +168,7 @@ @@ -168,7 +168,7 @@
168 z-index: 5; 168 z-index: 5;
169 position: absolute; 169 position: absolute;
170 right: 3px; 170 right: 3px;
171 - top: 3px; 171 + bottom: 3px;
172 width: 24px; 172 width: 24px;
173 height: 24px; 173 height: 24px;
174 opacity: 0.6; 174 opacity: 0.6;
@@ -222,7 +222,7 @@ @@ -222,7 +222,7 @@
222 border-radius: 5px; 222 border-radius: 5px;
223 height: 276px; 223 height: 276px;
224 width: 316px; 224 width: 316px;
225 - top: -15px; 225 + bottom: 0px;
226 right: -15px; 226 right: -15px;
227 z-index: 90; 227 z-index: 90;
228 -moz-transition: all 0.25s ease-in-out; 228 -moz-transition: all 0.25s ease-in-out;