better layout
This commit is contained in:
@ -8,5 +8,6 @@
|
||||
"t-cell-group": "tdesign-miniprogram/cell-group/cell-group",
|
||||
"t-search": "tdesign-miniprogram/search/search",
|
||||
"t-empty": "tdesign-miniprogram/empty/empty"
|
||||
}
|
||||
},
|
||||
"styleIsolation": "shared"
|
||||
}
|
||||
|
||||
@ -17,27 +17,39 @@
|
||||
height: 0;
|
||||
padding: 0;
|
||||
|
||||
.t-cell {
|
||||
padding: 16rpx 24rpx;
|
||||
|
||||
.t-cell__left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
|
||||
&.selected {
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
.t-cell__left {
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.thumb {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
flex-shrink: 0;
|
||||
object-fit: cover;
|
||||
margin-right: 16rpx;
|
||||
border-radius: 8rpx;
|
||||
background: var(--td-bg-color-component);
|
||||
flex-shrink: 0;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.date {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.location {
|
||||
.description {
|
||||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,12 +32,14 @@
|
||||
src="{{item.thumbUrl}}"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<t-icon wx:else slot="left-icon" name="image" color="gray" size="96rpx" />
|
||||
<view slot="title">
|
||||
<text class="date">{{item.date}}</text>
|
||||
<text wx:if="{{item.idea}}"> · {{item.idea}}</text>
|
||||
<t-icon wx:else slot="left-icon" class="icon" name="image" color="gray" size="96rpx" />
|
||||
<view wx:if="{{item.idea}}" slot="title">
|
||||
<text>{{item.idea}}</text>
|
||||
</view>
|
||||
<view class="description" slot="description">
|
||||
<text>{{item.date}}</text>
|
||||
<text wx:if="{{item.location}}"> · {{item.location}}</text>
|
||||
</view>
|
||||
<text wx:if="{{item.location}}" class="location" slot="description">{{item.location}}</text>
|
||||
<t-icon
|
||||
wx:if="{{mode === 'select' && selectedId === item.id}}"
|
||||
slot="right-icon"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
const envArgs = {
|
||||
develop: {
|
||||
url: "https://api.imyeyu.com"
|
||||
url: "http://192.168.3.137:8091"
|
||||
},
|
||||
trial: {
|
||||
url: "https://api.imyeyu.com"
|
||||
|
||||
Reference in New Issue
Block a user