zydx-plus 1.32.285 → 1.32.287
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<div class="choice" v-if="isShow">
|
|
3
3
|
<div class="choice-title">
|
|
4
4
|
<div class="choice-title-left">
|
|
5
|
-
<span><i>*</i>{{ title }}:</span
|
|
5
|
+
<!-- <span><i>*</i>{{ title }}:</span>-->
|
|
6
|
+
<span>{{ title }}:</span>
|
|
6
7
|
<em>({{ text }})</em>
|
|
7
8
|
</div>
|
|
8
9
|
<div class="choice-title-right">
|
|
@@ -304,4 +305,4 @@ export default {
|
|
|
304
305
|
height: 21px;
|
|
305
306
|
display: inline-block;
|
|
306
307
|
}
|
|
307
|
-
</style>
|
|
308
|
+
</style>
|
|
@@ -88,6 +88,14 @@ export default {
|
|
|
88
88
|
type: Boolean,
|
|
89
89
|
default: false
|
|
90
90
|
},
|
|
91
|
+
minWidth: {
|
|
92
|
+
type: Number,
|
|
93
|
+
default: 300
|
|
94
|
+
},
|
|
95
|
+
minHeight: {
|
|
96
|
+
type: Number,
|
|
97
|
+
default: 200
|
|
98
|
+
},
|
|
91
99
|
},
|
|
92
100
|
beforeUnmount() {
|
|
93
101
|
this.clean()
|
|
@@ -174,6 +182,12 @@ export default {
|
|
|
174
182
|
} else if (this.direction === 'r') {
|
|
175
183
|
this.footRightOffset = event.clientX - this.x;
|
|
176
184
|
}
|
|
185
|
+
if(this.footRightOffset < this.minWidth) {
|
|
186
|
+
this.footRightOffset = this.minWidth
|
|
187
|
+
}
|
|
188
|
+
if(this.footDownOffset < this.minHeight) {
|
|
189
|
+
this.footDownOffset = this.minHeight
|
|
190
|
+
}
|
|
177
191
|
this.$emit('updateDrag', {
|
|
178
192
|
width: this.footRightOffset,
|
|
179
193
|
height: this.footDownOffset - ((this.dragTextShow)?60:30)
|
|
@@ -1,31 +1,39 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<div class="wrap-can">
|
|
11
|
-
<canvas :id="id"></canvas>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="page-but-left" :style="{cursor: pageIndex === 1?'default':'pointer'}" @click="flipRight(pageIndex-=1,false)"></div>
|
|
15
|
-
<div class="page-but-right" :style="{cursor: pageIndex === pdfPages?'default':'pointer'}" @click="flipLeft(pageIndex+=1,false)"></div>
|
|
16
|
-
</div>
|
|
2
|
+
<div class="docView" >
|
|
3
|
+
<div>
|
|
4
|
+
<div class="book">
|
|
5
|
+
<div class="pages">
|
|
6
|
+
<div class="wrap">
|
|
7
|
+
<div class="wrap-one" :class="{'flip-animation-start': flipRights, 'flip-animation-end': flipLefts}"
|
|
8
|
+
v-if="oneShow" :style="canvasStyle">
|
|
9
|
+
<img :src="imgArr[(oneIndex === 'right')? pageIndex-1: pageIndex]" alt=""/>
|
|
17
10
|
</div>
|
|
18
|
-
<div class="
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div v-if="loading" class="loading-back">
|
|
24
|
-
<div class="loading-cont">
|
|
25
|
-
<div class="loadings">Loading</div>
|
|
11
|
+
<div class="wrap-can" ref="wrapCan">
|
|
12
|
+
<canvas @mousedown="mouseDown" @mousemove="mouseMove" :id="id"></canvas>
|
|
13
|
+
<!-- <div class="cursor" :style="cursorRounded"></div>-->
|
|
26
14
|
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="page-but-left" :style="{cursor: pageIndex === 1?'default':'pointer'}"
|
|
17
|
+
@click.stop="flipRight(pageIndex-=1,false)"></div>
|
|
18
|
+
<div class="page-but-right" :style="{cursor: pageIndex === pdfPages?'default':'pointer'}"
|
|
19
|
+
@click.stop="flipLeft(pageIndex+=1,false)"></div>
|
|
27
20
|
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="but-wrap" v-if="butShow">
|
|
23
|
+
<button class="but-brown" :disabled="pageIndex === 1" :class="{'but-act': pageIndex === 1}"
|
|
24
|
+
@click.stop="flipRight(pageIndex-=1,false)">上一页
|
|
25
|
+
</button>
|
|
26
|
+
<button class="but-brown" :disabled="pageIndex === pdfPages" :class="{'but-act': pageIndex === pdfPages}"
|
|
27
|
+
@click.stop="flipLeft(pageIndex+=1,false)">下一页
|
|
28
|
+
</button>
|
|
29
|
+
</div>
|
|
28
30
|
</div>
|
|
31
|
+
<div v-if="loading" class="loading-back">
|
|
32
|
+
<div class="loading-cont">
|
|
33
|
+
<div class="loadings">Loading</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
29
37
|
</template>
|
|
30
38
|
|
|
31
39
|
<script>
|
|
@@ -33,321 +41,491 @@ import * as PdfJs from 'pdfjs-dist/legacy/build/pdf.js' // 注意导入的写法
|
|
|
33
41
|
PdfJs.GlobalWorkerOptions.workerSrc = require('pdfjs-dist/build/pdf.worker.entry')
|
|
34
42
|
const jsdelivr = '/zydx/static/cmaps/'
|
|
35
43
|
export default {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
name: "zydx-flip",
|
|
45
|
+
data() {
|
|
46
|
+
return {
|
|
47
|
+
pdfPages: 0,
|
|
48
|
+
imgArr: {},
|
|
49
|
+
hei: 0,
|
|
50
|
+
pageIndex: this.page,
|
|
51
|
+
show: false,
|
|
52
|
+
load: 0,
|
|
53
|
+
loadWidth: 0,
|
|
54
|
+
pages: false,
|
|
55
|
+
pagesData: [],
|
|
56
|
+
opacity: 1,
|
|
57
|
+
id: null,
|
|
58
|
+
loading: false,
|
|
59
|
+
canvasStyle: {},
|
|
60
|
+
oneShow: false,
|
|
61
|
+
flipRights: false,
|
|
62
|
+
flipLefts: false,
|
|
63
|
+
oneIndex: 'right',
|
|
64
|
+
scales: 1.35,
|
|
65
|
+
timer: null,
|
|
66
|
+
resultImg: '',
|
|
67
|
+
startX: 0,
|
|
68
|
+
startY: 0,
|
|
69
|
+
isDrawing: false,
|
|
70
|
+
sratio: 2,
|
|
71
|
+
ctx: null,
|
|
72
|
+
lineWidth: 2,
|
|
73
|
+
points: [],
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
props: {
|
|
77
|
+
source: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: ''
|
|
80
|
+
},
|
|
81
|
+
singlePage: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: false
|
|
84
|
+
},
|
|
85
|
+
butShow: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: true
|
|
88
|
+
},
|
|
89
|
+
page: {
|
|
90
|
+
type: Number,
|
|
91
|
+
default: 1
|
|
57
92
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
default: ''
|
|
62
|
-
},
|
|
63
|
-
singlePage: {
|
|
64
|
-
type: Boolean,
|
|
65
|
-
default: false
|
|
66
|
-
},
|
|
67
|
-
butShow: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: true
|
|
70
|
-
},
|
|
71
|
-
page: {
|
|
72
|
-
type: Number,
|
|
73
|
-
default: 1
|
|
74
|
-
},
|
|
75
|
-
scale: {
|
|
76
|
-
type: Number,
|
|
77
|
-
default: 1.35
|
|
78
|
-
},
|
|
93
|
+
scale: {
|
|
94
|
+
type: Number,
|
|
95
|
+
default: 1.35
|
|
79
96
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
97
|
+
scaleStyle: {
|
|
98
|
+
type: Object,
|
|
99
|
+
default: () => {}
|
|
100
|
+
},
|
|
101
|
+
pointsData: {
|
|
102
|
+
type: Array,
|
|
103
|
+
default: () => []
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
watch: {
|
|
107
|
+
pointsData: {
|
|
108
|
+
handler: function (val) {
|
|
109
|
+
if(!val) return
|
|
110
|
+
this.points = val
|
|
111
|
+
},
|
|
112
|
+
immediate: true
|
|
113
|
+
},
|
|
114
|
+
page: {
|
|
115
|
+
handler: function (val) {
|
|
116
|
+
this.pageIndex = val
|
|
117
|
+
},
|
|
118
|
+
immediate: true
|
|
119
|
+
},
|
|
120
|
+
source: {
|
|
121
|
+
handler: function () {
|
|
122
|
+
this.readPdf()
|
|
123
|
+
},
|
|
124
|
+
deep: true,
|
|
125
|
+
immediate: true
|
|
126
|
+
},
|
|
127
|
+
scaleStyle: {
|
|
128
|
+
handler: function (val) {
|
|
129
|
+
if(!val) return
|
|
130
|
+
if (this.timer) {
|
|
131
|
+
clearTimeout(this.timer)
|
|
93
132
|
}
|
|
133
|
+
this.timer = setTimeout(() => {
|
|
134
|
+
this.scales = val.width / 550
|
|
135
|
+
if(this.scales >= this.scale) {
|
|
136
|
+
this.scales = this.scale
|
|
137
|
+
}
|
|
138
|
+
this.readPdf(1)
|
|
139
|
+
}, 200)
|
|
140
|
+
},
|
|
141
|
+
deep: true
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
emits: ['flip','updateData'],
|
|
145
|
+
mounted() {
|
|
146
|
+
this.id = 'canvas-wrap' + Math.random().toString(36).substr(2)
|
|
147
|
+
// 在画板以外松开鼠标后冻结画笔
|
|
148
|
+
document.onmouseup = () => {
|
|
149
|
+
this.mouseUp()
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
methods: {
|
|
153
|
+
mouseDown (e) {
|
|
154
|
+
e = e || event
|
|
155
|
+
e.preventDefault()
|
|
156
|
+
this.isDrawing = true
|
|
157
|
+
let obj = {
|
|
158
|
+
x: e.offsetX*this.sratio,
|
|
159
|
+
y: e.offsetY*this.sratio
|
|
160
|
+
}
|
|
161
|
+
this.drawStart(obj)
|
|
94
162
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
163
|
+
mouseMove (e) {
|
|
164
|
+
e = e || event
|
|
165
|
+
e.preventDefault()
|
|
166
|
+
if (this.isDrawing) {
|
|
167
|
+
let obj = {
|
|
168
|
+
x: e.offsetX*this.sratio,
|
|
169
|
+
y: e.offsetY*this.sratio
|
|
170
|
+
}
|
|
171
|
+
this.drawMove(obj)
|
|
172
|
+
}
|
|
98
173
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
174
|
+
mouseUp (e) {
|
|
175
|
+
e = e || event
|
|
176
|
+
e.preventDefault()
|
|
177
|
+
let obj = {
|
|
178
|
+
x: e.offsetX*this.sratio,
|
|
179
|
+
y: e.offsetY*this.sratio
|
|
180
|
+
}
|
|
181
|
+
this.drawEnd(obj)
|
|
182
|
+
this.isDrawing = false
|
|
183
|
+
},
|
|
184
|
+
// 绘制
|
|
185
|
+
drawStart (obj) {
|
|
186
|
+
obj.index = this.pageIndex
|
|
187
|
+
obj.start = 'start'
|
|
188
|
+
this.startX = obj.x
|
|
189
|
+
this.startY = obj.y
|
|
190
|
+
this.ctx.beginPath()
|
|
191
|
+
this.ctx.moveTo(this.startX, this.startY)
|
|
192
|
+
this.ctx.lineTo(obj.x, obj.y)
|
|
193
|
+
this.ctx.lineCap = 'round'
|
|
194
|
+
this.ctx.lineJoin = 'round'
|
|
195
|
+
this.ctx.lineWidth = this.lineWidth * this.sratio
|
|
196
|
+
this.ctx.stroke()
|
|
197
|
+
this.ctx.closePath()
|
|
198
|
+
this.points.push(obj)
|
|
199
|
+
},
|
|
200
|
+
drawEnd (obj) {
|
|
201
|
+
obj.index = this.pageIndex
|
|
202
|
+
obj.start = 'end'
|
|
203
|
+
this.ctx.beginPath()
|
|
204
|
+
this.ctx.moveTo(this.startX, this.startY)
|
|
205
|
+
this.ctx.lineTo(obj.x, obj.y)
|
|
206
|
+
this.ctx.lineCap = 'round'
|
|
207
|
+
this.ctx.lineJoin = 'round'
|
|
208
|
+
this.ctx.stroke()
|
|
209
|
+
this.ctx.closePath()
|
|
210
|
+
this.points.push(obj)
|
|
211
|
+
this.$emit('updateData', this.points)
|
|
212
|
+
},
|
|
213
|
+
drawMove (obj) {
|
|
214
|
+
obj.index = this.pageIndex
|
|
215
|
+
obj.start = 'move'
|
|
216
|
+
this.ctx.beginPath()
|
|
217
|
+
this.ctx.moveTo(this.startX, this.startY)
|
|
218
|
+
this.ctx.lineTo(obj.x, obj.y)
|
|
219
|
+
this.ctx.strokeStyle = 'red'
|
|
220
|
+
this.ctx.lineWidth = this.lineWidth * this.sratio
|
|
221
|
+
this.ctx.lineCap = 'round'
|
|
222
|
+
this.ctx.lineJoin = 'round'
|
|
223
|
+
this.ctx.stroke()
|
|
224
|
+
this.ctx.closePath()
|
|
225
|
+
this.startY = obj.y
|
|
226
|
+
this.startX = obj.x
|
|
227
|
+
this.points.push(obj)
|
|
228
|
+
},
|
|
229
|
+
flipLeft(e, v) {
|
|
230
|
+
if (e > this.pdfPages) {
|
|
231
|
+
this.pageIndex = this.pdfPages
|
|
232
|
+
return
|
|
233
|
+
} else {
|
|
234
|
+
this.pageIndex = e
|
|
235
|
+
}
|
|
236
|
+
this.oneIndex = 'right'
|
|
237
|
+
this.readPdf()
|
|
238
|
+
if (!v) {
|
|
239
|
+
this.$emit('flip', {
|
|
240
|
+
page: this.pageIndex,
|
|
241
|
+
total: this.pdfPages
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
flipRight(e, v) {
|
|
246
|
+
if (e < 1) {
|
|
247
|
+
this.pageIndex = 1
|
|
248
|
+
return
|
|
249
|
+
} else {
|
|
250
|
+
this.pageIndex = e
|
|
251
|
+
}
|
|
252
|
+
this.oneIndex = 'left'
|
|
253
|
+
this.readPdf()
|
|
254
|
+
if (!v) {
|
|
255
|
+
this.$emit('flip', {
|
|
256
|
+
page: this.pageIndex,
|
|
257
|
+
total: this.pdfPages
|
|
258
|
+
})
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
readPdf(n) {
|
|
262
|
+
if (this.source === '' || this.source === undefined || this.source === null) return
|
|
263
|
+
let that = this
|
|
264
|
+
if(n !== 1) that.loading = true
|
|
265
|
+
if (that.imgArr[that.pageIndex - 1] !== undefined) {
|
|
266
|
+
that.oneShow = that.pageIndex !== 1
|
|
267
|
+
}
|
|
268
|
+
const loadingTask = PdfJs.getDocument({
|
|
269
|
+
url: this.source,
|
|
270
|
+
cMapUrl: jsdelivr,
|
|
271
|
+
cMapPacked: true
|
|
272
|
+
})
|
|
273
|
+
loadingTask.promise.then((pdf) => {
|
|
274
|
+
that.pdfPages = pdf.numPages // 获取pdf文件的总页数
|
|
275
|
+
pdf.getPage(that.pageIndex).then(function (page) {
|
|
276
|
+
let canvas = document.getElementById(that.id)
|
|
277
|
+
that.ctx = canvas.getContext('2d');
|
|
278
|
+
let viewport = page.getViewport({scale: that.scales})
|
|
279
|
+
canvas.width = viewport.width * that.sratio
|
|
280
|
+
canvas.height = viewport.height * that.sratio
|
|
281
|
+
canvas.style.width = viewport.width + 'px'
|
|
282
|
+
canvas.style.height = viewport.height + 'px'
|
|
283
|
+
that.canvasStyle = {
|
|
284
|
+
width: viewport.width + 'px',
|
|
285
|
+
height: viewport.height + 'px',
|
|
286
|
+
marginLeft: -(viewport.width / 2) + 'px'
|
|
287
|
+
}
|
|
288
|
+
let renderContext = {
|
|
289
|
+
canvasContext: that.ctx,
|
|
290
|
+
viewport: viewport,
|
|
291
|
+
transform: [2, 0, 0, 2, 0, 0] //这里会进行放大,解决模糊问题
|
|
292
|
+
}
|
|
293
|
+
page.render(renderContext)
|
|
294
|
+
that.loading = false
|
|
295
|
+
if (that.oneIndex === 'right') {
|
|
296
|
+
that.flipRights = true
|
|
297
|
+
that.flipLefts = false
|
|
298
|
+
} else {
|
|
299
|
+
that.flipRights = false
|
|
300
|
+
that.flipLefts = true
|
|
301
|
+
}
|
|
302
|
+
// 获取canvas的base64数据
|
|
303
|
+
setTimeout(() => {
|
|
304
|
+
that.flipRights = false
|
|
305
|
+
that.flipLefts = false
|
|
306
|
+
that.oneShow = false
|
|
307
|
+
that.imgArr[that.pageIndex] = canvas.toDataURL('image/jpeg', 1)
|
|
308
|
+
for(let i = 0; i < that.points.length; i++) {
|
|
309
|
+
if(that.points[i].index === that.pageIndex) {
|
|
310
|
+
that.ctx.beginPath()
|
|
311
|
+
that.ctx.moveTo(that.points[i].x,that.points[i].y)
|
|
312
|
+
if(that.points[i].start !== 'end') {
|
|
313
|
+
that.ctx.lineTo(that.points[i+1].x, that.points[i+1].y)
|
|
314
|
+
}
|
|
315
|
+
that.ctx.strokeStyle = 'red'
|
|
316
|
+
that.ctx.lineCap = 'round'
|
|
317
|
+
that.ctx.lineJoin = 'round'
|
|
318
|
+
that.ctx.lineWidth = that.lineWidth * that.sratio
|
|
319
|
+
that.ctx.stroke()
|
|
320
|
+
that.ctx.closePath()
|
|
321
|
+
}
|
|
138
322
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
cMapPacked: true
|
|
143
|
-
})
|
|
144
|
-
loadingTask.promise.then((pdf) => {
|
|
145
|
-
that.pdfPages = pdf.numPages // 获取pdf文件的总页数
|
|
146
|
-
pdf.getPage(that.pageIndex).then(function (page) {
|
|
147
|
-
let canvas = document.getElementById(that.id)
|
|
148
|
-
let ctx = canvas.getContext('2d');
|
|
149
|
-
let viewport = page.getViewport({scale: that.scale})
|
|
150
|
-
canvas.width = viewport.width * 2
|
|
151
|
-
canvas.height = viewport.height * 2
|
|
152
|
-
canvas.style.width = viewport.width + 'px'
|
|
153
|
-
canvas.style.height = viewport.height + 'px'
|
|
154
|
-
that.canvasStyle = {
|
|
155
|
-
width: viewport.width + 'px',
|
|
156
|
-
height: viewport.height + 'px',
|
|
157
|
-
marginLeft: -(viewport.width/2) + 'px'
|
|
158
|
-
}
|
|
159
|
-
let renderContext = {
|
|
160
|
-
canvasContext: ctx,
|
|
161
|
-
viewport: viewport,
|
|
162
|
-
transform: [2, 0, 0, 2, 0, 0] //这里会进行放大,解决模糊问题
|
|
163
|
-
}
|
|
164
|
-
page.render(renderContext)
|
|
165
|
-
that.loading = false
|
|
166
|
-
if(that.oneIndex === 'right') {
|
|
167
|
-
that.flipRights = true
|
|
168
|
-
that.flipLefts = false
|
|
169
|
-
}else {
|
|
170
|
-
that.flipRights = false
|
|
171
|
-
that.flipLefts = true
|
|
172
|
-
}
|
|
173
|
-
// 获取canvas的base64数据
|
|
174
|
-
setTimeout(() => {
|
|
175
|
-
that.flipRights = false
|
|
176
|
-
that.flipLefts = false
|
|
177
|
-
that.oneShow = false
|
|
178
|
-
that.imgArr[that.pageIndex] = canvas.toDataURL('image/jpeg', 1)
|
|
179
|
-
}, 1000)
|
|
180
|
-
})
|
|
181
|
-
})
|
|
182
|
-
}
|
|
323
|
+
}, 1000)
|
|
324
|
+
})
|
|
325
|
+
})
|
|
183
326
|
}
|
|
327
|
+
}
|
|
184
328
|
}
|
|
185
329
|
</script>
|
|
186
330
|
|
|
187
331
|
<style scoped>
|
|
332
|
+
.cursor{
|
|
333
|
+
position: fixed;
|
|
334
|
+
top: 0;
|
|
335
|
+
left: 0;
|
|
336
|
+
z-index: 9999;
|
|
337
|
+
width: 15px;
|
|
338
|
+
height: 15px;
|
|
339
|
+
margin-top: -7px;
|
|
340
|
+
margin-left: -7px;
|
|
341
|
+
cursor: none;
|
|
342
|
+
transition: all 0s ease-in-out;
|
|
343
|
+
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMkAAADICAYAAABCmsWgAAAAAXNSR0IArs4c6QAACg5JREFUeF7t3W+SEzcQxmFxjXwiZ8gF4HvuAFTlGqnASSAnAU4CnCSp9tq76/Wfaclyq1/pN1UUIauZ0bzqp6QZe+1XhY0E8iXwupTybt+tN6UU+7f9+bn/f9/2//1r/7f9+27bq7sdmQOTQH0C/5RS3u9B1OxteL6UUr6XUrqDAUnNUND2XgnYbPG5Ace5/hiYT3s0XfoLki4xcpDGBA7Lqo+N+1/bzbC8fbZEaz4FSJqjY8cbEzAgNnvYLHKv7bAMs5mleQNJc3TseEMCBuPrDfvX7mr3KR9aZxWQ1MZN+1sTiAZy6G/z8gsktw45+9ckYE+ubIk1amuCApJRw7XeeUcDaZ5RQLJesY64Ynv94x5PsFqvpWpGAUlrzOznTcCWVzaLZNvcUECSbejm6o89wbrnI95b0zIov28dBCRbCfHz1gSyAzlcl72dxR4PX9xA0loC7HctARUgh2uw+6WLLziChGLvnYC9km5I7G+V7er7vUCiMoxa/VSFcva9XiDRKj6l3qpCObmRB4lS2en1VRGK3cTbzfzjBhK9wlPrsRqUk8fCIFErOc3+qkE5eiwMEs2iU+y1EpSjV+NBolhuun1WgvI4m4BEt+BUe64EZecDJKqlpt1vFSi7J10g0S425d4rQLFf+30LEuUy0+97dii7x8Eg0S809SvIDuUPkKiX2Bz9zwwFJHPU2BRXkRXKX8wkU9RX14s4FKs92en+ubobPc0IBSRd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P2LLKllQ8tVrbxuPVR80kCvcj4ADF2QSikGT9ALoDDJZUALmYQBSSTDftBxjfeZ0DGZ4EVkFygPGLR7iesqDN8wRmR2Iv/NlSitc2qPvmBGZEYjDsD0+nmsuCHUfMJPe8ceceg5q+awJRM0nv10l4KnXXsuDgI2aS16UUe8LVuhkKW0Id3j/Vehz2I4HqBKJmEutYzZeHGoYDDB7VVg8rO/RMIBKJ9dtmlHellDdnvkj08AQKFD1HmGPdnEA0kps7zAFIIDoBkEQnzvnkEgCJ3JDR4egEQBKdOOeTSwAkckNGh6MTAEl04pxPLgGQyA0ZHY5OACTRiXM+uQRAIjdkdDg6AZBEJ8755BIAidyQ0eHoBEASnTjnk0sAJHJDRoejEwBJdOKcTy4BkMgNGR2OTgAk0YlzPrkEQCI3ZHQ4OgGQRCfO+eQSAInckNHh6ARAEp0455NLACRyQ0aHoxMASXTinE8uAZDIDRkdjk4AJNGJcz65BEAiN2R0ODqB/wFZUuxeABS1qwAAAABJRU5ErkJggg==") no-repeat 0 0;
|
|
344
|
+
background-size: 100% 100%;
|
|
345
|
+
user-select: none;
|
|
346
|
+
}
|
|
188
347
|
/*动画部分*/
|
|
189
348
|
/*I'm the home page动画*/
|
|
190
349
|
.flip-animation-start {
|
|
191
|
-
|
|
192
|
-
|
|
350
|
+
transform-origin: left center;
|
|
351
|
+
animation: flipBook1 1s forwards;
|
|
193
352
|
}
|
|
353
|
+
|
|
194
354
|
.flip-animation-end {
|
|
195
|
-
|
|
196
|
-
|
|
355
|
+
transform-origin: left center;
|
|
356
|
+
animation: flipBook2 1s forwards;
|
|
197
357
|
}
|
|
358
|
+
|
|
198
359
|
@keyframes flipBook1 {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
360
|
+
0% {
|
|
361
|
+
transform: perspective(3000px) rotateY(0deg);
|
|
362
|
+
opacity: 1;
|
|
363
|
+
}
|
|
364
|
+
60% {
|
|
365
|
+
opacity: 1;
|
|
366
|
+
}
|
|
367
|
+
100% {
|
|
368
|
+
transform: perspective(3000px) rotateY(-160deg);
|
|
369
|
+
opacity: 0;
|
|
370
|
+
}
|
|
210
371
|
}
|
|
372
|
+
|
|
211
373
|
/*关闭书页*/
|
|
212
374
|
@keyframes flipBook2 {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
375
|
+
0% {
|
|
376
|
+
transform: perspective(3000px) rotateY(-160deg);
|
|
377
|
+
opacity: 0;
|
|
378
|
+
}
|
|
379
|
+
30% {
|
|
380
|
+
opacity: 1;
|
|
381
|
+
}
|
|
382
|
+
70% {
|
|
383
|
+
opacity: 1;
|
|
384
|
+
}
|
|
385
|
+
100% {
|
|
386
|
+
transform: perspective(3000px) rotateY(0deg);
|
|
387
|
+
opacity: 0;
|
|
388
|
+
}
|
|
227
389
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
390
|
+
|
|
391
|
+
.wrap-one {
|
|
392
|
+
position: absolute;
|
|
393
|
+
top: 0;
|
|
394
|
+
left: 50%;
|
|
395
|
+
right: 0;
|
|
396
|
+
bottom: 0;
|
|
397
|
+
z-index: 1;
|
|
235
398
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
399
|
+
|
|
400
|
+
.wrap-one img {
|
|
401
|
+
width: 100%;
|
|
402
|
+
height: 100%;
|
|
239
403
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
404
|
+
|
|
405
|
+
.wrap {
|
|
406
|
+
width: 100%;
|
|
407
|
+
height: 100%;
|
|
408
|
+
display: flex;
|
|
409
|
+
align-items: center;
|
|
410
|
+
position: relative;
|
|
246
411
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
412
|
+
|
|
413
|
+
.wrap-can {
|
|
414
|
+
display: inline-block;
|
|
415
|
+
margin: 0 auto;
|
|
416
|
+
//cursor: none;
|
|
250
417
|
}
|
|
251
|
-
|
|
252
|
-
|
|
418
|
+
|
|
419
|
+
.but-wrap {
|
|
420
|
+
text-align: center;
|
|
253
421
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
422
|
+
|
|
423
|
+
.pages {
|
|
424
|
+
width: 100%;
|
|
425
|
+
height: 100%;
|
|
426
|
+
position: relative;
|
|
258
427
|
}
|
|
259
428
|
|
|
260
|
-
.page-but-left{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
429
|
+
.page-but-left {
|
|
430
|
+
position: absolute;
|
|
431
|
+
top: 0;
|
|
432
|
+
bottom: 0;
|
|
433
|
+
left: 0;
|
|
434
|
+
z-index: 1;
|
|
435
|
+
width: 8%;
|
|
267
436
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
437
|
+
|
|
438
|
+
.page-but-right {
|
|
439
|
+
position: absolute;
|
|
440
|
+
top: 0;
|
|
441
|
+
bottom: 0;
|
|
442
|
+
right: 0;
|
|
443
|
+
z-index: 1;
|
|
444
|
+
width: 8%;
|
|
275
445
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
446
|
+
|
|
447
|
+
.load > span {
|
|
448
|
+
display: inline-block;
|
|
449
|
+
width: 100%;
|
|
450
|
+
text-align: center;
|
|
451
|
+
padding-bottom: 10px;
|
|
452
|
+
font-size: 14px;
|
|
282
453
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
454
|
+
|
|
455
|
+
.docView {
|
|
456
|
+
height: 100%;
|
|
457
|
+
position: relative;
|
|
286
458
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
459
|
+
|
|
460
|
+
.but-brown {
|
|
461
|
+
background-color: #c64c10;
|
|
462
|
+
padding: 0 20px;
|
|
463
|
+
font-size: 12px;
|
|
464
|
+
color: #fff;
|
|
465
|
+
height: 24px;
|
|
466
|
+
line-height: 24px;
|
|
467
|
+
border-radius: 5px;
|
|
468
|
+
border: 0;
|
|
469
|
+
cursor: pointer;
|
|
470
|
+
margin-left: 10px;
|
|
298
471
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
472
|
+
|
|
473
|
+
.book {
|
|
474
|
+
width: 100%;
|
|
475
|
+
height: 100%;
|
|
302
476
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
477
|
+
|
|
478
|
+
.but-act {
|
|
479
|
+
background-color: #bbbbbb;
|
|
480
|
+
color: #fff;
|
|
306
481
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
482
|
+
|
|
483
|
+
.loading-back {
|
|
484
|
+
position: absolute;
|
|
485
|
+
top: 0;
|
|
486
|
+
left: 0;
|
|
487
|
+
right: 0;
|
|
488
|
+
bottom: 0;
|
|
489
|
+
z-index: 100;
|
|
490
|
+
display: flex;
|
|
491
|
+
align-items: center;
|
|
316
492
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
493
|
+
|
|
494
|
+
.loading-cont {
|
|
495
|
+
display: inline-block;
|
|
496
|
+
margin: 0 auto;
|
|
320
497
|
}
|
|
498
|
+
|
|
321
499
|
.loadings {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
500
|
+
display: inline-block;
|
|
501
|
+
font-size: 28px;
|
|
502
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
503
|
+
font-weight: bold;
|
|
504
|
+
color: #fff;
|
|
505
|
+
text-shadow: 0 0 2px #ff3d00, 0 0 1px #ff3d00, 0 0 1px #ff3d00;
|
|
506
|
+
letter-spacing: 2px;
|
|
507
|
+
position: relative;
|
|
330
508
|
}
|
|
331
509
|
|
|
332
510
|
.loadings::after {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
511
|
+
content: "Loading";
|
|
512
|
+
position: absolute;
|
|
513
|
+
left: 0;
|
|
514
|
+
top: 0;
|
|
515
|
+
color: #ff3d00;
|
|
516
|
+
width: 0%;
|
|
517
|
+
height: 100%;
|
|
518
|
+
overflow: hidden;
|
|
519
|
+
animation: loading-animation 6s linear infinite;
|
|
342
520
|
}
|
|
343
521
|
|
|
344
522
|
@keyframes loading-animation {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
523
|
+
0% {
|
|
524
|
+
width: 0;
|
|
525
|
+
}
|
|
348
526
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
527
|
+
100% {
|
|
528
|
+
width: 100%;
|
|
529
|
+
}
|
|
352
530
|
}
|
|
353
531
|
</style>
|