李志伟 3 年 前
コミット
8d2ab55609
共有4 個のファイルを変更した4 個の追加5 個の削除を含む
  1. 1
    1
      src/components/SearchBar/index.jsx
  2. 1
    1
      src/components/SearchBar/style.less
  3. 2
    2
      src/pages/index/tabs/Recommend.jsx
  4. 0
    1
      src/pages/index/tabs/less/Recommend.less

+ 1
- 1
src/components/SearchBar/index.jsx ファイルの表示

@@ -10,7 +10,7 @@ export default (props) => {
10 10
 
11 11
 
12 12
   return (
13
-    <View className='search'>
13
+    <View className='searchBar'>
14 14
       <mp-searchbar
15 15
         placeholder={placeholder}
16 16
         onBlur={onBlur}

+ 1
- 1
src/components/SearchBar/style.less ファイルの表示

@@ -1,5 +1,5 @@
1 1
 
2
-.search{
2
+.searchBar{
3 3
   margin: 35px 0;
4 4
   .weui-search-bar{
5 5
     padding: 0px;

+ 2
- 2
src/pages/index/tabs/Recommend.jsx ファイルの表示

@@ -1,7 +1,7 @@
1 1
 import Taro, { useRouter } from '@tarojs/taro'
2 2
 import { React, useState, useEffect, useRef } from 'react'
3 3
 import iconsearch from '@/assets/icons/housemantj/search.png'
4
-import location from '@/assets/icons/housemantj/location.png'
4
+import locationimg from '@/assets/icons/housemantj/location.png'
5 5
 import Tip from '@/components/tip'
6 6
 import { getIndexType,  getResourceList } from '@/services/home'
7 7
 import Card from '../components/Card'
@@ -69,7 +69,7 @@ export default (props) => {
69 69
       <Tip />
70 70
       <view className='index-tabs'>
71 71
         <view className='position'>
72
-          <image className='location' src={location} />
72
+          <image className='location' src={locationimg} />
73 73
           <view className='city'>南京</view>
74 74
           <view className='line' />
75 75
         </view>

+ 0
- 1
src/pages/index/tabs/less/Recommend.less ファイルの表示

@@ -2,7 +2,6 @@
2 2
     padding: 10px 30px 0 30px;
3 3
     position: relative;
4 4
     .searchInput{    
5
-        width: calc(100% - 60px);
6 5
         height: 68px;
7 6
         background: #F8F8F8;
8 7
         border-radius: 34px;