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);
.media-item {
width: 100%;
height: 200rpx;
width: 220rpx;
height: 220rpx;
overflow: hidden;
position: relative;
border-radius: 12rpx;
.thumbnail {
width: 100%;

View File

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

View File

@ -90,9 +90,9 @@
</t-cell-group>
<!-- 照片/视频 -->
<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>
<view class="media-grid">
<view slot="title" class="media-grid">
<view
wx:for="{{location.mediaItems}}"
wx:key="attachmentId"

View File

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

View File

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