Commit 5ba261d4 by 肖康

首页修改

parent 4f1f920a
......@@ -2,9 +2,11 @@
import { Link } from 'react-router-dom'
import QqIcon from '../QqIcon'
import './index.min.css'
import { useContext } from 'react'
import { CommonConfigDataContext } from '../../contexts/CommonConfigDataContext'
const ListOneItem = () => {
const commonConfigData=useContext(CommonConfigDataContext)
return (
<>
<div className='list-group-one-item'>
......@@ -27,7 +29,7 @@ const ListOneItem = () => {
<div className='jtgroup row'><span>5000+</span><strong>¥18.2365</strong><strong>¥18.2365</strong></div>
</div>
<div className='item row'>
<a href="/" className='ljxunj' target='_blank'>立即询价</a>
<a href={commonConfigData.qqurl} rel="noreferrer" className='ljxunj' target='_blank'>立即询价</a>
<QqIcon />
</div>
</div>
......
......@@ -11,9 +11,12 @@ import { useLocation } from 'react-router-dom';
import { brandsAndClasssReducer } from './reducer';
const Search = () => {
const Helmet = require('react-helmet').Helmet;
const location = useLocation();
const params = new URLSearchParams(location.search);
const keyword = params.get('keyword');
......
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 sign in to comment