|
@@ -1,6 +1,68 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
- 我的订单
|
|
|
+ <view class="header-box">
|
|
|
+ <view class="search-box">
|
|
|
+ <u-search
|
|
|
+ v-model="searchForm.keyword"
|
|
|
+ :clearabled="true"
|
|
|
+ bg-color="#E5E5E5"
|
|
|
+ :input-style="searchInputStyle"
|
|
|
+ placeholder="搜索您想要的内容"
|
|
|
+ ></u-search>
|
|
|
+ </view>
|
|
|
+ <view class="tab-box">
|
|
|
+ <u-tabs
|
|
|
+ name="label"
|
|
|
+ :list="searchType"
|
|
|
+ :is-scroll="true"
|
|
|
+ v-model="searchForm.type"
|
|
|
+ @change="onSearchTypeChange"
|
|
|
+ font-size="24"
|
|
|
+ :bold="false"
|
|
|
+ inactive-color="#000000"
|
|
|
+ active-color="#000000"
|
|
|
+ :bar-style="{'background-color': '#2979ff'}"
|
|
|
+ :gutter="26"
|
|
|
+ height="45"
|
|
|
+ ></u-tabs>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="list-box">
|
|
|
+ <view class="list-item-box" v-for="item in list" :key="item.id">
|
|
|
+ <view class="title-box">
|
|
|
+ {{item.title}}
|
|
|
+ </view>
|
|
|
+ <view class="main-box">
|
|
|
+ <view class="info-box">
|
|
|
+ <view class="info-item-box">
|
|
|
+ <view class="label">
|
|
|
+ 订单编号:
|
|
|
+ </view>
|
|
|
+ <view class="text">
|
|
|
+ {{item.number}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="info-item-box">
|
|
|
+ <view class="label">
|
|
|
+ 订单时间:
|
|
|
+ </view>
|
|
|
+ <view class="text">
|
|
|
+ {{item.time}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="price-box">
|
|
|
+ <view class="text" v-if="item.status === 1">
|
|
|
+ 实付款: ¥{{item.price}}元
|
|
|
+ </view>
|
|
|
+ <view class="button" v-if="item.status === 0">
|
|
|
+ 已关闭
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -8,6 +70,138 @@
|
|
|
import { ref } from 'vue'
|
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
|
|
|
|
+ const searchInputStyle = {
|
|
|
+ backgroundColor: '#E5E5E5'
|
|
|
+ }
|
|
|
+ const searchType = [
|
|
|
+ {
|
|
|
+ label: '全部',
|
|
|
+ value: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '市场研究',
|
|
|
+ value: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '继续教育',
|
|
|
+ value: 2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '会费',
|
|
|
+ value: 3
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '业务水平认证考试',
|
|
|
+ value: 4
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ const searchForm = ref({
|
|
|
+ keyword: '',
|
|
|
+ type: 0
|
|
|
+ })
|
|
|
+ function onSearchTypeChange(val) {
|
|
|
+ console.log('搜索表单', searchForm.value)
|
|
|
+ }
|
|
|
+
|
|
|
+ const list = ref([
|
|
|
+ {
|
|
|
+ id: '01',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '02',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '03',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '04',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '05',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '06',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '07',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '08',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '09',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '10',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '11',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: '12',
|
|
|
+ title: '【市场研究】2024年11月广州市中介促成二手住宅市场交易简报',
|
|
|
+ number: '123456789987654321',
|
|
|
+ time: '2023年8月8日',
|
|
|
+ price: '9.9',
|
|
|
+ status: 1
|
|
|
+ },
|
|
|
+ ])
|
|
|
+
|
|
|
onLoad(() => {
|
|
|
console.log('onLoad')
|
|
|
})
|
|
@@ -17,7 +211,79 @@
|
|
|
.container {
|
|
|
height: 100vh;
|
|
|
width: 100vw;
|
|
|
- background-color: $uni-bg-color;
|
|
|
+ background-color: $uni-text-color-inverse;
|
|
|
padding: 0 20rpx;
|
|
|
+
|
|
|
+ .header-box {
|
|
|
+ background-color: $uni-text-color-inverse;
|
|
|
+ @include topMagnet();
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-box {
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ ::v-deep(.u-search) {
|
|
|
+ background-color: #e5e5e5;
|
|
|
+ border-radius: 50rpx;
|
|
|
+
|
|
|
+ .u-action {
|
|
|
+ width: 18%;
|
|
|
+ background-color: $uni-color-primary;
|
|
|
+ border-radius: 50rpx;
|
|
|
+ color: $uni-text-color-inverse;
|
|
|
+ margin-right: 8rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ line-height: 50rpx;
|
|
|
+ letter-spacing: 3rpx;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .list-box {
|
|
|
+ .list-item-box {
|
|
|
+ padding: 20rpx;
|
|
|
+ border-bottom: 5rpx solid #E6E6E6;
|
|
|
+ &:active {
|
|
|
+ background-color: $uni-bg-color-hover;
|
|
|
+ }
|
|
|
+ .title-box {
|
|
|
+ font-size: $uni-title-font-size-3;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ @include text-overflow()
|
|
|
+ }
|
|
|
+ .main-box {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding-left: 20rpx;
|
|
|
+ .info-box {
|
|
|
+ width: 50%;
|
|
|
+ .info-item-box {
|
|
|
+ display: flex;
|
|
|
+ font-size: $uni-font-size-3;
|
|
|
+ color: $uni-text-color-grey;
|
|
|
+ line-height: 30rpx;
|
|
|
+ .label {
|
|
|
+ width: 80rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .price-box {
|
|
|
+ display: flex;
|
|
|
+ align-items: flex-end;
|
|
|
+ text-align: right;
|
|
|
+ color: $uni-color-error;
|
|
|
+ font-size: $uni-title-font-size-3;
|
|
|
+ font-weight: bold;
|
|
|
+ .button {
|
|
|
+ background-color: #CCCCCC;
|
|
|
+ color: $uni-text-color-inverse;
|
|
|
+ padding: 6rpx 25rpx;
|
|
|
+ border-radius: $uni-card-border-radius;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|