|
@@ -213,11 +213,11 @@ export default {
|
|
|
let count = 1;
|
|
let count = 1;
|
|
|
// 1:店招内容识别(不能连拍和多选),3:调色机识别(不能连拍和多选) 需要实时识别的不支持连拍和多选
|
|
// 1:店招内容识别(不能连拍和多选),3:调色机识别(不能连拍和多选) 需要实时识别的不支持连拍和多选
|
|
|
if (that.photoIdentifyType != 1 && that.photoIdentifyType != 3) {
|
|
if (that.photoIdentifyType != 1 && that.photoIdentifyType != 3) {
|
|
|
- count = that.continuousShoot == '1' ? 20 : 1; //是否允许连拍/相册多选 最多5张
|
|
|
|
|
|
|
+ count = that.continuousShoot == '1' ? 5 : 1; //是否允许连拍/相册多选 最多5张
|
|
|
}
|
|
}
|
|
|
wx.chooseImage({
|
|
wx.chooseImage({
|
|
|
count: count,
|
|
count: count,
|
|
|
- sizeType: ['original'], // 可以指定是原图还是压缩图,默认二者都有
|
|
|
|
|
|
|
+ sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
|
|
sourceType: sourceType, // 可以指定来源是相册还是相机,默认二者都有
|
|
sourceType: sourceType, // 可以指定来源是相册还是相机,默认二者都有
|
|
|
defaultCameraMode: count == 1 ? 'normal' : 'batch', //表示进入拍照界面的默认模式,目前有normal与batch两种选择,normal表示普通单拍模式,batch表示连拍模式,不传该参数则为normal模式。从3.0.26版本开始支持front和batch_front两种值,其中front表示默认为前置摄像头单拍模式,batch_front表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)
|
|
defaultCameraMode: count == 1 ? 'normal' : 'batch', //表示进入拍照界面的默认模式,目前有normal与batch两种选择,normal表示普通单拍模式,batch表示连拍模式,不传该参数则为normal模式。从3.0.26版本开始支持front和batch_front两种值,其中front表示默认为前置摄像头单拍模式,batch_front表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)
|
|
|
// defaultCameraMode: 'normal', //表示进入拍照界面的默认模式,目前有normal与batch两种选择,normal表示普通单拍模式,batch表示连拍模式,不传该参数则为normal模式。从3.0.26版本开始支持front和batch_front两种值,其中front表示默认为前置摄像头单拍模式,batch_front表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)
|
|
// defaultCameraMode: 'normal', //表示进入拍照界面的默认模式,目前有normal与batch两种选择,normal表示普通单拍模式,batch表示连拍模式,不传该参数则为normal模式。从3.0.26版本开始支持front和batch_front两种值,其中front表示默认为前置摄像头单拍模式,batch_front表示默认为前置摄像头连拍模式。(注:用户进入拍照界面仍然可自由切换两种模式)
|
|
@@ -225,13 +225,13 @@ export default {
|
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
let localIds = res.localIds;
|
|
let localIds = res.localIds;
|
|
|
that.localIdsArr = [];
|
|
that.localIdsArr = [];
|
|
|
- that.$emit('newimgarr', {
|
|
|
|
|
- localIds: localIds,
|
|
|
|
|
- locationRemark: that.addressesRemark,
|
|
|
|
|
- collectionItemId: that.collectionItemId,
|
|
|
|
|
- source: 'weixin',
|
|
|
|
|
- });
|
|
|
|
|
- // that.syncUpload(localIds);
|
|
|
|
|
|
|
+ // that.$emit('newimgarr', {
|
|
|
|
|
+ // localIds: localIds,
|
|
|
|
|
+ // locationRemark: that.addressesRemark,
|
|
|
|
|
+ // collectionItemId: that.collectionItemId,
|
|
|
|
|
+ // source: 'weixin',
|
|
|
|
|
+ // });
|
|
|
|
|
+ that.syncUpload(localIds);
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
@@ -248,7 +248,7 @@ export default {
|
|
|
isShowProgressTips: 1, // 默认为1,显示进度提示
|
|
isShowProgressTips: 1, // 默认为1,显示进度提示
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
this.localIdsArr.push(res.serverId);
|
|
this.localIdsArr.push(res.serverId);
|
|
|
- // this.syncUpload(localIds);
|
|
|
|
|
|
|
+ this.syncUpload(localIds);
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|