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
72e76072
Commit
72e76072
authored
Oct 24, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改肺癌靶向论坛添加论坛审批'
parent
304eba15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
37 deletions
+70
-37
cardDetail.css
medtap_bbs_lung/css/cardDetail.css
+10
-4
myCardList.css
medtap_bbs_lung/css/myCardList.css
+23
-1
cardDetail.js
medtap_bbs_lung/javaScript/cardDetail.js
+15
-0
myCardList.js
medtap_bbs_lung/javaScript/myCardList.js
+18
-28
cardDetail.html
medtap_bbs_lung/pages/cardDetail.html
+4
-4
No files found.
medtap_bbs_lung/css/cardDetail.css
View file @
72e76072
...
...
@@ -7,12 +7,18 @@ body {
font-size
:
0.32rem
;
color
:
#333333
;
}
/* 新增加根据帖子审批状态显示与隐藏部件 */
.card_hide
{
display
:
none
!important
;
/* visibility: hidden; */
}
.card_show
{
display
:
block
!important
;
}
.card_content
{
padding
:
0.4rem
0.32rem
;
background
:
#FFFFFF
;
}
.card_content_header
.user_profile
{
width
:
0.72rem
;
height
:
0.72rem
;
...
...
@@ -92,7 +98,7 @@ body {
margin-left
:
0.4rem
;
}
.fabulous
{
div
.fabulous.clearfix
{
width
:
2.8rem
;
height
:
0.64rem
;
background
:
#37D488
;
...
...
@@ -102,7 +108,7 @@ body {
line-height
:
0.64rem
;
margin-left
:
2.02rem
;
margin-top
:
0.42rem
;
display
:
none
;
display
:
none
;
}
.fabulous_icon
{
...
...
medtap_bbs_lung/css/myCardList.css
View file @
72e76072
...
...
@@ -106,10 +106,32 @@ body {
.list_item_content_img
{
margin-top
:
0.3rem
;
}
.list_item_content_img
img
{
width
:
2rem
!important
;
height
:
auto
!important
;
}
.list_item_content_imgMore
{
margin-top
:
0.3rem
;
}
.waitStr
{
padding-top
:
0.2rem
;
font-size
:
0.25rem
;
color
:
#F8B15B
;
font-weight
:
600
;
}
.show_refuseStr
{
padding-top
:
0.2rem
;
font-size
:
0.25rem
;
color
:
#F76C26
;
font-weight
:
600
;
}
.show_refuseStr
span
{
font-size
:
0.25rem
;
color
:
#666
;
}
.bottom_show
{
display
:
block
!important
;
}
.list_item_content_img
img
{
width
:
100%
;
height
:
2.72rem
;
...
...
medtap_bbs_lung/javaScript/cardDetail.js
View file @
72e76072
...
...
@@ -8,6 +8,8 @@ define(['zepto', 'medtap'], function($, medtap) {
upCount
:
0
,
agencyId
:
''
,
shareId
:
medtap
.
getRequest
(
'agencyId'
),
// 贴子审批状态
status
:
medtap
.
getRequest
(
'status'
),
init
:
function
()
{
card
.
getShareInfoByToken
();
card
.
getCardDetail
();
...
...
@@ -64,6 +66,17 @@ define(['zepto', 'medtap'], function($, medtap) {
}
}
},
isShow
:
function
(){
if
(
card
.
status
==
'1'
){
$
(
'.card_content_header'
).
addClass
(
'card_show'
)
$
(
'.card_tools'
).
addClass
(
'card_show'
)
$
(
'.comment_warp'
).
addClass
(
'card_show'
)
$
(
'.footer_btn'
).
addClass
(
'card_show'
)
$
(
'.card_content .fabulous'
).
show
()
}
else
{
$
(
'.card_content .fabulous'
).
addClass
(
'card_hide'
)
}
},
bindEve
:
function
()
{
//为TA加油
$
(
'.fabulous'
).
on
(
'click'
,
function
()
{
...
...
@@ -524,5 +537,7 @@ define(['zepto', 'medtap'], function($, medtap) {
})
}
}
card
.
isShow
();
card
.
init
();
})
medtap_bbs_lung/javaScript/myCardList.js
View file @
72e76072
...
...
@@ -175,40 +175,36 @@ define(['zepto', 'medtap'], function($, medtap) {
'</div>'
+
'</div>'
// 状态0
var
waitStr
=
'<div
class="litst_item_headers_tools clearfix"
>'
+
var
waitStr
=
'<div>'
+
'<p class="waitStr">审核中</p>'
+
'</div>'
// 状态2
var
refuseStr
=
'<div class="litst_item_headers_tools clearfix">'
+
'<p class="refuseStr">审核未通过</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
=
''
// 底部显示审批的结果
var
showBottom
=
''
// 要显示的条件判断语句
switch
(
list
[
i
].
status
){
case
0
:
showStr
=
waitStr
showStr
=
''
showBottom
=
waitStr
break
;
case
1
:
showStr
=
editIsshow
showBottom
=
''
break
;
case
2
:
showStr
=
refuseStr
showStr
=
''
showBottom
=
'<div class="show_refuseStr">'
+
'<p>审核未通过: <span> '
+
list
[
i
].
rejectRemark
+
'</span> </p>'
+
'</div>'
break
;
}
if
(
picUrl
.
length
!=
0
&&
picUrl
.
length
<
2
)
{
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishId
+
'">'
+
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishId
+
'"
data-status="'
+
list
[
i
].
status
+
'"
>'
+
'<div class="list_item_header clearfix">'
+
'<img src="'
+
list
[
i
].
profile
+
'" class="user_profile">'
+
'<div class="user_info">'
+
...
...
@@ -239,13 +235,14 @@ define(['zepto', 'medtap'], function($, medtap) {
'<span class="likeNum">'
+
list
[
i
].
upCount
+
'</span>'
+
'</div>'
+
'</div>'
+
showBottom
+
'</div>'
;
}
else
if
(
picUrl
.
length
>
1
)
{
//多张
var
imgStr
=
''
for
(
var
j
=
0
;
j
<
picUrl
.
length
;
j
++
)
{
imgStr
+=
'<img src="'
+
picUrl
[
j
]
+
'">'
}
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishId
+
'">'
+
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishId
+
'"
data-status="'
+
list
[
i
].
status
+
'"
>'
+
'<div class="list_item_header clearfix">'
+
'<img src="'
+
list
[
i
].
profile
+
'" class="user_profile">'
+
'<div class="user_info">'
+
...
...
@@ -276,25 +273,16 @@ define(['zepto', 'medtap'], function($, medtap) {
'</div>'
+
'</div>'
+
'</div>'
+
showBottom
+
'</div>'
;
}
else
{
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishId
+
'">'
+
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishId
+
'"
data-status="'
+
list
[
i
].
status
+
'"
>'
+
'<div class="list_item_header clearfix">'
+
'<img src="'
+
list
[
i
].
profile
+
'" class="user_profile">'
+
'<div class="user_info">'
+
'<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>' +
showStr
+
'</div>'
+
'<div class="list_item_content">'
+
...
...
@@ -316,6 +304,7 @@ define(['zepto', 'medtap'], function($, medtap) {
'<span class="likeNum">'
+
list
[
i
].
upCount
+
'</span>'
+
'</div>'
+
'</div>'
+
showBottom
+
'</div>'
;
}
}
...
...
@@ -352,7 +341,8 @@ define(['zepto', 'medtap'], function($, medtap) {
$
(
'.list_item'
).
on
(
'click'
,
function
(
e
){
e
.
stopPropagation
();
var
id
=
$
(
this
).
attr
(
'data-id'
);
medtap
.
pushWindow
(
'cardDetail.html?cardId='
+
id
);
var
status
=
$
(
this
).
attr
(
'data-status'
);
medtap
.
pushWindow
(
'cardDetail.html?cardId='
+
id
+
'&status='
+
status
);
})
myCard
.
previewImage
();
...
...
medtap_bbs_lung/pages/cardDetail.html
View file @
72e76072
...
...
@@ -32,7 +32,7 @@
<body>
<div
id=
"content"
>
<div
class=
"card_content"
>
<div
class=
"card_content_header clearfix"
>
<div
class=
"card_content_header c
ard_hide c
learfix"
>
<img
src=
""
class=
"user_profile"
>
<div
class=
"user_info"
>
<p
class=
"user_name"
></p>
...
...
@@ -44,7 +44,7 @@
<div
class=
"cardImage clearfix"
>
</div>
<div
class=
"card_tools clearfix"
>
<div
class=
"card_tools c
ard_hide c
learfix"
>
<div
class=
"tools clearfix seen"
>
<img
src=
"../images/post_seen_png@2x.png"
>
<span
class=
"seenNum txt_gray"
></span>
...
...
@@ -63,7 +63,7 @@
<span
class=
"fabulous_desc"
></span>
</div>
</div>
<div
class=
"comment_warp"
>
<div
class=
"comment_warp
card_hide
"
>
<div
class=
"comment_header"
>
<span
class=
"comment_header_title"
>
评论
</span>
<span
class=
"comment_header_num"
></span>
...
...
@@ -72,7 +72,7 @@
</div>
</div>
<div
class=
"footer_btn"
>
<div
class=
"footer_btn
card_hide
"
>
<div
class=
"btn_do_comment"
>
写评论
</div>
...
...
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