背景图拉升

version/0412
fanfan 9 months ago
parent d65c674f44
commit 9c722ca1a6
  1. 7
      pages/activity/charts.vue
  2. 8
      pages/activity/newGoods.vue
  3. 2
      pages/activity/newsshop.vue

@ -229,7 +229,12 @@
width: 336rpx;
height: 200rpx;
background-repeat: no-repeat;
background-size: 100% 100%;
background-repeat: no-repeat;
/* 不重复平铺背景图片 */
background-position: center;
/* 居中显示背景图片 */
background-size: cover;
/* 拉伸并填充至元素内部 */
margin-bottom: 16rpx;
.rank_name {

@ -4,7 +4,7 @@
<view>
<u-navbar title="新品首发" :border-bottom="false" title-color="#333" :background="background"></u-navbar>
</view>
<view class="firGoods" :style="{backgroundImage:'url('+backgroundImg+')'}" style="background-size: 100% 100%;">
<view class="firGoods" :style="{backgroundImage:'url('+backgroundImg+')'}">
</view>
<view class="goodsList">
<view class="goodsItem" v-for="(item,index) in list" :key="index" @click="goDetails(item.goods_id)">
@ -172,9 +172,9 @@
width: 100%;
height: 548rpx;
background-image: url('https://www.royaum.com.cn/static/newGoods/top.png');
background-size: 100% auto;
// padding-left: 30rpx;
// padding-top: 44rpx;
background-repeat: no-repeat; /* 不重复平铺背景图片 */
background-position: center; /* 居中显示背景图片 */
background-size: cover; /* 拉伸并填充至元素内部 */
.topLine {
display: flex;

@ -12,7 +12,7 @@
<view class="newsshop-bd" v-if="shopList.length>0" v-for="(item,index) in shopList" :key="i">
<view class="newsshop-sale">
<view class="a">
<image :src="item.col_pic"></image>
<image :src="item.col_pic" mode="widthFix"></image>
</view>
<view class="info">
<view class="li b">

Loading…
Cancel
Save