样式调整

main
haoyuntao 10 months ago
parent 1b18b80cbd
commit fb5390eb8e
  1. 15
      pages/activity/newGoods.vue
  2. 15
      pages/activity/presale.vue

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

@ -1,8 +1,11 @@
<template> <template>
<view class="presale"> <view class="presale">
<view class="presale-hd"> <view class="presale-img">
<view class="rule" @click="openPage()">规则</view> <image src="https://www.royaum.com.cn/static/news/yushou.png" ></image>
</view> </view>
<!-- <view class="presale-hd">
<view class="rule" @click="openPage()"></view>
</view> -->
<view class="presale-bd"> <view class="presale-bd">
<view class="tab"> <view class="tab">
<u-tabs :list="menuList" :is-scroll="true" :show-bar="false" active-color="#FFFFFF" <u-tabs :list="menuList" :is-scroll="true" :show-bar="false" active-color="#FFFFFF"
@ -134,8 +137,10 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.presale { .presale {
background: #ff7b79 url(https://www.royaum.com.cn/static/news/newPresale-bg.png) center top no-repeat; background-image: linear-gradient(#ffeaed,#f6f6f6);
background-size: 100% auto; .presale-img image{width:100%}
// background: #ff7b79 url(https://www.royaum.com.cn/static/news/newPresale-bg.png) center top no-repeat;
// background-size: 100% auto;
overflow: hidden; overflow: hidden;
min-height: 100vh; min-height: 100vh;

Loading…
Cancel
Save