VIEW:
```
<view class="solids" @tap="ChooseImage" v-if="imgList.length < 4"><text class="cuIcon-cameraadd"></text></view>
```
方法:
```
ChooseImage() {
this.$Request.uploadImg(res => {
var img = res.data[0];
this.imgList.push(img);
this.imgpath = this.imgpath.concat(img.id)
}, this.max-this.imgList.length);
},
```
具體參數解析
~~~
/*
* 上傳圖片
* successFn //回調
* num //選擇圖片的數量
* data //上傳的參數
* progressFn //進度的回調
*/
this.$Request.uploadImg(res => {}, num,data,progressFn);
~~~