update style

This commit is contained in:
Timi
2025-12-17 16:16:10 +08:00
parent 423775c255
commit 369cfe2bf2
40 changed files with 375 additions and 507 deletions

View File

@ -1,5 +1,5 @@
<!--pages/main/travel-editor/index.wxml-->
<t-navbar title="{{mode === 'create' ? '新建行' : '编辑行'}}">
<t-navbar title="{{mode === 'create' ? '新建行' : '编辑行'}}">
<text slot="left" bindtap="cancel">取消</text>
</t-navbar>
@ -11,12 +11,12 @@
</view>
<block wx:else>
<t-cell-group class="section">
<view slot="title" class="title">基本信息</view>
<t-input
class="input"
placeholder="请输入行标题"
placeholder="请输入行标题"
model:value="{{title}}"
maxlength="50"
borderless
>
<text slot="label">标题</text>
</t-input>
@ -31,6 +31,7 @@
</t-textarea>
</t-cell-group>
<t-cell-group class="section">
<view slot="title" class="title">详细信息</view>
<t-cell class="travel-at" title="出行时间">
<view slot="right-icon" class="travel-at-content">
<picker wx:if="{{!travelAtUndecided}}" class="picker" mode="date" model:value="{{date}}">
@ -51,13 +52,13 @@
/>
</view>
</t-cell>
<t-cell title="行天数" t-class="days-cell">
<t-cell title="行天数" class="days {{daysUndecided ? 'undecided' : 'decided'}}">
<view slot="right-icon" class="days-content">
<t-stepper
wx:if="{{!daysUndecided}}"
theme="filled"
model:value="{{days}}"
size="medium"
size="large"
min="{{1}}"
max="{{999}}"
t-class="stepper"
@ -74,40 +75,28 @@
/>
</view>
</t-cell>
<t-cell title="交通方式">
<view slot="right-icon">
<picker
class="picker"
mode="selector"
range="{{transportationTypes}}"
range-key="label"
value="{{transportationTypeIndex}}"
bindchange="onChangeTransportationType"
>
<view class="slot">
<text>{{transportationTypes[transportationTypeIndex].label}}</text>
<t-icon name="chevron-right" size="20px" class="icon" />
</view>
</picker>
</view>
</t-cell>
<t-cell title="状态">
<view slot="right-icon">
<picker
class="picker"
mode="selector"
range="{{statuses}}"
range-key="label"
value="{{statusIndex}}"
bindchange="onChangeStatus"
>
<view class="slot">
<text>{{statuses[statusIndex].label}}</text>
<t-icon name="chevron-right" size="20px" class="icon" />
</view>
</picker>
</view>
</t-cell>
<picker
mode="selector"
range="{{transportationTypes}}"
range-key="label"
value="{{transportationTypeIndex}}"
bindchange="onChangeTransportationType"
>
<t-cell title="交通方式" arrow>
<view slot="note" class="note">{{transportationTypes[transportationTypeIndex].label}}</view>
</t-cell>
</picker>
<picker
mode="selector"
range="{{statuses}}"
range-key="label"
value="{{statusIndex}}"
bindchange="onChangeStatus"
>
<t-cell title="状态" arrow>
<view slot="note" class="note">{{statuses[statusIndex].label}}</view>
</t-cell>
</picker>
</t-cell-group>
<view wx:if="{{mode === 'create'}}" class="submit-section">
<t-button
@ -117,7 +106,7 @@
bind:tap="submit"
disabled="{{isSaving}}"
>
创建
创建
</t-button>
</view>
<view wx:else class="submit-section horizontal">
@ -148,7 +137,7 @@
<!-- 删除确认对话框 -->
<t-dialog
visible="{{deleteDialogVisible}}"
title="删除行计划"
title="删除行计划"
confirm-btn="{{ {content: '删除', variant: 'text', theme: 'danger'} }}"
cancel-btn="取消"
bind:confirm="confirmDelete"