Commit 2137b070 by doszhang

dos

parent 060e76ec
...@@ -17,5 +17,6 @@ ...@@ -17,5 +17,6 @@
{:/block} {:/block}
//js 文件导入 //js 文件导入
{:block name="js"} {:block name="js"}
<script src="__CDN__/js/iscroll.js"></script>
<script src="__CDN__/js/common.js"></script> <script src="__CDN__/js/common.js"></script>
{:/block} {:/block}
\ No newline at end of file
...@@ -70,6 +70,8 @@ let checkedRule = false; ...@@ -70,6 +70,8 @@ let checkedRule = false;
//滚动防抖定时器 //滚动防抖定时器
let timer; let timer;
let myScroll;
//记录初始状态下fontsize //记录初始状态下fontsize
const fontSize = parseFloat($('html').css('fontSize')); const fontSize = parseFloat($('html').css('fontSize'));
...@@ -92,7 +94,7 @@ let posterCtx; ...@@ -92,7 +94,7 @@ let posterCtx;
$('input[name=tel]').attr('type', 'tel'); $('input[name=tel]').attr('type', 'tel');
$(document).ready(function () { $(document).ready(function () {
$('.page:not(.rule-page .rule-block)').on('touchmove', function () { $('.page').on('touchmove', function () {
return false; return false;
}); });
$("input").on("blur", function () { $("input").on("blur", function () {
...@@ -198,6 +200,10 @@ function ruleScroll() { ...@@ -198,6 +200,10 @@ function ruleScroll() {
} }
function loaded() {
myScroll = new IScroll('#wrapper');
}
function hideRule() { function hideRule() {
$('.rule-page').hide(); $('.rule-page').hide();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment