726

parent 8e5ccc2d
......@@ -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"
......
......@@ -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="imgPopFn">
<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) {
......
......@@ -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>
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