新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
@ -1,52 +1,52 @@
|
||||
<template>
|
||||
<uv-popup ref="popup" @change="change">
|
||||
<view class="video-view" v-if="show">
|
||||
<video class="video" :src="getSec" :autoplay="autoplay"></video>
|
||||
</view>
|
||||
</uv-popup>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
src: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
autoplay: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
videoSrc: '',
|
||||
show: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getSec() {
|
||||
return this.src || this.videoSrc;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open(url) {
|
||||
this.videoSrc = url;
|
||||
this.$refs.popup.open();
|
||||
},
|
||||
close() {
|
||||
this.$refs.popup.close();
|
||||
},
|
||||
change(e) {
|
||||
this.show = e.show;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.video-view {
|
||||
width: 750rpx;
|
||||
.video {
|
||||
width: 750rpx;
|
||||
}
|
||||
}
|
||||
<template>
|
||||
<uv-popup ref="popup" @change="change">
|
||||
<view class="video-view" v-if="show">
|
||||
<video class="video" :src="getSec" :autoplay="autoplay"></video>
|
||||
</view>
|
||||
</uv-popup>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
src: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
autoplay: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
videoSrc: '',
|
||||
show: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getSec() {
|
||||
return this.src || this.videoSrc;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open(url) {
|
||||
this.videoSrc = url;
|
||||
this.$refs.popup.open();
|
||||
},
|
||||
close() {
|
||||
this.$refs.popup.close();
|
||||
},
|
||||
change(e) {
|
||||
this.show = e.show;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.video-view {
|
||||
width: 750rpx;
|
||||
.video {
|
||||
width: 750rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user