Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
zhaocaih5-wanda
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
476e1a78
authored
Jul 08, 2019
by
mamingqun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cb
parent
75c26156
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
13 deletions
+55
-13
src/assets/images/02/left.png
+0
-0
src/assets/mp3/music.mp3
+0
-0
src/views/erjiye.vue
+1
-1
src/views/shouye.vue
+1
-1
src/views/xiangqing.vue
+17
-2
src/views/xu.vue
+34
-7
src/views/yjml.vue
+2
-2
No files found.
src/assets/images/02/left.png
View file @
476e1a78
5.17 KB
|
W:
|
H:
3.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/mp3/music.mp3
View file @
476e1a78
No preview for this file type
src/views/erjiye.vue
View file @
476e1a78
...
...
@@ -265,7 +265,7 @@ export default {
.content
{
//
border
:
1px
solid
white
;
width
:
600
/
@
r
;
height
:
925
/
@
r
;
height
:
820
/
@
r
;
position
:
absolute
;
top
:
45%
;
left
:
50%
;
...
...
src/views/shouye.vue
View file @
476e1a78
...
...
@@ -10,7 +10,7 @@
<div
class=
"cheng animated bounceInRight"
></div>
<div
class=
"button01 animated tada"
></div>
<div
class=
"num-box animated bounceInUp"
>
<div
class=
"top-info"
>
仅供内部使用
</div>
<div
class=
"top-info"
>
仅供
万达
内部使用
</div>
<div>
<span>
阅读人数
</span>
:
{{
$store
.
state
.
yudushu
}}
</div>
...
...
src/views/xiangqing.vue
View file @
476e1a78
...
...
@@ -10,7 +10,7 @@
<li
class=
"main-title"
@
click=
"goFengMian"
>
封面
</li>
<li
class=
"main-title"
@
click=
"goXu"
>
目标
</li>
<ul
:id=
"index + 1"
v-for=
"(item, index) in $store.state.list"
:key=
"index"
>
<li
class=
"main-title"
>
{{
item
.
catname
}}
</li>
<li
class=
"main-title"
@
click=
"gotoMulu(index + 1)"
>
{{
item
.
catname
}}
</li>
<div
v-for=
"(ele, num) in item.child"
:key=
"num"
>
<li
:id=
"ele.catname"
...
...
@@ -146,6 +146,13 @@ export default {
var
clipboard
=
new
Clipboard
(
'.btn'
);
clipboard
.
on
(
'success'
,
function
(
e
)
{
alert
(
'复制成功'
)
});
clipboard
.
on
(
'error'
,
function
(
e
)
{
console
.
log
(
e
);
});
},
methods
:
{
showMulu
()
{
...
...
@@ -206,6 +213,14 @@ export default {
},
closeYulan
()
{
this
.
yulanButton
=
false
},
gotoMulu
()
{
console
.
log
(
'goto目录'
);
$eventbus
.
$emit
(
'jumpPage'
,
{
pageName
:
'erjiye'
})
setTimeout
(()
=>
{
$
(
'body'
).
css
(
'overflow'
,
'auto'
)
$eventbus
.
$emit
(
'maodian'
,
this
.
tancengIndex
)
});
}
},
components
:
{
...
...
@@ -234,7 +249,7 @@ export default {
this
.
ulList
=
[]
imgArr
.
forEach
((
ele
)
=>
{
this
.
ulList
.
push
(
ele
.
currentSrc
)
$
(
ele
).
on
(
'click'
,()
=>
{
$
(
ele
).
on
(
'click'
,
()
=>
{
this
.
yulanButton
=
true
})
})
...
...
src/views/xu.vue
View file @
476e1a78
<
template
>
<div
class=
"book-page-box book-page-1 preserve-3d zindex"
@
click=
"handleJump"
>
<div
class=
"book-page page-front"
>
<div
class=
"xu"
>
<goBack
class=
"book-page page-front"
/>
<div
id=
"io"
class=
"xu"
>
<goBack
class=
"book-page page-front"
/>
<div
class=
"main-box"
>
<div
class=
"title"
></div>
<!--
<div
class=
"content"
>
...
...
@@ -32,14 +32,41 @@ export default {
}
},
mounted
()
{
// $(function () {
// function judge() {
// var startx;//让startx在touch事件函数里是全局性变量。
// var endx;
// var el = document.getElementById('io');//触摸区域。
// function cons() { //独立封装这个事件可以保证执行顺序,从而能够访问得到应该访问的数据。
// if (startx > endx) { //判断左右移动程序
// alert("left");
// } else {
// alert("right");
// }
// }
// el.addEventListener('touchstart', function (e) {
// var touch = e.changedTouches;
// startx = touch[0].clientX;
// starty = touch[0].clientY;
// });
// el.addEventListener('touchend', function (e) {
// var touch = e.changedTouches;
// endx = touch[0].clientX;
// endy = touch[0].clientY;
// cons(); //startx endx 的数据收集应该放在touchend事件后执行,而不是放在touchstart事件里执行,这样才能访问到touchstart和touchend这2个事件产生的startx和endx数据。另外startx和endx在_touch事件函数里是全局性的,所以在此函数中都可以访问得到,所以只需要注意事件执行的先后顺序即可。
// });
// }
// judge();
// })
},
methods
:
{
handleJump
()
{
$eventbus
.
$emit
(
'jumpPage'
,
{
pageName
:
'yjml'
})
}
},
components
:{
components
:
{
goBack
}
}
...
...
@@ -58,8 +85,8 @@ export default {
}
.to-left
{
width
:
7
0
/
@
r
;
height
:
7
0
/
@
r
;
width
:
9
0
/
@
r
;
height
:
9
0
/
@
r
;
position
:
absolute
;
right
:
15
/
@
r
;
top
:
50%
;
...
...
@@ -128,7 +155,7 @@ export default {
background
:
url("../assets/images/02/title.png")
no-repeat
center
center
;
background-size
:
contain
;
height
:
115
/
@
r
;
margin-bottom
:
60
/
@
r
;
//
margin-bottom
:
60
/
@
r
;
}
.content
{
...
...
src/views/yjml.vue
View file @
476e1a78
...
...
@@ -23,7 +23,7 @@
</div>
<!--
<div
class=
"yijian animated bounceInRight"
></div>
-->
<div
class=
"tanceng"
v-show=
"tanceng"
>
<div
class=
"kuang kuang
1
"
v-if=
"tancengIndex === 1"
>
<div
class=
"kuang kuang
3
"
v-if=
"tancengIndex === 1"
>
<div
class=
"close"
@
click=
"handleCloseTanCeng"
></div>
<div
class=
"buttons"
@
click=
"handleJump"
></div>
<div
class=
"laozhaos"
></div>
...
...
@@ -33,7 +33,7 @@
<div
class=
"buttons"
@
click=
"handleJump"
></div>
<div
class=
"laozhaos"
></div>
</div>
<div
class=
"kuang kuang
3
"
v-if=
"tancengIndex === 3"
>
<div
class=
"kuang kuang
1
"
v-if=
"tancengIndex === 3"
>
<div
class=
"close"
@
click=
"handleCloseTanCeng"
></div>
<div
class=
"buttons"
@
click=
"handleJump(3)"
></div>
<div
class=
"laozhaos"
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment