Browse Source

no message

BF-202210271038\Administrator 2 năm trước cách đây
mục cha
commit
6d8ba64e89

+ 3 - 15
components/dgex-tantan/dgex-tantan.vue

@@ -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() {

+ 1 - 1
manifest.json

@@ -2,7 +2,7 @@
     "name" : "LCOCO",
     "appid" : "__UNI__9075D31",
     "description" : "",
-    "versionName" : "1.0.15",
+    "versionName" : "1.0.16",
     "versionCode" : 101,
     "transformPx" : false,
     /* 5+App特有相关 */

+ 2 - 2
pages.json

@@ -72,8 +72,8 @@
         "navigationBarTitleText": "",
         "enablePullDownRefresh": false,
         "app-plus": {
-          "bounce": "none",
-          "popGesture": "close"
+          "bounce": "none"
+
         }
       }
     },

+ 2 - 11
pages/index/index.vue

@@ -19,7 +19,6 @@
 import IndexNav from "@/pages/index/model/index-nav";
 import AttachmentList from "@/pages/index/model/attachment-list";
 import SlideItem from "@/pages/index/model/slide-item";
-import inobounce from 'inobounce'
 export default {
   components: {SlideItem, AttachmentList, IndexNav},
   data() {
@@ -27,15 +26,7 @@ export default {
       tabNum:0
     }
   },
-  created() {
-    let u = navigator.userAgent
-    if (u.indexOf('iPhone') > -1) {
-      inobounce.enable()
-    }
-  },
-  beforeDestroy() {
-    inobounce.disable()
-  },
+
   methods: {
     setTabNum(tabNum){
       this.tabNum=tabNum
@@ -49,7 +40,7 @@ export default {
   overflow: hidden;
   -webkit-overflow-scrolling: touch;
   overscroll-behavior: none;
-  height: calc(100vh - 50px - env(safe-area-inset-bottom));
+  height: 100vh ;
   width: 100vw;
   .box-one{
 

+ 1 - 10
pages/index/model/slide-item.vue

@@ -6,7 +6,6 @@
 
 <script>
 import tantan from '@/components/dgex-tantan/dgex-tantan.vue'
-import inobounce from "inobounce";
 export default {
   name: "slide-item",
   components: {
@@ -19,15 +18,7 @@ export default {
     }
   },
   watch: {},
-  created() {
-    let u = navigator.userAgent
-    if (u.indexOf('iPhone') > -1) {
-      inobounce.enable()
-    }
-  },
-  beforeDestroy() {
-    inobounce.disable()
-  },
+
   mounted() {
 
     this.change({'currentIndex':1})