ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
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); ~~~