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