zhangsiyu 3 years ago
parent
commit
c036d5aeba
  1. 8
      pages/details/details.vue

8
pages/details/details.vue

@ -6,8 +6,8 @@
</view> </view>
<view class="details_top"> <view class="details_top">
<view class="max_box"> <view class="max_box">
<img :class="ykwz?'img1':'img2'" :src="details.list.tupian" /> <img v-if="sftp" :class="ykwz?'img1':'img2'" :src="details.list.tupian" />
<video :class="ykwz?'img1':'img2'" src="../../static/test.mp4" autoplay="true" loop=true :enable-progress-gesture='false' :controls='false' object-fit="cover" :show-center-play-btn="false"></video> <video v-if="!sftp" :class="ykwz?'img1':'img2'" src="../../static/test.mp4" autoplay="true" loop=true :enable-progress-gesture='false' :controls='false' object-fit="cover" :show-center-play-btn="false"></video>
</view> </view>
</view> </view>
<view class="prices"> <view class="prices">
@ -156,7 +156,9 @@
this.details.list.tupian=this.details.list.imagePath this.details.list.tupian=this.details.list.imagePath
if(this.details.list.tupian.indexOf('mp4')!=-1){ if(this.details.list.tupian.indexOf('mp4')!=-1){
// sfsp=true // sfsp=true
this.sftp=false
}else{ }else{
this.sftp=true
// sfsp=false // sfsp=false
uni.getImageInfo({ uni.getImageInfo({
src: this.details.list.tupian, src: this.details.list.tupian,
@ -202,6 +204,7 @@
sfgm:false, sfgm:false,
}) })
let ykwz=ref(true) let ykwz=ref(true)
let sftp=ref(true)
let daojs=ref(null) let daojs=ref(null)
details.users = uni.getStorageSync('users') details.users = uni.getStorageSync('users')
console.log(details.users); console.log(details.users);
@ -354,6 +357,7 @@
} }
} }
return { return {
sftp,
dowm, dowm,
guanb, guanb,
up, up,

Loading…
Cancel
Save