fix travel style
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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">
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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" />
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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" />
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user