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);
~~~