diff --git a/src/components/common/upload/index.scss b/src/components/common/upload/index.scss index b329c84c..20d12d50 100644 --- a/src/components/common/upload/index.scss +++ b/src/components/common/upload/index.scss @@ -114,6 +114,30 @@ } } } + .icon-container { + .search-text { + width: 22.5rem; + } + .icon-content { + margin: 0 -1rem; + width: calc(100% + 2rem); + .item { + transition: all 0.3s ease-in-out; + &:hover { + color: $cr-primary; + border-color: $cr-primary; + position: relative; + scale: 1.1; + } + &.active { + color: $cr-primary; + border-color: $cr-primary; + position: relative; + scale: 1.1; + } + } + } + } } .upload-btn { cursor: pointer; diff --git a/src/components/common/upload/index.vue b/src/components/common/upload/index.vue index 2f5e7289..b21f3061 100644 --- a/src/components/common/upload/index.vue +++ b/src/components/common/upload/index.vue @@ -4,136 +4,161 @@ -
-
-
- - - - -
- - - - - -
-
-
-
- 上传{{ upload_type_name }} - 删除{{ upload_type_name }} - -
- -
-
-
@@ -36,20 +39,21 @@ const style = ref(''); const style_container = ref(''); const id_bool = ref(true); const stats_list = reactive([ - { id: '1', name: '订单总数', value: '15' }, - { id: '2', name: '商品收藏', value: '3' }, - { id: '3', name: '我的足迹', value: '8' }, - { id: '4', name: '我的积分', value: '310' }, + { id: '1', name: '订单总数', value: '100' }, + { id: '2', name: '商品收藏', value: '10' }, + { id: '3', name: '我的足迹', value: '1000' }, + { id: '4', name: '我的积分', value: '10000' }, ]); interface icon_params { id: string; src: uploadList[]; + icon: string; href: string; } const user_info = ref(['1', '2', '3', '4']); const icon_setting = ref([ - { id: '1', src: [], href: 'a' }, - { id: '2', src: [], href: 'a' }, + { id: '1', src: [], icon: '', href: 'a' }, + { id: '2', src: [], icon: '', href: 'a' }, ]); const base_data = reactive({ // 头像大小 @@ -61,7 +65,10 @@ const base_data = reactive({ // 用户名字号 user_name_size: 16, // 用户ID颜色 - user_id_color_list: [{color: 'rgba(254, 184, 143, 1)', color_percentage: ''}, {color: 'rgba(255, 227, 220, 1)', color_percentage: ''}], + user_id_color_list: [ + { color: 'rgba(254, 184, 143, 1)', color_percentage: '' }, + { color: 'rgba(255, 227, 220, 1)', color_percentage: '' }, + ], // 用户ID颜色 user_id_color: 'rgba(0, 0, 0, 1)', // 用户ID方向 diff --git a/src/components/model-user-info/model-user-info-content.vue b/src/components/model-user-info/model-user-info-content.vue index c548d907..f664d6d9 100644 --- a/src/components/model-user-info/model-user-info-content.vue +++ b/src/components/model-user-info/model-user-info-content.vue @@ -15,7 +15,7 @@