feat: 订单详情样式调整
This commit is contained in:
@@ -1,18 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="order-status">
|
<view
|
||||||
<view class="status-header">
|
class="border-box font-size-24 color-171717 line-height-32 font-500 pt-12 pb-12"
|
||||||
<uni-icons
|
|
||||||
class="status-icon"
|
|
||||||
fontFamily="ZhiNian"
|
|
||||||
size="20"
|
|
||||||
color="#fff"
|
|
||||||
>
|
>
|
||||||
{{ "" }}
|
{{ statusText }}
|
||||||
</uni-icons>
|
|
||||||
<!-- 订单状态 -->
|
|
||||||
<text class="status-text">{{ statusText }}</text>
|
|
||||||
</view>
|
|
||||||
<view class="status-description">{{ statusDescription }}</view>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
.order-status {
|
|
||||||
color: #fff;
|
|
||||||
padding: 20px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-header {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-icon {
|
|
||||||
width: 18px;
|
|
||||||
height: 18px;
|
|
||||||
margin-right: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-text {
|
|
||||||
font-size: 18px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.status-description {
|
|
||||||
font-size: $uni-font-size-sm;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -3,14 +3,10 @@
|
|||||||
<TopNavBar
|
<TopNavBar
|
||||||
titleAlign="center"
|
titleAlign="center"
|
||||||
:backgroundColor="backgroundColor"
|
:backgroundColor="backgroundColor"
|
||||||
:backIconColor="backIconColor"
|
|
||||||
:shadow="shadow"
|
:shadow="shadow"
|
||||||
|
title="订单详情"
|
||||||
fixed
|
fixed
|
||||||
>
|
/>
|
||||||
<template #title>
|
|
||||||
{{ title }}
|
|
||||||
</template>
|
|
||||||
</TopNavBar>
|
|
||||||
|
|
||||||
<view class="order-detail-wrapper">
|
<view class="order-detail-wrapper">
|
||||||
<OrderStatusInfo :orderData="orderData" />
|
<OrderStatusInfo :orderData="orderData" />
|
||||||
@@ -66,20 +62,16 @@ const getOrderDetail = async (orderId) => {
|
|||||||
|
|
||||||
// 监听页面滚动事件
|
// 监听页面滚动事件
|
||||||
const backgroundColor = ref("transparent");
|
const backgroundColor = ref("transparent");
|
||||||
const backIconColor = ref("#fff");
|
|
||||||
const title = ref("");
|
|
||||||
const shadow = ref(false);
|
const shadow = ref(false);
|
||||||
onPageScroll(({ scrollTop }) => {
|
onPageScroll(({ scrollTop }) => {
|
||||||
|
console.log("🚀 ~ scrollTop:", scrollTop);
|
||||||
// 当滚动到顶部时,显示返回按钮
|
// 当滚动到顶部时,显示返回按钮
|
||||||
if (scrollTop <= 0) {
|
if (scrollTop <= 0) {
|
||||||
backgroundColor.value = "transparent";
|
backgroundColor.value = "transparent";
|
||||||
backIconColor.value = "#fff";
|
|
||||||
title.value = "";
|
|
||||||
shadow.value = false;
|
shadow.value = false;
|
||||||
} else {
|
} else {
|
||||||
backgroundColor.value = "#ffffff";
|
backgroundColor.value = "#ffffff";
|
||||||
backIconColor.value = "#333333";
|
|
||||||
title.value = "订单详情";
|
|
||||||
shadow.value = true;
|
shadow.value = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB |
@@ -1,7 +1,4 @@
|
|||||||
.order-detail-wrapper {
|
.order-detail-wrapper {
|
||||||
background: url("./images/header_bg.png");
|
background: linear-gradient(180deg, #d9eeff 0%, #f5f7fa 100%);
|
||||||
background-position: 0 0;
|
padding: 88px 15px;
|
||||||
background-size: 100% 242px;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
padding: 60px 15px;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ import { DateUtils } from "@/utils";
|
|||||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||||
import ImageSwiper from "@/components/ImageSwiper/index.vue";
|
import ImageSwiper from "@/components/ImageSwiper/index.vue";
|
||||||
import GoodInfo from "./components/GoodInfo/index.vue";
|
import GoodInfo from "./components/GoodInfo/index.vue";
|
||||||
import GoodConfirm from "./components/GoodConfirm/index.vue";
|
|
||||||
import Calender from "@/components/Calender/index.vue";
|
import Calender from "@/components/Calender/index.vue";
|
||||||
import LocationCard from "@/components/LocationCard/index.vue";
|
import LocationCard from "@/components/LocationCard/index.vue";
|
||||||
import DateSelector from "./components/DateSelector/index.vue";
|
import DateSelector from "./components/DateSelector/index.vue";
|
||||||
|
|||||||
@@ -38,3 +38,7 @@
|
|||||||
.font-size-20 {
|
.font-size-20 {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.font-size-24 {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -26,3 +26,7 @@
|
|||||||
.line-height-24 {
|
.line-height-24 {
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.line-height-32 {
|
||||||
|
line-height: 32px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user