info
This commit is contained in:
+2
File diff suppressed because one or more lines are too long
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "个人中心",
|
||||
"usingComponents": {
|
||||
"uni-popup": "/uni_modules/uni-popup/components/uni-popup/uni-popup",
|
||||
"uni-popup-dialog": "/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog",
|
||||
"cloud-image": "/uni_modules/uni-id-pages/components/cloud-image/cloud-image"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="page"><view><uni-popup class="vue-ref" vue-id="704e9d00-1" type="dialog" data-ref="inputDialog" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog vue-id="{{('704e9d00-2')+','+('704e9d00-1')}}" type="info" cancelText="关闭" confirmText="继续" title="提示" content="该功能还在开发中!" data-event-opts="{{[['^confirm',[['dialogConfirm']]],['^close',[['dialogClose']]]]}}" bind:confirm="__e" bind:close="__e" bind:__l="__l"></uni-popup-dialog></uni-popup></view><view class="action"><view><image src="/static/center/scan.png" data-event-opts="{{[['tap',[['toScan']]]]}}" bindtap="__e"></image></view><view><image src="/static/center/setting.png" data-event-opts="{{[['tap',[['toSetting']]]]}}" bindtap="__e"></image></view></view><view data-event-opts="{{[['tap',[['toUserInfoPage']]]]}}" class="user" bindtap="__e"><block wx:if="{{userInfo.avatar_file}}"><cloud-image class="avatar" vue-id="704e9d00-3" src="{{userInfo.avatar_file.url}}" bind:__l="__l"></cloud-image></block><block wx:else><image class="avatar" src="https://env-00jxt5y29hrd.normal.cloudstatic.cn/static/center/avatar.png?expire_at=1741157497&er_sign=9b8381ae7875137d28c57d502762691b" mode></image></block><view class="name"><text>{{userInfo?userInfo.nickname:"未登录"}}</text><text>个人签名</text></view><image class="right" src="/static/center/right.png"></image></view><block wx:for="{{menus}}" wx:for-item="v" wx:for-index="k" wx:key="k"><view class="card"><view class="menu"><block wx:for="{{v}}" wx:for-item="v_" wx:for-index="k_" wx:key="k_"><view data-event-opts="{{[['tap',[['menuClick',['$0'],[[['menus','',k],['','',k_]]]]]]]}}" class="item" bindtap="__e"><image src="{{v_.icon}}"></image><view>{{v_.name}}</view><block wx:if="{{v_.arrow}}"><image class="arrow" src="/static/center/right.png"></image></block></view></block></view></view></block></view>
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.page {
|
||||
background: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.page .action {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 10rpx;
|
||||
background: #4B79EC;
|
||||
}
|
||||
.page .action view {
|
||||
padding: 10rpx;
|
||||
margin: 0 10rpx;
|
||||
border-radius: 8rpx;
|
||||
width: 45rpx;
|
||||
height: 45rpx;
|
||||
}
|
||||
.page .action view:active {
|
||||
background: #ccc;
|
||||
}
|
||||
.page .action view image {
|
||||
width: 45rpx;
|
||||
height: 45rpx;
|
||||
}
|
||||
.page .user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 25rpx;
|
||||
background: #4B79EC;
|
||||
}
|
||||
.page .user:active {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
.page .user .avatar {
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
.page .user .right {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
}
|
||||
.page .user .name {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-left: 20rpx;
|
||||
}
|
||||
.page .user .name text {
|
||||
color: #fff;
|
||||
}
|
||||
.page .user .name text:nth-child(1) {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.page .user .name text:nth-child(2) {
|
||||
font-size: 12px;
|
||||
color: #f0f0f0;
|
||||
}
|
||||
.page .card {
|
||||
background: #fff;
|
||||
box-sizing: border-box;
|
||||
width: 700rpx;
|
||||
margin: auto;
|
||||
padding: 15rpx;
|
||||
margin-top: 20rpx;
|
||||
border-radius: 12rpx;
|
||||
}
|
||||
.page .card .menu .item {
|
||||
display: flex;
|
||||
height: 100rpx;
|
||||
align-items: center;
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
width: 700rpx;
|
||||
}
|
||||
.page .card .menu .item:active {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
.page .card .menu .item image {
|
||||
height: 45rpx;
|
||||
width: 45rpx;
|
||||
}
|
||||
.page .card .menu .item view {
|
||||
font-size: 14px;
|
||||
color: #444;
|
||||
padding-left: 15rpx;
|
||||
box-sizing: border-box;
|
||||
width: calc(100% - 100rpx);
|
||||
}
|
||||
.page .card .menu .item .arrow {
|
||||
width: 26rpx;
|
||||
height: 26rpx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user