parent
78833a9588
commit
82f674e5dc
After Width: | Height: | Size: 252 KiB |
@ -1,2 +1,8 @@
|
|||||||
<!--pages/test/camera.wxml-->
|
<!--pages/test/camera.wxml-->
|
||||||
<text>pages/test/camera.wxml</text>
|
<text>pages/test/camera.wxml</text>
|
||||||
|
<view class="demobox">
|
||||||
|
<view class="title">开启相机</view>
|
||||||
|
<camera device-position="back" flash="auto" style="width: 100%;height: 300px;"></camera>
|
||||||
|
<button type="primary" bindtap="takePhoto">拍照</button>
|
||||||
|
<image wx:if="{{src}}" mode="widthFix" src="{{src}}"></image>
|
||||||
|
</view>
|
||||||
|
@ -1 +1,5 @@
|
|||||||
/* pages/test/image.wxss */
|
/* pages/test/image.wxss */
|
||||||
|
image{
|
||||||
|
width: 300rpx;
|
||||||
|
height: 300rpx;
|
||||||
|
}
|
@ -1,2 +0,0 @@
|
|||||||
<!--pages/test/vedio.wxml-->
|
|
||||||
<text>pages/test/vedio.wxml</text>
|
|
@ -0,0 +1,71 @@
|
|||||||
|
// pages/test/vedio.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
src:'http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400',
|
||||||
|
danmulist:[
|
||||||
|
{text:'第1s出现',color:'yellow',time:1},
|
||||||
|
{text:'第3s出现',color:'purple',time:3},
|
||||||
|
{text:'第7s出现',color:'red',time:7}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面加载
|
||||||
|
*/
|
||||||
|
onLoad: function (options) {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
|
*/
|
||||||
|
onReady: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面显示
|
||||||
|
*/
|
||||||
|
onShow: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面隐藏
|
||||||
|
*/
|
||||||
|
onHide: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面卸载
|
||||||
|
*/
|
||||||
|
onUnload: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||||||
|
*/
|
||||||
|
onPullDownRefresh: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面上拉触底事件的处理函数
|
||||||
|
*/
|
||||||
|
onReachBottom: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户点击右上角分享
|
||||||
|
*/
|
||||||
|
onShareAppMessage: function () {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
<!--pages/test/vedio.wxml-->
|
||||||
|
<text>pages/test/vedio.wxml</text>
|
||||||
|
<view class="demobox">
|
||||||
|
<view class="title">播放网络视频</view>
|
||||||
|
<video src="{{src}}" controls="true" autoplay="true" danmu-list="{{danmulist}}"></video>
|
||||||
|
</view>
|
@ -0,0 +1 @@
|
|||||||
|
/* pages/test/vedio.wxss */
|
Loading…
Reference in new issue