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
36ea4d3c
Commit
36ea4d3c
authored
Jan 10, 2020
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改分享帖子时间部分样式'
parent
d638d8c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
cardDetail.css
medtap_bbs_lung/css/cardDetail.css
+3
-3
cardDetailForShare.js
medtap_bbs_lung/javaScript/cardDetailForShare.js
+20
-12
No files found.
medtap_bbs_lung/css/cardDetail.css
View file @
36ea4d3c
...
...
@@ -71,11 +71,11 @@ body {
margin-right
:
0rem
;
}
.card_tools
{
padding-left
:
4.8rem
;
/* padding-left: 4.4rem; */
}
.card_tools
.tools
{
float
:
lef
t
;
float
:
righ
t
;
font-size
:
0.28rem
}
...
...
@@ -94,7 +94,7 @@ body {
}
.card_tools
.reply
{
margin-
lef
t
:
0.4rem
;
margin-
righ
t
:
0.4rem
;
}
div
.fabulous.clearfix
{
...
...
medtap_bbs_lung/javaScript/cardDetailForShare.js
View file @
36ea4d3c
...
...
@@ -13,7 +13,6 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
// 贴子审核状态
status
:
'0'
,
init
:
function
()
{
card
.
getToken
();
card
.
checkUser
();
card
.
getCardDetail
();
...
...
@@ -56,9 +55,9 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
$
(
this
).
hide
();
$
(
'.comment_btn'
).
hide
();
});
$
(
'.reply_btn'
).
on
(
'click'
,
function
()
{
$
(
'.reply_btn'
).
on
(
'click'
,
card
.
debounce
(
function
()
{
card
.
replyPublish
();
})
})
)
}
else
{
$
(
'#showDialog'
).
show
()
}
...
...
@@ -87,6 +86,17 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
}
})
},
// 防抖
debounce
:
function
(
fn
){
let
timeout
=
null
return
function
(){
clearTimeout
(
timeout
)
var
that
=
this
timeout
=
setTimeout
(
function
(){
fn
.
apply
(
that
,
arguments
)
},
1000
)
}
},
getToken
:
function
(){
localStorage
.
wxLungToken
=
''
;
medtap
.
loading
(
1
);
...
...
@@ -124,9 +134,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
wechatId
:
card
.
wechatId
},
success
:
function
(
res
){
console
.
log
(
res
)
medtap
.
loading
(
0
);
console
.
log
(
res
.
content
.
wechatUser
)
var
info
=
res
.
content
.
wechatUser
if
(
info
.
hasOwnProperty
(
'userId'
)){
card
.
userId
=
info
.
userId
...
...
@@ -283,7 +291,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
if
(
res
.
success
==
true
)
{
var
detailInfo
=
res
.
content
.
publish
;
$
(
'.user_name'
).
html
(
detailInfo
.
nickname
);
$
(
'.card_time'
).
html
(
detailInfo
.
upd
ateTime
.
substring
(
5
,
16
));
$
(
'.card_time'
).
html
(
detailInfo
.
cre
ateTime
.
substring
(
5
,
16
));
$
(
'.user_profile'
).
attr
(
'src'
,
detailInfo
.
profile
);
$
(
'.cardDetail'
).
html
(
detailInfo
.
content
);
$
(
'.seenNum'
).
html
(
detailInfo
.
viewCount
);
...
...
@@ -370,13 +378,13 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
replyList
[
i
].
content
+
'</div>'
+
'<div class="comment_info">'
+
'<span class="comment_time txt_gray">'
+
replyList
[
i
].
upd
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_time txt_gray">'
+
replyList
[
i
].
cre
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_reply_btn txt_blue">回复</span>'
+
'</div>'
+
'<div class="comment_reply" data-commentId="'
+
commentList
[
0
].
id
+
'">'
+
'<span class="comment_reply_name">'
+
commentList
[
0
].
nickname
+
':</span>'
+
'<span class="comment_reply_content">'
+
commentList
[
0
].
content
+
'</span>'
+
'<span class="comment_reply_time">'
+
commentList
[
0
].
upd
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_reply_time">'
+
commentList
[
0
].
cre
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<div class="comment_reply_more">查看全部'
+
secReplyNum
+
'条回复</div>'
+
...
...
@@ -398,13 +406,13 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
replyList
[
i
].
content
+
'</div>'
+
'<div class="comment_info">'
+
'<span class="comment_time txt_gray">'
+
replyList
[
i
].
upd
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_time txt_gray">'
+
replyList
[
i
].
cre
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_reply_btn txt_blue">回复</span>'
+
'</div>'
+
'<div class="comment_reply" data-commentId="'
+
commentList
[
i
].
id
+
'">'
+
'<span class="comment_reply_name">'
+
commentList
[
i
].
nickname
+
'</span>'
+
'<span class="comment_reply_content">'
+
commentList
[
i
].
content
+
'</span>'
+
'<span class="comment_reply_time">'
+
commentList
[
i
].
upd
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_reply_time">'
+
commentList
[
i
].
cre
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<div class="comment_reply_more">查看全部'
+
secReplyNum
+
'条回复</div>'
+
...
...
@@ -428,7 +436,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
replyList
[
i
].
content
+
'</div>'
+
'<div class="comment_info">'
+
'<span class="comment_time txt_gray">'
+
replyList
[
i
].
upd
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_time txt_gray">'
+
replyList
[
i
].
cre
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_reply_btn txt_blue">回复</span>'
+
'</div>'
+
'</div>'
;
...
...
@@ -448,7 +456,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
replyList
[
i
].
content
+
'</div>'
+
'<div class="comment_info">'
+
'<span class="comment_time txt_gray">'
+
replyList
[
i
].
upd
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_time txt_gray">'
+
replyList
[
i
].
cre
ateTime
.
substring
(
5
,
16
)
+
'</span>'
+
'<span class="comment_reply_btn txt_blue">回复</span>'
+
'</div>'
+
'</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