Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
e2302c6d
Commit
e2302c6d
authored
Jul 29, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
726
parent
8e5ccc2d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
passShop.vue
src/components/buy/passShop.vue
+1
-1
audio.vue
src/components/collection/audio.vue
+5
-1
audio.vue
src/components/newLesson/audio.vue
+34
-0
No files found.
src/components/buy/passShop.vue
View file @
e2302c6d
...
...
@@ -27,7 +27,7 @@
<span
class=
"detail"
>
{{
groupDetail
.
goods_desc
.
desc
}}
</span>
<div
class=
"price"
>
<span
class=
"price-content"
>
¥
{{
groupDetail
.
current_price
/
100
}}
元
</span>
<
span
class=
"price-content"
@
click=
"clear"
>
清缓存
</span
>
<
!--
<span
class=
"price-content"
@
click=
"clear"
>
清缓存
</
!
-->
--
>
<span
style=
"text-decoration:line-through;color: #bbb;font-size: 14px"
v-if=
"groupDetail.goods_type === 1 && groupDetail.original_price > groupDetail.current_price"
...
...
src/components/collection/audio.vue
View file @
e2302c6d
...
...
@@ -15,7 +15,7 @@
<div
class=
"title"
>
{{
showObj
.
audio
[
showObj
.
audioIndex
].
title
}}
</div>
<div
class=
"tips"
>
{{
showObj
.
audio
[
showObj
.
audioIndex
].
sub_title
}}
</div>
</div>
<div
:class=
"
{'image-block':true}" ref="imageBlock" @click="imgPop
=true
">
<div
:class=
"
{'image-block':true}" ref="imageBlock" @click="imgPop
Fn
">
<img
ref=
"imgItem"
:src=
"showObj.audio[showObj.audioIndex].url"
>
</div>
<div>
...
...
@@ -121,6 +121,10 @@ export default {
},
methods
:
{
// 改变收藏状态
imgPopFn
(){
this
.
imgPop
=
true
// console.log(this.imgPop)
},
changeCollect
()
{
// console.log(this.hasCollect)
if
(
this
.
hasCollect
)
{
...
...
src/components/newLesson/audio.vue
View file @
e2302c6d
...
...
@@ -141,6 +141,11 @@
<no-finish-dia
/>
</div>
</mt-popup>
<div
v-if=
"imgModel"
class=
'imgBox'
style=
"background: transparent"
>
<div
class=
"box"
>
<img
ref=
"imgItem"
:src=
"showObj.audio[index].image"
/>
</div>
</div>
<div
v-if=
"share_show"
>
<share-page
@
backList=
"backList()"
...
...
@@ -182,6 +187,7 @@ export default {
},
data
()
{
return
{
imgModel
:
false
,
userCourse
:
{},
finishStuat
:
finishStuat
,
popupVisible
:
false
,
...
...
@@ -218,6 +224,7 @@ export default {
},
methods
:
{
ImagePreviewF
(
index
){
console
.
log
(
this
.
showObj
.
audio
[
index
].
image
)
ImagePreview
({
images
:
[
this
.
showObj
.
audio
[
index
].
image
,
...
...
@@ -855,6 +862,28 @@ export default {
background-size: 40 * @toVw 290 * @toVw;
display: inline-block;
}
.imgBox{
position:fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
.box{
width: 100%;
height: 100vh;
transform: translateX(0px);
img{
position: absolute;
width:80vw;
margin: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}
}
._282918034425091245 {
height: 8 * @toVw;
width: 9 * @toVw;
...
...
@@ -1883,3 +1912,8 @@ export default {
}
}
</
style
>
<
style
>
.van-image-preview__image
{
max-height
:
150%
;
}
</
style
>
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