Browse Source

修改样式

hfll
longjieli 3 months ago
parent
commit
d13bff5756
8 changed files with 288 additions and 0 deletions
  1. +288
    -0
      pages_order/mine/coupon.vue
  2. BIN
      pages_order/static/coupon/coupon-bg.png
  3. BIN
      pages_order/static/coupon/status.png
  4. BIN
      pages_order/static/withdraw/cz.png
  5. BIN
      static/image/category/diamond-price.png
  6. BIN
      static/image/category/gold-card-price.png
  7. BIN
      static/image/category/sales-volume-icon.png
  8. BIN
      static/image/category/silver-card-price.png

+ 288
- 0
pages_order/mine/coupon.vue View File

@ -0,0 +1,288 @@
<template>
<scroll-view scroll-y="true" :style="{height: height}" @scrolltolower="loadMoreData">
<!-- 导航栏 -->
<navbar title="优惠券" leftClick @leftClick="$utils.navigateBack" bgColor="#E3441A" color="#fff" />
<!-- 优惠券筛选 -->
<view class="tabs">
<uv-tabs :list="filtrationMenu" @click="hadleFiltrationMenuEvent" lineColor="#E3441A"
:activeStyle="{ color : '#E3441A' }"></uv-tabs>
</view>
<!-- 优惠券列表 -->
<view class="list">
<view class="item" v-for="(item,index) in coupons" @click="select(item)" :key="index">
<image src="@/pages_order/static/coupon/coupon-bg.png" mode="widthFix" class="coupon-bg"></image>
<view class="item-con">
<view class="price-time">
<view class="price">
<view class="num">
<view class="icon">
</view>
{{ item.money }}
</view>
</view>
<view class="date-tiao">
<view class="time">
{{ item.time || '不限' }}
</view>
<view class="tiao">
{{ item.tiaojian }}
</view>
</view>
</view>
<view class="status">
<view class="order-status">
<image src="@/pages_order/static/coupon/status.png" mode="widthFix" class="status-img">
</image>
<view class="text">
已领取
</view>
</view>
<view class="surplus">
剩余28天过期
</view>
</view>
</view>
</view>
</view>
<uv-empty v-if="coupons.length == 0" text="空空如也" textSize="30rpx" iconSize="200rpx" icon="list"></uv-empty>
</scroll-view>
</template>
<script>
import mixinList from '@/mixins/list.js'
export default {
name: "couponList",
mixins: [mixinList],
props: {
height: {
default: 'auto'
// default : 'calc(90vh - 180rpx)'
},
//
depositPrice: {},
washPrice: { //
},
rentPrice: { //
},
},
data() {
return {
mixinsListApi: 'couponPage',
filtrationMenu: [{
name: "全部优惠券"
}, {
name: "已使用优惠券"
}, {
name: "已过期优惠券"
}],
activefiltration: 0,
coupons: [{
id: 1,
money: 20,
time: "12月20日-1月20日",
tiaojian: "无门槛使用",
state: 0,
ex: "28"
}]
};
},
methods: {
select(item) {
if (this.isSelect(item)) {
return
}
this.$emit('select', item)
},
isSelect(item) {
if (!this.depositPrice && !this.rentPrice && !this.washPrice) {
return false
}
//
if (this.depositPrice &&
item.useType == 0 &&
this.depositPrice >= item.conditionPrice) {
return false
}
//
if (this.rentPrice &&
item.useType == 1 &&
this.rentPrice >= item.conditionPrice) {
return false
}
//
if (this.washPrice &&
item.useType == 2 &&
this.washPrice >= item.conditionPrice) {
return false
}
return true
},
//
hadleFiltrationMenuEvent(event) {
this.activefiltration = event.index
}
}
}
</script>
<style scoped lang="scss">
//
.tabs {
&::v-deep .uv-tabs__wrapper__nav {
background: white;
.uv-tabs__wrapper__nav__item {
width: 33.33%;
text-align: center;
box-sizing: border-box;
}
}
}
.list {
.item {
color: #FDDFCD;
position: relative;
width: calc(100% - 40rpx);
height: 220rpx;
background-size: 100% 100%;
margin: 20rpx;
box-sizing: border-box;
padding: 30rpx;
.coupon-bg {
width: 100%;
position: absolute;
left: 0rpx;
top: 0rpx;
}
.item-con {
display: flex;
align-items: center;
flex-wrap: wrap;
position: absolute;
top: 50%;
left: 0rpx;
transform: translateY(-50%);
z-index: 99;
width: 100%;
.price-time {
display: flex;
width: 65%;
.price {
display: flex;
align-items: center;
.num {
color: #FFF8E9;
font-weight: 900;
font-size: 70rpx;
display: flex;
align-items: flex-end;
.icon {
color: #FFF8E9;
width: 30rpx;
height: 30rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 20rpx;
border-radius: 14rpx;
margin-bottom: 14rpx;
margin-right: 10rpx;
}
}
}
.date-tiao {
display: flex;
flex-direction: column;
align-items: center;
font-size: 24rpx;
box-sizing: border-box;
padding-left: 20rpx;
.time {}
.tiao {
display: flex;
justify-content: center;
background: #FDE5BA;
border-radius: 40rpx;
color: #FF2E34;
padding: 5rpx 20rpx;
margin-top: 15rpx;
}
}
}
.status {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 35%;
color: #FD4231;
padding-top: 30rpx;
.order-status {
position: relative;
width: 180rpx;
.status-img {
position: absolute;
left: 0;
width: 100%;
}
.text {
height: 90rpx;
display: flex;
justify-content: center;
align-items: center;
position: relative;
z-index: 100;
font-size: 34rpx;
font-weight: bold;
}
}
.surplus {
font-size: 22rpx;
text-align: center;
margin-top: 10rpx;
}
}
}
}
.del {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffffff99;
z-index: 99;
}
}
</style>

BIN
pages_order/static/coupon/coupon-bg.png View File

Before After
Width: 1036  |  Height: 360  |  Size: 48 KiB

BIN
pages_order/static/coupon/status.png View File

Before After
Width: 256  |  Height: 141  |  Size: 22 KiB

BIN
pages_order/static/withdraw/cz.png View File

Before After
Width: 1068  |  Height: 480  |  Size: 184 KiB

BIN
static/image/category/diamond-price.png View File

Before After
Width: 99  |  Height: 36  |  Size: 2.9 KiB

BIN
static/image/category/gold-card-price.png View File

Before After
Width: 99  |  Height: 36  |  Size: 2.9 KiB

BIN
static/image/category/sales-volume-icon.png View File

Before After
Width: 20  |  Height: 25  |  Size: 673 B

BIN
static/image/category/silver-card-price.png View File

Before After
Width: 99  |  Height: 36  |  Size: 2.9 KiB

Loading…
Cancel
Save