Skip to content

Commit

Permalink
fix: 修复支付宝问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cos2004 committed Dec 24, 2018
1 parent 9248146 commit b12fe13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/components/avatar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ AtAvatar.defaultProps = {
size: 'normal',
circle: false,
image: '',
text: '',
openData: {},
customStyle: {},
}
Expand All @@ -66,6 +67,7 @@ AtAvatar.propTypes = {
size: PropTypes.oneOf(['large', 'normal', 'small']),
circle: PropTypes.bool,
image: PropTypes.string,
text: PropTypes.string,
openData: PropTypes.object,
customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
}
4 changes: 2 additions & 2 deletions src/components/timeline/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export default class AtTimeline extends AtComponent {
if (icon) dotClass.push('at-timelineitem__icon')

return (
<View className={itemRootClassName} key={index}>
<View className={classNames(itemRootClassName)} key={index}>
<View className='at-timelineitem__tail'></View>
<View className={dotClass}>
<View className={classNames(dotClass)}>
{icon && <AtIcon customStyle={{ fontSize: '16px' }} value={icon} ></AtIcon>}
</View>
<View className='at-timelineitem__content'>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/view/noticebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default class NoticebarPage extends Taro.Component {
}

onGotoMore () {
if (Taro.getEnv() === Taro.ENV_TYPE.WEAPP) Taro.showModal({ content: '点击了更多!' })
else if (Taro.getEnv() === Taro.ENV_TYPE.WEB) alert('您点击了更多!')
if (Taro.getEnv() === Taro.ENV_TYPE.WEB) alert('您点击了更多!')
else Taro.showModal({ content: '点击了更多!' })
}

render () {
Expand Down

0 comments on commit b12fe13

Please sign in to comment.