Commit ac1d2f89 authored by 石盼盼's avatar 石盼盼

Merge branch 'master' of...

Merge branch 'master' of http://gitlab.xueyoubangedu.com/shipanpan/wandouchengzhang_coach into shipanpan
parents 9cf820d1 1fe35bca
...@@ -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