feat(custom):
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-20 18:18:16 +08:00
parent 1b1b724110
commit 94a4b5e1df
25 changed files with 330 additions and 345 deletions

View File

@@ -20,14 +20,14 @@ const tabsList = ref([
title: '豆子明细',
value: 2,
},
{
title: '活动赠送',
value: 4,
},
{
title: '聚合积分',
value: 5,
},
{
title: '活动赠送',
value: 4,
},
]);
const computerType = computed(() => {
@@ -133,7 +133,7 @@ const closePicker = () => {
</script>
<template>
<view>
<view class="overflow-scroll">
<view class="tabs-box">
<view
class="item"
@@ -170,28 +170,32 @@ const closePicker = () => {
<view v-if="data.length > 0">
<view v-if="tabValue === 1">
<view class="card-list" v-for="(item, index) in data" :key="index">
<view class="left">
<view>订单号: {{ item.oid }}</view>
<text class="jf">{{
<view>
<view class="text-[28px]">订单号: {{ item.oid }}</view>
<view class="text-[#484848] text-[26px] mt-[18px]">{{
dayjs(item.add_time).format('YYYY/MM/DD mm:ss')
}}</text>
}}</view>
</view>
<view class="right">
<view class="flex-1 text-right mt-[18px]">
<view v-if="tabValue === 1" style="color: red"
>-
<text>{{ item.number }}</text>
</view>
<text class="jf">积分余额: {{ item.residue || 0 }}</text>
<text class="text-[#484848]"
>积分余额: {{ item.residue || 0 }}</text
>
</view>
</view>
</view>
<view v-if="tabValue === 3 || tabValue === 5">
<view class="card-list" v-for="(item, index) in data" :key="index">
<view class="left">
<view>订单{{ item.oid }}</view>
<view>时间{{ item.add_time.slice(0, 10) }}</view>
<view>
<view class="text-[28px]">订单{{ item.oid }}</view>
<view class="text-[#484848] text-[26px] mt-[18px]"
>时间{{ item.add_time.slice(0, 10) }}</view
>
</view>
<view class="right">
<view class="flex-1 text-right mt-[18px]">
<view v-if="tabValue === 5" style="color: red"
>-
<text>{{ item.number }}积分</text>
@@ -206,11 +210,13 @@ const closePicker = () => {
</view>
<view v-else-if="tabValue === 2">
<view class="card-list" v-for="(item, index) in data" :key="index">
<view class="left">
<view class="text">订单{{ item.oid }}</view>
<view>时间{{ item.add_time.slice(0, 10) }}</view>
<view>
<view class="text-[28px]">订单{{ item.oid }}</view>
<view class="text-[#484848] text-[26px] mt-[18px]"
>时间{{ item.add_time.slice(0, 10) }}</view
>
</view>
<view class="right">
<view class="flex-1 text-right mt-[18px]">
<view style="color: green"
>+
<text>{{ item.number }}</text>
@@ -221,11 +227,13 @@ const closePicker = () => {
</view>
<view v-else-if="tabValue === 4">
<view class="card-list" v-for="(item, index) in data" :key="index">
<view class="left">
<view class="text">类型{{ computerType(item.type) }}</view>
<view>时间{{ item.add_time.slice(0, 10) }}</view>
<view>
<view class="text-[28px]">类型{{ computerType(item.type) }}</view>
<view class="text-[#484848] text-[26px] mt-[18px]"
>时间{{ item.add_time.slice(0, 10) }}</view
>
</view>
<view class="right">
<view class="flex-1 text-right mt-[18px]">
<view style="color: green"
>+
<text>{{ item.number }}</text>
@@ -257,19 +265,24 @@ const closePicker = () => {
align-items: center;
background-color: #fff;
text-align: center;
flex-wrap: wrap;
padding: 15px;
justify-content: space-evenly;
justify-content: space-between;
overflow-x: scroll;
.item {
padding: 10px 20px;
font-size: 23px;
width: 144px;
min-width: 144px;
height: 60px;
min-height: 60px;
font-size: 26px;
border-radius: 10px;
text-align: center;
line-height: 60px;
margin-left: 25px;
}
}
.card-list {
// margin: 10px 20px;
background-color: #fff;
display: flex;
border-radius: 10px;
@@ -277,27 +290,8 @@ const closePicker = () => {
justify-content: space-between;
align-items: center;
font-size: 25px;
margin-bottom: 25px;
.jf {
color: #484848;
}
.left {
.text {
text-align: left;
font-weight: bolder;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
word-break: break-word;
color: #484848;
}
}
.right {
flex: 1;
text-align: right;
}
}
</style>

View File

@@ -228,7 +228,7 @@ const getTj = async () => {
:key="index"
@click="toDetail(item)">
<view class="top">
<view class="text-[#9C9C9C] text-[25px]">订单号{{ item.oid }}</view>
<view class="text-[#9C9C9C] text-[28px]">订单号{{ item.oid }}</view>
<view
:style="{
color:
@@ -272,8 +272,10 @@ const getTj = async () => {
class="flex justify-between items-center mt-2 mb-2 text-[25px]"
v-if="item.status !== 0"
style="text-align: right">
<text class="text-[#9C9C9C]">{{ item.count }}件商品</text>
<text
<text class="text-[#9C9C9C] text-[28px]"
>{{ item.count }}件商品</text
>
<text class="text-[26px]"
>{{ item.status !== 0 ? '实' : '应' }}付款{{
item.pay_type === 1 ? '(元): ' : '(积分): '
}}{{ item.pay_type === 1 ? item.price : item.exchange }}</text
@@ -352,9 +354,8 @@ page {
text-align: center;
.text {
// margin: 10px 20px;
align-items: center;
font-size: 25px;
font-size: 30px;
}
.line {
@@ -373,7 +374,7 @@ page {
.order-card {
width: 95%;
box-sizing: border-box;
margin: 15px auto;
margin: 20px auto;
background-color: #fff;
border-radius: 10px;
padding: 20px;
@@ -382,7 +383,7 @@ page {
width: 100%;
height: 1px;
background-color: #f5f5f5;
margin: 10px;
margin: 20px auto;
}
.top {
@@ -398,17 +399,15 @@ page {
}
.center {
// margin-bottom: 10px;
.top {
display: flex;
// justify-content: space-between;
align-items: flex-start;
image {
width: 150px;
height: 150px;
border-radius: 15px;
margin-right: 10px;
margin-right: 20px;
}
.title {