update style
This commit is contained in:
@ -20,12 +20,6 @@
|
||||
<t-empty icon="location" description="暂无地点信息" />
|
||||
</view>
|
||||
<view wx:else class="content">
|
||||
<!-- 类型标签 -->
|
||||
<view class="section status">
|
||||
<t-tag size="large" theme="primary" variant="light" icon="{{locationTypeIcons[location.type]}}">
|
||||
{{locationTypeLabels[location.type]}}
|
||||
</t-tag>
|
||||
</view>
|
||||
<!-- 标题 -->
|
||||
<view class="section title">
|
||||
<text class="title-text">{{location.title || '未命名地点'}}</text>
|
||||
@ -33,6 +27,11 @@
|
||||
<!-- 位置信息 -->
|
||||
<t-cell-group wx:if="{{location.lat !== undefined && location.lng !== undefined}}" class="section location">
|
||||
<view slot="title" class="title">位置信息</view>
|
||||
<t-cell
|
||||
left-icon="{{locationTypeIcons[location.type]}}"
|
||||
title="类型"
|
||||
note="{{locationTypeLabels[location.type]}}"
|
||||
/>
|
||||
<t-cell class="map">
|
||||
<map
|
||||
slot="description"
|
||||
@ -42,7 +41,15 @@
|
||||
markers="{{mapMarkers}}"
|
||||
scale="15"
|
||||
show-location
|
||||
></map>
|
||||
>
|
||||
<cover-view slot="callout">
|
||||
<cover-view class="custom-callout" marker-id="0">
|
||||
<cover-view class="callout-content">
|
||||
<cover-view class="callout-text">{{location.title || '地点'}}</cover-view>
|
||||
</cover-view>
|
||||
</cover-view>
|
||||
</cover-view>
|
||||
</map>
|
||||
</t-cell>
|
||||
<t-cell
|
||||
left-icon="location"
|
||||
@ -57,13 +64,13 @@
|
||||
<t-cell wx:if="{{location.amount !== undefined && location.amount !== null}}" left-icon="money" title="费用">
|
||||
<view slot="note">¥{{location.amount}}</view>
|
||||
</t-cell>
|
||||
<t-cell left-icon="verify" title="需要身份证">
|
||||
<t-cell left-icon="verify" title="身份证">
|
||||
<view slot="note" class="{{location.requireIdCard ? 'red' : ''}}">
|
||||
{{location.requireIdCard ? '需要' : '无需'}}
|
||||
</view>
|
||||
</t-cell>
|
||||
<t-cell left-icon="calendar" title="需要预约">
|
||||
<view slot="note" class="{{location.requireAppointment ? 'warning' : ''}}">
|
||||
<t-cell left-icon="calendar" title="预约">
|
||||
<view slot="note" class="{{location.requireAppointment ? 'red' : ''}}">
|
||||
{{location.requireAppointment ? '需要' : '无需'}}
|
||||
</view>
|
||||
</t-cell>
|
||||
@ -78,19 +85,6 @@
|
||||
</view>
|
||||
</t-cell>
|
||||
</t-cell-group>
|
||||
<!-- 出行记录 -->
|
||||
<t-cell-group class="section">
|
||||
<view slot="title" class="title">出行记录</view>
|
||||
<t-cell left-icon="flag" title="首次出行">
|
||||
<view slot="note">{{location.firstTravelTime || '未记录'}}</view>
|
||||
</t-cell>
|
||||
<t-cell left-icon="calendar-1" title="最近出行">
|
||||
<view slot="note">{{location.lastTravelTime || '未记录'}}</view>
|
||||
</t-cell>
|
||||
<t-cell left-icon="chart" title="累计次数">
|
||||
<view slot="note">{{location.travelCount || 0}} 次</view>
|
||||
</t-cell>
|
||||
</t-cell-group>
|
||||
<!-- 详细说明 -->
|
||||
<t-cell-group wx:if="{{location.description}}" class="section">
|
||||
<view slot="title" class="title">详细说明</view>
|
||||
|
||||
Reference in New Issue
Block a user