Browse Source

refactor: 删除无用的修改

wrr
xuesinan 4 years ago
parent
commit
f601f3b02b
  1. 3
      CHANGELOG.md
  2. 23
      src/components/Globals/Globals.vue
  3. 12
      src/components/Roles/Roles.vue

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 0.1.0 (2021-09-26) # 0.1.0 (2021-09-27)
### 🌟 新功能 ### 🌟 新功能
范围|描述|commitId 范围|描述|commitId
@ -200,6 +200,7 @@
- | 删除多余的技术验证界面 | 542ae5b - | 删除多余的技术验证界面 | 542ae5b
- | 删除多余的weekmode store里的东西 | 0841fe0 - | 删除多余的weekmode store里的东西 | 0841fe0
- | 下滑时间轴添加备注 | 4fd20e3 - | 下滑时间轴添加备注 | 4fd20e3
- | 修改角色栏和日常任务面板的样式 | d653f9a
- | 只保留project内容 | 7781c7b - | 只保留project内容 | 7781c7b
- | 重构时间刻度渲染任务 | 5cf7d08 - | 重构时间刻度渲染任务 | 5cf7d08
- | 重构store分层 | 5f6fff8 - | 重构store分层 | 5f6fff8

23
src/components/Globals/Globals.vue

@ -1,18 +1,9 @@
<template> <template>
<view class="m-2" v-if="globals && globals.length"> <view class="m-2" v-if="globals && globals.length">
<!-- <u-card @click="openCard" :show-foot="false" :show-head="false" style="max-height: 218rpx" border-radius="25" margin="0"> --> <u-card @click="openCard" :show-foot="false" :show-head="false" style="max-height: 218rpx" border-radius="25" margin="0">
<!-- :style="{ 'max-height': isShrink ? '106rpx' : '340rpx' }" --> <!-- :style="{ 'max-height': isShrink ? '106rpx' : '340rpx' }" -->
<u-card
@click="openCard"
:show-foot="false"
:show-head="false"
:style="{ 'min-height': '42px', 'max-height': globalsHeight + 'px' }"
border-radius="25"
margin="0"
>
<view slot="body"> <view slot="body">
<scroll-view :scrollY="true" :style="{ 'min-height': '24rpx', 'max-height': globalsHeight - 30 + 'px' }"> <scroll-view :scrollY="true" style="max-height: 280rpx">
<!-- <scroll-view :scrollY="true" style="max-height: 280rpx"> -->
<!-- <scroll-view :scrollY="true" :style="{ 'max-height': isShrink ? '50rpx' : '280rpx' }"> --> <!-- <scroll-view :scrollY="true" :style="{ 'max-height': isShrink ? '50rpx' : '280rpx' }"> -->
<skeleton :banner="false" :loading="!globals.length" :row="4" animate class="u-line-2 skeleton"></skeleton> <skeleton :banner="false" :loading="!globals.length" :row="4" animate class="u-line-2 skeleton"></skeleton>
<view class="grid gap-2"> <view class="grid gap-2">
@ -45,8 +36,6 @@
import { mapGetters, mapMutations, mapState } from 'vuex'; import { mapGetters, mapMutations, mapState } from 'vuex';
import Skeleton from '@/components/Skeleton/Skeleton'; import Skeleton from '@/components/Skeleton/Skeleton';
const sysHeight = uni.getSystemInfoSync().screenHeight;
export default { export default {
name: 'Global', name: 'Global',
components: { Skeleton }, components: { Skeleton },
@ -55,18 +44,12 @@ export default {
return { return {
// loading: true, // loading: true,
task: null, task: null,
sysHeight: sysHeight,
}; };
}, },
computed: { computed: {
...mapState('task', ['isShrink']), ...mapState('task', ['isShrink']),
...mapGetters('task', ['globals']), ...mapGetters('task', ['globals']),
globalsHeight: function () {
let h = ((this.sysHeight - 44 - 30 - 10) / 5) * 4;
return h;
},
}, },
methods: { methods: {

12
src/components/Roles/Roles.vue

@ -170,22 +170,16 @@ export default {
.tab-box { .tab-box {
position: relative; position: relative;
white-space: nowrap; white-space: nowrap;
height: 60rpx;
display: flex;
align-items: center;
// height: 84rpx; // height: 84rpx;
.tab-item { .tab-item {
// width: 20%; // width: 20%;
// height: 84rpx; // height: 84rpx;
// padding: 20rpx 24rpx; padding: 20rpx 24rpx;
padding: 0 24rpx;
position: relative; position: relative;
// display: inline-block; display: inline-block;
// text-align: center; text-align: center;
font-size: 30rpx; font-size: 30rpx;
height: 60rpx;
line-height: 60rpx;
transition-property: background-color, width; transition-property: background-color, width;
} }

Loading…
Cancel
Save