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
e64637d0
Commit
e64637d0
authored
Nov 01, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改分享帖后用户跳转问题'
parent
379889c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
cardDetailForShare.js
medtap_bbs_lung/javaScript/cardDetailForShare.js
+5
-5
freeChat.js
wechat_lung_chat/javaScript/freeChat.js
+1
-1
login.js
wechat_lung_login/javaScript/login.js
+8
-3
No files found.
medtap_bbs_lung/javaScript/cardDetailForShare.js
View file @
e64637d0
...
...
@@ -67,16 +67,16 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
// 点击加入社区
$
(
'.join_now'
).
on
(
'click'
,
function
(){
if
(
chat
.
userId
){
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/
wechat_lung_login/login
.html?wechatId='
+
card
.
wechatId
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/
medtap_bbs_lung/index
.html?wechatId='
+
card
.
wechatId
}
else
{
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId='
+
card
.
wechatId
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId='
+
card
.
wechatId
+
'&toBBS=1'
}
})
$
(
'.top_tip_blue'
).
on
(
'click'
,
function
(){
if
(
chat
.
userId
){
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/
wechat_lung_login/login
.html?wechatId='
+
card
.
wechatId
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/
medtap_bbs_lung/index
.html?wechatId='
+
card
.
wechatId
}
else
{
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId='
+
card
.
wechatId
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId='
+
card
.
wechatId
+
'&toBBS=1'
}
})
},
...
...
@@ -133,7 +133,7 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
})
$
(
'.dialog-btn-confirm'
).
on
(
'click'
,
function
(){
$
(
'#showDialog'
).
hide
()
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId='
+
card
.
wechatId
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html?wechatId='
+
card
.
wechatId
+
'&toBBS=1'
})
//为TA加油
$
(
'.fabulous'
).
on
(
'click'
,
function
()
{
...
...
wechat_lung_chat/javaScript/freeChat.js
View file @
e64637d0
...
...
@@ -44,7 +44,7 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
chat
.
getWechatTicket
();
chat
.
getAttention
();
document
.
querySelector
(
'body'
).
addEventListener
(
'touchmove'
,
function
(
e
)
{
if
(
!
document
.
querySelector
(
'
.chat_lis
t'
).
contains
(
e
.
target
))
{
if
(
!
document
.
querySelector
(
'
#conten
t'
).
contains
(
e
.
target
))
{
e
.
preventDefault
();
}
},
{
passive
:
false
});
...
...
wechat_lung_login/javaScript/login.js
View file @
e64637d0
...
...
@@ -12,6 +12,7 @@ define(['zepto', 'medtap'], function($, medtapCore) {
businessDetail
:
medtapCore
.
getRequest
(
'businessDetail'
),
channelId
:
medtapCore
.
getRequest
(
'channelId'
),
toLink
:
medtapCore
.
getRequest
(
'toLink'
),
toBBS
:
medtapCore
.
getRequest
(
'toBBS'
),
healthType
:
''
,
init
:
function
()
{
...
...
@@ -83,9 +84,13 @@ define(['zepto', 'medtap'], function($, medtapCore) {
var
token
=
data
.
content
.
token
;
localStorage
.
setItem
(
'wxLungToken'
,
token
);
if
(
!
login
.
toLink
)
{
setTimeout
(
function
()
{
self
.
location
=
document
.
referrer
;
},
1000
)
if
(
login
.
toBBS
){
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/medtap_bbs_lung/index.html?wechatId='
+
login
.
wechatId
}
else
{
setTimeout
(
function
()
{
self
.
location
=
document
.
referrer
;
},
1000
)
}
}
else
{
login
.
getUserInfo
();
}
...
...
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