Commit cecbef8b by zhanghaozhe

样式

parent 44454e39
...@@ -3,7 +3,6 @@ import SearchHeader from './searchHead' ...@@ -3,7 +3,6 @@ import SearchHeader from './searchHead'
import VList from '@/common/VList' import VList from '@/common/VList'
import { http, api, getParam } from '@/utils' import { http, api, getParam } from '@/utils'
import './search-result.scss' import './search-result.scss'
import classnames from 'classnames'
import Recommendation from './recommendation' import Recommendation from './recommendation'
const Bottom = ({item}) => { const Bottom = ({item}) => {
...@@ -83,7 +82,7 @@ class SearchResult extends PureComponent { ...@@ -83,7 +82,7 @@ class SearchResult extends PureComponent {
const status = ( const status = (
(item['bargain_num'] || item['groupon_num']) ? (item['bargain_num'] || item['groupon_num']) ?
<div <div
className={classnames('status', [item['bargain_num'] ? 'bargain' : 'group'])}> className='status'>
{ {
item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元` item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`
} }
......
...@@ -63,13 +63,6 @@ ...@@ -63,13 +63,6 @@
line-height: 24px; line-height: 24px;
font-size: 13px; font-size: 13px;
color: $white; color: $white;
background-color: rgba(224, 46, 36, 0.6);
&.group {
background-color: rgba(224, 46, 36, 0.6);
}
&.bargain {
background-color: rgba(224, 46, 36, 0.6);
}
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment