Commit 57746e59 by LJM

压缩图片

parent 1f4e2682
...@@ -472,6 +472,7 @@ export default { ...@@ -472,6 +472,7 @@ export default {
var self = this; var self = this;
uni.chooseImage({ uni.chooseImage({
count: self.maxNums, count: self.maxNums,
sizeType: ['compressed'],
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
success: chooseImageRes => { success: chooseImageRes => {
uni.showLoading({ uni.showLoading({
......
...@@ -651,6 +651,7 @@ export default { ...@@ -651,6 +651,7 @@ export default {
var self = this; var self = this;
uni.chooseImage({ uni.chooseImage({
count: self.maxNums, count: self.maxNums,
sizeType: ['compressed'],
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
success: chooseImageRes => { success: chooseImageRes => {
uni.showLoading({ uni.showLoading({
......
...@@ -627,6 +627,7 @@ export default { ...@@ -627,6 +627,7 @@ export default {
var self = this; var self = this;
uni.chooseImage({ uni.chooseImage({
count: self.maxNums, count: self.maxNums,
sizeType: ['compressed'],
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
success: chooseImageRes => { success: chooseImageRes => {
uni.showLoading({ uni.showLoading({
......
...@@ -472,6 +472,7 @@ export default { ...@@ -472,6 +472,7 @@ export default {
var self = this; var self = this;
uni.chooseImage({ uni.chooseImage({
count: self.maxNums, count: self.maxNums,
sizeType: ['compressed'],
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
success: chooseImageRes => { success: chooseImageRes => {
uni.showLoading({ uni.showLoading({
......
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 sign in to comment