Commit 08a250c8 by chenwq

更新图片选择源类型,支持相册和相机

1 parent 7b0d0642
...@@ -417,7 +417,7 @@ Page({ ...@@ -417,7 +417,7 @@ Page({
let { orderObj } = _this.data let { orderObj } = _this.data
wx.chooseImage({ wx.chooseImage({
count: 1, count: 1,
sourceType: ['camera'], sourceType: ['album', 'camera'],
success(res) { success(res) {
let [tempFiles] = res.tempFilePaths let [tempFiles] = res.tempFilePaths
for (const file of res.tempFiles) { for (const file of res.tempFiles) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!