merge
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user