diff --git a/components/remaining/remaining.vue b/components/remaining/remaining.vue
index 30d6207..c5e8bd7 100644
--- a/components/remaining/remaining.vue
+++ b/components/remaining/remaining.vue
@@ -4,28 +4,29 @@
-
+
跳过{{remaining}}
跳过
-
-
-
-
-
-
- A
-
-
- B
-
-
- C
-
-
+
+ {{'ddd' + heightOut}}
+ 111
+
+
+
+
+
+
+
+
+
+
+
+
@@ -53,23 +54,23 @@
type: true,
banner: false,
protocol: false,
- heightes: '',
+ heightOut: '',
imgurl: [],
- indicatorDots: true,
- autoplay: true,
- loop : 'true',
- interval: 3000,
- duration: 500,
- vide0_url : '',
+ loop: 'true',
+ vide0_url: '',
agreement: { // 用户协议内容
document_title: "",
document_content: ""
},
+ heightesStyle : {
+ height : ''
+ },
title: 'video',
src: '',
- inputValue: '',
- controls : false,
- autoplayes : true,
+ inputValue: '',
+ controls: false,
+ autoplayes: true,
+ list: [],
danmuList: [{
text: '第 1s 出现的弹幕',
color: '#ff0000',
@@ -80,12 +81,13 @@
color: '#ff00ff',
time: 3
}
- ]
+ ],
+ background: ['color1', 'color2', 'color3'],
+ indicatorDots: true,
+ autoplay: true,
+ interval: 2000,
+ duration: 500
};
- },
- onLoad() {
-
-
},
onReady: function(res) {
this.videoContext = uni.createVideoContext('myVideo')
@@ -107,7 +109,7 @@
this.$u.api.pageList({}).then((res) => {
console.log('协议', res)
let data_image = res.data.welcome_page
- let vide0_url = res.data.start_page[0].launch_path
+ let vide0_url = res.data.start_page[0].launch_path
this.list = data_image;
this.vide0_url = vide0_url;
console.log(this.list)
@@ -128,16 +130,21 @@
leap_over() {
this.type = !this.type
this.banner = !this.banner;
+ clearInterval(this.timer)
+ // 获取屏幕高度
+ this.getSystemInfo()
},
leap_overto() {
- this.protocol = true
+ this.protocol = true;
+ this.banner = false;
},
getSystemInfo() {
+ let that = this;
// 获取屏幕高度
uni.getSystemInfo({
success: function(res) {
- this.heightes = res.windowHeight;
- console.log(this.heightes)
+ that.heightOut = res.windowHeight;
+ console.log('666666666666666' + that.heightOut)
}
});
},
@@ -180,19 +187,33 @@
rgb.push(color)
}
return '#' + rgb.join('')
+ },
+ changeIndicatorDots(e) {
+ this.indicatorDots = !this.indicatorDots
+ },
+ changeAutoplay(e) {
+ this.autoplay = !this.autoplay
+ },
+ intervalChange(e) {
+ this.interval = e.target.value
+ },
+ durationChange(e) {
+ this.duration = e.target.value
}
- },
- mounted() {
- // 3秒倒计时调用
- this.remaining_time()
- // 获取屏幕高度
- this.getSystemInfo()
- this.apiwelcome()
- }
+ },
+ mounted() {
+
+ // 3秒倒计时调用
+ this.remaining_time()
+ this.apiwelcome()
+ }
}
+