首页边框

This commit is contained in:
kbing1981 2025-02-12 09:13:13 +08:00
parent 14d9a50a62
commit 560f4eae91
1 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<scroll-view scroll-x="true" class="scroll-box" style="height: 100%;"> <scroll-view scroll-x="true" class="scroll-box" style="height: 100%;">
<view :class="'item-box'+' bg'+((index+'').slice(-1))" v-for="(item,index) in goodsList" :key="index" <view :class="'item-box'+' bg'+((index+'').slice(-1))" v-for="(item,index) in goodsList" :key="index"
@click="chooseItem(item)"> @click="chooseItem(item)">
<image style="border-radius: 7px;border: 1px solid #019c88;" :src="item.artificerImg" :style="'width:'+imgWidth+'px;'+'height:'+imgHeight+'px;'" mode=""></image> <image style="border-radius: 7px;border: 2px solid #019c88;box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);" :src="item.artificerImg" :style="'width:'+imgWidth+'px;'+'height:'+imgHeight+'px;'" mode=""></image>
<view class="item-name">{{item.artificerName}}</view> <view class="item-name">{{item.artificerName}}</view>
<view class="item-descr">{{item.content}}</view> <view class="item-descr">{{item.content}}</view>
<!-- <view class="xiangshi" v-if="item.bdxsl">相识度{{item.bdxsl}}%</view> --> <!-- <view class="xiangshi" v-if="item.bdxsl">相识度{{item.bdxsl}}%</view> -->
@ -86,6 +86,7 @@
border-radius: 10px; border-radius: 10px;
margin-top: 10px; margin-top: 10px;
position: relative; position: relative;
} }
.item-name { .item-name {
@ -118,4 +119,5 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
overflow: hidden; overflow: hidden;
} }
</style>
</style>