mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-03-07 17:32:25 +08:00
完成大体功能和样式
This commit is contained in:
@@ -2,23 +2,21 @@
|
||||
<view class="asset-list">
|
||||
<view
|
||||
v-for="item in list"
|
||||
:key="item.id"
|
||||
:key="item.assetsNo"
|
||||
class="asset-card"
|
||||
@click="onClick(item)"
|
||||
>
|
||||
<image class="cover" :src="item.cover || '/static/images/default-cover.png'" mode="aspectFill" />
|
||||
<image class="cover" :src="'https://www.wujiaguotou.com' + item.coverImgUrl" mode="aspectFill" />
|
||||
|
||||
<view class="info">
|
||||
<text class="name">{{ item.name }}</text>
|
||||
<text class="address">{{ item.address }}</text>
|
||||
<text class="status">{{ item.statusText }}</text>
|
||||
<text class="name">{{ item.assetsName }}</text>
|
||||
<text class="address">{{ item.assetsAddress }}</text>
|
||||
</view>
|
||||
|
||||
<u-icon name="arrow-right" size="28" color="#999" class="arrow" />
|
||||
</view>
|
||||
|
||||
<u-loadmore v-if="showLoadmore" :status="loadStatus" />
|
||||
<u-empty v-else-if="list.length === 0" mode="list" text="暂无资产数据" />
|
||||
<u-empty v-if="list.length === 0" mode="list" text="暂无资产数据" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -29,17 +27,11 @@ export default {
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
},
|
||||
showLoadmore: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
loadStatus: {
|
||||
type: String,
|
||||
default: "loadmore",
|
||||
},
|
||||
}
|
||||
},
|
||||
emits: ["click"],
|
||||
onLoad(options) {
|
||||
},
|
||||
methods: {
|
||||
onClick(item) {
|
||||
this.$emit("click", item);
|
||||
|
||||
Reference in New Issue
Block a user