diff --git a/src/components/button/index.js b/src/components/button/index.js
index 94d6fe8c1..dd05552dd 100644
--- a/src/components/button/index.js
+++ b/src/components/button/index.js
@@ -1,6 +1,6 @@
import Taro from '@tarojs/taro'
-import { View, Text } from '@tarojs/components'
+import { View } from '@tarojs/components'
import PropTypes from 'prop-types'
import AtIcon from '../icon/index'
@@ -35,9 +35,9 @@ export default class AtButton extends Taro.Component {
const {
size = 'normal',
type = '',
- circle = false,
- loading = false,
- disabled = false,
+ circle,
+ loading,
+ disabled,
} = this.props
let rootClassName = ['at-button']
const sizeClass = SIZE_CLASS[size] || ''
@@ -61,7 +61,7 @@ export default class AtButton extends Taro.Component {
return (
- {component}{this.props.children}
+ {component}{this.props.children}
)
}
diff --git a/src/components/drawer/index.js b/src/components/drawer/index.js
index 6c6dc9c07..af1b7586f 100644
--- a/src/components/drawer/index.js
+++ b/src/components/drawer/index.js
@@ -1,7 +1,8 @@
import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import PropTypes from 'prop-types'
-import AtIcon from '../icon/index'
+import AtList from '../list/index'
+import AtListItem from '../list/item/index'
import './index.scss'
@@ -72,9 +73,19 @@ export default class AtDrawer extends Taro.Component {
-
- {items.map((name, index) => {name})}
-
+
+ {
+ items.map((name, index) =>
+
+ )
+ }
+
)
diff --git a/src/components/drawer/index.scss b/src/components/drawer/index.scss
index 81c4cec46..d0e48b8fe 100644
--- a/src/components/drawer/index.scss
+++ b/src/components/drawer/index.scss
@@ -26,27 +26,27 @@
opacity: 0;
}
- &__list {
- margin: 0 0 0 18px;
- max-height: 100%;
- overflow-y: scroll;
+ // &__list {
+ // margin: 0 0 0 18px;
+ // max-height: 100%;
+ // overflow-y: scroll;
- &-icon {
- position: absolute;
- right: 20px;
- top: 50%;
- transform: translateY(-50%);
- }
+ // &-icon {
+ // position: absolute;
+ // right: 20px;
+ // top: 50%;
+ // transform: translateY(-50%);
+ // }
- &-item {
- height: 90px;
- line-height: 90px;
- font-size: 34px;
- color: $color-black-0;
- border-bottom: 1px solid #ddd;
- position: relative;
- }
- }
+ // &-item {
+ // height: 90px;
+ // line-height: 90px;
+ // font-size: 34px;
+ // color: $color-black-0;
+ // border-bottom: 1px solid #ddd;
+ // position: relative;
+ // }
+ // }
&.at-drawer--left {
.at-drawer__content {
diff --git a/src/components/list/item/index.js b/src/components/list/item/index.js
index 9c42b3da0..f446c78e5 100644
--- a/src/components/list/item/index.js
+++ b/src/components/list/item/index.js
@@ -9,13 +9,15 @@ import AtIcon from '../../icon/index'
import './index.scss'
export default class AtListItem extends Component {
+ onClick () {
+ this.props.onClick(...arguments)
+ }
render () {
const {
note,
arrow,
title,
thumb,
- onClick,
isSwitch,
extraText,
extraThumb
@@ -32,7 +34,7 @@ export default class AtListItem extends Component {
}
return (
-
+
{thumb && (
@@ -68,7 +70,7 @@ export default class AtListItem extends Component {
{arrow && (
-
+
)}
diff --git a/src/components/noticebar/index.scss b/src/components/noticebar/index.scss
index 1566f8532..5d1a4ced6 100644
--- a/src/components/noticebar/index.scss
+++ b/src/components/noticebar/index.scss
@@ -1,4 +1,4 @@
-
+@import "../../style/theme/default.scss";
@import "../../style/mixins.scss";
.at-noticebar {
@@ -34,7 +34,7 @@
}
&__more {
- color: #999;
+ color: $color-grey-2;
position: absolute;
right: 18px;
top: 15px;
diff --git a/src/components/pagination/index.js b/src/components/pagination/index.js
index ce8932134..510811051 100644
--- a/src/components/pagination/index.js
+++ b/src/components/pagination/index.js
@@ -2,6 +2,7 @@ import Taro from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import PropTypes from 'prop-types'
import AtButton from '../button/index'
+import AtIcon from '../icon/index'
import './index.scss'
@@ -42,12 +43,12 @@ export default class AtPagination extends Taro.Component {
const {
current,
icon,
- simple,
+ // simple,
maxPage,
} = this.state
let rootClassName = ['at-pagination']
- if (simple) rootClassName.push('at-pagination--simple')
+ // if (simple) rootClassName.push('at-pagination--simple')
if (icon) rootClassName.push('at-pagination--icon')
rootClassName = rootClassName.filter(str => str !== '')
@@ -56,16 +57,18 @@ export default class AtPagination extends Taro.Component {
- {icon ? '' : '上一页'}
+ {icon && }
+ {!icon && 上一页}
- {icon ? '' : '下一页'}
+ {icon && }
+ {!icon && 下一页}
- {!simple &&
+
{current}/{ maxPage }
- }
+
)
@@ -77,7 +80,7 @@ AtPagination.defaultProps = {
total: 0,
pageSize: 20,
icon: false,
- simple: false,
+ // simple: false,
}
AtPagination.propTypes = {
@@ -85,5 +88,5 @@ AtPagination.propTypes = {
total: PropTypes.number,
pageSize: PropTypes.number,
icon: PropTypes.bool,
- simple: PropTypes.bool,
+ // simple: PropTypes.bool,
}
diff --git a/src/components/pagination/index.scss b/src/components/pagination/index.scss
index 21bcd50d1..0a1e14fe1 100644
--- a/src/components/pagination/index.scss
+++ b/src/components/pagination/index.scss
@@ -1,3 +1,4 @@
+@import "../../style/theme/default.scss";
.at-pagination {
font-size: 0;
@@ -34,7 +35,7 @@
transform: translateX(-50%);
&-current {
- color: #6190E8;
+ color: $color-brand;
}
}
}
diff --git a/src/components/tag/index.scss b/src/components/tag/index.scss
index d44a72e8e..4cbf360df 100644
--- a/src/components/tag/index.scss
+++ b/src/components/tag/index.scss
@@ -1,40 +1,45 @@
+@import '../../style/theme/default.scss';
.at-tag {
- height: 60px;
- line-height: 60px;
- padding: 0 30px;
- text-align: center;
- border-radius: 8px;
- font-size: 28px;
- display: inline-block;
-
- border: 2px solid #F7F7F7;
- background-color: #F7F7F7;
- color: #666;
- box-sizing: border-box;
- vertical-align: middle;
- &--active {
- border: 2px solid #77A1F7;
- background-color: #fff;
- color: #77A1F7;
- &.at-tag--primary {
- background-color: #769EFA;
- color: #fff;
- border: 2px solid #769EFA;;
- }
- }
- &--disabled {
- opacity: .3;
- }
- &--small {
- height: 40px;
- line-height: 40px;
- padding: 0 15px;
- font-size: 20px;
- }
- &--circle {
- border-radius: 100px;
- overflow: hidden;
- background-clip: border-box;
+ height: 60px;
+ line-height: 56px;
+ padding: 0 $spacing-h-lg;
+ text-align: center;
+ border-radius: $border-radius-md;
+ font-size: $font-size-base;
+ display: inline-block;
+ border: 2px solid $color-grey-6;
+ background-color: $color-bg-grey;
+ color: $color-grey-1;
+ box-sizing: border-box;
+ vertical-align: middle;
+
+ &--active {
+ border: 2px solid #77A1F7;
+ background-color: $color-bg;
+ color: #77A1F7;
+
+ &.at-tag--primary {
+ background-color: #769EFA;
+ color: $color-text-base-inverse;
+ border: 2px solid #769EFA;
}
-}
\ No newline at end of file
+ }
+
+ &--disabled {
+ opacity: $opacity-disabled;
+ }
+
+ &--small {
+ height: 40px;
+ line-height: 36px;
+ padding: 0 $spacing-h-md;
+ font-size: $font-size-xs;
+ }
+
+ &--circle {
+ border-radius: 100px;
+ overflow: hidden;
+ background-clip: border-box;
+ }
+}
diff --git a/src/components/timeline/index.scss b/src/components/timeline/index.scss
index ae97c09eb..76e8f8844 100644
--- a/src/components/timeline/index.scss
+++ b/src/components/timeline/index.scss
@@ -1,11 +1,12 @@
+@import '../../style/theme/default.scss';
.at-timelineitem {
position: relative;
padding: 0 0 12px;
&__content {
- font-size: 28px;
- color: #333;
+ font-size: $font-size-base;
+ color: $color-black-1;
text-align: left;
margin-left: 36px;
height: 50px;
@@ -29,12 +30,12 @@
&::after {
content: '';
width: 20px;
- height: 18px;
+ height: 20px;
display: inline-block;
box-sizing: border-box;
border: 2px solid transparent;
border-radius: 50%;
- border-color: #78A4FA;
+ border-color: $color-info;
margin-top: 5px;
}
@@ -48,7 +49,7 @@
&__icon {
left: -5px;
// top: 7px;
- color: #78A4FA;
+ color: $color-info;
// padding-top: 2px;
}
diff --git a/src/pages/navigation/pagination/index.js b/src/pages/navigation/pagination/index.js
index 539b441f2..b0f1baa67 100644
--- a/src/pages/navigation/pagination/index.js
+++ b/src/pages/navigation/pagination/index.js
@@ -49,15 +49,6 @@ export default class PaginationPage extends Taro.Component {
-
-
- 隐藏页码
-
-
-
-
-
-
)
diff --git a/src/pages/navigation/timeline/index.js b/src/pages/navigation/timeline/index.js
index 30c0d0764..62f681fcb 100644
--- a/src/pages/navigation/timeline/index.js
+++ b/src/pages/navigation/timeline/index.js
@@ -22,14 +22,28 @@ export default class TimelinePage extends Taro.Component {
- 刷牙洗脸
- 吃早餐
- 上班
+ 刷牙洗脸
+ 吃早餐
+ 上班
睡觉
+
+
+ 带icon
+
+
+
+ 刷牙洗脸
+ 吃早餐
+ 上班
+ 睡觉
+
+
+
+
)