|
@@ -96,11 +96,22 @@ export default defineComponent({
|
|
|
// display: 'single', //设置单页还是双页
|
|
|
})
|
|
|
book.bind('start', (event: Event, pageObject: any, corner: any) => {
|
|
|
- console.log(event, 'last', pageObject.next)
|
|
|
- if (data.isClick){
|
|
|
+ // console.log(event, 'last', pageObject.next)
|
|
|
+ if (corner == 'tl' || corner == 'tr') {
|
|
|
+ event.preventDefault();
|
|
|
+
|
|
|
+ }
|
|
|
+ if (data.isClick) {
|
|
|
nextTick(() => {
|
|
|
data.isClick = false
|
|
|
- book.turn('page', pageObject.next);
|
|
|
+ console.log(corner, 'corner')
|
|
|
+ if (corner == 'tl' || corner == 'tr') {
|
|
|
+ event.preventDefault();
|
|
|
+
|
|
|
+ } else {
|
|
|
+ book.turn('page', pageObject.next);
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
});
|