diff --git a/components/ChatHistory.vue b/components/ChatHistory.vue index 4093db4..7b4840c 100644 --- a/components/ChatHistory.vue +++ b/components/ChatHistory.vue @@ -2,7 +2,30 @@ - + + + + + + + + + + 新建对话 - + @@ -177,9 +218,24 @@ export default { background-color: #ffffff; .drawer-header { - padding: 0 32rpx; - height: 140rpx; - line-height: 120rpx; + .header-top { + height: 80rpx; + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20rpx; + + .header-tabs { + width: 300rpx; + } + .header-icon { + width: 40rpx; + height: 40rpx; + } + } + .header-bottom { + padding: 16rpx 32rpx; + } .drawer-title { font-family: DouyinSans; @@ -195,7 +251,7 @@ export default { .chat-history-list { flex: 1; - height: calc(100vh - 360rpx); + height: calc(100vh - 420rpx); padding-bottom: 20rpx; .chat-day { @@ -213,7 +269,7 @@ export default { .chat-item { padding: 24rpx 30rpx; border-radius: 16rpx; - margin-bottom: 4rpx; + // margin-bottom: 4rpx; position: relative; overflow: hidden; diff --git a/pages/home/index/index.vue b/pages/home/index/index.vue index f76fdd6..ecb109a 100644 --- a/pages/home/index/index.vue +++ b/pages/home/index/index.vue @@ -22,7 +22,11 @@ 大家都在问 - + + 换一批 @@ -743,6 +747,21 @@ export default { }, 300); }); }, + + // 点击刷新 + handleRefresh() { + console.log("刷新问题"); + + this.$u.api.GetHotQuestions({}).then((res) => { + if (res.succeed) { + console.log("GetHotQuestions.....", res.data); + const res = { + enrollment: [], // 注册 + orientation: [], // 定向 + }; + } + }); + }, }, }; @@ -793,9 +812,15 @@ export default { } .qa-section { - background-color: #ffffff; + background-image: url("@/static/common/images/hot-question-bg1.png"); + background-repeat: no-repeat; + background-size: 100% 100%; + background-position: 0 0; + // background-attachment: fixed; + // background-color: #ffffff; border-radius: 16rpx; padding: 30rpx; + padding-top: 0rpx; margin-bottom: 32rpx; .qa-header { @@ -805,15 +830,27 @@ export default { margin-bottom: 30rpx; .qa-title { - font-size: 32rpx; - font-weight: 500; - color: #333; + font-family: DouyinSans; + font-weight: bold; + font-size: 36rpx; + color: #5255e6; + line-height: 36px; + background: linear-gradient(-56deg, #4d50dd 0%, #3e6aff 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; } .more-link { + display: flex; + align-items: center; + .icon-refresh { + width: 36rpx; + height: 36rpx; + margin-right: 8rpx; + } .more-text { font-size: 26rpx; - color: #999; + color: #333; } } } diff --git a/static/common/images/hot-question-bg1.png b/static/common/images/hot-question-bg1.png new file mode 100644 index 0000000..f754dfd Binary files /dev/null and b/static/common/images/hot-question-bg1.png differ diff --git a/static/common/images/hot-question-bg2.png b/static/common/images/hot-question-bg2.png new file mode 100644 index 0000000..93c904d Binary files /dev/null and b/static/common/images/hot-question-bg2.png differ diff --git a/static/common/images/icon-refresh.png b/static/common/images/icon-refresh.png new file mode 100644 index 0000000..6446bbe Binary files /dev/null and b/static/common/images/icon-refresh.png differ diff --git a/types/global.d.ts b/types/global.d.ts index 395b2fb..96b3bd3 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -2,6 +2,8 @@ export {}; ; declare global { + var __VLS_PROPS_FALLBACK: Record; + const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any }; const __VLS_unref: typeof import('vue').unref; const __VLS_placeholder: any; @@ -35,7 +37,7 @@ export {}; attrs?: any; slots?: T extends { $slots: infer Slots } ? Slots : Record; emit?: T extends { $emit: infer Emit } ? Emit : {}; - props?: (T extends { $props: infer Props } ? Props : {}) & Record; + props?: typeof props; expose?: (exposed: T) => void; }; };