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
8c6bf1e2
Commit
8c6bf1e2
authored
Aug 22, 2019
by
hanpeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-mark-社区详情,帖子详情,点赞
parent
0d70eb77
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
100 deletions
+82
-100
index.html
medtap_bbs_lung/index.html
+3
-94
cardDetail.js
medtap_bbs_lung/javaScript/cardDetail.js
+55
-0
index.js
medtap_bbs_lung/javaScript/index.js
+0
-0
cardDetail.html
medtap_bbs_lung/pages/cardDetail.html
+24
-6
No files found.
medtap_bbs_lung/index.html
View file @
8c6bf1e2
...
...
@@ -48,10 +48,10 @@
</div>
</div>
<div
class=
"silder_tap clearfix"
>
<div
class=
"silder_tap_item"
id=
"recommend"
>
<div
class=
"silder_tap_item
on
"
id=
"recommend"
>
推荐
</div>
<div
class=
"silder_tap_item
on
"
id=
"newest"
>
<div
class=
"silder_tap_item"
id=
"newest"
>
最新
</div>
<!-- <div class="silder_tap_item" id="follow">
...
...
@@ -62,98 +62,7 @@
</div> -->
</div>
<div
class=
"list_warp"
>
<div
class=
"list_item"
>
<div
class=
"list_item_header clearfix"
>
<img
src=
"images/post_title_bg@2x.png"
class=
"user_profile"
>
<div
class=
"user_info"
>
<p
class=
"user_name"
>
张天问
</p>
<p
class=
"txt_gray post_card_time"
>
07-08 11:12
</p>
</div>
</div>
<div
class=
"list_item_content"
>
<div
class=
"list_item_content_desc"
>
大家好,我是胃癌患者,现在肺转移,上星期开始胸闷胸痛伴有咳嗽,昨天开始胸痛感觉好些,可是咳嗽和胸闷还是一样,怎么处理好?医生说等水多了抽掉一部分,然后再去医院做检查什么的
</div>
<div
class=
"list_item_content_img"
>
<img
src=
"images/post_title_bg@2x.png"
>
</div>
</div>
<div
class=
"list_item_tools clearfix"
>
<div
class=
"tools clearfix seen"
>
<img
src=
"images/post_seen_png@2x.png"
>
<span
class=
"seenNum"
>
246
</span>
</div>
<div
class=
"tools clearfix reply"
>
<img
src=
"images/post_reply_png@2x.png"
>
<span
class=
"replyNum"
>
12
</span>
</div>
<div
class=
"tools clearfix like"
>
<img
src=
"images/post_unlike_png@2x.png"
>
<span
class=
"likeNum"
>
12
</span>
</div>
</div>
</div>
<div
class=
"list_item"
>
<div
class=
"list_item_header clearfix"
>
<img
src=
"images/post_title_bg@2x.png"
class=
"user_profile"
>
<div
class=
"user_info"
>
<p
class=
"user_name"
>
张天问
</p>
<p
class=
"txt_gray post_card_time"
>
07-08 11:12
</p>
</div>
</div>
<div
class=
"list_item_content"
>
<div
class=
"list_item_content_desc"
>
你好
</div>
</div>
<div
class=
"list_item_tools clearfix"
>
<div
class=
"tools clearfix seen"
>
<img
src=
"images/post_seen_png@2x.png"
>
<span
class=
"seenNum"
>
246
</span>
</div>
<div
class=
"tools clearfix reply"
>
<img
src=
"images/post_reply_png@2x.png"
>
<span
class=
"replyNum"
>
12
</span>
</div>
<div
class=
"tools clearfix like"
>
<img
src=
"images/post_unlike_png@2x.png"
>
<span
class=
"likeNum"
>
12
</span>
</div>
</div>
</div>
<div
class=
"list_item"
>
<div
class=
"list_item_header clearfix"
>
<img
src=
"images/post_title_bg@2x.png"
class=
"user_profile"
>
<div
class=
"user_info"
>
<p
class=
"user_name"
>
张天问
</p>
<p
class=
"txt_gray post_card_time"
>
07-08 11:12
</p>
</div>
</div>
<div
class=
"list_item_content"
>
<div
class=
"list_item_content_desc"
>
大家好,我是胃癌患者,现在肺转移,上星期开始胸闷胸痛伴有咳嗽,昨天开始胸痛感觉好些,可是咳嗽和胸闷还是一样,怎么处理好?医生说等水多了抽掉一部分,然后再去医院做检查什么的
</div>
<div
class=
"list_item_content_imgMore clearfix"
>
<img
src=
"images/post_title_bg@2x.png"
>
<img
src=
"images/post_title_bg@2x.png"
>
<img
src=
"images/post_title_bg@2x.png"
>
</div>
<div
class=
"list_item_tools clearfix"
>
<div
class=
"tools clearfix seen"
>
<img
src=
"images/post_seen_png@2x.png"
>
<span
class=
"seenNum"
>
246
</span>
</div>
<div
class=
"tools clearfix reply"
>
<img
src=
"images/post_reply_png@2x.png"
>
<span
class=
"replyNum"
>
12
</span>
</div>
<div
class=
"tools clearfix like"
>
<img
src=
"images/post_unlike_png@2x.png"
>
<span
class=
"likeNum"
>
12
</span>
</div>
</div>
</div>
</div>
</div>
<div
class=
"change_name_warp"
>
<div
class=
"chang_name_header"
>
...
...
medtap_bbs_lung/javaScript/cardDetail.js
0 → 100644
View file @
8c6bf1e2
define
([
'zepto'
,
'medtap'
],
function
(
$
,
medtap
){
var
card
=
{
cardId
:
medtap
.
getRequest
(
'cardId'
),
limit
:
10
,
offset
:
1
,
hasMore
:
false
,
firstLoad
:
false
,
init
:
function
(){
card
.
getCardDetail
();
card
.
getCommentList
();
},
getCardDetail
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://devgw.medtap.cn//operation/pubbbs/publish/'
+
card
.
cardId
,
type
:
'GET'
,
async
:
false
,
data
:{
},
success
:
function
(
res
){
medtap
.
loading
(
0
);
if
(
res
.
success
==
true
){
var
detailInfo
=
res
.
content
.
publish
;
$
(
'.user_name'
).
html
(
detailInfo
.
nickname
);
$
(
'.card_time'
).
html
(
detailInfo
.
updateTime
.
substring
(
5
,
16
));
$
(
'.user_profile'
).
attr
(
'src'
,
detailInfo
.
profile
);
$
(
'.cardDetail'
).
html
(
detailInfo
.
content
);
$
(
'.seenNum'
).
html
(
detailInfo
.
viewCount
);
$
(
'.replyNum'
).
html
(
detailInfo
.
commentCount
);
}
}
})
},
//获取评论列表
getCommentList
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://devgw.medtap.cn/operation/pubbbs/publishComment'
,
type
:
'GET'
,
async
:
false
,
data
:
{
offset
:
card
.
offset
,
limit
:
card
.
limit
,
publishId
:
card
.
cardId
},
success
:
function
(
res
){
medtap
.
loading
(
0
);
}
})
}
}
card
.
init
();
})
\ No newline at end of file
medtap_bbs_lung/javaScript/index.js
View file @
8c6bf1e2
This diff is collapsed.
Click to expand it.
medtap_bbs_lung/pages/cardDetail.html
View file @
8c6bf1e2
...
...
@@ -11,19 +11,34 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../css/cardDetail.css"
/>
<script
src=
"https://review-formal.iplusmed.com/Common/javaScript/calRem.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<title>
详情
</title>
<script
src=
"https://review-formal.iplusmed.com/Common/javaScript/require.min.js"
></script>
<script
type=
"text/javascript"
>
require
.
config
({
baseUrl
:
"./"
,
paths
:
{
"zepto"
:
"https://review-formal.iplusmed.com/Common/javaScript/zepto.min"
,
"medtap"
:
"https://review-formal.iplusmed.com/Common/javaScript/medtap_core_wx"
,
"md5"
:
"https://review-formal.iplusmed.com/Common/javaScript/md5.min"
},
shim
:
{
"zepto"
:
{
exports
:
"$"
}
}
});
</script>
</head>
<body>
<div
id=
"content"
>
<div
class=
"card_content"
>
<div
class=
"card_content_header clearfix"
>
<img
src=
"
../images/post_title_bg@2x.png
"
class=
"user_profile"
>
<img
src=
""
class=
"user_profile"
>
<div
class=
"user_info"
>
<p
class=
"user_name"
>
明天天晴
</p>
<p
class=
"txt_gray card_time"
>
07-08 11:12
</p>
<p
class=
"user_name"
></p>
<p
class=
"txt_gray card_time"
></p>
</div>
</div>
<div
class=
"cardDetail"
>
我老婆45岁肺腺癌,查出来就晚期了,目前胸口也一直隐隐作痛,不是很想做化疗。也不是很想做手术。想问问有啥好的中药可以吃啊,效果好的发给我。非常感谢大家的帮忙,我们现在很无助,不知该怎么办。
</div>
<div
class=
"cardImage clearfix"
>
<img
src=
"../images/post_title_bg@2x.png"
>
...
...
@@ -34,11 +49,11 @@
<div
class=
"card_tools clearfix"
>
<div
class=
"tools clearfix seen"
>
<img
src=
"../images/post_seen_png@2x.png"
>
<span
class=
"seenNum txt_gray"
>
246
</span>
<span
class=
"seenNum txt_gray"
></span>
</div>
<div
class=
"tools clearfix reply"
>
<img
src=
"../images/post_reply_png@2x.png"
>
<span
class=
"replyNum txt_gray"
>
12
</span>
<span
class=
"replyNum txt_gray"
></span>
</div>
</div>
<div
class=
"fabulous clearfix"
>
...
...
@@ -119,4 +134,7 @@
</div>
</div>
</body>
<script
type=
"text/javascript"
>
require
([
'../javaScript/cardDetail.js'
])
</script>
</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