李志伟 3 年 前
コミット
efcc042c61
共有1 個のファイルを変更した17 個の追加2 個の削除を含む
  1. 17
    2
      src/hotel/components/HouseManage/houseManage.jsx

+ 17
- 2
src/hotel/components/HouseManage/houseManage.jsx ファイルの表示

@@ -1,5 +1,5 @@
1 1
 import Taro, { useDidShow } from '@tarojs/taro'
2
-import { View, Image} from '@tarojs/components';
2
+import { View, Image } from '@tarojs/components';
3 3
 import see from '@/assets/icons/landlord/lookPerson.png'
4 4
 import share from '@/assets/icons/landlord/shareLink.png'
5 5
 import del from '@/assets/icons/landlord/delete.png'
@@ -7,6 +7,8 @@ import addImg from '@/assets/icons/landlord/add.png'
7 7
 import copyRoom from '@/assets/icons/landlord/copyroom.png'
8 8
 import React, { useState, useEffect, useRef, useImperativeHandle, useMemo } from 'react'
9 9
 import { getRoomList, saveRoom, deleteRoom } from '@/services/landlord'
10
+import cutoverUser from '@/assets/icons/UserCenter/cutoverUser.png'
11
+import ToggleRole from '@/components/toggleRole/ToggleRole'
10 12
 import List from '@/components/List';
11 13
 import Picker from '@/components/Picker'
12 14
 import SearchBar from '@/components/SearchBar'
@@ -134,10 +136,23 @@ export default React.forwardRef((props, ref) => {
134 136
       })
135 137
     })
136 138
   }
139
+  const [showCutover3, setShowCutover3] = useState(false)
140
+  const ShowMoldeOn3 = () => {
141
+    setShowCutover3(true)
142
+  }
143
+  const onClose3 = () => {
144
+    setShowCutover3(false)
145
+  }
137 146
   return (
138 147
     <view>
139 148
       <view style={{ padding: '0 30rpx', height: '100%' }}>
140
-        <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择民宿" value={hotel?.hotelId} kv={['hotelName', 'hotelId']} dicts={hotelList} onChange={handleHotelChange} /></view>
149
+        <ToggleRole role='hotel' showCutover={showCutover3} maskClosable={showCutover3} onClose={onClose3} />
150
+        <View>
151
+          <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择民宿" value={hotel?.hotelId} kv={['hotelName', 'hotelId']} dicts={hotelList} onChange={handleHotelChange} /></view>
152
+          <view onClick={ShowMoldeOn3} className='User-info-cutover'>
153
+            <image className='User-info-cutover-image' src={cutoverUser} />
154
+          </view>
155
+        </View>
141 156
         <SearchBar placeholder='请输入房源名搜索' onBlur={onSearch} />
142 157
         <ShareRoom showCutover={showCutover} onClose={onClose} room={room} onFinish={handleFinish} />
143 158
         <ShareCard showCutover={showCard} onClose={onClose2} />