Commit 30fac786 by doszhang

dos

parent 893f57bd
......@@ -143,6 +143,10 @@ $(document).ready(function () {
pic: picUrl + 'home-btn-next-active.png'
}, changeBtnBg);
$('.home-page .btn-next').on('touchend', {
pic: picUrl + 'home-btn-next.png'
}, changeBtnBg);
$(".index-scroll").on("touchstart", function (e) {
// 判断默认行为是否可以被禁用
if (e.cancelable) {
......@@ -177,9 +181,13 @@ $(document).ready(function () {
});
});
function changeBtnBg(event) {
const pic = event.data.pic;
console.log(event);
$(event.target).css({
'background': pic,
'backgroundSize': '100%'
})
}
......
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