This commit is contained in:
Gdpao
2020-09-01 08:39:08 +08:00
parent 0de127d351
commit 1fad28b7b0
3 changed files with 19 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="classify-goods">
<u-search style="padding: 0 30rpx" placeholder="日照香炉生紫烟" v-model="keyword" @search="select" @custom="select"></u-search>
<u-search style="padding: 0 30rpx" placeholder="请搜索商品" v-model="keyword" @search="select" @custom="select"></u-search>
<view class="tab-container">
<view class="salenum" :class="{ 'current' : current == 0 }" @click="switchCurrent(0)">销量</view>
<view class="price" :class="{ 'current' : current == 1 }" @click="switchCurrent(1)">
@@ -20,6 +20,7 @@
<view class="briefing u-line-1">{{ goods.goods_advword }}</view>
<!-- <view class="price">{{ goods.goods_price }}</view> -->
<view class="price">
<view class="type-tag" v-show="goods.goods_type != 1">{{ goods.goods_type == 2 ? "秒杀" : "拼团" }}</view>
<view class="present">{{ goods.goods_price }}</view>
<view class="origin">{{ goods.goods_marketprice }}</view>
</view>
@@ -209,6 +210,13 @@ export default {
.price {
display: flex;
align-items: center;
.type-tag {
padding: 4rpx 10rpx;
color: #fff;
font-size: 22rpx;
border-radius: 10rpx;
background-color: #FF7810;
}
.present {
font-size: 26rpx;
color: rgba(255,49,49,1);