设置-页面

This commit is contained in:
WindowBird 2025-08-16 09:28:04 +08:00
parent d233b5733c
commit c33149ece5
6 changed files with 30 additions and 20 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ node_modules/
.project .project
unpackage/ unpackage/
.DS_Store .DS_Store
.idea

View File

@ -7,3 +7,4 @@ $text-font-color-1:#000; //文字主色
$text-font-color-2:#676767; //副标题颜色 $text-font-color-2:#676767; //副标题颜色
$text-font-color-3:#a7a7a7; //浅色 $text-font-color-3:#a7a7a7; //浅色
$text-font-color-4:#e4e4e4; //更浅 $text-font-color-4:#e4e4e4; //更浅

View File

@ -1,19 +1,4 @@
view,swiper,swiper-item{ .safe-area-inset-bottom {
box-sizing: border-box; height: env(safe-area-inset-bottom);
}
.pageBg{
background:
linear-gradient(to bottom,transparent,#fff 400rpx),
linear-gradient(to right,#beecd8 20%,#F4E2D8);
min-height: 80vh;
}
.loadingLayout{
padding:30rpx 0;
}
.safe-area-inset-bottom{
height: env(safe-area-inset-bottom);
} }

View File

@ -26,6 +26,14 @@
"navigationBarTitleText": "个人中心", "navigationBarTitleText": "个人中心",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path" : "pages/set/set",
"style" :
{
"navigationBarTitleText" : "设置",
"autoBackButton":true
}
} }
], ],
"tabBar": { "tabBar": {

View File

@ -16,8 +16,8 @@
<view class="user-details"> <view class="user-details">
<text class="user-name">昵称</text> <text class="user-name">昵称</text>
<text class="user-id">123****8912</text> <text class="user-id">123****8912</text>
<view class="settings-icon"> <view class="settings-icon" @click="gotoPage('/pages/set/set')">
<image :src="commonEnum.SET" class="settings-img" mode="aspectFit"></image> <image :src="commonEnum.SET" class="settings-img" mode="aspectFit" />
</view> </view>
</view> </view>
</view> </view>
@ -136,6 +136,9 @@ export default {
} }
}, },
methods: { methods: {
gotoPage(url) {
uni.navigateTo({ url })
},
goToAgentApply() { goToAgentApply() {
uni.showToast({ uni.showToast({
title: '申请代理', title: '申请代理',
@ -181,7 +184,6 @@ export default {
position: relative; position: relative;
background: #ffffff; background: #ffffff;
.avatar { .avatar {
position: absolute; position: absolute;
top: -80rpx; // top: -80rpx; //

13
pages/set/set.vue Normal file
View File

@ -0,0 +1,13 @@
<template>
<view class="">
</view>
</template>
<script setup>
</script>
<style lang="scss" scoped>
</style>