mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 16:05:53 +08:00
优化提交页面样式,优化商品默认为第一个热词进行搜索,修复分销商铺bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user