|
|
@@ -1,15 +1,132 @@
|
|
|
<script setup lang="ts">
|
|
|
+import wait from '@/static/my/1.png'
|
|
|
+import wait1 from '@/static/my/2.png'
|
|
|
+import down from '@/static/my/6.png'
|
|
|
+import refund from '@/static/my/3.png'
|
|
|
+
|
|
|
definePage({
|
|
|
name: 'my',
|
|
|
layout: 'tabbar',
|
|
|
style: {
|
|
|
- navigationBarTitleText: '我的',
|
|
|
+ navigationBarTitleText: '个人中心',
|
|
|
+ navigationStyle: 'custom',
|
|
|
},
|
|
|
})
|
|
|
+
|
|
|
+const tabList = ref([
|
|
|
+ { title: '待支付', icon: wait },
|
|
|
+ { title: '待收货', icon: wait1 },
|
|
|
+ { title: '已完成', icon: down },
|
|
|
+ { title: '退款售后', icon: refund },
|
|
|
+])
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <view class="min-h-screen bg-gray-100 py-3 dark:bg-[var(--wot-dark-background)]">
|
|
|
- 我的
|
|
|
+ <view class="page-class bg-#F9F9F9 dark:bg-[var(--wot-dark-background)]">
|
|
|
+ <wd-navbar
|
|
|
+ title="个人中心" custom-style="background-color: transparent !important;" :bordered="false"
|
|
|
+ safe-area-inset-top fixed :z-index="99"
|
|
|
+ />
|
|
|
+ <view class="header relative h-408rpx rounded-18px">
|
|
|
+ <view class="absolute bottom-100rpx left-0 box-border w-full flex items-center justify-between pl48rpx pr58rpx">
|
|
|
+ <image src="@/static/my/9.png" alt="" class="h100rpx w100rpx" />
|
|
|
+ <view class="text-32rpx font-semibold">
|
|
|
+ 请登录后使用完整功能
|
|
|
+ </view>
|
|
|
+ <wd-button custom-class="login-btn">
|
|
|
+ 登录
|
|
|
+ </wd-button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="relative z-50 -mt48rpx">
|
|
|
+ <wd-card>
|
|
|
+ <template #title>
|
|
|
+ <view class="flex items-center justify-between">
|
|
|
+ <view class="text-32rpx font-semibold">
|
|
|
+ 订单列表
|
|
|
+ </view>
|
|
|
+ <view class="flex items-center">
|
|
|
+ <view class="text-28rpx">
|
|
|
+ 查看全部
|
|
|
+ </view>
|
|
|
+ <wd-icon name="arrow-right" size="18px" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <view class="grid grid-cols-4 gap-4">
|
|
|
+ <view v-for="item in tabList" :key="item.title" class="flex flex-col items-center justify-center">
|
|
|
+ <image :src="item.icon" class="h56rpx w56rpx" />
|
|
|
+ <view class="mt20rpx text-24rpx">
|
|
|
+ {{ item.title }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="h20rpx" />
|
|
|
+ </wd-card>
|
|
|
+ </view>
|
|
|
+ <view class="item-cell mt20rpx">
|
|
|
+ <wd-card custom-class="card">
|
|
|
+ <wd-cell-group custom-class="cell-group">
|
|
|
+ <wd-cell title="收货地址" custom-title-class="cell-title" clickable is-link>
|
|
|
+ <template #icon>
|
|
|
+ <image src="@/static/my/4.png" class="h50rpx w50rpx" />
|
|
|
+ </template>
|
|
|
+ </wd-cell>
|
|
|
+ <wd-cell title="联系平台客服" custom-title-class="cell-title" clickable is-link>
|
|
|
+ <template #icon>
|
|
|
+ <image src="@/static/my/5.png" class="h50rpx w50rpx" />
|
|
|
+ </template>
|
|
|
+ </wd-cell>
|
|
|
+ </wd-cell-group>
|
|
|
+ </wd-card>
|
|
|
+ </view>
|
|
|
+ <view class="item-cell mt20rpx">
|
|
|
+ <wd-card custom-class="card">
|
|
|
+ <wd-cell-group custom-class="cell-group">
|
|
|
+ <wd-cell title="积分" custom-title-class="cell-title" clickable is-link>
|
|
|
+ <template #icon>
|
|
|
+ <image src="@/static/my/7.png" class="h50rpx w50rpx" />
|
|
|
+ </template>
|
|
|
+ </wd-cell>
|
|
|
+ <wd-cell title="评价" custom-title-class="cell-title" clickable is-link>
|
|
|
+ <template #icon>
|
|
|
+ <image src="@/static/my/8.png" class="h50rpx w50rpx" />
|
|
|
+ </template>
|
|
|
+ </wd-cell>
|
|
|
+ </wd-cell-group>
|
|
|
+ </wd-card>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.header {
|
|
|
+ background: linear-gradient(113deg, #B8D9FF 0%, #92C5FF 25%, #BEDDFF 51%, #8FC4FF 83%, #DFEEFF 100%);
|
|
|
+}
|
|
|
+
|
|
|
+.page-class {
|
|
|
+ :deep() {
|
|
|
+ .login-btn {
|
|
|
+ min-width: 0 !important;
|
|
|
+ width: 180rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .cell-title {
|
|
|
+ padding-left: 20rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+.item-cell {
|
|
|
+ :deep() {
|
|
|
+ .card {
|
|
|
+ padding: 0 !important;
|
|
|
+ }
|
|
|
+ .cell-group{
|
|
|
+ overflow: hidden;
|
|
|
+ border-radius: 12rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|