|
@@ -32,11 +32,11 @@ export default {
|
|
|
navToalbum() {
|
|
|
var that = this;
|
|
|
wx.chooseImage({
|
|
|
- count: 1,
|
|
|
- sizeType: ["original", "compressed"],
|
|
|
- sourceType: ["album"],
|
|
|
+ count: 1, //所选图片数量
|
|
|
+ sizeType: ["original", "compressed"], //图片质量original=原图,compressed=压缩图
|
|
|
+ sourceType: ["album"], //图片来源album=相册,camera=相机
|
|
|
success(res) {
|
|
|
- console.log("所选相片路径:" + res.tempFilePaths);
|
|
|
+ console.log("所选图片临时路径:" + res.tempFilePaths);
|
|
|
that.$navigator.push("detail?file=" + res.tempFilePaths);
|
|
|
},
|
|
|
});
|