李志伟 3 年之前
父節點
當前提交
7468b2e3f6
共有 2 個檔案被更改,包括 11 行新增6 行删除
  1. 2
    2
      src/pages/search/search.jsx
  2. 9
    4
      src/pages/search/search.less

+ 2
- 2
src/pages/search/search.jsx 查看文件

@@ -1,6 +1,6 @@
1 1
 import CustomNav from '@/components/CustomNav'
2 2
 import Taro from '@tarojs/taro'
3
-import { View, Picker } from '@tarojs/components'
3
+import { View, Picker,Text } from '@tarojs/components'
4 4
 import withLayout from '@/layouts'
5 5
 import { getIndexSearch } from '@/services/home'
6 6
 import { useEffect, useState } from 'react'
@@ -47,7 +47,7 @@ export default withLayout((props) => {
47 47
 
48 48
         <Picker className='picker-box' mode='selector' range={state.selector} onChange={onChange}>
49 49
           <View className='picker-text'>
50
-            {state.selectorChecked} |
50
+            {state.selectorChecked}  <Text className='picker-text-line'>|</Text>
51 51
           </View>
52 52
         </Picker>
53 53
         <View className='selector-box'>

+ 9
- 4
src/pages/search/search.less 查看文件

@@ -2,11 +2,10 @@
2 2
   .page-index-box {
3 3
     margin-top: -10vw;
4 4
     .picker-box {
5
-      width: 20%;
5
+      width: 23%;
6 6
       display: inline-block;
7 7
       position: relative;
8 8
       top: 10vw;
9
-
10 9
       .picker-text {
11 10
         line-height: 73px;
12 11
         text-align: center;
@@ -18,12 +17,18 @@
18 17
         top: 34px;
19 18
         height: 9.9vw;
20 19
         left: 12px;
20
+        padding-right: 40px;
21
+        .picker-text-line{
22
+          color: #808080;
23
+          padding-left: 6px;
24
+          font-weight: 100;
25
+        }
21 26
       }
22 27
     }
23 28
     .selector-box {
24
-      width: 83%;
29
+      width: 81%;
25 30
       position: relative;
26
-      right: -15vw;
31
+      right: -16vw;
27 32
     }
28 33
   }
29 34