Commit e885a775 authored by 吴颖's avatar 吴颖

'test'

parent 501bccef
...@@ -64,11 +64,11 @@ Page({ ...@@ -64,11 +64,11 @@ Page({
wx.chooseVideo({ wx.chooseVideo({
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
camera: 'back', camera: 'back',
compressed: false, compressed: true,
success(res) { success(res) {
console.log(res) console.log(res)
var tempFilePaths = [res.tempFilePath] var tempFilePaths = [res.tempFilePath]
if (Math.round(res.size / 1024 / 1024) < 25) { if (Math.round(res.size / 1024 / 1024) < 50) {
qiniuUploader.upload(0, tempFilePaths, (res) => { qiniuUploader.upload(0, tempFilePaths, (res) => {
console.log(res) console.log(res)
let option = { let option = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment