feat: 字体图标调整
This commit is contained in:
@@ -46,4 +46,4 @@ defineProps({
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "./styles/index.scss";
|
@import "./styles/index.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.goods-image {
|
.goods-image {
|
||||||
background-color: pink;
|
background-color: pink;
|
||||||
width: 65px;
|
width: 65px;
|
||||||
height: 65px;
|
height: 65px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
@@ -74,4 +74,4 @@
|
|||||||
.service-quantity {
|
.service-quantity {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,17 +4,52 @@
|
|||||||
<uni-icons
|
<uni-icons
|
||||||
class="status-icon"
|
class="status-icon"
|
||||||
fontFamily="ZhiNian"
|
fontFamily="ZhiNian"
|
||||||
type="iconshizhong"
|
size="20"
|
||||||
size="30"
|
color="#fff"
|
||||||
></uni-icons>
|
>
|
||||||
<text class="status-text">已取消</text>
|
{{ "" }}
|
||||||
|
</uni-icons>
|
||||||
|
<!-- 订单状态 -->
|
||||||
|
<text class="status-text">{{ statusText }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="status-description"> 您已取消待支付的订单 </view>
|
<view class="status-description">{{ statusDescription }}</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { defineProps } from "vue";
|
import { defineProps, computed } from "vue";
|
||||||
|
|
||||||
|
// 订单状态配置映射
|
||||||
|
const ORDER_STATUS_CONFIG = {
|
||||||
|
0: {
|
||||||
|
text: "待支付",
|
||||||
|
description: "请尽快完成支付",
|
||||||
|
},
|
||||||
|
1: {
|
||||||
|
text: "待确认",
|
||||||
|
description: "商家正在确认您的订单",
|
||||||
|
},
|
||||||
|
2: {
|
||||||
|
text: "待使用",
|
||||||
|
description: "预订成功,订单待使用",
|
||||||
|
},
|
||||||
|
3: {
|
||||||
|
text: "已取消",
|
||||||
|
description: "订单已取消",
|
||||||
|
},
|
||||||
|
4: {
|
||||||
|
text: "退款中",
|
||||||
|
description: "商家退款正在处理中,请耐心等待",
|
||||||
|
},
|
||||||
|
5: {
|
||||||
|
text: "已退款",
|
||||||
|
description: "款项预计1-7个工作日退回至原支付账户",
|
||||||
|
},
|
||||||
|
6: {
|
||||||
|
text: "已完成",
|
||||||
|
description: "订单已完成,感谢您的使用",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
orderData: {
|
orderData: {
|
||||||
@@ -25,13 +60,30 @@ const props = defineProps({
|
|||||||
paySerialNumber: "",
|
paySerialNumber: "",
|
||||||
payWay: "", // 支付方式 0-微信 1-支付宝 2-云闪付
|
payWay: "", // 支付方式 0-微信 1-支付宝 2-云闪付
|
||||||
payAmt: "",
|
payAmt: "",
|
||||||
orderStatus: "0", // 订单状态 0-待支付 1-待确认 2-待使用 3-已取消 4-退款中 5-已关闭 6-已完成
|
orderStatus: "0", // 订单状态 0-待支付 1-待确认 2-待使用 3-已取消 4-退款中 5-已退款 6-已完成
|
||||||
orderType: "0", // 0-酒店订单, 1-门票订单, 2-餐饮
|
orderType: "0", // 0-酒店订单, 1-门票订单, 2-餐饮
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 当前状态配置
|
||||||
|
const currentStatusConfig = computed(() => {
|
||||||
|
return (
|
||||||
|
ORDER_STATUS_CONFIG[props.orderData.orderStatus] || ORDER_STATUS_CONFIG["0"]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
// 状态文本
|
||||||
|
const statusText = computed(() => {
|
||||||
|
return currentStatusConfig.value.text;
|
||||||
|
});
|
||||||
|
|
||||||
|
// 状态描述
|
||||||
|
const statusDescription = computed(() => {
|
||||||
|
return currentStatusConfig.value.description;
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import "./styles/index.scss";
|
@import "./styles/index.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,11 +2,8 @@
|
|||||||
<view class="top-nav-bar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
<view class="top-nav-bar" :style="{ paddingTop: statusBarHeight + 'px' }">
|
||||||
<view class="nav-content">
|
<view class="nav-content">
|
||||||
<view class="nav-left" @click="goBack">
|
<view class="nav-left" @click="goBack">
|
||||||
<image
|
<uni-icons class="icon-back" type="left" size="20" color="#333">
|
||||||
class="back-icon"
|
</uni-icons>
|
||||||
src="@/static/back.png"
|
|
||||||
mode="aspectFit"
|
|
||||||
></image>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="nav-center">
|
<view class="nav-center">
|
||||||
<slot name="title">
|
<slot name="title">
|
||||||
@@ -57,4 +54,4 @@ const goBack = () => {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import "./styles/index.scss";
|
@import "./styles/index.scss";
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
|
|
||||||
|
|
||||||
.nav-content {
|
.nav-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-left {
|
.nav-left {
|
||||||
@@ -17,11 +14,6 @@
|
|||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.back-icon {
|
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-center {
|
.nav-center {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -34,5 +26,3 @@
|
|||||||
color: #333;
|
color: #333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="order-detail-wrapper">
|
<view class="order-detail-wrapper">
|
||||||
<image class="icon-back" src="./images/back.png" />
|
<uni-icons type="left" size="20" color="#fff" @click="goBack" />
|
||||||
|
|
||||||
<OrderStatusInfo :orderData="orderData" />
|
<OrderStatusInfo :orderData="orderData" />
|
||||||
<OrderQrcode size="132" unit="px" :val="orderData.orderId" />
|
<OrderQrcode size="132" unit="px" :val="orderData.orderId" />
|
||||||
@@ -29,6 +29,13 @@ onLoad(async ({ orderId }) => {
|
|||||||
orderData.value = res.data;
|
orderData.value = res.data;
|
||||||
console.log(res);
|
console.log(res);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 返回上一页
|
||||||
|
const goBack = () => {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1,
|
||||||
|
});
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 311 B |
@@ -1,12 +1,7 @@
|
|||||||
.order-detail-wrapper {
|
.order-detail-wrapper {
|
||||||
background: url('./images/header_bg.png');
|
background: url("./images/header_bg.png");
|
||||||
background-position: 0 0;
|
background-position: 0 0;
|
||||||
background-size: 100% 242px;
|
background-size: 100% 242px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
padding: 60px 15px;
|
padding: 60px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-back {
|
|
||||||
height: 16px;
|
|
||||||
width: 16px;
|
|
||||||
}
|
|
||||||
@@ -1,19 +1,17 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "ZhiNian"; /* Project id 4988933 */
|
font-family: "ZhiNian"; /* Project id 4988933 */
|
||||||
src: url("iconfont.ttf?t=1753966564544") format("truetype");
|
src: url("/static/fonts/iconfont.ttf") format("truetype");
|
||||||
}
|
}
|
||||||
|
|
||||||
.ZhiNian {
|
.ZhiNian {
|
||||||
font-family: "ZhiNian" !important;
|
font-family: "ZhiNian" !important;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconyoujiantou:before {
|
.zn-food:before {
|
||||||
content: "\e678";
|
content: "\e607";
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconshizhong:before {
|
.zn-clock:before {
|
||||||
content: "\e600";
|
content: "\e600";
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user