安卓机器打开系统相册默认不是打开全部照片 而是选择了某一部分存储的照片
发布于 4 年前 作者 lijin 1281 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

安卓机器打开系统相册默认不是打开全部照片  而是选择了某一部分存储的照片

  • 预期表现

安卓机器打开系统相册默认打开全部照片

  • 复现路径

点击分享

  • 提供一个最简复现 Demo

onAddButtonTap: function () {

var _this = this;

wx.chooseImage({

count: _this.data.photoMaxCnt - _this.data.photoItems.length,

sizeType: [‘compressed’],

sourceType: [‘album’, ‘camera’],

success: function (res) {

console.log(res);

var currentItem = _this.data.photoItems

console.log(currentItem);

currentItem = currentItem.concat(res.tempFilePaths);

if (currentItem.length > _this.data.photoMaxCnt) {

currentItem.length = _this.data.photoMaxCnt;

$.showToastWarning({

title: ‘最多添加’ + String(_this.data.photoMaxCnt) + ‘张图片’,

})

}

_this.setData({

isChangeNotice_img: 1,

photoItems: currentItem,

showAddButton: currentItem.length < _this.data.photoMaxCnt,

})

console.log(currentItem);

},

})

},

回到顶部