|
|
@@ -292,10 +292,11 @@ export default {
|
|
|
let sourceType = that.pictureSource == '1' ? ['album', 'camera'] : ['camera'];
|
|
|
wx.chooseImage({
|
|
|
count: 1,
|
|
|
- sizeType: ['original'], // 可以指定是原图还是压缩图,默认二者都有
|
|
|
- sourceType: sourceType, // 可以指定来源是相册还是相机,默认二者都有
|
|
|
- defaultCameraMode: 'normal', //表示进入拍照界面的默认模式,目前有normal与batch两种选择,normal表示普通单拍模式,batch表示连拍模式,不传该参数则为normal模式。从3.0.26版本开始支持front和batch_front两种值,其中front表示默认为前置摄像头单拍模式,batch_front表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)
|
|
|
- isSaveToAlbum: 0, //整型值,0表示拍照时不保存到系统相册,1表示自动保存,默认值是1
|
|
|
+ sizeType: ['original'],
|
|
|
+ sourceType: sourceType,
|
|
|
+ mode: 'single',
|
|
|
+ defaultCameraMode: 'normal',
|
|
|
+ isSaveToAlbum: 0,
|
|
|
success: function (res) {
|
|
|
var localIds = '';
|
|
|
if (res.localIds != undefined) {
|