Initial commit to Gitea
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +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',[['toPersonalpage']]]]}}" class="user" bindtap="__e"><block wx:if="{{userInfo.avatar_file}}"><cloud-image vue-id="704e9d00-3" width="120rpx" height="120rpx" border-radius="50%" src="{{userInfo.avatar_file.url}}" bind:__l="__l"></cloud-image></block><block wx:else><image class="avatar" src="https://qnycdn.mymoyu.top/static/avatar.jpg" mode></image></block><view class="name"><text>{{userInfo.nickname?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>
|
||||
<view class="page"><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 class="hero"><view class="hero__toolbar"><view data-event-opts="{{[['tap',[['toScan',['$event']]]]]}}" class="toolbar-btn" bindtap="__e"><image src="/static/center/scan.png" mode="aspectFit"></image></view><view data-event-opts="{{[['tap',[['toSetting',['$event']]]]]}}" class="toolbar-btn" bindtap="__e"><image src="/static/center/setting.png" mode="aspectFit"></image></view></view><view data-event-opts="{{[['tap',[['toUserInfoPage',['$event']]]]]}}" class="profile-card" bindtap="__e"><view class="profile-main"><block wx:if="{{userInfo.avatar_file}}"><cloud-image vue-id="704e9d00-3" width="132rpx" height="132rpx" border-radius="50%" src="{{userInfo.avatar_file.url}}" bind:__l="__l"></cloud-image></block><block wx:else><image class="avatar" src="/static/center/avatar.png" mode="aspectFill"></image></block><view class="profile-copy"><text class="profile-name">{{isLogin?userInfo.nickname||'默认用户':'立即登录'}}</text><text class="profile-desc">{{profileDesc}}</text><view class="profile-tags"><text class="profile-tag">{{isLogin?'已登录':'游客模式'}}</text><block wx:if="{{realNameStatus===1}}"><text class="profile-tag">已实名</text></block></view></view></view><image class="profile-arrow" src="/static/center/right.png" mode="aspectFit"></image></view><view class="data-panel"><block wx:for="{{stats}}" wx:for-item="item" wx:for-index="__i0__" wx:key="label"><view data-event-opts="{{[['tap',[['menuClick',['$0'],[[['stats','label',item.label,'menu']]]]]]]}}" class="data-item" bindtap="__e"><text class="data-value">{{item.value}}</text><text class="data-label">{{item.label}}</text></view></block></view></view><view class="content"><view class="quick-panel"><view class="section-head"><text class="section-title">常用服务</text><text class="section-subtitle">快捷进入高频功能</text></view><view class="quick-grid"><block wx:for="{{quickMenus}}" wx:for-item="item" wx:for-index="__i1__" wx:key="type"><view data-event-opts="{{[['tap',[['menuClick',['$0'],[[['quickMenus','type',item.type]]]]]]]}}" class="quick-item" bindtap="__e"><view class="quick-icon"><image src="{{item.icon}}" mode="aspectFit"></image></view><text class="quick-name">{{item.name}}</text></view></block></view></view><block wx:for="{{menuGroups}}" wx:for-item="group" wx:for-index="index" wx:key="index"><view class="menu-panel"><block wx:for="{{group}}" wx:for-item="item" wx:for-index="__i2__" wx:key="type"><view data-event-opts="{{[['tap',[['menuClick',['$0'],[[['menuGroups','',index],['','type',item.type]]]]]]]}}" class="menu-cell" bindtap="__e"><view class="menu-cell__left"><view class="menu-cell__icon"><image src="{{item.icon}}" mode="aspectFit"></image></view><view class="menu-cell__copy"><text class="menu-cell__name">{{item.name}}</text><text class="menu-cell__desc">{{item.desc}}</text></view></view><image class="menu-cell__arrow" src="/static/center/right.png" mode="aspectFit"></image></view></block></view></block><view data-event-opts="{{[['tap',[['menuClick',[['o',['type','logout']]]]]]]}}" class="logout-btn" bindtap="__e">退出当前账号</view></view></view>
|
||||
+36
-95
@@ -14,6 +14,13 @@
|
||||
/* 颜色变量 */
|
||||
/* uni.scss */
|
||||
.u-line-1 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -22,6 +29,13 @@
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
.u-line-2 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -30,6 +44,13 @@
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
.u-line-3 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -38,6 +59,13 @@
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
.u-line-4 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -46,6 +74,13 @@
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
.u-line-5 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -88,6 +123,7 @@
|
||||
.u-reset-button {
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
@@ -254,98 +290,3 @@
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.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: 50%;
|
||||
}
|
||||
.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