Baozhangchao 3 years ago
parent
commit
63d3a2305d

src/components/handleBuildingSelect/index.jsx → src/components/BuildingSelect/index.jsx View File

@@ -24,7 +24,7 @@ export default (props) => {
24 24
 
25 25
   useEffect(() => {
26 26
     if (dicts) {
27
-      const building = dicts.filter(x => x.buildingId === value)[0] || { buildingName: '意向楼盘' }
27
+      const building = dicts.filter(x => x.buildingId === value)[0] || { buildingName: '请选择' }
28 28
       setVal(building)
29 29
     }
30 30
   }, [value, dicts])

src/components/handleBuildingSelect/style.css → src/components/BuildingSelect/style.css View File


+ 2
- 2
src/pages/mine/addCustomer/index.jsx View File

@@ -3,7 +3,7 @@ import withLayout from '@/layout'
3 3
 import { ScrollView, Input, Image, Block, View, Button } from '@tarojs/components'
4 4
 import '@/assets/css/iconfont.css'
5 5
 import { fetch } from '@/utils/request'
6
-import handleBuildingSelect from '@/components/handleBuildingSelect/index'
6
+import BuildingSelect from '@/components/BuildingSelect'
7 7
 
8 8
 import { API_USER_ADD_CUSTOMER, API_CHANNEL_REPORT } from '@/constants/api'
9 9
 import { ROLE_CODE } from '@/constants/user'
@@ -163,7 +163,7 @@ export default withLayout((props) => {
163 163
             <view className='flex-item'>
164 164
               {/* <BuildingPicker change={BuildingChange} value={buildingId} type={personType} /> */}
165 165
               {/* <View onClick={() => setShowFrame(true)} >{buildingName}</View> */}
166
-              <handleBuildingSelect onChange={handleBuildingSelect} role={personType} />
166
+              <BuildingSelect onChange={handleBuildingSelect} role={personType} />
167 167
             </view>
168 168
           </view>
169 169