优化提交页面样式,优化商品默认为第一个热词进行搜索,修复分销商铺bug

This commit is contained in:
lemon橪
2021-09-01 17:30:54 +08:00
parent c53af2fcc3
commit 275d76c0dd
11 changed files with 290 additions and 235 deletions

View File

@@ -81,7 +81,7 @@ page {
</style>
<style scoped lang="scss">
.box {
padding: 32rpx;
padding: 0 32rpx;
background: #fff;
}
.buy {
@@ -99,6 +99,7 @@ page {
flex: 1;
justify-content: center;
display: flex;
align-items: center;
}
.tips {
@@ -119,6 +120,12 @@ page {
flex-direction: column;
justify-content: center;
}
.flex {
border-bottom: 1rpx solid #f7f7f7;
padding: 20rpx 0;
margin: 10rpx 0;
}
.SUCCESS {
color: $light-color;
}

View File

@@ -6,7 +6,8 @@
<scroll-view scroll-x>
<view class="index-navs">
<view class="index-nav-v">
<view class="index-nav" :class="{ 'index-nav-active': nav == index }" @click="clickNavigateTime(index)" v-for="(item, index) in timeLine" :key="index">
<view class="index-nav" :class="{ 'index-nav-active': nav == index }" @click="clickNavigateTime(index)"
v-for="(item, index) in timeLine" :key="index">
{{ item.timeLine }}:00
<view class="index-nav-desc">{{ index === 0 && item.distanceStartTime === 0 ? '抢购中' : '即将开始' }}
</view>
@@ -34,7 +35,8 @@
</view>
<view class="sale-item-surplus">
仅剩{{ item.quantity - item.salesNum }}
<view class="sale-item-surplus-text" :style="{ width: (item.quantity / (item.quantity - item.salesNum)) * 100 + '%' }">
<view class="sale-item-surplus-text"
:style="{ width: (item.quantity / (item.quantity - item.salesNum)) * 100 + '%' }">
</view>
</view>
<view class="sale-item-btn" @click="navigateToGoodsDetail(item)">
@@ -160,6 +162,7 @@ export default {
*/
clickNavigateTime(type) {
this.nav = type;
this.goodsList = [];
this.diffTime = parseInt(new Date().getTime() / 1000) - this.resTime;
this.time =
this.timeLine[this.nav].distanceStartTime ||