Commit 893f57bd by doszhang

dos

parent c674fcb2

3.52 KB | W: | H:

6.09 KB | W: | H:

Public/static/image2/question-btn-submit-active.png
Public/static/image2/question-btn-submit-active.png
Public/static/image2/question-btn-submit-active.png
Public/static/image2/question-btn-submit-active.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -138,6 +138,11 @@ $(document).ready(function () { ...@@ -138,6 +138,11 @@ $(document).ready(function () {
//滚动条 //滚动条
$('.rule-block').on('scroll', ruleScroll); $('.rule-block').on('scroll', ruleScroll);
//首页按钮
$('.home-page .btn-next').on('touchstart', {
pic: picUrl + 'home-btn-next-active.png'
}, changeBtnBg);
$(".index-scroll").on("touchstart", function (e) { $(".index-scroll").on("touchstart", function (e) {
// 判断默认行为是否可以被禁用 // 判断默认行为是否可以被禁用
if (e.cancelable) { if (e.cancelable) {
...@@ -172,6 +177,12 @@ $(document).ready(function () { ...@@ -172,6 +177,12 @@ $(document).ready(function () {
}); });
}); });
function changeBtnBg(event) {
const pic = event.data.pic;
console.log(event);
}
function initPage() { function initPage() {
let displacement = parseInt(getTranslateDistance()); let displacement = parseInt(getTranslateDistance());
if (displacement > 0) { if (displacement > 0) {
......
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