fix travel style
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
/* pages/info/info.less */
|
||||
page {
|
||||
display: flex;
|
||||
background: var(--theme-bg-wx);
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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" />
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
.travel-location-detail {
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
background: var(--theme-bg-page);
|
||||
box-sizing: border-box;
|
||||
|
||||
.status-card {
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
.travel-location-editor {
|
||||
width: 100vw;
|
||||
min-height: 100vh;
|
||||
background: var(--theme-bg-secondary);
|
||||
|
||||
.content {
|
||||
padding-bottom: 64rpx;
|
||||
|
||||
@ -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" />
|
||||
|
||||
@ -52,6 +52,12 @@ Page({
|
||||
onLoad() {
|
||||
this.resetAndFetch();
|
||||
},
|
||||
onShow() {
|
||||
// 页面显示时刷新数据(从编辑页返回时)
|
||||
if (0 < this.data.list.length) {
|
||||
this.resetAndFetch();
|
||||
}
|
||||
},
|
||||
onHide() {
|
||||
this.setData({
|
||||
isShowFilterMenu: false
|
||||
|
||||
Reference in New Issue
Block a user