Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat_lung
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanpeng
wechat_lung
Commits
278b9423
Commit
278b9423
authored
Oct 23, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'添加发帖需要审核功能'
parent
8ea9d6ef
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
35 deletions
+79
-35
myCardList.css
medtap_bbs_lung/css/myCardList.css
+1
-1
myCardList.js
medtap_bbs_lung/javaScript/myCardList.js
+75
-30
newCard.js
medtap_bbs_lung/javaScript/newCard.js
+2
-2
newCard.html
medtap_bbs_lung/pages/newCard.html
+1
-1
freeChat.js
wechat_lung_chat/javaScript/freeChat.js
+0
-1
No files found.
medtap_bbs_lung/css/myCardList.css
View file @
278b9423
...
...
@@ -176,7 +176,7 @@ body {
color
:
#666
;
}
.litst_item_headers_tools
{
padding-top
:
0.
46
rem
;
padding-top
:
0.
3
rem
;
float
:
right
;
}
.litst_item_headers_tools
.tools
img
{
...
...
medtap_bbs_lung/javaScript/myCardList.js
View file @
278b9423
...
...
@@ -162,9 +162,51 @@ define(['zepto', 'medtap'], function($, medtap) {
$
(
'.no_list'
).
hide
();
myCard
.
hasMore
=
true
;
var
str
=
''
;
// 新加发帖审核部分条件字符串
// 审核通过显示删除和编辑 对应字段 status'审核状态(2:审核拒绝,1:已审核;0:未审核)
var
editIsshow
=
'<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>'
// 状态0
var
wartStr
=
'<div class="litst_item_headers_tools clearfix">'
+
'<p>审核中</p>'
+
'</div>'
// 状态2
var
refuseStr
=
'<div class="litst_item_headers_tools clearfix">'
+
'<p>审核未通过,请您修改或删除</p>'
+
'<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>'
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
)
{
var
picUrl
=
list
[
i
].
picUrls
||
''
;
//单张
// 最终显示的内容结构字符串
var
showStr
=
''
// 要显示的条件判断语句
switch
(
list
[
i
].
status
){
case
0
:
showStr
=
wartStr
break
;
case
1
:
showStr
=
editIsshow
break
;
case
2
:
showStr
=
refuseStr
break
;
}
if
(
picUrl
.
length
!=
0
&&
picUrl
.
length
<
2
)
{
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishId
+
'">'
+
'<div class="list_item_header clearfix">'
+
...
...
@@ -173,16 +215,17 @@ define(['zepto', 'medtap'], function($, medtap) {
'<p class="user_name">'
+
list
[
i
].
nickname
+
'</p>'
+
'<p class="txt_gray post_card_time">'
+
list
[
i
].
updateTime
.
substring
(
5
,
16
)
+
'</p>'
+
'</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>'
+
// '<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
+
'</div>'
+
'<div class="list_item_content">'
+
'<div class="list_item_content_desc">'
+
...
...
@@ -219,16 +262,17 @@ define(['zepto', 'medtap'], function($, medtap) {
'<p class="user_name">'
+
list
[
i
].
nickname
+
'</p>'
+
'<p class="txt_gray post_card_time">'
+
list
[
i
].
updateTime
.
substring
(
5
,
16
)
+
'</p>'
+
'</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>'
+
// '<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
+
'</div>'
+
'<div class="list_item_content">'
+
'<div class="list_item_content_desc">'
+
...
...
@@ -261,16 +305,17 @@ define(['zepto', 'medtap'], function($, medtap) {
'<p class="user_name">'
+
list
[
i
].
nickname
+
'</p>'
+
'<p class="txt_gray post_card_time">'
+
list
[
i
].
updateTime
.
substring
(
5
,
16
)
+
'</p>'
+
'</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>'
+
// '<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
+
'</div>'
+
'<div class="list_item_content">'
+
'<div class="list_item_content_desc">'
+
...
...
medtap_bbs_lung/javaScript/newCard.js
View file @
278b9423
...
...
@@ -159,7 +159,7 @@ define(['zepto', 'medtap'], function($, medtap) {
if
(
res
.
success
==
true
)
{
setTimeout
(
function
()
{
medtap
.
toast
({
message
:
'发布成功'
,
message
:
'发布成功
!请等待审核
'
,
time
:
2000
})
setTimeout
(
function
(){
...
...
@@ -200,7 +200,7 @@ define(['zepto', 'medtap'], function($, medtap) {
if
(
res
.
success
==
true
)
{
setTimeout
(
function
()
{
medtap
.
toast
({
message
:
'发布成功'
,
message
:
'发布成功
!请等待审核
'
,
time
:
2000
})
setTimeout
(
function
(){
...
...
medtap_bbs_lung/pages/newCard.html
View file @
278b9423
...
...
@@ -32,7 +32,7 @@
<body>
<div
id=
"content"
>
<div
class=
"card_info"
>
<textarea
rows=
""
cols=
""
placeholder=
"请输入内容"
class=
"card_content"
></textarea>
<textarea
rows=
""
cols=
""
placeholder=
"请输入内容"
class=
"card_content"
maxlength=
"300"
></textarea>
</div>
<div
class=
"image_info clearfix"
>
<div
class=
"image_upload"
id=
"upload"
>
...
...
wechat_lung_chat/javaScript/freeChat.js
View file @
278b9423
...
...
@@ -291,7 +291,6 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
orderSn
:
''
},
success
:
function
(
res
)
{
console
.
log
(
'消息列表'
,
res
)
medtap
.
loading
(
0
);
var
record
=
res
.
content
.
list
;
var
html
=
''
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment