diff --git a/template/admin/src/components/uploadImg/index.vue b/template/admin/src/components/uploadImg/index.vue new file mode 100644 index 000000000..1272ea210 --- /dev/null +++ b/template/admin/src/components/uploadImg/index.vue @@ -0,0 +1,359 @@ + + + + + + + + 本地上传 + 网络上传 + 扫码上传 + + + + + + + + 提取照片 + + + + + + + + + 建议上传图片最大宽度750px,不超过3MB;仅支持jpeg、png格式 + + + + + + + + + + + + + + + + + 扫描二维码,快速上传手机图片 + + + 刷新图库 + 刷新图库按钮,可显示移动端上传成功的图片 + + + + + + + + + + + + 取 消 + 确 定 + + + + + + + diff --git a/template/admin/src/components/uploadPictures/index.vue b/template/admin/src/components/uploadPictures/index.vue index 6241bab4a..148e86a8c 100644 --- a/template/admin/src/components/uploadPictures/index.vue +++ b/template/admin/src/components/uploadPictures/index.vue @@ -34,7 +34,21 @@ v-if="isShow !== 0" >使用选中图片 - --> + 上传图片 + + 删除图片 + @@ -146,9 +161,10 @@ import { } from '@/api/uploadPictures'; import Setting from '@/setting'; import { getCookies } from '@/libs/util'; +import uploadImg from '@/components/uploadImg'; export default { name: 'uploadPictures', - // components: { editFrom }, + components: { uploadImg }, props: { isChoice: { type: String, @@ -211,6 +227,9 @@ export default { this.getFileList(); }, methods: { + uploadModal() { + this.$refs.upload.uploadModal = true; + }, enterMouse(item) { item.realName = !item.realName; },