李志伟 3 anos atrás
pai
commit
cc9785e66c

+ 3
- 3
src/hotel/components/HouseManage/houseManage.jsx Ver arquivo

@@ -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>

+ 0
- 3
src/pages/index/tabs/Guide.jsx Ver arquivo

@@ -61,8 +61,6 @@ export default (props) => {
61 61
   useEffect(() => {
62 62
     if (roomOrderId) {
63 63
       goToRoomForm(roomOrderId).then((res) => {
64
-        console.log("🚀 ~ file: Guide.jsx ~ line 65 ~ goToRoomForm ~ res", res)
65
-
66 64
         if (res.status !== 1 && res.personNum > 0) {
67 65
           Taro.navigateTo({
68 66
             url: `/pages/RoomOrder/index?roomOrderId=${roomOrderId}&status=${res.status}&roomId=${roomId}`,
@@ -76,7 +74,6 @@ export default (props) => {
76 74
   useEffect(() => {
77 75
 
78 76
     if (roomId) {
79
-      console.log('--------------------------');
80 77
       // 点击’去这里‘跳转导航
81 78
       getTaRoom(roomId).then((res) => {
82 79
         Roomlog.current = (res.location).toString().split(',')[0]