zhouzhenyuan 1 year ago
parent b8a76e2d9a
commit b43595509b
  1. 2
      manifest.json
  2. 7
      pages.json
  3. 228
      pages/index/index.vue
  4. 318
      pages/seckill/index.vue
  5. BIN
      static/home/newUserBg.png
  6. BIN
      static/seckill/bottom.png
  7. BIN
      static/seckill/btnBg.png
  8. BIN
      static/seckill/limit.png
  9. BIN
      static/seckill/line.png
  10. BIN
      static/seckill/topHeader.png

@ -93,7 +93,7 @@
/* */
"mp-weixin" : {
"appid" : "wx34920eb219864734",
"libVersion": "latest",
"libVersion" : "latest",
"setting" : {
// TLS
"urlCheck" : true,

@ -84,6 +84,13 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/seckill/index",
"style": {
"navigationBarTitleText": "限时秒杀",
"navigationStyle": "custom"
}
},
{
"path": "pages/ranking/index",
"style": {

@ -28,10 +28,13 @@
</view>
<view class="group_7">
<view lines="1" class="text_5" v-for="(item,index) in goodsType" :key="index">
{{item.name}}
<view class="typeName">
{{item.name}}
</view>
<view class="group_9" v-if="chosedType==item.value"></view>
</view>
</view>
<view class="group_9"></view>
<view class="suggest">
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
:interval="interval" :duration="duration">
@ -44,11 +47,41 @@
</view>
<view class="group_10">
<view class="list_1">
<view class="image-text_8-0" v-for="(item,index) in 10" :key="index">
<view class="image-text_8-0" v-for="(item,index) in secondType" :key="index"
@click="goPage(item)">
<image src="/static/home/demoPng.png" class="label_2-0"></image>
<text lines="1" class="text-group_8-0">HuaWei</text>
<text lines="1" class="text-group_8-0">{{item.name}}</text>
</view>
</view>
</view>
<view class="newUser">
<view class="firLine">
<view class="lineTitle">
新人首单礼
</view>
<view class="more">
查看更多
</view>
</view>
<view class="secLine">
<view class="linePrice">
2698
</view>
<view class="newsInfo">
<view class="newsCoupon">
新人券包
</view>
<view class="newTime">
领取后7天内有效
</view>
</view>
<view class="newLine">
</view>
<view class="newAccept">
去领取
</view>
</view>
</view>
<view class="big">
@ -74,7 +107,7 @@
</view>
</view>
</view>
<view class="limitTime">
<view class="limitTime" @click="seckill">
<view class="limitHeadr">
<view class="headerTitle">
限时抢购
@ -114,7 +147,7 @@
</view>
</view>
<view class="newGoods">
<view class="newImage">
<view class="newImage" @click="goNews">
<image src="../../static/home/newImg.png" mode=""></image>
</view>
<view class="newRight" @click="goNewGoods">
@ -132,7 +165,7 @@
</view>
</view>
<view class="ranking newFirt">
<view class="ranking newFirt" @click="rankIng">
<view class="starting">
排行榜
<text class="hotSell">热卖好物专场</text>
@ -151,7 +184,7 @@
</view>
<view class="goodsList">
<view class="group_11" v-for="(item,index) in 8" :key="index">
<view class="block_2">
<view class="block_2" @click="goDetails(item)">
<image src="/static/home/phone.jpg" class="image_3"></image>
<view class="box_6">
<view class="text-wrapper_4">
@ -178,16 +211,73 @@
export default {
data() {
return {
secondType: [{
name: '预售专区',
url: ''
}, {
name: '邀请有礼',
url: '/pages/invite/index'
}, {
name: '每日签到'
}, {
name: '安装报修'
}, {
name: '上门回收'
}, {
name: '空调',
url: '/pages/goods/detail'
}, {
name: '电视'
}, {
name: '冰箱'
}, {
name: '洗衣机'
}, {
name: '小家电'
}],
chosedType: 0,
goodsList: [
],
goodsType: [],
goodsType: [{
name: '推荐',
value: 0
}, {
name: '手机',
value: 1
}],
}
},
methods:{
goNewGoods(){
methods: {
goDetails() {
uni.navigateTo({
url: '/pages/goods/detail'
})
},
goNews() {
//
uni.navigateTo({
url: '/pages/activity/newsshop'
})
},
goNewGoods() {
uni.navigateTo({
url:'/pages/newGoods/index'
url: '/pages/newGoods/index'
})
},
seckill() {
uni.navigateTo({
url: '/pages/seckill/index'
})
},
rankIng() {
uni.navigateTo({
url: '/pages/ranking/index'
})
},
goPage(item) {
uni.navigateTo({
url: item.url
})
},
}
@ -591,15 +681,16 @@
line-height: 28rpx;
margin-top: 4rpx;
margin-right: 54rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.group_9 {
background-color: rgba(251, 48, 51, 1.000000);
width: 20rpx;
height: 8rpx;
margin-left: 172rpx;
display: flex;
flex-direction: column;
margin-top: 4rpx;
}
.group_10 {
@ -619,6 +710,103 @@
height: 354rpx;
}
.newUser {
width: 698rpx;
height: 230rpx;
background-image: url('../../static/home/newUserBg.png');
background-size: 100% 100%;
margin-top: 16rpx;
margin-left: 20rpx;
.firLine {
display: flex;
justify-content: space-between;
.lineTitle {
font-size: 40rpx;
font-weight: 400;
color: #FFFFFF;
line-height: 52rpx;
margin-left: 32rpx;
margin-top: 42rpx;
}
.more {
margin-top: 48rpx;
width: 96rpx;
height: 34rpx;
font-size: 24rpx;
font-weight: 400;
color: #FFF;
line-height: 34rpx;
margin-right: 194rpx;
}
}
.secLine {
display: flex;
align-items: center;
.linePrice {
margin-left: 66rpx;
font-size: 52rpx;
font-weight: 600;
line-height: 72rpx;
background: linear-gradient(180deg, #FF0777 0%, #FF4038 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-right: 24rpx;
margin-top: 22rpx;
}
.newsInfo {
margin-right: 48rpx;
margin-top: 22rpx;
.newsCoupon {
height: 50rpx;
font-size: 36rpx;
font-weight: 600;
color: #FF0777; // #FF0777;
line-height: 42rpx;
}
.newTime {
height: 28rpx;
font-size: 20rpx;
font-weight: 400;
color: #FF0777;
line-height: 23rpx;
}
}
.newLine {
width: 0rpx;
height: 76rpx;
opacity: 1;
border: 2rpx solid #B9B9B9;
margin-top: 22rpx;
margin-right: 22rpx;
}
.newAccept {
width: 134rpx;
height: 54rpx;
background: linear-gradient(180deg, #FF1C75 0%, #FF470D 100%);
border-radius: 56rpx 56rpx 56rpx 56rpx;
opacity: 1;
text-align: center;
line-height: 54rpx;
margin-top: 22rpx;
font-size: 24rpx;
font-weight: 400;
color: #FFFFFF;
}
}
}
.big {
width: 696rpx;
height: 408rpx;
@ -635,7 +823,7 @@
.card {
width: 190rpx;
height: 58rpx;
font-size: 44rpx;
font-size: 34rpx;
font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
font-weight: 400;
color: #303030;
@ -913,13 +1101,14 @@
.image-text_8-0 {
width: 84rpx;
height: 122rpx;
height: 114rpx;
margin-right: 54rpx;
display: flex;
flex-direction: column;
text-align: center;
align-items: center;
justify-content: space-between;
margin-bottom: 38rpx;
}
.label_2-0 {
@ -1112,7 +1301,8 @@
height: 196rpx;
line-height: 196rpx;
text-align: center;
.supImg{
.supImg {
width: 694rpx;
height: 196rpx;
}

@ -0,0 +1,318 @@
<template>
<view class="seckill">
<view >
<u-navbar title="限时秒杀" back-icon-color="#fff" :border-bottom="false" title-color="#fff" :background="background"></u-navbar>
</view>
<view class="title">
<image src="/static/seckill/topHeader.png" mode="" class="bgImg"></image>
<view class="limitTitle">
<image src="/static/seckill/limit.png" mode="" class="img"></image>
</view>
<view class="time">
<view class="timeItem" v-for="(item,index) in 4" :key="index">
<view class="num">
10:00
</view>
<view class="desc">
疯抢中
</view>
</view>
</view>
</view>
<view class="main">
<view class="over">
<view class="info">
距秒杀结束还剩
</view>
<view class="hou com">
08
</view>:
<view class="min com">
50
</view>:
<view class="sec com">
12
</view>
</view>
<view class="goodsList">
<view class="goodItem" v-for="(item,index) in 3" :key="index">
<view class="itemImg">
<image src="/static/newGoods/goods.png" mode="" class="goodsImg"></image>
</view>
<view class="goodsInfo">
<view class="name">
Apple iphone 15(A3092)
</view>
<view class="sellNum">
爆卖76件
</view>
<view class="info">
<view class="price">
¥1849
</view>
<view class="delPrice">
<view class="delText">
直降32元
</view>
</view>
<view class="update">
即将调整
</view>
</view>
<view class="line">
<image src="/static/seckill/line.png" mode=""></image>
</view>
<view class="btn">
<view class="killPrice">
秒杀价1149
</view>
<view class="buyNow">
立即抢
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import img from "@/static/seckill/topHeader.png"
export default{
data(){
return{
background: {
background: 'url('+ img+') center top no-repeat',
backgroundSize: '100% auto',
},
}
},
}
</script>
<style lang="scss" scoped>
.seckill{
width: 100%;
height: 100%;
}
.title{
width: 100%;
height: 180rpx;
position: relative;
.bgImg{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.limitTitle{
display: flex;
justify-content: center;
z-index: 20;
.img{
margin-top: 20rpx;
width: 302rpx;
height: 82rpx;
z-index: 20;
}
}
.time{
display: flex;
align-items: center;
width: 100%;
justify-content: space-around;
z-index: 30;
.timeItem{
.num{
width: 102rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #FFFFFF;
line-height: 33rpx;
text-shadow: 0px 0px 11px #FB3A22;
text-align: center;
}
.desc{
width: 102rpx;
height: 36rpx;
background: #FFFFFF;
border-radius: 62rpx 62rpx 62rpx 62rpx;
opacity: 1;
font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #FB3D27;
line-height: 36rpx;
text-align: center;
}
}
}
}
.main{
width: 100%;
height: 100%;
background: #F4F6FA;
border-radius: 0rpx 0rpx 0rpx 0rpx;
opacity: 1;
padding-top:34rpx ;
.over{
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #3C3C3C;
.info{
line-height: 40rpx;
margin-right: 18rpx;
}
.com{
width: 54rpx;
height: 48rpx;
background: #252525;
border-radius: 4rpx 4rpx 4rpx 4rpx;
opacity: 1;
font-size: 32rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #FFFFFF;
line-height: 48rpx;
text-align: center;
}
.hou{
margin-right: 4rpx;
}
.min{
margin: 0 4rpx;
}
.sec{
margin-left: 4rpx;
}
}
}
.goodsList{
margin-top: 22rpx;
.goodItem{
margin-left: 34rpx;
width: 686rpx;
height: 342rpx;
background: #FFFFFF;
border-radius: 8rpx 8rpx 8rpx 8rpx;
opacity: 1;
display: flex;
padding: 48rpx 32rpx 36rpx 6rpx;
margin-bottom: 26rpx;
.itemImg{
width: 258rpx;
height: 258rpx;
border-radius: 0rpx 0rpx 0rpx 0rpx;
opacity: 1;
.goodsImg{
width: 100%;
height: 100%;
}
}
.goodsInfo{
.name{
height: 44rpx;
font-size: 32rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #0E0E0E;
line-height: 44rpx;
}
.sellNum{
height: 44rpx;
font-size: 32rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #A9A9A9;
line-height: 44rpx;
margin-bottom: 8rpx;
}
.info{
display: flex;
.price{
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #979797;
line-height: 40rpx;
}
.delPrice{
width: 132rpx;
height: 48rpx;
font-size: 20rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #FB402B;
line-height: 23rpx;
background-image: url('../../static/seckill/bottom.png');
background-size: 100% 100%;
margin:0 12rpx 0 14rpx;
.delText{
width: 132rpx;
text-align: center;
margin-top: 4rpx;
}
}
.update{
width: 112rpx;
height: 40rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
color: #979797;
line-height: 40rpx;
}
}
.line{
width: 302rpx;
height: 30rpx;
margin-left:22rpx;
image{
width: 100%;
height: 100%;
}
}
.btn{
margin-top: 14rpx;
width: 390rpx;
height: 70rpx;
border-radius: 96rpx 96rpx 96rpx 96rpx;
opacity: 1;
text-align: center;
line-height: 70rpx;
display: flex;
justify-content: space-between;
background-image: url('../../static/seckill/btnBg.png');
background-size: 100% 100%;
.killPrice{
font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #FF423D;
margin-left: 26rpx;
}
.buyNow{
width: 84rpx;
font-size: 28rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 500;
color: #FFFFFF;
margin-right: 34rpx;
}
}
}
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Loading…
Cancel
Save