| | |
| | | </u-action-sheet> --> |
| | | |
| | | <u-form-item label-position="top" label-width="25%" label="图片上传:"> |
| | | <evan-upload ref="evanUpload" :imgLimit="4" :options="uploadOption" @on-upload="onUpload"></evan-upload> |
| | | <evan-upload ref="evanUpload" |
| | | :usePreview="true" |
| | | :imgLimit="4" |
| | | :options="uploadOption" |
| | | @on-upload="onUpload" |
| | | @on-pre-video="onPreVideo" |
| | | ></evan-upload> |
| | | </u-form-item> |
| | | |
| | | <u-form-item label-position="top" label="备注:"> |
| | |
| | | this.getHeader() |
| | | }, |
| | | methods:{ |
| | | //获取头部 |
| | | getHeader(){ |
| | | let accessToken = uni.getStorageSync('accessToken'); |
| | | var myHeader = {} |
| | |
| | | this.form.sourceText = this.sourceList[index].text |
| | | this.form.source = this.sourceList[index].value |
| | | }, |
| | | //表单提交 |
| | | submit(){ |
| | | this.$refs.uForm.validate(valid => { |
| | | if (valid) { |
| | |
| | | e.thumbnail = res.data.link |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | onPreVideo(res){ |
| | | } |
| | | } |
| | | }; |