//打开相机
bindOpenCamara:function(e) {
this.bindHideTip();
let share_type = e.currentTarget.dataset.type;
// if(share_type==‘S’){
// if(!app.globalData.vPhone){
// wx.navigateTo({
// url: ‘/pages/bind_phone’
// });
// return;
// }
// }
// let share_type = dom_attr.type;
this.openCamara((videoData) => {
if(share_type == ‘M’) {
this.sendVideoToFriend(videoData);
}
if(share_type == ‘S’) {
app.globalData.videoData = videoData;
wx.navigateTo({
url: ‘/pages/share_form’
});
}
})
},
openCamara:function(callback) {
app.isInnerHide = true;
wx.chooseVideo({
sourceType: [“camera”],
maxDuration: 6,
compressed: true,
camera: “back”,
success: function(res) {
callback && callback(res);
},
fail: (res) => {
console.log(res);
},
complete:()=>{
app.isInnerHide = false;
}
});
},