吃个甘蔗嚼一年 3 년 전
부모
커밋
ed0645b2fa
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    2
      src/hotel/pages/landlord/addRoom/addRoom.jsx

+ 3
- 2
src/hotel/pages/landlord/addRoom/addRoom.jsx 파일 보기

@@ -3,7 +3,7 @@ import Taro from '@tarojs/taro'
3 3
 import CustomNav from '@/components/CustomNav'
4 4
 import { View, Input, Button, Label, Textarea, Text, Image } from '@tarojs/components';
5 5
 import { useEffect, useState } from "react"
6
-import { saveRoom, getRoomDetail, updateRoom,saveExtend } from '@/services/landlord'
6
+import { saveRoom, getRoomDetail, updateRoom, saveExtend } from '@/services/landlord'
7 7
 import GPS from '@/assets/icons/GuideCheck/GPS.png'
8 8
 import { getExtendContent } from "@/services/home";
9 9
 //export default是导出模块的   export也是导出模块的    如果引用时不加{}就是引用默认模块加了就是引用相应的模块
@@ -33,6 +33,7 @@ export default withLayout((props) => {
33 33
 
34 34
   const onRoomMap = () => {
35 35
     Taro.chooseLocation().then((res) => {
36
+      console.log("🚀 ~ file: addRoom.jsx ~ line 36 ~ Taro.chooseLocation ~ res", res)
36 37
       setRoomModel({ ...roomModel, location: res.longitude + ',' + res.latitude, locName: res.name, address: res.address })
37 38
     })
38 39
   }
@@ -173,7 +174,7 @@ export default withLayout((props) => {
173 174
         <CustomNav title={hotelName} />
174 175
       </view>
175 176
       <view className='roomDetail' style={{ height: '100%', display: 'flex', flexDirection: 'column', overflow: 'hidden' }} >
176
-        <scroll-view scrollY style={{ height: '100%',  overflow: "hidden", flex:1 }}>
177
+        <scroll-view scrollY style={{ height: '100%', overflow: "hidden", flex: 1 }}>
177 178
           <View id='det'>
178 179
             <Popup show={showCutover} onClose={onClose}>
179 180
               <View className='editword'>