|
|
@@ -101,7 +101,6 @@
|
|
|
<script>
|
|
|
import tools from "@/service/tools";
|
|
|
import UserContent from "@/pages/index/model/user-content";
|
|
|
- import inobounce from "inobounce";
|
|
|
export default {
|
|
|
name: "slide",
|
|
|
components: {UserContent},
|
|
|
@@ -148,21 +147,9 @@
|
|
|
tools.vibrate()
|
|
|
}
|
|
|
},
|
|
|
- 'currentIndex':function (){
|
|
|
- console.log('currentIndex:'+this.currentIndex)
|
|
|
|
|
|
- this.setBox(this.currentIndex,1)
|
|
|
- }
|
|
|
- },
|
|
|
- created() {
|
|
|
- let u = navigator.userAgent
|
|
|
- if (u.indexOf('iPhone') > -1) {
|
|
|
- inobounce.enable()
|
|
|
- }
|
|
|
- },
|
|
|
- beforeDestroy() {
|
|
|
- inobounce.disable()
|
|
|
},
|
|
|
+
|
|
|
mounted() {
|
|
|
const res = uni.getSystemInfoSync()
|
|
|
console.log(res)
|
|
|
@@ -357,7 +344,7 @@
|
|
|
if(this.ifLongTap){
|
|
|
this.ifLongTap=false
|
|
|
}
|
|
|
- if (this.isSlide) return
|
|
|
+ // if (this.isSlide) return
|
|
|
if (this.slideing) return
|
|
|
this.swipering = false;
|
|
|
if (this.list.length === index + 1) {
|
|
|
@@ -390,6 +377,7 @@
|
|
|
this.list[index].y = this.list[index].y * 5;
|
|
|
this.list[index].moveX *= 5;
|
|
|
this.list[index].angleNum *= 5;
|
|
|
+ this.setBox(this.currentIndex+1,1)
|
|
|
this.touchEndDone()
|
|
|
},
|
|
|
touchEndDone() {
|