style: 样式调整
This commit is contained in:
parent
5026c64996
commit
53ff6d55b2
24
pages.json
24
pages.json
|
@ -7,7 +7,7 @@
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "首页"
|
"navigationBarTitleText": "今日计划"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -206,23 +206,23 @@
|
||||||
"borderStyle": "white",
|
"borderStyle": "white",
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/planList",
|
||||||
"iconPath": "static/tab/home.png",
|
|
||||||
"selectedIconPath": "static/tab/home_cur.png",
|
|
||||||
"text": "首页"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"pagePath": "pages/index/list",
|
|
||||||
"iconPath": "static/tab/list.png",
|
"iconPath": "static/tab/list.png",
|
||||||
"selectedIconPath": "static/tab/list_cur.png",
|
"selectedIconPath": "static/tab/list_cur.png",
|
||||||
"text": "计划"
|
"text": "计划"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/my/index",
|
"pagePath": "pages/index/index",
|
||||||
"iconPath": "static/tab/my.png",
|
"iconPath": "static/tab/home.png",
|
||||||
"selectedIconPath": "static/tab/my_cur.png",
|
"selectedIconPath": "static/tab/home_cur.png",
|
||||||
"text": "我的"
|
"text": "首页"
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// "pagePath": "pages/my/index",
|
||||||
|
// "iconPath": "static/tab/my.png",
|
||||||
|
// "selectedIconPath": "static/tab/my_cur.png",
|
||||||
|
// "text": "我的"
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
"pagePath": "pages/user/index",
|
"pagePath": "pages/user/index",
|
||||||
"iconPath": "static/tab/my.png",
|
"iconPath": "static/tab/my.png",
|
||||||
|
|
|
@ -8,19 +8,15 @@
|
||||||
:border-bottom="false"
|
:border-bottom="false"
|
||||||
>
|
>
|
||||||
<view slot="right">
|
<view slot="right">
|
||||||
<!-- <u-icon
|
|
||||||
name="calendar"
|
|
||||||
color="#333"
|
|
||||||
size="40"
|
|
||||||
style="margin-right: 32rpx"
|
|
||||||
></u-icon> -->
|
|
||||||
<image
|
<image
|
||||||
src="/static/images/icon-date.png"
|
src="/static/images/icon-date.png"
|
||||||
mode="scaleToFill"
|
mode="scaleToFill"
|
||||||
style="width: 40rpx; height: 40rpx; margin-right: 32rpx"
|
style="width: 40rpx; height: 40rpx; margin-right: 32rpx"
|
||||||
@click="toggleMenu"
|
@click="toggleDate"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<u-calendar v-model="showCalendar" mode="range" :max-date="maxDate" @change="changeDate"></u-calendar>
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
|
|
||||||
<view
|
<view
|
||||||
|
@ -51,7 +47,11 @@
|
||||||
<view class="planList" :class="{ activeList: activeTab === 'incomplete' }">
|
<view class="planList" :class="{ activeList: activeTab === 'incomplete' }">
|
||||||
<view class="plan-item">
|
<view class="plan-item">
|
||||||
<view class="plan-header">
|
<view class="plan-header">
|
||||||
<u-icon name="calendar" color="black" size="40"></u-icon>
|
<image
|
||||||
|
src="/static/images/icon-date.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
style="width: 40rpx; height: 40rpx"
|
||||||
|
/>
|
||||||
<view class="date">05-21</view>
|
<view class="date">05-21</view>
|
||||||
<view>1天前</view>
|
<view>1天前</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -67,7 +67,11 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="plan-item">
|
<view class="plan-item">
|
||||||
<view class="plan-header">
|
<view class="plan-header">
|
||||||
<u-icon name="calendar" color="black" size="40"></u-icon>
|
<image
|
||||||
|
src="/static/images/icon-date.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
style="width: 40rpx; height: 40rpx"
|
||||||
|
/>
|
||||||
<view class="date">05-21</view>
|
<view class="date">05-21</view>
|
||||||
<view>1天前</view>
|
<view>1天前</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -90,13 +94,27 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeTab: "completed",
|
activeTab: "completed",
|
||||||
|
|
||||||
|
maxDate: "2049-12-31",
|
||||||
|
|
||||||
|
showCalendar: false,
|
||||||
|
dateRange: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
toggleDate() {
|
||||||
|
this.showCalendar = !this.showCalendar;
|
||||||
|
},
|
||||||
switchTab(tab) {
|
switchTab(tab) {
|
||||||
this.activeTab = tab;
|
this.activeTab = tab;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
changeDate(e) {
|
||||||
|
console.log('333',e);
|
||||||
|
|
||||||
|
this.dateRange = e;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -122,7 +140,7 @@ export default {
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: all 0.3s;
|
transition: all 0.3s;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 999;
|
z-index: 1;
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
<!-- 设置 -->
|
<!-- 设置 -->
|
||||||
<view class="head">
|
<view class="head">
|
||||||
<view class="personInfo">
|
<view class="personInfo">
|
||||||
<view>登录/注册</view>
|
<view>张三</view>
|
||||||
<view class="account">点击登录 获取更多信息</view>
|
<view class="account">勤工岗</view>
|
||||||
</view>
|
</view>
|
||||||
<u-avatar
|
<u-avatar
|
||||||
:src="baseInfo.avatar ? baseInfo.avatar : '/static/images/avatar.png'"
|
src="/static/images/avatar.png"
|
||||||
size="140"
|
size="140"
|
||||||
mode="circle"
|
mode="circle"
|
||||||
class="avatar"
|
class="avatar"
|
||||||
|
@ -31,7 +31,13 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="cell-list-item-right">
|
<view class="cell-list-item-right">
|
||||||
<u-icon name="arrow-right" color="#a5a7ab" size="32"></u-icon>
|
<text v-if="item.content">{{ item.content }}</text>
|
||||||
|
<u-icon
|
||||||
|
v-else
|
||||||
|
name="arrow-right"
|
||||||
|
color="#a5a7ab"
|
||||||
|
size="32"
|
||||||
|
></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -64,9 +70,10 @@ export default {
|
||||||
|
|
||||||
cellList: [
|
cellList: [
|
||||||
{
|
{
|
||||||
title: "单位信息",
|
title: "任职周期",
|
||||||
icon: "/static/images/icon-unit.png",
|
icon: "/static/images/icon-unit.png",
|
||||||
path: "/pages/user/unitInfo/index",
|
path: "",
|
||||||
|
content: "2025-01-01~2025-12-31",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "版本信息",
|
title: "版本信息",
|
||||||
|
|
Loading…
Reference in New Issue