首页。我的
This commit is contained in:
@@ -10,19 +10,19 @@
|
|||||||
<view>用户:</view>
|
<view>用户:</view>
|
||||||
<view>{{ userInfo.nickName || userInfo.username || '未登录' }}</view>
|
<view>{{ userInfo.nickName || userInfo.username || '未登录' }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex justify-between">
|
<!-- <view class="flex justify-between">
|
||||||
<view></view>
|
<view></view>
|
||||||
<view class="cu-btn text-blue margin-top text-bold">切换</view>
|
<view class="cu-btn text-blue margin-top text-bold">切换</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="padding" style="background: #EBF2FC;">
|
<view class="padding page-content" style="background: #EBF2FC;">
|
||||||
<view class="bg-white padding radius">
|
<view class="bg-white padding radius">
|
||||||
<view class="flex margin-bottom-xl">
|
<view class="flex margin-bottom-xl">
|
||||||
<view class="border-tite"></view>
|
<view class="border-tite"></view>
|
||||||
<view class="margin-left-xs text-bold " >功能菜单</view>
|
<view class="margin-left-xs text-bold " >功能菜单</view>
|
||||||
</view>
|
</view>
|
||||||
<view class=" grid col-3 ">
|
<view class=" grid col-3 grid-square">
|
||||||
<view class="list " v-for="(item, index) in infoList" :key="index" @click="handleMenuClick(item)">
|
<view class="list " v-for="(item, index) in infoList" :key="index" @click="handleMenuClick(item)">
|
||||||
<image style="width: 102rpx;height: 102rpx;" :src="item.src"></image>
|
<image style="width: 102rpx;height: 102rpx;" :src="item.src"></image>
|
||||||
<view>{{ item.name}}</view>
|
<view>{{ item.name}}</view>
|
||||||
@@ -299,6 +299,16 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.page-content {
|
||||||
|
background: #EBF2FC;
|
||||||
|
border-radius: 40rpx 40rpx 0rpx 0rpx;
|
||||||
|
margin-top: -30rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
padding-bottom: 50rpx;
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
|
min-height: calc(100vh - 400rpx);
|
||||||
|
}
|
||||||
.content {}
|
.content {}
|
||||||
|
|
||||||
.grid-list {
|
.grid-list {
|
||||||
|
|||||||
@@ -1,21 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<view class="padding">
|
<view class="padding">
|
||||||
<view class="text-center">我的</view>
|
<view class="text-center margin-top-xl text-white text-bold">我的</view>
|
||||||
<view class="flex justify-around" style="padding-top:60rpx;" >
|
<view class="flex justify-between align-center" style="padding-top:60rpx;" >
|
||||||
<view class="flex">
|
<view class="flex align-center">
|
||||||
<view class="cu-avatar xl round margin-left" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg);"></view>
|
<view class="cu-avatar xl round" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg);"></view>
|
||||||
<view>
|
<view class="margin-left">
|
||||||
<view>测试</view>
|
<view class="text-white text-lg text-bold">hhhrrrr</view>
|
||||||
<view>17374339800</view>
|
<view class="text-white" style="opacity: 0.8;">17374339800</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<button class="bg-blue round cu-btn">编辑资料</button>
|
<button class="cu-btn round edit-btn bg-blue text-white ">编辑资料</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="padding page">
|
<view class="page-content">
|
||||||
<view class="padding bg-white radius">
|
<view class="padding bg-white radius">
|
||||||
<view class="flex justify-between padding-bottom solid-bottom">
|
<view class="flex justify-between padding-bottom solid-bottom">
|
||||||
<view class="flex " @click="Helpcenter()">
|
<view class="flex " @click="Helpcenter()">
|
||||||
@@ -73,7 +72,32 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref, reactive, onMounted } from 'vue'
|
||||||
|
|
||||||
|
// 用户信息
|
||||||
|
const userInfo = reactive({
|
||||||
|
nickName: '',
|
||||||
|
phonenumber: ''
|
||||||
|
});
|
||||||
|
|
||||||
|
// // 获取用户信息
|
||||||
|
// const getUserInfo = () => {
|
||||||
|
// try {
|
||||||
|
// const storedUserInfo = uni.getStorageSync('userInfo');
|
||||||
|
// if (storedUserInfo) {
|
||||||
|
// const info = JSON.parse(storedUserInfo);
|
||||||
|
// userInfo.nickName = info.nickName || '';
|
||||||
|
// userInfo.phonenumber = info.phonenumber || info.username || '';
|
||||||
|
// }
|
||||||
|
// } catch (e) {
|
||||||
|
// console.error('获取用户信息失败:', e);
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
getUserInfo();
|
||||||
|
});
|
||||||
|
|
||||||
//帮助中心
|
//帮助中心
|
||||||
const Helpcenter = () => {
|
const Helpcenter = () => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -120,12 +144,22 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.page {
|
page {
|
||||||
// min-height: 100vh;
|
background: #EBF2FC;
|
||||||
background: #EBF2FC;
|
}
|
||||||
}
|
.page-content {
|
||||||
.title {
|
background: #EBF2FC;
|
||||||
height: 516rpx;
|
border-radius: 40rpx 40rpx 0rpx 0rpx;
|
||||||
background: radial-gradient( 0% 0% at 78% 8%, #2667E9 0%, #FDFDFD 100%, #719BF0 100%);
|
margin-top: -40rpx;
|
||||||
}
|
padding: 30rpx;
|
||||||
|
padding-bottom: 50rpx;
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
|
min-height: calc(100vh - 400rpx);
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
height: 440rpx;
|
||||||
|
background: linear-gradient(135deg, #2667E9 0%, #4A8AF4 50%, #719BF0 100%);
|
||||||
|
padding-top: 60rpx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
File diff suppressed because one or more lines are too long
@@ -24,6 +24,16 @@
|
|||||||
/* 垂直间距 */
|
/* 垂直间距 */
|
||||||
/* 透明度 */
|
/* 透明度 */
|
||||||
/* 文章场景相关 */
|
/* 文章场景相关 */
|
||||||
|
.page-content.data-v-1cf27b2a {
|
||||||
|
background: #EBF2FC;
|
||||||
|
border-radius: 40rpx 40rpx 0rpx 0rpx;
|
||||||
|
margin-top: -30rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
padding-bottom: 50rpx;
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
|
min-height: calc(100vh - 400rpx);
|
||||||
|
}
|
||||||
.grid-list.data-v-1cf27b2a {
|
.grid-list.data-v-1cf27b2a {
|
||||||
gap: 30rpx;
|
gap: 30rpx;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
|
|||||||
@@ -4,6 +4,13 @@ const common_assets = require("../../common/assets.js");
|
|||||||
const _sfc_main = {
|
const _sfc_main = {
|
||||||
__name: "my",
|
__name: "my",
|
||||||
setup(__props) {
|
setup(__props) {
|
||||||
|
common_vendor.reactive({
|
||||||
|
nickName: "",
|
||||||
|
phonenumber: ""
|
||||||
|
});
|
||||||
|
common_vendor.onMounted(() => {
|
||||||
|
getUserInfo();
|
||||||
|
});
|
||||||
const Helpcenter = () => {
|
const Helpcenter = () => {
|
||||||
common_vendor.index.navigateTo({
|
common_vendor.index.navigateTo({
|
||||||
url: "/pages/personalcenter/helpcenter"
|
url: "/pages/personalcenter/helpcenter"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<view class="title data-v-02345808"><view class="padding data-v-02345808"><view class="text-center data-v-02345808">我的</view><view class="flex justify-around data-v-02345808" style="padding-top:60rpx"><view class="flex data-v-02345808"><view class="cu-avatar xl round margin-left data-v-02345808" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg)"></view><view class="data-v-02345808"><view class="data-v-02345808">测试</view><view class="data-v-02345808">17374339800</view></view></view><button class="bg-blue round cu-btn data-v-02345808">编辑资料</button></view></view></view><view class="padding page data-v-02345808"><view class="padding bg-white radius data-v-02345808"><view class="flex justify-between padding-bottom solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{b}}"><image class="data-v-02345808" src="{{a}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">帮助中心</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{c}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">智能客服</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{e}}"><image class="data-v-02345808" src="{{d}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">账号安全</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{g}}"><image class="data-v-02345808" src="{{f}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">新消息通知</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{h}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">清除缓存</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{j}}"><image class="data-v-02345808" src="{{i}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">通用设置</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{k}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">关于</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view></view><button class="bg-blue round margin-top-xl data-v-02345808" bindtap="{{l}}">退出登录</button></view>
|
<view class="title data-v-02345808"><view class="padding data-v-02345808"><view class="text-center margin-top-xl text-white text-bold data-v-02345808">我的</view><view class="flex justify-between align-center data-v-02345808" style="padding-top:60rpx"><view class="flex align-center data-v-02345808"><view class="cu-avatar xl round data-v-02345808" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg)"></view><view class="margin-left data-v-02345808"><view class="text-white text-lg text-bold data-v-02345808">hhhrrrr</view><view class="text-white data-v-02345808" style="opacity:0.8">17374339800</view></view></view><button class="cu-btn round edit-btn bg-blue text-white data-v-02345808">编辑资料</button></view></view></view><view class="page-content data-v-02345808"><view class="padding bg-white radius data-v-02345808"><view class="flex justify-between padding-bottom solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{b}}"><image class="data-v-02345808" src="{{a}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">帮助中心</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{c}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">智能客服</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{e}}"><image class="data-v-02345808" src="{{d}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">账号安全</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{g}}"><image class="data-v-02345808" src="{{f}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">新消息通知</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{h}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">清除缓存</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808" bindtap="{{j}}"><image class="data-v-02345808" src="{{i}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">通用设置</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view><view class="flex justify-between padding-bottom padding-top solid-bottom data-v-02345808"><view class="flex data-v-02345808"><image class="data-v-02345808" src="{{k}}" style="width:40rpx;height:40rpx"></image><view class="margin-left data-v-02345808">关于</view></view><view class="lg text-gray cuIcon-right data-v-02345808"></view></view></view><button class="bg-blue round margin-top-xl data-v-02345808" bindtap="{{l}}">退出登录</button></view>
|
||||||
@@ -24,10 +24,21 @@
|
|||||||
/* 垂直间距 */
|
/* 垂直间距 */
|
||||||
/* 透明度 */
|
/* 透明度 */
|
||||||
/* 文章场景相关 */
|
/* 文章场景相关 */
|
||||||
.page.data-v-02345808 {
|
page.data-v-02345808 {
|
||||||
background: #EBF2FC;
|
background: #EBF2FC;
|
||||||
}
|
}
|
||||||
|
.page-content.data-v-02345808 {
|
||||||
|
background: #EBF2FC;
|
||||||
|
border-radius: 40rpx 40rpx 0rpx 0rpx;
|
||||||
|
margin-top: -40rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
padding-bottom: 50rpx;
|
||||||
|
position: relative;
|
||||||
|
z-index: 10;
|
||||||
|
min-height: calc(100vh - 400rpx);
|
||||||
|
}
|
||||||
.title.data-v-02345808 {
|
.title.data-v-02345808 {
|
||||||
height: 516rpx;
|
height: 440rpx;
|
||||||
background: radial-gradient(0% 0% at 78% 8%, #2667E9 0%, #FDFDFD 100%, #719BF0 100%);
|
background: linear-gradient(135deg, #2667E9 0%, #4A8AF4 50%, #719BF0 100%);
|
||||||
|
padding-top: 60rpx;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user