@@ -33,7 +33,7 @@
<uni-forms-item label="创建时间">
<uni-easyinput disabled v-model="itemData.time"/>
</uni-forms-item>
- <uni-forms-item label="内容">
+ <uni-forms-item label="内容" style="margin-bottom: 50px;">
<uni-easyinput disabled type="textarea" v-model="itemData.content"/>
</uni-forms>
@@ -1,7 +1,7 @@
<template>
<view class='my-unit'>
<view class="unit-head">
- <text style="font-weight: bold;">{{ info.title }}</text>
+ <text style="font-weight: bold;font-size: 26upx;">{{ info.title }}</text>
<text style="color: gray;font-size: 20upx;">{{ parseTime(info.time) }}</text>
</view>
<view class="unit-body">
@@ -75,12 +75,12 @@ export default {
color: gray;
display: flex;
flex-direction: column;
- font-size: 20upx;
+ font-size: 22upx;
line-height: 30upx;
}
.unit-foot {
+ font-size: 24upx;
height: 66upx;
padding: 0 20upx;
// border-top: 2upx solid #f5f5f5;
@@ -15,12 +15,15 @@
components:{myTabs,myUnit},
data() {
return {
+ initIndex:0,
pageNo: 1,
pageSize: 10
},
- onLoad(){
- this.refresh();
+ onShow(){
+ let option = uni.getStorageSync('option');
+ this.initIndex = option.initIndex;
+ this.refresh();
methods: {
/**
@@ -100,6 +103,7 @@
*/
tapChange(val){
this.initIndex=val;
+ uni.setStorageSync('option',{initIndex:val, val:'switchTab'})
this.page = 1;
this.getList(this.page,this.__pulldone)