feat:订单详情页面组件封装
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
19
pages/order/components/OrderStatusInfo/index.vue
Normal file
19
pages/order/components/OrderStatusInfo/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<view class="order-status">
|
||||
<view class="status-header">
|
||||
<image class="status-icon" src="/static/icons/clock.png"></image>
|
||||
<text class="status-text">已取消</text>
|
||||
</view>
|
||||
<view class="status-description">
|
||||
您已取消待支付的订单
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
// No dynamic data required for this static example
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@import './styles/index.scss';
|
||||
</style>
|
||||
14
pages/order/components/OrderStatusInfo/prompt.md
Normal file
14
pages/order/components/OrderStatusInfo/prompt.md
Normal file
@@ -0,0 +1,14 @@
|
||||
## 订单状态组件
|
||||
|
||||
组件名称:订单状态组件
|
||||
|
||||
## 提示词:
|
||||
|
||||
使用 uniapp + vue3 组合式 api 开发微信小程序,要求如下:
|
||||
1、按照提供的图片,高度还原交互设计
|
||||
2、要求布局样式结构简洁明了,class 命名请按照模块名称来命名,例如:.order-status
|
||||
3、可以使用 uniapp 内置的组件
|
||||
|
||||
## 备注
|
||||
|
||||
仅供学习、交流使用,请勿用于商业用途。
|
||||
28
pages/order/components/OrderStatusInfo/styles/index.scss
Normal file
28
pages/order/components/OrderStatusInfo/styles/index.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
.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: 12px;
|
||||
}
|
||||
Reference in New Issue
Block a user