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
ea26cdcd
Commit
ea26cdcd
authored
Nov 01, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改阻止body下拉1'
parent
366ba858
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
cardDetailForShare.js
medtap_bbs_lung/javaScript/cardDetailForShare.js
+2
-2
freeChat.js
wechat_lung_chat/javaScript/freeChat.js
+7
-5
No files found.
medtap_bbs_lung/javaScript/cardDetailForShare.js
View file @
ea26cdcd
...
...
@@ -66,10 +66,10 @@ define(['zepto', 'medtap','../javaScript/beforeSubmitForLung.js'], function($, m
})
// 点击加入社区
$
(
'.join_now'
).
on
(
'click'
,
function
(){
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html
'
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html
?wechatId='
+
card
.
wechatId
})
$
(
'.top_tip_blue'
).
on
(
'click'
,
function
(){
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html
'
window
.
location
.
href
=
'https://review-formal.iplusmed.com/wechatForLungCancer/dev/wechat_lung_login/login.html
?wechatId='
+
card
.
wechatId
})
},
getToken
:
function
(){
...
...
wechat_lung_chat/javaScript/freeChat.js
View file @
ea26cdcd
...
...
@@ -45,14 +45,16 @@ define([ 'zepto', 'medtap','mui'], function($, medtap,mui) {
chat
.
getAttention
();
document
.
body
.
addEventListener
(
'touchmove'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
},
{
passive
:
false
});
//1.获取到列表的dom,刷新显示部分的dom,列表父容器的dom
let
container
=
document
.
querySelector
(
'.chat_list'
);
let
refreshText
=
document
.
querySelector
(
'.refreshText'
);
let
parent
=
document
.
querySelector
(
'.container'
);
var
container
=
document
.
querySelector
(
'.chat_list'
);
var
refreshText
=
document
.
querySelector
(
'.refreshText'
);
var
parent
=
document
.
querySelector
(
'.container'
);
//2.定义一些需要常用的变量
let
startY
=
0
;
//手指触摸最开始的Y坐标
let
endY
=
0
;
//手指结束触摸时的Y坐标
var
startY
=
0
;
//手指触摸最开始的Y坐标
var
endY
=
0
;
//手指结束触摸时的Y坐标
//3.给列表dom监听touchstart事件,得到起始位置的Y坐标
parent
.
addEventListener
(
'touchstart'
,
function
(
e
){
startY
=
e
.
touches
[
0
].
pageY
;
...
...
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