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
7c6e1f30
Commit
7c6e1f30
authored
Oct 29, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'聊天优化和帖子分享测试'
parent
32d6e577
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
181 additions
and
109 deletions
+181
-109
beforeSubmitForLung.js
medtap_bbs_lung/javaScript/beforeSubmitForLung.js
+1
-1
cardDetail.js
medtap_bbs_lung/javaScript/cardDetail.js
+28
-20
cardDetailForShare.js
medtap_bbs_lung/javaScript/cardDetailForShare.js
+118
-61
index.js
medtap_bbs_lung/javaScript/index.js
+7
-7
myCardList.js
medtap_bbs_lung/javaScript/myCardList.js
+8
-8
newCard.js
medtap_bbs_lung/javaScript/newCard.js
+5
-5
replyDetail.js
medtap_bbs_lung/javaScript/replyDetail.js
+3
-3
rukou.js
medtap_bbs_lung/javaScript/rukou.js
+2
-2
cardDetailForShare.html
medtap_bbs_lung/pages/cardDetailForShare.html
+1
-1
freeChat.css
wechat_lung_chat/css/freeChat.css
+6
-1
freeChat.js
wechat_lung_chat/javaScript/freeChat.js
+0
-0
freeChat.html
wechat_lung_chat/pages/freeChat.html
+2
-0
No files found.
medtap_bbs_lung/javaScript/beforeSubmitForLung.js
View file @
7c6e1f30
...
...
@@ -120,7 +120,7 @@ define(['zepto', 'https://review-formal.iplusmed.com/Common/javaScript/medtap-co
)
);
$
.
ajax
({
url
:
'https://
gateway
.medtap.cn/wechat/user/getWechatUser'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/user/getWechatUser'
,
headers
:
{
'apptype'
:
'wechat_lung'
,
'user-os'
:
'wechat'
,
...
...
medtap_bbs_lung/javaScript/cardDetail.js
View file @
7c6e1f30
...
...
@@ -117,7 +117,7 @@ define(['zepto', 'medtap'], function($, medtap) {
},
getWechatTicket
:
function
()
{
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/wechat/lung/fetchWechatTicket'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/lung/fetchWechatTicket'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -142,35 +142,44 @@ define(['zepto', 'medtap'], function($, medtap) {
})
},
share
:
function
()
{
var
desc
=
$
(
'.cardDetail'
).
text
().
substring
(
0
,
25
)
//微信分享
wx
.
ready
(
function
()
{
//分享给朋友
wx
.
onMenuShareAppMessage
({
title
:
productDetail
.
name
,
desc
:
'
'
,
// 分享描述
link
:
'https://
gateway
.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId='
+
card
.
cardId
+
title
:
'肺癌靶向家园社区'
,
desc
:
desc
+
'...
'
,
// 分享描述
link
:
'https://
testdevgw
.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId='
+
card
.
cardId
+
'&agencyId='
+
card
.
shareId
,
imgUrl
:
''
,
// 分享图标
imgUrl
:
'
https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg
'
,
// 分享图标
type
:
'link'
,
// 分享类型,music、video或link,不填默认为link
dataUrl
:
''
,
// 如果type是music或video,则要提供数据链接,默认为空
success
:
function
()
{
if
(
!
(
/iphone|ipad/gi
).
test
(
navigator
.
userAgent
))
{
medtap
.
winPop
(
'分享成功'
);
}
},
cancel
:
function
()
{
if
(
!
(
/iphone|ipad/gi
).
test
(
navigator
.
userAgent
))
{
medtap
.
winPop
(
'取消分享'
);
}
}
});
//分享到朋友圈
wx
.
onMenuShareTimeline
({
title
:
productDetail
.
name
,
// 分享标题
link
:
'https://
gateway
.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId='
+
card
.
cardId
+
title
:
'肺癌靶向家园社区'
,
// 分享标题
link
:
'https://
testdevgw
.medtap.cn/wechat/lung/oauth_stepEnd?type=BBS_LUNG_SHARE&cardId='
+
card
.
cardId
+
'&agencyId='
+
card
.
shareId
,
imgUrl
:
''
,
// 分享图标
imgUrl
:
'
https://review-formal.iplusmed.com/Common/images/bbs_logo_icon/logo_feiai_new.jpg
'
,
// 分享图标
success
:
function
()
{
if
(
!
(
/iphone|ipad/gi
).
test
(
navigator
.
userAgent
))
{
medtap
.
winPop
(
'分享成功'
);
}
},
cancel
:
function
()
{
if
(
!
(
/iphone|ipad/gi
).
test
(
navigator
.
userAgent
))
{
medtap
.
winPop
(
'取消分享'
);
}
}
});
});
...
...
@@ -194,7 +203,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getCardDetail
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publish/'
+
card
.
cardId
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publish/'
+
card
.
cardId
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -247,7 +256,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getCommentList
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishComment'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishComment'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -416,7 +425,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var
status
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publish/up'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publish/up'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -437,7 +446,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var
result
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishComment/up'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishComment/up'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -458,7 +467,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var
collectResult
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishCollect'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishCollect'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -485,7 +494,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
else
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishComment'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishComment'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -515,7 +524,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getShareInfoByToken
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/common/share/getSharerByToken'
,
url
:
'https://
testdevgw
.medtap.cn/common/share/getSharerByToken'
,
type
:
'post'
,
contentType
:
"application/json"
,
async
:
false
,
...
...
@@ -539,5 +548,4 @@ define(['zepto', 'medtap'], function($, medtap) {
}
card
.
isShow
();
card
.
init
();
})
medtap_bbs_lung/javaScript/cardDetailForShare.js
View file @
7c6e1f30
This diff is collapsed.
Click to expand it.
medtap_bbs_lung/javaScript/index.js
View file @
7c6e1f30
...
...
@@ -106,7 +106,7 @@ define(
localStorage
.
wxLungToken
=
''
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/user/auth/token'
,
url
:
'https://
testdevgw
.medtap.cn/user/auth/token'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -133,7 +133,7 @@ define(
getUserInfo
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/user/getUserDetail'
,
url
:
'https://
testdevgw
.medtap.cn/user/getUserDetail'
,
type
:
'GET'
,
async
:
false
,
data
:
{},
...
...
@@ -149,7 +149,7 @@ define(
upDateUserInfo
:
function
(
name
)
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/user/saveUserInfo'
,
url
:
'https://
testdevgw
.medtap.cn/user/saveUserInfo'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -175,7 +175,7 @@ define(
getForumInfo
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/getGruop'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/getGruop'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -204,7 +204,7 @@ define(
getForumList
:
function
(
listType
)
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publish'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publish'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -568,7 +568,7 @@ define(
var
status
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publish/up'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publish/up'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -588,7 +588,7 @@ define(
joinPublish
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/groupUser'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/groupUser'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
medtap_bbs_lung/javaScript/myCardList.js
View file @
7c6e1f30
...
...
@@ -97,7 +97,7 @@ define(['zepto', 'medtap'], function($, medtap) {
},
getWechatTicket
:
function
(){
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/wechat/lung/fetchWechatTicket'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/lung/fetchWechatTicket'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -137,7 +137,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyCard
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
"https://
gateway
.medtap.cn/operation/pubbbs/publish/mine"
,
url
:
"https://
testdevgw
.medtap.cn/operation/pubbbs/publish/mine"
,
type
:
'get'
,
async
:
false
,
data
:
{
...
...
@@ -360,7 +360,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyReply
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishComment/mine'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishComment/mine'
,
type
:
'POST'
,
async
:
true
,
contentType
:
'application/json'
,
...
...
@@ -607,7 +607,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getMyCollect
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishCollect'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishCollect'
,
type
:
'get'
,
async
:
false
,
data
:
{
...
...
@@ -792,7 +792,7 @@ define(['zepto', 'medtap'], function($, medtap) {
deleteMine
:
function
(
id
)
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publish/mineDelete'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publish/mineDelete'
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -821,7 +821,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var
collectResult
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishCollect'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishCollect'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -853,7 +853,7 @@ define(['zepto', 'medtap'], function($, medtap) {
updateNickname
:
function
(
name
){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/user/updateNickname'
,
url
:
'https://
testdevgw
.medtap.cn/user/updateNickname'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -882,7 +882,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getUserInfo
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/user/getUserDetail'
,
url
:
'https://
testdevgw
.medtap.cn/user/getUserDetail'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
medtap_bbs_lung/javaScript/newCard.js
View file @
7c6e1f30
...
...
@@ -35,7 +35,7 @@ define(['zepto', 'medtap'], function($, medtap) {
},
getWechatTicket
:
function
()
{
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/wechat/lung/fetchWechatTicket'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/lung/fetchWechatTicket'
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -117,7 +117,7 @@ define(['zepto', 'medtap'], function($, medtap) {
//上传图片
upLoadImg
:
function
(
serverId
,
localId
)
{
$
.
ajax
({
url
:
'https://
gateway
.medtap.cn/common/uploadWechatFile'
,
url
:
'https://
testdevgw
.medtap.cn/common/uploadWechatFile'
,
type
:
'POST'
,
async
:
false
,
data
:
{
...
...
@@ -156,7 +156,7 @@ define(['zepto', 'medtap'], function($, medtap) {
// console.log('新建的图片数据',picUrl)
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publish'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publish'
,
type
:
"POST"
,
asynv
:
false
,
contentType
:
'application/json'
,
...
...
@@ -196,7 +196,7 @@ define(['zepto', 'medtap'], function($, medtap) {
// console.log('更新的图片数据',picUrl)
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publish/mineUpdate'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publish/mineUpdate'
,
type
:
"POST"
,
asynv
:
false
,
contentType
:
'application/json'
,
...
...
@@ -227,7 +227,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getEditById
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publish/'
+
newCard
.
cardId
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publish/'
+
newCard
.
cardId
,
type
:
'GET'
,
async
:
false
,
data
:{
...
...
medtap_bbs_lung/javaScript/replyDetail.js
View file @
7c6e1f30
...
...
@@ -14,7 +14,7 @@ define(['zepto', 'medtap'], function($, medtap) {
getDetail
:
function
()
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishComment/'
+
reply
.
commentId
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishComment/'
+
reply
.
commentId
,
type
:
'GET'
,
async
:
false
,
data
:
{
...
...
@@ -77,7 +77,7 @@ define(['zepto', 'medtap'], function($, medtap) {
var
result
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishComment/up'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishComment/up'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
@@ -104,7 +104,7 @@ define(['zepto', 'medtap'], function($, medtap) {
}
else
{
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/operation/pubbbs/publishComment'
,
url
:
'https://
testdevgw
.medtap.cn/operation/pubbbs/publishComment'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
medtap_bbs_lung/javaScript/rukou.js
View file @
7c6e1f30
...
...
@@ -7,7 +7,7 @@ define(['zepto','medtap'],function($,medtap){
checkUser
:
function
(){
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/wechat/user/getWechatUser'
,
url
:
'https://
testdevgw
.medtap.cn/wechat/user/getWechatUser'
,
type
:
'GET'
,
async
:
false
,
data
:{
...
...
@@ -29,7 +29,7 @@ define(['zepto','medtap'],function($,medtap){
localStorage
.
wxLungToken
=
''
;
medtap
.
loading
(
1
);
medtap
.
submitAjax
({
url
:
'https://
gateway
.medtap.cn/user/auth/token'
,
url
:
'https://
testdevgw
.medtap.cn/user/auth/token'
,
type
:
'POST'
,
async
:
false
,
contentType
:
'application/json'
,
...
...
medtap_bbs_lung/pages/cardDetailForShare.html
View file @
7c6e1f30
...
...
@@ -138,6 +138,6 @@
</div>
</body>
<script
type=
"text/javascript"
>
//
require(['../javaScript/cardDetailForShare.js'])
require
([
'../javaScript/cardDetailForShare.js'
])
</script>
</html>
wechat_lung_chat/css/freeChat.css
View file @
7c6e1f30
...
...
@@ -2,11 +2,15 @@ body {
background
:
#F6F6FC
;
font-size
:
0.32rem
;
}
*
{
touch-action
:
pan-y
;
}
/* .mui-icon-pulldown:before{
display: none;
} */
.chat_top_header
{
position
:
fixed
;
top
:
0
;
width
:
100%
;
z-index
:
100
;
}
.chat_info
{
...
...
@@ -113,6 +117,7 @@ body {
margin-top
:
3.8rem
;
padding
:
0
0.32rem
;
padding-bottom
:
1rem
;
position
:
relative
;
}
.chat_list
.chat_item
{
...
...
wechat_lung_chat/javaScript/freeChat.js
View file @
7c6e1f30
This diff is collapsed.
Click to expand it.
wechat_lung_chat/pages/freeChat.html
View file @
7c6e1f30
...
...
@@ -9,6 +9,7 @@
<meta
content=
"email=no"
name=
"format-detection"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://review-formal.iplusmed.com/Common/css/wechat_Reset.min.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../css/freeChat.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://review-formal.iplusmed.com/Common/css/mui.min.css"
/>
<script
src=
"https://review-formal.iplusmed.com/Common/javaScript/calRem.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.2.0.js"
></script>
<title></title>
...
...
@@ -19,6 +20,7 @@
paths
:
{
"zepto"
:
"https://review-formal.iplusmed.com/Common/javaScript/zepto.min"
,
"medtap"
:
"https://review-formal.iplusmed.com/Common/javaScript/medtap_core_wx"
,
"mui"
:
"https://review-formal.iplusmed.com/Common/javaScript/mui.min"
,
"md5"
:
"https://review-formal.iplusmed.com/Common/javaScript/md5.min"
},
shim
:
{
...
...
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