feat:订单详情页面组件封装
This commit is contained in:
BIN
pages/order/components/UserInfo/images/2025-07-13_104853.png
Normal file
BIN
pages/order/components/UserInfo/images/2025-07-13_104853.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.4 KiB |
22
pages/order/components/UserInfo/index.vue
Normal file
22
pages/order/components/UserInfo/index.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<view class="user-info mb12">
|
||||
<view class="user-info-title">游客信息</view>
|
||||
<view class="user-info-item">
|
||||
<text class="label">联系游客:</text>
|
||||
<text class="value">{{ contactName }}</text>
|
||||
</view>
|
||||
<view class="user-info-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="value">{{ contactPhone }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const contactName = '李元一';
|
||||
const contactPhone = '13172891829';
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@import './styles/index.scss';
|
||||
</style>
|
||||
14
pages/order/components/UserInfo/prompt.md
Normal file
14
pages/order/components/UserInfo/prompt.md
Normal file
@@ -0,0 +1,14 @@
|
||||
## 游客信息组件
|
||||
|
||||
组件名称:游客信息组件
|
||||
|
||||
## 提示词:
|
||||
|
||||
使用 uniapp + vue3 组合式 api 开发微信小程序,要求如下:
|
||||
1、按照提供的图片,高度还原交互设计
|
||||
2、要求布局样式结构简洁明了,class 命名请按照模块名称来命名,例如:.user-info
|
||||
3、可以使用 uniapp 内置的组件
|
||||
|
||||
## 备注
|
||||
|
||||
仅供学习、交流使用,请勿用于商业用途。
|
||||
28
pages/order/components/UserInfo/styles/index.scss
Normal file
28
pages/order/components/UserInfo/styles/index.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
.user-info {
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 16px 18px;
|
||||
}
|
||||
|
||||
.user-info-title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.user-info-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.value {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
Reference in New Issue
Block a user