Feat(时令尝鲜):接口对接
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
<template>
|
||||
<view class="views-seckill pkg-product-list" :style="{'backgroundImage':`url(${webUrl}/20221222155058686606.png)`}">
|
||||
<!-- <hx-navbar :back="true" :fixed="false" leftText="天天秒杀" color="#fff" :statusBar="true" transparent="hidden"-->
|
||||
<!-- barPlaceholder="hidden"/>-->
|
||||
|
||||
<view class="search-box flex jc-between ai-center">
|
||||
<input type="text" v-model="keyword" placeholder="搜索商品" placeholder-style="color:#949494" @confirm="search">
|
||||
<image class="icon" :src="webUrl+'/20220903142935869059.png'" mode="scaleToFill" @click="search"></image>
|
||||
</view>
|
||||
<!-- <view class="search-box flex jc-between ai-center">-->
|
||||
<!-- <input type="text" v-model="keyword" placeholder="搜索商品" placeholder-style="color:#949494" @confirm="search">-->
|
||||
<!-- <image class="icon" :src="webUrl+'/20220903142935869059.png'" mode="scaleToFill" @click="search"></image>-->
|
||||
<!-- </view>-->
|
||||
|
||||
<view class="img-box flex jc-between ai-end">
|
||||
<image class="img-seckill" :src="webUrl+'/20221222155145987590.png'" mode="scaleToFill"/>
|
||||
@@ -21,7 +18,8 @@
|
||||
<view class="flex jc-center">
|
||||
<image class="title" :src="webUrl+'/20221230201151585898.png'" mode="scaleToFill"/>
|
||||
</view>
|
||||
<view class="content">{{ ruleContent }}</view>
|
||||
<rich-text class="content" :nodes="ruleContent"/>
|
||||
<!-- <view class="content">{{ ruleContent }}</view>-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -66,7 +64,8 @@
|
||||
</view>
|
||||
|
||||
<view class="list-box">
|
||||
<view class="item flex" v-for="(item,index) in list" :key="index" @click="goGoodsConByProductID(item)">
|
||||
<view class="item flex" v-for="(item,index) in list" :key="index"
|
||||
@click="goGoodsConByProductID(item,seckillTime[seckillTimeIndex].status)">
|
||||
<image class="img-cover flex-0" :src="item.image"
|
||||
mode="scaleToFill"/>
|
||||
<view class="content flex flex-col jc-between">
|
||||
@@ -140,6 +139,7 @@ export default {
|
||||
this.page = 1;
|
||||
this.list = [];
|
||||
this.timeId = this.seckillTime[this.seckillTimeIndex].id;
|
||||
this.endReach = false;
|
||||
this.fetchList()
|
||||
},
|
||||
|
||||
@@ -175,7 +175,15 @@ export default {
|
||||
});
|
||||
},
|
||||
|
||||
goGoodsConByProductID(item) {
|
||||
goGoodsConByProductID(item, status) {
|
||||
if (status > 1) {
|
||||
uni.showToast({
|
||||
title: "此商品秒杀活动还未开始哦",
|
||||
icon: "none"
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
this.$yrouter.push({
|
||||
path: '/pages/shop/GoodsCon/index',
|
||||
query: {
|
||||
@@ -193,8 +201,8 @@ export default {
|
||||
@import "@/assets/css/product.less";
|
||||
|
||||
.views-seckill {
|
||||
padding-top: 40rpx;
|
||||
background-size: 750rpx auto;
|
||||
//padding-top: 40rpx;
|
||||
background-size: 750rpx 360rpx;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
.dialog-mask {
|
||||
@@ -248,8 +256,8 @@ export default {
|
||||
}
|
||||
|
||||
.img-box {
|
||||
margin-top: 40rpx;
|
||||
padding: 0 32rpx;
|
||||
//margin-top: 40rpx;
|
||||
padding: 40rpx 32rpx 0;
|
||||
|
||||
.img-seckill {
|
||||
width: 224.65rpx;
|
||||
|
||||
Reference in New Issue
Block a user