From 0f67147f8c4914c675317532135a4dc704730f10 Mon Sep 17 00:00:00 2001 From: gaoyuanwei <2826352639@qq.com> Date: Thu, 30 Jun 2022 18:52:54 +0800 Subject: [PATCH] .ant-message --- .../components/Developer/DeveloperTrial.vue | 15 +++++++++++++++ .../views/newHome/components/PopularAbility.vue | 12 ++++++------ .../src/views/newHome/components/WorkDynamics.vue | 4 ++-- .../views/personalCenter/components/MyPublish.vue | 4 ++-- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue index 32d723e1..aa3918f2 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue @@ -80,6 +80,16 @@ oInput.remove() // 执行浏览器复制命令 message.success(name + '成功') } + message.config({ + top: '100px', // 距离顶部的位置 + }) + // const success = () => { + // message.success({ + // // content: 'This is a prompt message with custom className and style', + // className: 'custom-class', + // style: {}, + // }) + // } watch( () => props.dataList, (val) => { @@ -157,3 +167,8 @@ } } + diff --git a/front/src/views/newHome/components/PopularAbility.vue b/front/src/views/newHome/components/PopularAbility.vue index 66f7475a..82206d55 100644 --- a/front/src/views/newHome/components/PopularAbility.vue +++ b/front/src/views/newHome/components/PopularAbility.vue @@ -16,7 +16,7 @@ > {{ sel }} @@ -32,7 +32,7 @@
-
+
{{ select }}:{{ item.visits }}
@@ -63,8 +63,8 @@ import { useStore } from 'vuex' const store = useStore() const router = useRouter() - const select = ref('访问量') - const selList = ref(['访问量', '申购量', '收藏量']) + const select = ref('浏览量') + const selList = ref(['浏览量', '申购量', '收藏量']) const list = ref([]) const paramsGetResources = { @@ -74,13 +74,13 @@ type: '', name: '', infoList: [], - orderField: 'visits', // total 综合 visits 访问量 applyCount 申请量 score 评分 collectCount 收藏量 + orderField: 'visits', // total 综合 visits 浏览量 applyCount 申请量 score 评分 collectCount 收藏量 orderType: 'DESC', // ASC 升序 DESC 降序 } const selectChange = (sel) => { select.value = sel switch (select.value) { - case '访问量': + case '浏览量': paramsGetResources.orderField = 'visits' break case '申购量': diff --git a/front/src/views/newHome/components/WorkDynamics.vue b/front/src/views/newHome/components/WorkDynamics.vue index 1bb82323..3169b131 100644 --- a/front/src/views/newHome/components/WorkDynamics.vue +++ b/front/src/views/newHome/components/WorkDynamics.vue @@ -146,9 +146,9 @@ '智能算法', '图层服务', '开发组件', - '办公组件', + // '办公组件', '业务组件', - '其他', + // '其他', ]) const visible = ref(false) const showModal = () => { diff --git a/front/src/views/personalCenter/components/MyPublish.vue b/front/src/views/personalCenter/components/MyPublish.vue index da9c0698..e9c4b535 100644 --- a/front/src/views/personalCenter/components/MyPublish.vue +++ b/front/src/views/personalCenter/components/MyPublish.vue @@ -318,9 +318,9 @@ '智能算法', '图层服务', '开发组件', - '办公组件', + // '办公组件', '业务组件', - '其他', + // '其他', ]) let tabname = ref('组件服务') function tabqiehuan(item, index) {