吃个甘蔗嚼一年 3 年前
父节点
当前提交
24b1536129
共有 3 个文件被更改,包括 7 次插入10 次删除
  1. 2
    3
      src/hotel/pages/landlord/roomOrder/roomOrder.jsx
  2. 4
    5
      src/pages/index/index.jsx
  3. 1
    2
      src/pages/index/tabs/Recommend.jsx

+ 2
- 3
src/hotel/pages/landlord/roomOrder/roomOrder.jsx 查看文件

1
 import withLayout from '@/layouts'
1
 import withLayout from '@/layouts'
2
-import React, { useState, useEffect, useRef, useMemo } from 'react'
2
+import React, { useState, useEffect, useMemo } from 'react'
3
 import CustomNav from '@/components/CustomNav'
3
 import CustomNav from '@/components/CustomNav'
4
 import Taro from '@tarojs/taro'
4
 import Taro from '@tarojs/taro'
5
 import { useModel } from '@/store'
5
 import { useModel } from '@/store'
6
-import SpinBox from "@/components/Spin/SpinBox";
7
 import copy from '@/assets/icons/landlord/copy.png'
6
 import copy from '@/assets/icons/landlord/copy.png'
8
-import { Input, Button, View, Picker, Label, Image } from '@tarojs/components'
7
+import { View, Label, Image } from '@tarojs/components'
9
 import List from '@/components/List';
8
 import List from '@/components/List';
10
 import { getRoomOrderList, getHotelDetail } from '@/services/landlord'
9
 import { getRoomOrderList, getHotelDetail } from '@/services/landlord'
11
 import './roomOrder.less'
10
 import './roomOrder.less'

+ 4
- 5
src/pages/index/index.jsx 查看文件

49
     setCurrentTab(index)
49
     setCurrentTab(index)
50
 
50
 
51
     if (index === 1) {
51
     if (index === 1) {
52
+      // 民宿离店消息
52
       withSubscribeMessage([TPL_MESSAGE_HOTEL_CHECK_OUT])
53
       withSubscribeMessage([TPL_MESSAGE_HOTEL_CHECK_OUT])
53
     }
54
     }
54
   }
55
   }
71
         })
72
         })
72
       })
73
       })
73
 
74
 
74
-
75
-    } else {
76
-
77
     }
75
     }
78
-
79
-
80
   }, [roomId, hotelId])
76
   }, [roomId, hotelId])
81
 
77
 
82
   return (
78
   return (
83
     <view className='page-index'>
79
     <view className='page-index'>
80
+      {/* 引导添加到我的小程序悬浮窗 */}
84
       <add-tips
81
       <add-tips
85
         logo={tips}
82
         logo={tips}
86
         custom
83
         custom
87
         duration={-1} />
84
         duration={-1} />
85
+
86
+
88
       <view className='index-navbar'>
87
       <view className='index-navbar'>
89
         <CustomNav logo={titleLogo} title={titleRoom} />
88
         <CustomNav logo={titleLogo} title={titleRoom} />
90
       </view>
89
       </view>

+ 1
- 2
src/pages/index/tabs/Recommend.jsx 查看文件

79
 
79
 
80
   return (
80
   return (
81
     <view style={{ height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>
81
     <view style={{ height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>
82
-      <OfficialAccount>s21</OfficialAccount>
83
       <view className='search' onClick={onSearch} >
82
       <view className='search' onClick={onSearch} >
84
         <input className='searchInput' disabled />
83
         <input className='searchInput' disabled />
85
         <image className='searchicon' src={iconsearch} />
84
         <image className='searchicon' src={iconsearch} />
118
             <MasonryLayout
117
             <MasonryLayout
119
               itemKey='resourceNo'
118
               itemKey='resourceNo'
120
               listData={listData}
119
               listData={listData}
121
-              render={(item, callback) => <Card item={item} onImageLoad={callback} />}
120
+              render={(item) => <Card item={item} />}
122
             />
121
             />
123
           </view>
122
           </view>
124
         </List>
123
         </List>