fix travel style

This commit is contained in:
Timi
2025-12-17 10:18:10 +08:00
parent f0f2815971
commit 423775c255
8 changed files with 12 additions and 8 deletions

View File

@ -1,7 +1,6 @@
/* pages/info/info.less */
page {
display: flex;
background: var(--theme-bg-wx);
flex-direction: column;
}

View File

@ -47,7 +47,7 @@
<!-- 旅行内容 -->
<t-cell-group class="section">
<view slot="title" class="title">详细说明</view>
<t-cell title="{{travel.content}}" />
<t-cell title="{{travel.content || '暂无'}}" />
</t-cell-group>
<t-cell-group class="section locations">
<view slot="title" class="title">地点列表</view>
@ -97,6 +97,8 @@
</view>
</t-cell>
</block>
<t-cell wx:else class="empty-state" description="暂无地点信息">
</t-cell>
</t-cell-group>
<!-- 操作按钮 -->
<view class="section action">

View File

@ -1,9 +1,8 @@
// pages/main/travel-editor/index.less
.container {
.travel-editor {
width: 100vw;
min-height: 100vh;
background: var(--theme-bg-secondary);
.content {
padding-bottom: 64rpx;

View File

@ -3,7 +3,7 @@
<text slot="left" bindtap="cancel">取消</text>
</t-navbar>
<scroll-view class="container" type="custom" scroll-y show-scrollbar="{{false}}">
<scroll-view class="travel-editor setting-bg" type="custom" scroll-y show-scrollbar="{{false}}">
<view class="content">
<view wx:if="{{isLoading}}" class="loading">
<t-loading theme="dots" size="40rpx" />

View File

@ -2,7 +2,6 @@
.travel-location-detail {
width: 100vw;
min-height: 100vh;
background: var(--theme-bg-page);
box-sizing: border-box;
.status-card {

View File

@ -3,7 +3,6 @@
.travel-location-editor {
width: 100vw;
min-height: 100vh;
background: var(--theme-bg-secondary);
.content {
padding-bottom: 64rpx;

View File

@ -3,7 +3,7 @@
<text slot="left" bindtap="cancel">取消</text>
</t-navbar>
<scroll-view class="travel-location-editor" type="custom" scroll-y show-scrollbar="{{false}}">
<scroll-view class="travel-location-editor setting-bg" type="custom" scroll-y show-scrollbar="{{false}}">
<view class="content">
<view wx:if="{{isLoading}}" class="loading">
<t-loading theme="dots" size="40rpx" />

View File

@ -52,6 +52,12 @@ Page({
onLoad() {
this.resetAndFetch();
},
onShow() {
// 页面显示时刷新数据(从编辑页返回时)
if (0 < this.data.list.length) {
this.resetAndFetch();
}
},
onHide() {
this.setData({
isShowFilterMenu: false