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 */ /* pages/info/info.less */
page { page {
display: flex; display: flex;
background: var(--theme-bg-wx);
flex-direction: column; flex-direction: column;
} }

View File

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

View File

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

View File

@ -3,7 +3,7 @@
<text slot="left" bindtap="cancel">取消</text> <text slot="left" bindtap="cancel">取消</text>
</t-navbar> </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 class="content">
<view wx:if="{{isLoading}}" class="loading"> <view wx:if="{{isLoading}}" class="loading">
<t-loading theme="dots" size="40rpx" /> <t-loading theme="dots" size="40rpx" />

View File

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

View File

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

View File

@ -3,7 +3,7 @@
<text slot="left" bindtap="cancel">取消</text> <text slot="left" bindtap="cancel">取消</text>
</t-navbar> </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 class="content">
<view wx:if="{{isLoading}}" class="loading"> <view wx:if="{{isLoading}}" class="loading">
<t-loading theme="dots" size="40rpx" /> <t-loading theme="dots" size="40rpx" />

View File

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