提交 6cdb250f 编写于 作者: yma16's avatar yma16

fix about page

上级 2cff6620
...@@ -28,7 +28,10 @@ Component({ ...@@ -28,7 +28,10 @@ Component({
return dayStr return dayStr
})(), })(),
autoTimer: null, autoTimer: null,
article: '' article: '',
config:{
title:'个人信息'
}
}, },
...@@ -36,6 +39,18 @@ Component({ ...@@ -36,6 +39,18 @@ Component({
// 生命周期函数,可以为函数,或一个在 methods 段中定义的方法名 // 生命周期函数,可以为函数,或一个在 methods 段中定义的方法名
attached: function () { attached: function () {
this.initArticle() this.initArticle()
const aboutPageConfig=app.wxProgramConfig.aboutPageConfig
if (aboutPageConfig) {
const title=aboutPageConfig.title
this.setData({
config:{
title:title
}
})
}
// this.updateContent(); // this.updateContent();
}, },
moved: function () { this.clearTimerFunc() }, moved: function () { this.clearTimerFunc() },
......
<!-- pages/life/life.wxml --> <!-- pages/life/life.wxml -->
<view class="container-life"> <view class="container-life">
<view class="container-header">
{{config.title}}
</view>
<view class="loading" wx:if="{{isLoading}}"> <view class="loading" wx:if="{{isLoading}}">
<view class="loader-child"/> <view class="loader-child"/>
<view class="loader-child"/> <view class="loader-child"/>
......
...@@ -11,10 +11,19 @@ ...@@ -11,10 +11,19 @@
animation-iteration-count: infinite; */ animation-iteration-count: infinite; */
box-sizing: border-box; box-sizing: border-box;
} }
.container-header {
background: rgba(16, 116, 187);
width: 100%;
text-align: center;
color: #ffffff;
height: 40px;
line-height: 40px;
font-weight: bold;
}
.container-box{ .container-box{
position: relative; position: relative;
width: 100vw; width: 100vw;
height: calc(100vh - 60px); height: calc(100vh - 100px);
overflow: auto; overflow: auto;
user-select: text; user-select: text;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册