Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
maf
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2137b070
authored
Jan 15, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
060e76ec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletions
+9
-1
Application/Home/View/default/Index_index.tpl
+2
-0
Public/static/js/._iscroll.js
+0
-0
Public/static/js/common.js
+7
-1
Public/static/js/iscroll.js
+0
-0
No files found.
Application/Home/View/default/Index_index.tpl
View file @
2137b070
...
...
@@ -17,5 +17,6 @@
{:/block}
//js 文件导入
{:block name="js"}
<script
src=
"__CDN__/js/iscroll.js"
></script>
<script
src=
"__CDN__/js/common.js"
></script>
{:/block}
\ No newline at end of file
Public/static/js/._iscroll.js
0 → 100644
View file @
2137b070
File added
Public/static/js/common.js
View file @
2137b070
...
...
@@ -70,6 +70,8 @@ let checkedRule = false;
//滚动防抖定时器
let
timer
;
let
myScroll
;
//记录初始状态下fontsize
const
fontSize
=
parseFloat
(
$
(
'html'
).
css
(
'fontSize'
));
...
...
@@ -92,7 +94,7 @@ let posterCtx;
$
(
'input[name=tel]'
).
attr
(
'type'
,
'tel'
);
$
(
document
).
ready
(
function
()
{
$
(
'.page
:not(.rule-page .rule-block)
'
).
on
(
'touchmove'
,
function
()
{
$
(
'.page'
).
on
(
'touchmove'
,
function
()
{
return
false
;
});
$
(
"input"
).
on
(
"blur"
,
function
()
{
...
...
@@ -198,6 +200,10 @@ function ruleScroll() {
}
function
loaded
()
{
myScroll
=
new
IScroll
(
'#wrapper'
);
}
function
hideRule
()
{
$
(
'.rule-page'
).
hide
();
}
...
...
Public/static/js/iscroll.js
0 → 100644
View file @
2137b070
This diff is collapsed.
Click to expand it.
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