Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-h5
Commits
95092ab6
提交
95092ab6
authored
1月 06, 2023
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加about页面
上级
51858d42
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
12 行删除
+18
-12
pages.json
src/pages.json
+6
-0
index.vue
src/pages/profile/index.vue
+12
-12
没有找到文件。
src/pages.json
浏览文件 @
95092ab6
...
...
@@ -172,6 +172,12 @@
"navigationBarTitleText"
:
"产品线详情"
,
"navigationBarBackgroundColor"
:
"#fff"
}
},
{
"path"
:
"pages/profile/about"
,
"style"
:
{
"navigationBarTitleText"
:
"关于"
,
"navigationBarBackgroundColor"
:
"#fff"
}
}
],
"tabBar"
:
{
...
...
src/pages/profile/index.vue
浏览文件 @
95092ab6
...
...
@@ -14,17 +14,8 @@
<template
v-slot:right
>
<view
class=
"order-more"
@
tap=
"showAllOrder"
>
全部订单
</view>
</
template
>
<uni-grid
:column=
"4"
:show-border=
"false"
:square=
"false"
@
change=
"handleOrderTypeChange"
>
<uni-grid-item
v-for=
"(item, index) in orderBtnList"
:index=
"index"
:key=
"index"
>
<uni-grid
:column=
"4"
:show-border=
"false"
:square=
"false"
@
change=
"handleOrderTypeChange"
>
<uni-grid-item
v-for=
"(item, index) in orderBtnList"
:index=
"index"
:key=
"index"
>
<view
class=
"grid-item-box"
>
<image
class=
"image"
:src=
"item.url"
mode=
"aspectFill"
/>
<text
class=
"text"
>
{{ item.text }}
</text>
...
...
@@ -54,7 +45,7 @@
<view
class=
"function-list"
>
<u-cell-group>
<u-cell-item
icon=
"setting"
title=
"设置"
@
click=
"toSetting"
></u-cell-item>
<u-cell-item
icon=
"man-add"
title=
"关于"
></u-cell-item>
<u-cell-item
icon=
"man-add"
title=
"关于"
@
click=
"toAbout"
></u-cell-item>
</u-cell-group>
</view>
</view>
...
...
@@ -155,6 +146,10 @@ let showAllOrder = () => {
let
toSetting
=
()
=>
{
uni
.
navigateTo
({
url
:
'./setting'
});
};
let
toAbout
=
()
=>
{
uni
.
navigateTo
({
url
:
'./about'
});
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -194,9 +189,11 @@ let toSetting = () => {
margin-top
:
15rpx
;
border-radius
:
20rpx
;
background-color
:
#ffffff
;
.order-more
{
margin-right
:
20rpx
;
}
.grid-item-box
{
font-size
:
24rpx
;
flex
:
1
;
...
...
@@ -208,6 +205,7 @@ let toSetting = () => {
align-items
:
center
;
justify-content
:
center
;
padding
:
10rpx
0
;
.grid-item-box-row
{
flex
:
1
;
// position: relative;
...
...
@@ -219,6 +217,7 @@ let toSetting = () => {
justify-content
:
center
;
//padding: 15px 0;
}
.grid-dot
{
position
:
absolute
;
top
:
-5rpx
;
...
...
@@ -237,6 +236,7 @@ let toSetting = () => {
border-radius
:
20rpx
;
}
}
.image
{
width
:
25px
;
height
:
25px
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论