Commit 74a19195 by tangjiale

框架优化

parent d5c92708
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
# 开发文档 # 开发文档
- [uni-app官方文档](https://uniapp.dcloud.net.cn/) - [uni-app官方文档](https://uniapp.dcloud.net.cn/)
- [uview-ui官方文档](https://www.uviewui.com/components/intro.html) - [uview-ui官方文档](https://www.uviewui.com/)
- [api接口文档]() - [api接口文档]()
- [ui交互地址]() - [ui交互地址]()
<template> <template>
<div> <div v-show="capsule && capsule.top">
<div class="user-card" :class="showBack?'between' : 'center'" :style="{marginTop:(capsule.top)+'px',height:capsule.height+'px'}"> <div class="user-card" :class="showBack?'between' : 'center'" :style="{marginTop:(capsule.top)+'px',height:capsule.height+'px'}">
<div @click="gotoBack" v-if="showBack"> <div @click="gotoBack" v-if="showBack">
<u-icon name="arrow-left" color="#fff" size="16"></u-icon> <u-icon name="arrow-left" color="#fff" size="32"></u-icon>
</div> </div>
{{title}} {{title}}
<div style="opacity: 0;" v-if="showBack"><u-icon name="arrow-left" color="#fff" size="16"></u-icon></div> <div style="opacity: 0;" v-if="showBack"><u-icon name="arrow-left" color="#fff" size="16"></u-icon></div>
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
width: calc(100% - 60upx); width: calc(100% - 70upx);
padding: 0upx 30upx; padding: 0upx 40upx 0upx 30upx;
font-size: 34upx; font-size: 34upx;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"style" : "style" :
{ {
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationStyle":"custom",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
},{ },{
...@@ -41,7 +42,7 @@ ...@@ -41,7 +42,7 @@
"autoscan": true, "autoscan": true,
"custom": { "custom": {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue", "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue",
"^b-(.*)": "@/components/xb-$1.vue" "^xb-(.*)": "@/components/xb-$1.vue"
} }
}, },
"globalStyle": { "globalStyle": {
......
<template> <template>
<view class="page-bg"> <view class="page-bg">
首页 <div class="head-bg">
<xb-head showBack title="自定义头部"></xb-head>
</div>
<xb-icon type="icon-icon_txzy" color="#1DA47B"></xb-icon> <xb-icon type="icon-icon_txzy" color="#1DA47B"></xb-icon>
...@@ -26,5 +28,10 @@ export default { ...@@ -26,5 +28,10 @@ export default {
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
background-color: #f5f5f5; background-color: #f5f5f5;
.head-bg{
height: 200rpx;overflow: hidden;
background-color: #1DA47B;
}
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment