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
78cf55c2
Commit
78cf55c2
authored
Oct 18, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改了点击回复出现空白页面问题'
parent
db33be67
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
21 deletions
+28
-21
myCardList.js
medtap_bbs_lung/javaScript/myCardList.js
+14
-12
newCard.js
medtap_bbs_lung/javaScript/newCard.js
+6
-1
freeChat.css
wechat_lung_chat/css/freeChat.css
+2
-2
freeChat.js
wechat_lung_chat/javaScript/freeChat.js
+6
-6
No files found.
medtap_bbs_lung/javaScript/myCardList.js
View file @
78cf55c2
...
...
@@ -7,6 +7,7 @@ define(['zepto', 'medtap'], function($, medtap) {
init
:
function
()
{
myCard
.
getUserInfo
();
myCard
.
getMyCard
();
// myCard.getMyReply();
myCard
.
bindEve
();
myCard
.
getWechatTicket
();
...
...
@@ -139,7 +140,7 @@ define(['zepto', 'medtap'], function($, medtap) {
offset
:
myCard
.
offset
},
success
:
function
(
res
)
{
console
.
log
(
'
我的帖子
'
,
res
)
console
.
log
(
'
获取我的帖子数据
'
,
res
)
medtap
.
loading
(
0
);
if
(
res
.
success
==
true
)
{
var
list
=
res
.
content
.
list
;
...
...
@@ -165,7 +166,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var
picUrl
=
list
[
i
].
picUrls
||
''
;
//单张
if
(
picUrl
.
length
!=
0
&&
picUrl
.
length
<
2
)
{
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishI
d
+
'">'
+
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
i
d
+
'">'
+
'<div class="list_item_header clearfix">'
+
'<img src="'
+
list
[
i
].
profile
+
'" class="user_profile">'
+
'<div class="user_info">'
+
...
...
@@ -253,7 +254,7 @@ define(['zepto', 'medtap'], function($, medtap) {
'</div>'
+
'</div>'
;
}
else
{
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
publishI
d
+
'">'
+
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
i
d
+
'">'
+
'<div class="list_item_header clearfix">'
+
'<img src="'
+
list
[
i
].
profile
+
'" class="user_profile">'
+
'<div class="user_info">'
+
...
...
@@ -303,6 +304,7 @@ define(['zepto', 'medtap'], function($, medtap) {
$
(
'.delete_btn'
).
on
(
'click'
,
function
(
e
)
{
e
.
stopPropagation
();
var
id
=
$
(
this
).
parents
(
'.list_item'
).
attr
(
'data-id'
);
console
.
log
(
id
)
$
(
'#showDialog'
).
show
();
$
(
'.dialog-content-bd'
).
html
(
'确定要删除这条帖子吗?'
)
$
(
'.dialog-btn-confirm'
).
on
(
'click'
,
function
()
{
...
...
@@ -375,7 +377,7 @@ define(['zepto', 'medtap'], function($, medtap) {
if
(
picUrl
.
length
!=
0
&&
picUrl
.
length
<
2
)
{
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
i
d
+
list
[
i
].
publishI
d
+
'">'
+
'<div class="list_item_header clearfix">'
+
'<img src="'
+
...
...
@@ -439,7 +441,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
i
d
+
list
[
i
].
publishI
d
+
'">'
+
'<div class="list_item_header clearfix">'
+
'<img src="'
+
...
...
@@ -496,7 +498,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
else
{
str
+=
'<div class="list_item" data-id="'
+
list
[
i
].
i
d
+
list
[
i
].
publishI
d
+
'">'
+
'<div class="list_item_header clearfix">'
+
'<img src="'
+
...
...
@@ -568,12 +570,12 @@ define(['zepto', 'medtap'], function($, medtap) {
$
(
'#showDialog'
).
hide
();
});
});
//帖子详情
$
(
'.list_item'
).
on
(
'click'
,
function
(
e
)
{
e
.
stopPropagation
();
var
id
=
$
(
this
).
attr
(
'data-id'
);
medtap
.
pushWindow
(
'cardDetail.html?cardId='
+
id
);
});
//帖子详情
$
(
'.list_item'
).
on
(
'click'
,
function
(
e
)
{
e
.
stopPropagation
();
var
id
=
$
(
this
).
attr
(
'data-id'
);
medtap
.
pushWindow
(
'cardDetail.html?cardId='
+
id
);
})
myCard
.
previewImage
();
}
...
...
medtap_bbs_lung/javaScript/newCard.js
View file @
78cf55c2
...
...
@@ -124,6 +124,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var
res
=
data
.
content
;
var
imgKey
=
res
.
ossKey
;
newCard
.
imgList
.
push
(
imgKey
);
console
.
log
(
'上传后图片的imgKey'
,
imgKey
)
var
html
=
'<div class="image_files_item">'
+
'<img src="'
+
localId
+
'" class="image_files_img" imgkey="'
+
imgKey
+
'">'
+
'<img src="../images/post_delete_btn@2x.png" class="image_del" >'
+
...
...
@@ -138,9 +139,11 @@ define(['zepto', 'medtap'], function($, medtap) {
var
urls
=
[],
picUrl
=
""
;
[].
forEach
.
call
(
$
(
'#ImgUp .image_files_img'
),
function
(
item
)
{
alert
(
$
(
item
).
attr
(
'imgkey'
))
urls
.
push
(
$
(
item
).
attr
(
'imgkey'
));
});
var
picUrl
=
urls
.
join
(
','
);
// console.log('新建的图片数据',picUrl)
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://testdevgw.medtap.cn/operation/pubbbs/publish'
,
...
...
@@ -180,6 +183,7 @@ define(['zepto', 'medtap'], function($, medtap) {
urls
.
push
(
$
(
item
).
attr
(
'imgkey'
));
});
var
picUrl
=
urls
.
join
(
','
);
// console.log('更新的图片数据',picUrl)
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://testdevgw.medtap.cn/operation/pubbbs/publish/mineUpdate'
,
...
...
@@ -192,6 +196,7 @@ define(['zepto', 'medtap'], function($, medtap) {
picUrls
:
picUrl
},
success
:
function
(
res
)
{
// console.log(res)
medtap
.
loading
(
0
);
if
(
res
.
success
==
true
)
{
setTimeout
(
function
()
{
...
...
@@ -200,7 +205,7 @@ define(['zepto', 'medtap'], function($, medtap) {
time
:
2000
})
setTimeout
(
function
(){
//medtap.pushWindow('myCardList.html');
//
medtap.pushWindow('myCardList.html');
window
.
history
.
go
(
-
1
)
},
1000
)
},
1000
)
...
...
wechat_lung_chat/css/freeChat.css
View file @
78cf55c2
...
...
@@ -139,8 +139,8 @@ body {
}
/* 图片消息中图片的大小*/
.chat_nopadding
img
{
height
:
1.5
rem
;
width
:
2rem
;
height
:
2
rem
;
/* width: 2rem; */
}
.chat_message
{
...
...
wechat_lung_chat/javaScript/freeChat.js
View file @
78cf55c2
...
...
@@ -342,9 +342,9 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
chat
.
doctorProfile
+
'" class="chat_profile from_profile">'
+
'<div class="chat_message_warp">'
+
'<p class="chat_from_name">'
+
chat
.
doctorName
+
'医生</p>'
+
//
'<p class="chat_from_name">' +
//
chat.doctorName +
//
'医生</p>' +
'<div class="chat_message chat_message_from">'
+
record
[
i
].
content
+
'</div>'
+
...
...
@@ -447,9 +447,9 @@ define([ 'zepto', 'medtap' ], function($, medtap) {
chat
.
doctorProfile
+
'" class="chat_profile from_profile">'
+
'<div class="chat_message_warp">'
+
'<p class="chat_from_name">'
+
chat
.
doctorName
+
'医生</p>'
+
//
'<p class="chat_from_name">' +
//
chat.doctorName +
//
'医生</p>' +
'<div class="chat_message chat_message_from chat_nopadding">'
+
// 图片消息
'<img src="'
+
...
...
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