This commit is contained in:
2023-11-27 13:07:01 +08:00
parent c2a852b371
commit 7e8d599c11
13 changed files with 29 additions and 41 deletions

View File

@@ -75,7 +75,7 @@ Page({
let { clientY } = e.changedTouches[0]
endY = clientY
let clientXY = startY - clientY
console.log(clientXY)
// console.log(clientXY)
if(clientXY>60){
this.onIsDirection('next')
}else if(clientXY < -60){
@@ -86,7 +86,7 @@ Page({
onIsDirection(type){
let {currentIndex,lists} = this.data
if(type == 'next'){
console.log('获取下一个')
// console.log('获取下一个')
if(currentIndex!=lists.length-1){
currentIndex ++
this.setData({
@@ -160,7 +160,7 @@ Page({
// 预览图片
preImg(e){
let current = e.currentTarget.dataset.idx
console.log(current)
// console.log(current)
let urls = e.currentTarget.dataset.urls
wx.previewImage({
urls,