726

parent 8e5ccc2d
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<span class="detail">{{groupDetail.goods_desc.desc}}</span> <span class="detail">{{groupDetail.goods_desc.desc}}</span>
<div class="price"> <div class="price">
<span class="price-content">{{groupDetail.current_price/100}}</span> <span class="price-content">{{groupDetail.current_price/100}}</span>
<span class="price-content" @click="clear">清缓存</span> <!-- <span class="price-content" @click="clear">清缓存</!--> -->
<span <span
style="text-decoration:line-through;color: #bbb;font-size: 14px" style="text-decoration:line-through;color: #bbb;font-size: 14px"
v-if="groupDetail.goods_type === 1 && groupDetail.original_price > groupDetail.current_price" v-if="groupDetail.goods_type === 1 && groupDetail.original_price > groupDetail.current_price"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="title">{{showObj.audio[showObj.audioIndex].title}}</div> <div class="title">{{showObj.audio[showObj.audioIndex].title}}</div>
<div class="tips">{{showObj.audio[showObj.audioIndex].sub_title}}</div> <div class="tips">{{showObj.audio[showObj.audioIndex].sub_title}}</div>
</div> </div>
<div :class="{'image-block':true}" ref="imageBlock" @click="imgPop=true"> <div :class="{'image-block':true}" ref="imageBlock" @click="imgPopFn">
<img ref="imgItem" :src="showObj.audio[showObj.audioIndex].url"> <img ref="imgItem" :src="showObj.audio[showObj.audioIndex].url">
</div> </div>
<div> <div>
...@@ -121,6 +121,10 @@ export default { ...@@ -121,6 +121,10 @@ export default {
}, },
methods: { methods: {
// 改变收藏状态 // 改变收藏状态
imgPopFn(){
this.imgPop = true
// console.log(this.imgPop)
},
changeCollect() { changeCollect() {
// console.log(this.hasCollect) // console.log(this.hasCollect)
if (this.hasCollect) { if (this.hasCollect) {
......
...@@ -141,6 +141,11 @@ ...@@ -141,6 +141,11 @@
<no-finish-dia /> <no-finish-dia />
</div> </div>
</mt-popup> </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"> <div v-if="share_show">
<share-page <share-page
@backList="backList()" @backList="backList()"
...@@ -182,6 +187,7 @@ export default { ...@@ -182,6 +187,7 @@ export default {
}, },
data() { data() {
return { return {
imgModel:false,
userCourse: {}, userCourse: {},
finishStuat: finishStuat, finishStuat: finishStuat,
popupVisible: false, popupVisible: false,
...@@ -218,6 +224,7 @@ export default { ...@@ -218,6 +224,7 @@ export default {
}, },
methods: { methods: {
ImagePreviewF(index){ ImagePreviewF(index){
console.log(this.showObj.audio[index].image)
ImagePreview({ ImagePreview({
images: [ images: [
this.showObj.audio[index].image, this.showObj.audio[index].image,
...@@ -855,6 +862,28 @@ export default { ...@@ -855,6 +862,28 @@ export default {
background-size: 40 * @toVw 290 * @toVw; background-size: 40 * @toVw 290 * @toVw;
display: inline-block; 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 { ._282918034425091245 {
height: 8 * @toVw; height: 8 * @toVw;
width: 9 * @toVw; width: 9 * @toVw;
...@@ -1883,3 +1912,8 @@ export default { ...@@ -1883,3 +1912,8 @@ export default {
} }
} }
</style> </style>
<style>
.van-image-preview__image{
max-height: 150%;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment