Commit 4f2a4cf6 by zujiaozhang

'完善新加帖子审批'

parent 278b9423
...@@ -179,6 +179,21 @@ body { ...@@ -179,6 +179,21 @@ body {
padding-top:0.3rem; padding-top:0.3rem;
float:right; float:right;
} }
/* 新加审批字段样式 */
.litst_item_headers_tools .waitStr{
font-size: 0.2rem;
color:#F76C26;
font-weight: 600;
text-align: right;
padding-bottom: 0.15rem;
}
.litst_item_headers_tools .refuseStr {
font-size: 0.2rem;
color:#f74526;
font-weight: 600;
text-align: right;
padding-bottom: 0.15rem;
}
.litst_item_headers_tools .tools img{ .litst_item_headers_tools .tools img{
width:0.36rem; width:0.36rem;
height:0.36rem; height:0.36rem;
......
...@@ -10,13 +10,18 @@ body{ ...@@ -10,13 +10,18 @@ body{
width: 100%; width: 100%;
min-height: 7rem; min-height: 7rem;
font-size: 0.32rem; font-size: 0.32rem;
padding: 0.4rem; padding: 0.4rem 0.4rem 0;
font-family: PingFangSC; font-family: PingFangSC;
font-weight: 400; font-weight: 400;
line-height: 0.5rem; line-height: 0.5rem;
border: none; border: none;
} }
.card_info .real_time_StrNum{
width: 100%;
text-align: right;
font-size: 0.2rem;
color:#666;
}
.image_info { .image_info {
padding: 0.4rem; padding: 0.4rem;
} }
......
...@@ -175,12 +175,12 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -175,12 +175,12 @@ define(['zepto', 'medtap'], function($, medtap) {
'</div>' + '</div>' +
'</div>' '</div>'
// 状态0 // 状态0
var wartStr = '<div class="litst_item_headers_tools clearfix">' + var waitStr = '<div class="litst_item_headers_tools clearfix">' +
'<p>审核中</p>' + '<p class="waitStr">审核中</p>' +
'</div>' '</div>'
// 状态2 // 状态2
var refuseStr = '<div class="litst_item_headers_tools clearfix">' + var refuseStr = '<div class="litst_item_headers_tools clearfix">' +
'<p>审核未通过,请您修改或删除</p>' + '<p class="refuseStr">审核未通过</p>' +
'<div class="tools clearfix delete_btn">' + '<div class="tools clearfix delete_btn">' +
'<img src="../images/post_ldelete_buttn@2x.png">' + '<img src="../images/post_ldelete_buttn@2x.png">' +
'<span class="tools_title">删除</span>' + '<span class="tools_title">删除</span>' +
...@@ -198,7 +198,7 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -198,7 +198,7 @@ define(['zepto', 'medtap'], function($, medtap) {
// 要显示的条件判断语句 // 要显示的条件判断语句
switch (list[i].status){ switch (list[i].status){
case 0: case 0:
showStr = wartStr showStr = waitStr
break; break;
case 1: case 1:
showStr = editIsshow showStr = editIsshow
...@@ -215,16 +215,6 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -215,16 +215,6 @@ define(['zepto', 'medtap'], function($, medtap) {
'<p class="user_name">' + list[i].nickname + '</p>' + '<p class="user_name">' + list[i].nickname + '</p>' +
'<p class="txt_gray post_card_time">' + list[i].updateTime.substring(5, 16) + '</p>' + '<p class="txt_gray post_card_time">' + list[i].updateTime.substring(5, 16) + '</p>' +
'</div>' + '</div>' +
// '<div class="litst_item_headers_tools clearfix">' +
// '<div class="tools clearfix delete_btn">' +
// '<img src="../images/post_ldelete_buttn@2x.png">' +
// '<span class="tools_title">删除</span>' +
// '</div>' +
// '<div class="tools clearfix editor_btn">' +
// '<img src="../images/post_leditor_buttn@2x.png">' +
// '<span class="tools_title">编辑</span>' +
// '</div>' +
// '</div>' +
showStr + showStr +
'</div>' + '</div>' +
'<div class="list_item_content">' + '<div class="list_item_content">' +
...@@ -262,16 +252,6 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -262,16 +252,6 @@ define(['zepto', 'medtap'], function($, medtap) {
'<p class="user_name">' + list[i].nickname + '</p>' + '<p class="user_name">' + list[i].nickname + '</p>' +
'<p class="txt_gray post_card_time">' + list[i].updateTime.substring(5, 16) + '</p>' + '<p class="txt_gray post_card_time">' + list[i].updateTime.substring(5, 16) + '</p>' +
'</div>' + '</div>' +
// '<div class="litst_item_headers_tools clearfix">' +
// '<div class="tools clearfix delete_btn">' +
// '<img src="../images/post_ldelete_buttn@2x.png">' +
// '<span class="tools_title">删除</span>' +
// '</div>' +
// '<div class="tools clearfix editor_btn">' +
// '<img src="../images/post_leditor_buttn@2x.png">' +
// '<span class="tools_title">编辑</span>' +
// '</div>' +
// '</div>' +
showStr + showStr +
'</div>' + '</div>' +
'<div class="list_item_content">' + '<div class="list_item_content">' +
......
...@@ -14,6 +14,17 @@ define(['zepto', 'medtap'], function($, medtap) { ...@@ -14,6 +14,17 @@ define(['zepto', 'medtap'], function($, medtap) {
} }
}, },
bindEve: function() { bindEve: function() {
/* 新加文本输入框字数限制与动态字数 */
$("#area").on("input propertychange", function() {
var $this = $(this),
_val = $this.val(),
count = "";
if (_val.length > 300) {
$this.val(_val.substring(0, 300));
}
count = $this.val().length;
$("#text-count").text(count);
});
$('.footer_btn').on('click', function() { $('.footer_btn').on('click', function() {
if(!newCard.cardId){ if(!newCard.cardId){
newCard.postPubbbs(); newCard.postPubbbs();
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
<body> <body>
<div id="content"> <div id="content">
<div class="card_info"> <div class="card_info">
<textarea rows="" cols="" placeholder="请输入内容" class="card_content" maxlength="300"></textarea> <textarea rows="" cols="" placeholder="请输入内容" class="card_content" maxlength="300" id="area"></textarea>
<p class='real_time_StrNum'><span id="text-count">0</span>/300</p>
</div> </div>
<div class="image_info clearfix"> <div class="image_info clearfix">
<div class="image_upload" id="upload"> <div class="image_upload" id="upload">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment