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