提交 95092ab6 authored 作者: 刘旭's avatar 刘旭

添加about页面

上级 51858d42
...@@ -172,6 +172,12 @@ ...@@ -172,6 +172,12 @@
"navigationBarTitleText": "产品线详情", "navigationBarTitleText": "产品线详情",
"navigationBarBackgroundColor": "#fff" "navigationBarBackgroundColor": "#fff"
} }
}, {
"path": "pages/profile/about",
"style": {
"navigationBarTitleText": "关于",
"navigationBarBackgroundColor": "#fff"
}
} }
], ],
"tabBar": { "tabBar": {
......
...@@ -14,17 +14,8 @@ ...@@ -14,17 +14,8 @@
<template v-slot:right> <template v-slot:right>
<view class="order-more" @tap="showAllOrder">全部订单</view> <view class="order-more" @tap="showAllOrder">全部订单</view>
</template> </template>
<uni-grid <uni-grid :column="4" :show-border="false" :square="false" @change="handleOrderTypeChange">
:column="4" <uni-grid-item v-for="(item, index) in orderBtnList" :index="index" :key="index">
: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"> <view class="grid-item-box">
<image class="image" :src="item.url" mode="aspectFill" /> <image class="image" :src="item.url" mode="aspectFill" />
<text class="text">{{ item.text }}</text> <text class="text">{{ item.text }}</text>
...@@ -54,7 +45,7 @@ ...@@ -54,7 +45,7 @@
<view class="function-list"> <view class="function-list">
<u-cell-group> <u-cell-group>
<u-cell-item icon="setting" title="设置" @click="toSetting"></u-cell-item> <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> </u-cell-group>
</view> </view>
</view> </view>
...@@ -155,6 +146,10 @@ let showAllOrder = () => { ...@@ -155,6 +146,10 @@ let showAllOrder = () => {
let toSetting = () => { let toSetting = () => {
uni.navigateTo({ url: './setting' }); uni.navigateTo({ url: './setting' });
}; };
let toAbout = () => {
uni.navigateTo({ url: './about' });
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -194,9 +189,11 @@ let toSetting = () => { ...@@ -194,9 +189,11 @@ let toSetting = () => {
margin-top: 15rpx; margin-top: 15rpx;
border-radius: 20rpx; border-radius: 20rpx;
background-color: #ffffff; background-color: #ffffff;
.order-more { .order-more {
margin-right: 20rpx; margin-right: 20rpx;
} }
.grid-item-box { .grid-item-box {
font-size: 24rpx; font-size: 24rpx;
flex: 1; flex: 1;
...@@ -208,6 +205,7 @@ let toSetting = () => { ...@@ -208,6 +205,7 @@ let toSetting = () => {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 10rpx 0; padding: 10rpx 0;
.grid-item-box-row { .grid-item-box-row {
flex: 1; flex: 1;
// position: relative; // position: relative;
...@@ -219,6 +217,7 @@ let toSetting = () => { ...@@ -219,6 +217,7 @@ let toSetting = () => {
justify-content: center; justify-content: center;
//padding: 15px 0; //padding: 15px 0;
} }
.grid-dot { .grid-dot {
position: absolute; position: absolute;
top: -5rpx; top: -5rpx;
...@@ -237,6 +236,7 @@ let toSetting = () => { ...@@ -237,6 +236,7 @@ let toSetting = () => {
border-radius: 20rpx; border-radius: 20rpx;
} }
} }
.image { .image {
width: 25px; width: 25px;
height: 25px; height: 25px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论