|
@@ -124,7 +124,8 @@ export default React.forwardRef((props, ref) => {
|
124
|
124
|
})
|
125
|
125
|
}
|
126
|
126
|
}
|
127
|
|
- const handelCopy = (val) => {
|
|
127
|
+ const handelCopy = (e, val) => {
|
|
128
|
+ e.stopPropagation()
|
128
|
129
|
saveRoom({ ...val, roomId: null, roomName: val.roomName + '复制' }).then(() => {
|
129
|
130
|
getRoomList({ hotelId: hotel.hotelId }).then((res) => {
|
130
|
131
|
setDetail(res.records || [])
|
|
@@ -150,8 +151,7 @@ export default React.forwardRef((props, ref) => {
|
150
|
151
|
{
|
151
|
152
|
detail.map((item, index) =>
|
152
|
153
|
<view className='houseCard' key={index}>
|
153
|
|
- {/* onClick={() =>handelDetail(item) } */}
|
154
|
|
- <view className='houseName' ><View className='name' >{item.roomName || ''}<Image src={copyRoom} onClick={() => handelCopy(item)} /></View></view>
|
|
154
|
+ <view className='houseName' ><View className='name' onClick={() =>handelDetail(item) }>{item.roomName || ''}<Image src={copyRoom} onClick={(e) => handelCopy(e, item)} /></View></view>
|
155
|
155
|
<view className='operation'>
|
156
|
156
|
<view onClick={() => handelOrder(item)}><image src={see} />查看入住人</view>
|
157
|
157
|
<view onClick={() => ShowMoldeOn(item)}><image src={share} />分享链接</view>
|