李志伟 vor 3 Jahren
Ursprung
Commit
e192d89dea

+ 0
- 4
src/pages/RoomOrder/components/RoomForm/index.jsx Datei anzeigen

@@ -1,5 +1,4 @@
1 1
 import { useState, useEffect } from 'react'
2
-import Taro, { useShareTimeline } from '@tarojs/taro'
3 2
 import { View, Input } from '@tarojs/components'
4 3
 import './style.less'
5 4
 
@@ -27,9 +26,7 @@ export default (props) => {
27 26
 
28 27
 
29 28
   return (
30
-
31 29
     <View className='from-room'  >
32
-
33 30
       <mp-form >
34 31
         <mp-cells title='入住人信息填写' footer='  '>
35 32
           <mp-cell prop='customerName' title='姓名:' extClass=''>
@@ -41,6 +38,5 @@ export default (props) => {
41 38
         </mp-cells>
42 39
       </mp-form>
43 40
     </View>
44
-
45 41
   )
46 42
 }

+ 17
- 19
src/pages/RoomOrder/index.jsx Datei anzeigen

@@ -4,7 +4,7 @@ import CustomNav from '@/components/CustomNav'
4 4
 import withLayout from '@/layouts'
5 5
 import { getTaRoom, goToRoomForm, personSubmit } from '@/services/taRoom​'
6 6
 import { getHotelDetail } from '@/services/landlord'
7
-
7
+import { View } from '@tarojs/components';
8 8
 import { withSubscribeMessage } from "@/utils/subscribeMessage"
9 9
 import { TPL_MESSAGE_HOTEL_CHECK_OUT } from '@/utils/constants'
10 10
 import RoomForm from './components/RoomForm'
@@ -67,24 +67,22 @@ export default withLayout((props) => {
67 67
 
68 68
   const FormCard = new Array(CarNumber).fill(0)
69 69
   return (
70
-    <view className='scroll-www'>
71
-
72
-      <CustomNav logo={titleLogo} title={taRoomContent?.roomName} />
73
-
74
-      <scroll-view scroll-y style='height: calc(100vh - 176rpx);' >
75
-
76
-        {
77
-          FormCard.map((_, index) => {
78
-            return (
79
-
80
-              <RoomForm key={(index)} onChange={(e) => handleChange(e, index)} />
81
-            )
82
-          })
83
-        }
84
-        <button className='button-OK' onClick={handleSubmit} >确定</button>
85
-      </scroll-view>
86
-
70
+    <view className='page-index'>
71
+      <view className='index-navbar'>
72
+        <CustomNav logo={titleLogo} title={taRoomContent?.roomName} />
73
+      </view>
74
+      <View className='index-container'>
75
+        <scroll-view scroll-y style='height: 100%;' >
76
+          {
77
+            FormCard.map((_, index) => {
78
+              return (
79
+                <RoomForm key={(index)} onChange={(e) => handleChange(e, index)} />
80
+              )
81
+            })
82
+          }
83
+          <button className='button-OK' onClick={handleSubmit} >确定</button>
84
+        </scroll-view>
85
+      </View>
87 86
     </view>
88
-
89 87
   )
90 88
 })

+ 1
- 1
src/pages/RoomOrder/style.less Datei anzeigen

@@ -8,5 +8,5 @@ button {
8 8
   font-size: 40px;
9 9
   color: #ffffff;
10 10
   margin-top: 2em;
11
-  margin-bottom: 4em;
11
+  margin-bottom: 2em;
12 12
 }

+ 1
- 3
src/pages/index/tabs/Recommend.jsx Datei anzeigen

@@ -1,12 +1,10 @@
1
-import Taro, { useDidShow } from '@tarojs/taro'
1
+import Taro from '@tarojs/taro'
2 2
 import { React, useState, useEffect, useRef, useMemo } from 'react'
3 3
 import iconsearch from '@/assets/icons/housemantj/search.png'
4 4
 import locationimg from '@/assets/icons/housemantj/location.png'
5 5
 import Tip from '@/components/tip'
6 6
 import List from '@/components/List';
7
-import NoData from '@/components/NoData'
8 7
 import MasonryLayout from '@/components/MasonryLayout';
9
-import Waterfall from '@/components/MasonryLayout/Waterfall';
10 8
 import { getIndexType, getResourceList } from '@/services/home'
11 9
 import { random } from '@/utils'
12 10
 import Card from '../components/Card'

+ 8
- 5
src/pages/searchResult/searchResult.jsx Datei anzeigen

@@ -3,6 +3,7 @@ import { React, useState, useRef } from 'react'
3 3
 import iconsearch from '../../assets/icons/housemantj/search.png'
4 4
 import CustomNav from '@/components/CustomNav'
5 5
 import Taro from '@tarojs/taro'
6
+import { View } from '@tarojs/components';
6 7
 import Card from '../index/components/Card'
7 8
 import { getResourceList } from '@/services/home'
8 9
 import NoData from '@/components/NoData'
@@ -68,12 +69,13 @@ export default withLayout((props) => {
68 69
       <view className='index-navbar'>
69 70
         <CustomNav title='搜索' />
70 71
       </view>
71
-      <view className='index-container'>
72
+      <view className='index-container' style={{display:'flex',flexDirection:'column'}}>
72 73
         <view className='search'>
73 74
           <input className='searchInput' placeholder='搜索景点/店铺' disabled onClick={onSearch} />
74 75
           <image className='searchicon' src={iconsearch} />
75 76
           <view className='lineSearch'></view>
76
-        </view><view className='index-tabs'>
77
+        </view>
78
+        <view className='index-tabs'>
77 79
           <mp-tabs
78 80
             tabClass='tabs-Unselected'
79 81
             swiperClass='tabs-swiper'
@@ -85,24 +87,25 @@ export default withLayout((props) => {
85 87
           >
86 88
           </mp-tabs>
87 89
         </view>
90
+        <View style={{flex:'auto',overflow:'hidden',position:'relative'}}>
88 91
         <List
89
-          style={{ height: 'calc(100% - 90px)' }}
92
+          style={{ height: '100%' }}
90 93
           request={getResourceList}
91 94
           params={queryParams}
92 95
           onDataChange={setAllList}
93 96
           refresherEnabled={false}
94
-
95 97
         >
96 98
           {
97 99
             alllist.length == 0 ?
98 100
               <NoData /> :
99 101
               <view className='waterfall'>
100 102
                 {
101
-                  alllist.map((item) => <Card key={item.resourceNo} item={item} />)
103
+                  alllist.map((item) => <Card key={item.resourceNo} item={item} onImageLoad='' />)
102 104
                 }
103 105
               </view>
104 106
           }
105 107
         </List>
108
+        </View>
106 109
       </view>
107 110
     </view>
108 111
   )

+ 2
- 0
src/pages/searchResult/searchResult.less Datei anzeigen

@@ -1,6 +1,7 @@
1 1
 .search{
2 2
     padding: 10px 30px 0 30px;
3 3
     position: relative;
4
+    flex: none;
4 5
     .searchInput{    
5 6
         height: 68px;
6 7
         background: #F8F8F8;
@@ -42,6 +43,7 @@
42 43
 } 
43 44
 .index-tabs {
44 45
   position: relative;  
46
+  flex: none;
45 47
   .tabs-Unselected {
46 48
     width: 25vw;      
47 49
     font-weight: bold;