-
@@ -55,6 +68,22 @@ export default {
components: {
VueCropper
},
+ props: {
+ fileArray: {
+ type: Array,
+ default: () => {
+ [];
+ }
+ },
+ fit: {
+ type: String,
+ default: ""
+ },
+ max: {
+ type: Number,
+ default: 1
+ }
+ },
data() {
return {
dialogVisible: false,
@@ -186,6 +215,41 @@ export default {
justify-content: center;
margin-top: 15px;
}
+.list_img {
+ width: 140px;
+ height: 140px;
+ border-radius: 5px;
+ overflow: hidden;
+ margin-left: 10px;
+ position: relative;
+ cursor: pointer;
+}
+.list_img_back {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ background-color: #000;
+ z-index: 1;
+ opacity: 0;
+}
+.list_img:hover .list_img_back {
+ opacity: 0.5;
+}
+.list_img_item {
+ width: 100%;
+ height: 100%;
+}
+.img_replace {
+ position: absolute;
+ top: calc((100% - 34px) / 2);
+ left: calc((100% - 34px) / 2);
+ color: #fff;
+ font-size: 34px;
+}
+.img_crop {
+ display: flex;
+ align-items: center;
+}
-
\ No newline at end of file
diff --git a/src/pages/example/example_upload.vue b/src/pages/example/example_upload.vue
index fdf4d8f4f88ca408e8e6a8f5512b62f35c33e380..f33161baebeec5e0044dbe404564da2c092b988a 100644
--- a/src/pages/example/example_upload.vue
+++ b/src/pages/example/example_upload.vue
@@ -12,7 +12,7 @@
带有裁剪功能的图片上传
-
-
-
-
-
- {{msg}}
-
-
-
-
-
-
-
-
-
-
-
-
- 记住我
-
-
- 登 录
-
-
-
- 还没有账户?立即注册
-
-
-
-
-
-
-
- 用户注册
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 注 册
-
-
-
- 登录已有账号
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/user/user_info.vue b/src/pages/user/user_info.vue
index c10d8d4ec251e83f92321e856d1e7fb6d673c360..cc43a10e1f5f72a864c6bb4bf3315e4fed65f535 100644
--- a/src/pages/user/user_info.vue
+++ b/src/pages/user/user_info.vue
@@ -9,23 +9,84 @@
+
+
+ 账号:
+
+
+
+ 密码:
+
+
+
+ 昵称:
+
+
+
+ 头像:
+
+
+
+ 联系人:
+
+
+
+ 手机号:
+
+
+
+ 邮箱:
+
+
+
+ 组织机构:
+
+
+
+ 当前角色:
+
+
+