|
@@ -41,13 +41,13 @@
|
|
|
<change v-if="page === -1" />
|
|
|
<div class="page" @touchstart="touchstart" @touchend="touchend">
|
|
|
<pageFirst v-if="page === 0" />
|
|
|
- <pageSecond v-if="page === 1" />
|
|
|
- <pageThird v-if="page === 2" />
|
|
|
- <pageFourth v-if="page === 3" />
|
|
|
- <pageFifth v-if="page === 4" />
|
|
|
- <pageSexth v-if="page === 5" />
|
|
|
- <pageSeventh v-if="page === 6" />
|
|
|
- <pageEighth v-if="page === 7" />
|
|
|
+ <!-- <pageSecond v-if="page === 1" /> -->
|
|
|
+ <pageThird v-if="page === 1" />
|
|
|
+ <pageFourth v-if="page === 2" />
|
|
|
+ <pageFifth v-if="page === 3" />
|
|
|
+ <pageSexth v-if="page === 4" />
|
|
|
+ <pageSeventh v-if="page === 5" />
|
|
|
+ <pageEighth v-if="page === 6" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -55,7 +55,7 @@
|
|
|
import { ref, nextTick } from 'vue';
|
|
|
import change from './change.vue';
|
|
|
import pageFirst from './page1.vue';
|
|
|
-import pageSecond from './page2.vue';
|
|
|
+// import pageSecond from './page2.vue';
|
|
|
import pageThird from './page3.vue';
|
|
|
import pageFourth from './page4.vue';
|
|
|
import pageFifth from './page5.vue';
|
|
@@ -70,7 +70,7 @@ import pageEighth from './page8.vue';
|
|
|
* window.$originData.orginParames.parameters 固定参数值
|
|
|
* window.$originData.urlParames url参数
|
|
|
*/
|
|
|
-console.log(window.$originData);
|
|
|
+// console.log(window.$originData);
|
|
|
const play_stats = ref(false);
|
|
|
const page = ref(0);
|
|
|
let startY = 0;
|
|
@@ -117,14 +117,13 @@ const touchend = e => {
|
|
|
// 距离足够则滑动到下一页;
|
|
|
let n = cha > 0 ? 1 : -1;
|
|
|
let dn = n + page.value;
|
|
|
- if (dn < 0) return (dn = 7);
|
|
|
- if (dn > 7) return (dn = 0);
|
|
|
+ if (dn < 0) return (dn = 6);
|
|
|
+ if (dn > 6) return (dn = 0);
|
|
|
page.value = -1;
|
|
|
nextTick(() => {
|
|
|
let t = setTimeout(() => {
|
|
|
clearTimeout(t);
|
|
|
page.value = dn;
|
|
|
- console.log(n)
|
|
|
}, 1200);
|
|
|
});
|
|
|
};
|