From 41e8cff7493cf449167f7fa463722b2470846bc9 Mon Sep 17 00:00:00 2001 From: Yer11214 <17633066053@163.com> Date: Thu, 9 Jul 2026 16:34:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F=E5=92=8C=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BB=A5=E6=8F=90=E5=8D=87=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 myCollect.vue 中优化收藏页面的布局和样式,增加主题支持 - 在 searchPage.vue 中修复搜索组件的输入值设置逻辑 - 在 coupon/index.vue 中重构优惠券列表的展示逻辑,提升可用性 - 在 m-search-revision.vue 中调整搜索组件的样式和功能,增加清除图标的交互 - 在 pages.json 中禁用下拉刷新功能以改善性能 --- .../m-search-revision/m-search-revision.vue | 162 +++--- pages.json | 2 +- pages/cart/coupon/index.vue | 449 ++++++++------- pages/mine/myCollect.vue | 518 +++++++++++------- pages/navigation/search/searchPage.vue | 5 +- pages/order/evaluate/myEvaluate.vue | 20 + pages/promotion/bargain/detail.vue | 256 +++++---- pages/tabbar/home/title.vue | 23 +- project.config.json | 5 + 9 files changed, 861 insertions(+), 579 deletions(-) create mode 100644 project.config.json diff --git a/components/m-search-revision/m-search-revision.vue b/components/m-search-revision/m-search-revision.vue index b4dc2f1..712d34f 100644 --- a/components/m-search-revision/m-search-revision.vue +++ b/components/m-search-revision/m-search-revision.vue @@ -1,17 +1,23 @@ @@ -31,23 +37,25 @@ +watch(inputVal, (newVal) => { + newVal ? (isDelShow.value = true) : (isDelShow.value = false) +}) + +watch(() => props.modelValue, (newVal) => { + if (newVal !== inputVal.value) { + inputVal.value = newVal || '' + } +}) + +defineExpose({ + isShowSeachGoods, + inputVal, + clear, + setInputValue, +}) + diff --git a/pages/mine/myCollect.vue b/pages/mine/myCollect.vue index 9189b48..1a02daf 100644 --- a/pages/mine/myCollect.vue +++ b/pages/mine/myCollect.vue @@ -1,29 +1,42 @@ - .content { - width: 100%; + diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index 6f26522..6670b42 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -15,7 +15,6 @@ | null>(null) +const mSearchRef = ref(null) const empty = ref(false) const scrollTop = ref(0) @@ -806,7 +805,7 @@ function doSearch(searchKeyword: string | false) { isShowSeachGoods.value = true if (mSearchRef.value) { mSearchRef.value.isShowSeachGoods = true - mSearchRef.value.inputVal = resolvedKeyword + mSearchRef.value.setInputValue(resolvedKeyword) } params.value.keyword = keyword.value params.value.pageNumber = 1 diff --git a/pages/order/evaluate/myEvaluate.vue b/pages/order/evaluate/myEvaluate.vue index 5df582d..18b7565 100644 --- a/pages/order/evaluate/myEvaluate.vue +++ b/pages/order/evaluate/myEvaluate.vue @@ -247,6 +247,26 @@ page { position: relative; z-index: 10; background: #ffffff; + height: 88rpx; + box-shadow: 0 1rpx 8rpx rgba(0, 0, 0, 0.04); +} + +:deep(.u-tabs), +:deep(.u-tabs__wrapper), +:deep(.u-tabs__wrapper__scroll-view-wrapper), +:deep(.u-tabs__wrapper__scroll-view), +:deep(.u-tabs__wrapper__nav) { + background: #fff; + height: 88rpx; +} + +:deep(.u-tabs__wrapper__nav__item) { + min-height: 88rpx; +} + +:deep(.u-tabs__wrapper__nav__item__text) { + color: #333; + font-size: 28rpx; } .box-content { margin: 20rpx 0; diff --git a/pages/promotion/bargain/detail.vue b/pages/promotion/bargain/detail.vue index f9e8cb6..bc977a1 100644 --- a/pages/promotion/bargain/detail.vue +++ b/pages/promotion/bargain/detail.vue @@ -1,6 +1,12 @@ @@ -128,10 +161,12 @@ import { import shares from '@/components/m-share/index' import config from '@/config/config' import { unitPrice, noPassByName, isLogin } from '@/utils/filters.js' +import { getThemeStyle } from '@/utils/theme' const store = useStore() const lightColor = computed(() => store.getters.lightColor) +const themeStyle = computed(() => getThemeStyle(store.state.theme)) const style = ref({ img: 'display:block', @@ -205,8 +240,7 @@ watch( (val) => { if (val) { totalPercent.value = - 100 - - Math.floor((val.surplusPrice / bargainDetail.value.price) * 100) + 100 - Math.floor((val.surplusPrice / bargainDetail.value.price) * 100) cutPrice.value = ( bargainDetail.value.price - activityData.value.surplusPrice ).toFixed(2) @@ -324,32 +358,44 @@ async function openActivity() { } } + + diff --git a/pages/tabbar/home/title.vue b/pages/tabbar/home/title.vue index bdfcdd5..cd7915d 100644 --- a/pages/tabbar/home/title.vue +++ b/pages/tabbar/home/title.vue @@ -4,7 +4,10 @@ @@ -183,9 +186,27 @@ function getMessage() { }) } - diff --git a/project.config.json b/project.config.json new file mode 100644 index 0000000..53882bb --- /dev/null +++ b/project.config.json @@ -0,0 +1,5 @@ +{ + "setting": { + "minifyWXML": true + } +} \ No newline at end of file