猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

130 lines
2.3 KiB

<template>
<!-- <div>宠物信息</div> -->
<view class="box box-size">
<view class="box-item box-size"
@click="toDetail"
:style="{borderRadius:'16rpx'}">
<view class="level flex">
<view class="img" :style="{borderRadius:'100rpx'}">
<image src="" mode=""></image>
</view>
<view class="top">
<view class="name level">
<view>
小咪
</view>
<view class="img_" :style="{borderRadius:'20rpx'}">
<image src="" mode=""></image>
</view>
</view>
<view>
银渐层短毛猫 | 1 | 体重2kg
</view>
</view>
</view>
<view class="character box-size" :style="{borderRadius:'5rpx'}">
性格活泼开朗对人友好
</view>
<view class="buttom" :style="{borderRadius:'27rpx'}">
<!-- <button>查看详细信息</button> -->
查看详细信息
</view>
</view>
</view>
</template>
<script setup>
function toDetail() {
uni.navigateTo({
url: "/otherPages/orderTakingManage/pet/detail"
})
}
</script>
<style lang="scss">
.box {
width: 100vw;
height: 100vh;
padding: 1% 3%;
.box-item {
width: 710rpx;
height: 359rpx;
background-image: linear-gradient(to bottom, #FFF6F7, #FFFFFF);
padding: 3% 2%;
position: relative;
.img {
width: 142rpx;
height: 142rpx;
background-color: red;
margin: 0 20rpx 20rpx 0;
}
.top {
font-size: 28rpx;
color: #999999;
}
.name {
font-size: 30rpx;
color: #000000;
}
.img_ {
width: 35rpx;
height: 35rpx;
background-color: red;
margin-left: 10rpx;
}
.character {
width: 678rpx;
height: 65rpx;
background-color: #F9F9F9;
// background-color: green;
color: #999999;
font-size: 28rpx;
line-height: 65rpx;
padding: 0 10rpx;
}
.buttom {
width: 188rpx;
height: 54rpx;
border: 2rpx solid #FFBF60;
color: #FFBF60;
font-size: 22rpx;
line-height: 54rpx;
justify-content: center;
display: grid;
position: absolute;
bottom: 25rpx;
right: 25rpx;
// .buttom buttom {
// color: #FFBF60;
// font-size: 22rpx;
// line-height: 54rpx;
// display: grid;
// justify-content: center;
// }
}
}
}
.box-size {
box-sizing: border-box;
}
.level {
display: flex;
}
.flex {
align-items: center;
}
</style>