fix travel location attachment style

This commit is contained in:
Timi
2025-12-18 19:33:31 +08:00
parent 2966289930
commit 107177d095
5 changed files with 108 additions and 109 deletions

View File

@ -84,11 +84,10 @@
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
.media-item { .media-item {
width: 100%; width: 220rpx;
height: 200rpx; height: 220rpx;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
border-radius: 12rpx;
.thumbnail { .thumbnail {
width: 100%; width: 100%;

View File

@ -126,9 +126,6 @@ Page({
} }
}); });
} }
console.log(mediaItems);
this.setData({ this.setData({
location: { location: {
...location, ...location,

View File

@ -90,9 +90,9 @@
</t-cell-group> </t-cell-group>
<!-- 照片/视频 --> <!-- 照片/视频 -->
<t-cell-group wx:if="{{location.mediaItems && 0 < location.mediaItems.length}}" class="section media"> <t-cell-group wx:if="{{location.mediaItems && 0 < location.mediaItems.length}}" class="section media">
<view slot="title" class="title">照片/视频</view> <view slot="title" class="title">照片视频</view>
<t-cell> <t-cell>
<view class="media-grid"> <view slot="title" class="media-grid">
<view <view
wx:for="{{location.mediaItems}}" wx:for="{{location.mediaItems}}"
wx:key="attachmentId" wx:key="attachmentId"

View File

@ -81,8 +81,8 @@
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
.item { .item {
width: 240rpx; width: 220rpx;
height: 240rpx; height: 220rpx;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
background: var(--theme-bg-card); background: var(--theme-bg-card);

View File

@ -104,8 +104,10 @@
</view> </view>
</t-cell> </t-cell>
</t-cell-group> </t-cell-group>
<view class="section media"> <t-cell-group class="section media">
<view class="gallery"> <view slot="title" class="title">图片视频</view>
<t-cell>
<view slot="title" class="gallery">
<!-- 创建模式mediaList 显示新选择的媒体 --> <!-- 创建模式mediaList 显示新选择的媒体 -->
<block wx:if="{{mode === 'create'}}"> <block wx:if="{{mode === 'create'}}">
<block wx:for="{{mediaList}}" wx:key="index"> <block wx:for="{{mediaList}}" wx:key="index">
@ -229,7 +231,8 @@
<t-icon name="add" /> <t-icon name="add" />
</t-button> </t-button>
</view> </view>
</view> </t-cell>
</t-cell-group>
<!-- 上传进度提示 --> <!-- 上传进度提示 -->
<view wx:if="{{isUploading}}" class="section upload"> <view wx:if="{{isUploading}}" class="section upload">