Baozhangchao 3 лет назад
Родитель
Сommit
0110cdb36f

+ 9
- 2
src/components/MoreGuide/index.jsx Просмотреть файл

@@ -1,9 +1,12 @@
1 1
 import { Video } from '@tarojs/components';
2
+import { useState } from 'react';
2 3
 import { compressImage } from '@/utils'
3 4
 import './style.less'
4 5
 
5 6
 export default (props) => {
6
-  const { item } = props
7
+  const { item, } = props
8
+
9
+
7 10
   return (
8 11
     <>
9 12
       {
@@ -17,8 +20,12 @@ export default (props) => {
17 20
             <Video
18 21
               controls
19 22
               autoplay={false}
23
+              VideoType={false}
20 24
               loop={false}
21
-              muted={false} style={{ width: "100%", height: '200px' }} src={item.content}></Video>
25
+              muted={false} style={{ width: "100%", height: '200px' }} src={item.content}
26
+            >
27
+
28
+            </Video>
22 29
       }
23 30
     </>
24 31
   )

+ 113
- 14
src/components/foodCards/NoteCard/index.jsx Просмотреть файл

@@ -1,13 +1,15 @@
1
-import { useState } from 'react'
1
+import { useState, useEffect, useRef } from 'react'
2 2
 
3 3
 import Taro from '@tarojs/taro'
4
-import { View, Text, Image, Button, ScrollView } from '@tarojs/components'
4
+import { View, Picker, Image, ScrollView } from '@tarojs/components'
5 5
 import CouponCard from '@/components/CouponCard'
6 6
 import { compressImage } from '@/utils'
7 7
 import SaveIcon from '@/components/SaveIcon'
8 8
 import grassOFF from '@/assets/icons/housemantj/grassOFF.png'
9 9
 import grassNO from '@/assets/icons/housemantj/grassNO.png'
10 10
 import Popup from '@/components/Popup'
11
+import { saveTravel, newTravelMine, getTravelMine } from '@/services/travel'
12
+
11 13
 import './style.less'
12 14
 
13 15
 
@@ -16,18 +18,23 @@ const Action = CouponCard.Action
16 18
 
17 19
 //套餐卡片
18 20
 export default (props) => {
19
-  const { item, st, det, editable, setScroll, goshop, scene, subOrderId, id } = props
20
-  const { shopId } = props.item
21
+  const { item, st, editable, setScroll, goshop, travelMine, travelMineContent } = props
22
+  // const travelId = travelMineContent?.records[0]?.travelId
23
+  const { targetId } = props.item
21 24
   const goFood = () => {
22
-    Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${shopId}` })
25
+    Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${targetId}` })
26
+
23 27
   }
24 28
   const [showCutover, setShowCutover] = useState(false)
25
-  const goDetail = () => {
26
-    //打开当前套餐详情弹窗
27
-    setShowCutover(true)
28
-    //使父组件禁止滚动
29
-    setScroll(false)
30
-  }
29
+  const [valueList, setValueList] = useState([])
30
+
31
+
32
+  useEffect(() => {
33
+    setValueList(travelMine?.records)
34
+
35
+
36
+  }, [travelMine?.records])
37
+
31 38
   const onClose = () => {
32 39
     //关闭当前套餐详情弹窗
33 40
     setShowCutover(false)
@@ -35,12 +42,104 @@ export default (props) => {
35 42
     setScroll(true)
36 43
   }
37 44
 
45
+  //列改变
46
+  const [traveCoumun, setTraveCoumun] = useState()
47
+
48
+
49
+  const numberTrave = (new Array(traveCoumun).fill()).map((_, index) => ({ id: index + 1, title: `第 ${index + 1} 天` }))
50
+
51
+  const array = [valueList, numberTrave]
52
+
53
+
54
+  const handleColumn = e => {
55
+    // console.log(e.detail.column);
56
+
57
+    const { column, value } = e.detail
58
+
59
+
60
+    const firstValue = valueList[value]
61
+    console.log("🚀 ~ file: index.jsx ~ line 61 ~ firstValue", firstValue)
62
+    setTraveCoumun(firstValue.dayNum)
63
+
64
+  }
65
+
66
+
67
+
68
+  const day = new Date();
69
+  const y = day.getFullYear();
70
+  const m = day.getMonth();
71
+  const d = day.getDate();
72
+  let number = 0
73
+
74
+  const onChange = (e) => {
75
+    const [firstInx, secondInx] = e.detail.value
76
+
77
+    const firstValue = valueList[firstInx]
78
+    const secondValue = numberTrave[secondInx]
79
+
80
+    const { travelId } = firstValue//行程内容
81
+    const { i } = secondValue//天数
82
+
83
+
84
+    console.log(firstValue, secondValue);
85
+
86
+
87
+    if (travelMine.records.total < 0) {
88
+      newTravelMine({ title: `我的行程 ${y}-${m == 0 ? 1 : m}-${d}` }).then(e => {
89
+        console.log("🚀 ~ file: index.jsx ~ line 61 ~ newTravelMine ~ e", e)
90
+        // saveTravel({})
91
+        saveTravel(travelId, { dayOrder: i, targetId: targetId, targetType: 'note' }).then((res) => {
92
+          Taro.
93
+            Taro.showToast({
94
+              title: '添加成功',
95
+              icon: 'none',
96
+              duration: 1000
97
+            })
98
+          console.log(res);
99
+        })
100
+      })
101
+    } else {
102
+      saveTravel(travelId, { dayOrder: i, targetId: targetId, targetType: 'note' }).then((res) => {
103
+        console.log(res);
104
+        Taro.showToast({
105
+          title: '添加成功',
106
+          icon: 'none',
107
+
108
+          duration: 1000
109
+        })
110
+      })
111
+      // console.log('else');
112
+
113
+    }
114
+  }
38 115
 
39 116
 
40 117
   const handlePayClick = () => {
41
-    Taro.navigateTo({ url: `/pages/PayOrder/index?packageId=${item.packageId}&scene=${scene || ''}&subOrderId=${subOrderId}&id=${id}` })
118
+    // Taro.navigateTo({ url: `/pages/PayOrder/index?packageId=${item.packageId}&scene=${scene || ''}&subOrderId=${subOrderId}&id=${id}` })
119
+
42 120
   }
43
-  const PayAction = <Action.Icon icon={grassOFF} text='种草' onClick={handlePayClick} />
121
+  const PayAction =
122
+    <View className='view-picker'>
123
+      <Picker
124
+        className='picker-box'
125
+        mode='multiSelector'
126
+        range={array}
127
+        range-key='title'
128
+        onColumnChange={handleColumn}
129
+        onChange={onChange}
130
+        scrollType='link'
131
+      // value={}
132
+
133
+      >
134
+
135
+        <Action.Icon icon={item.isVisited > 1 ? grassOFF : grassNO} text={item.isVisited > 1 ? '种草' : '已种草'} onClick={handlePayClick} />
136
+
137
+      </Picker>
138
+
139
+    </View>
140
+
141
+
142
+
44 143
   return (
45 144
     <View style={{ margin: '15px 5px' }} >
46 145
       <View className='packageDetail' style={{ display: goshop ? '' : 'none' }}>
@@ -54,7 +153,7 @@ export default (props) => {
54 153
         </Popup >
55 154
       </View>
56 155
       <CouponCard action={PayAction}>
57
-        <CouponMedia onClick={goshop ? goDetail : goFood}>
156
+        <CouponMedia onClick={goFood}>
58 157
           <CouponMedia.Header
59 158
             cashback={item.cashback}
60 159
             image={compressImage(item.poster)}

+ 10
- 5
src/components/foodCards/NoteCard/style.less Просмотреть файл

@@ -1,4 +1,9 @@
1
-.foodCard{
1
+.view-picker {
2
+  position: relative;
3
+  top: 30%;
4
+}
5
+
6
+.foodCard {
2 7
   .cpn-card-text {
3 8
     font-size: 24px;
4 9
     font-weight: 400;
@@ -36,12 +41,12 @@
36 41
     }
37 42
   }
38 43
 }
39
-.packageDetail{
40
-  Image{
44
+.packageDetail {
45
+  Image {
41 46
     width: 100%;
42 47
   }
43
-  .weui-dialog__bd{
48
+  .weui-dialog__bd {
44 49
     padding: 0;
45 50
     margin: 0;
46 51
   }
47
-}
52
+}

+ 11
- 10
src/hotel/components/HouseManage/houseManage.jsx Просмотреть файл

@@ -1,24 +1,25 @@
1 1
 import Taro, { useDidShow } from '@tarojs/taro'
2 2
 import { View, Image } from '@tarojs/components';
3
+import ToggleRole from '@/components/ToggleRole'
4
+
3 5
 import see from '@/assets/icons/landlord/lookPerson.png'
4 6
 import share from '@/assets/icons/landlord/shareLink.png'
5 7
 import del from '@/assets/icons/landlord/delete.png'
6 8
 import addImg from '@/assets/icons/landlord/add.png'
7 9
 import copyRoomImg from '@/assets/icons/landlord/copyroom.png'
8 10
 import React, { useState, useEffect, useRef, useImperativeHandle, useMemo } from 'react'
9
-import { getRoomList,deleteRoom,copyRoom } from '@/services/landlord'
11
+import { getRoomList, deleteRoom, copyRoom } from '@/services/landlord'
10 12
 import Spin3 from '@/components/Spin/Spin3';
11 13
 import List from '@/components/List';
12 14
 import Picker from '@/components/Picker'
13 15
 import SearchBar from '@/components/SearchBar'
14 16
 import ShareRoom from '../shareRoom/ShareRoom.jsx'
15 17
 import ShareCard from '../shareCard/shareCard'
16
-import ToggleRole from '@/components/ToggleRole'
17 18
 import './houseManage.less'
18 19
 
19 20
 
20 21
 export default React.forwardRef((props, ref) => {
21
-  const { hotel, hotelList, onHotelChange,isBind } = props
22
+  const { hotel, hotelList, onHotelChange, isBind } = props
22 23
   const [detail, setDetail] = useState([])
23 24
   const [search, setSearch] = useState()
24 25
 
@@ -46,8 +47,8 @@ export default React.forwardRef((props, ref) => {
46 47
               title: '删除房源成功',
47 48
               icon: 'none',
48 49
             })
49
-            getRoomList({ hotelId: hotel.hotelId }).then((res) => {
50
-              setDetail(res.records || [])
50
+            getRoomList({ hotelId: hotel.hotelId }).then((vals) => {
51
+              setDetail(vals.records || [])
51 52
             })
52 53
           })
53 54
         }
@@ -61,8 +62,8 @@ export default React.forwardRef((props, ref) => {
61 62
   const [showCutover, setShowCutover] = useState(false)
62 63
   const [showCard, setShowCard] = useState(false)
63 64
   const [room, setRoom] = useState({})
64
-  const ShowMoldeOn = (room) => {
65
-    setRoom(room)
65
+  const ShowMoldeOn = (rooms) => {
66
+    setRoom(rooms)
66 67
     setShowCutover(true)
67 68
   }
68 69
   const onClose = () => {
@@ -160,9 +161,9 @@ export default React.forwardRef((props, ref) => {
160 161
         <Spin3 show={loading} />
161 162
       </View>
162 163
       <View style={{ flex: 'none' }}>
163
-        <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择民宿" value={hotel?.hotelId} kv={['hotelName', 'hotelId']} dicts={hotelList} onChange={handleHotelChange} /></view>
164
+        <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder='请选择民宿' value={hotel?.hotelId} kv={['hotelName', 'hotelId']} dicts={hotelList} onChange={handleHotelChange} /></view>
164 165
         <view className='User-info-cutover-normal'>
165
-            <ToggleRole role='hotel' isBind={isBind}/>
166
+          <ToggleRole role='hotel' isBind={isBind} />
166 167
         </view>
167 168
       </View>
168 169
       <View style={{ flex: 'none' }}>
@@ -179,7 +180,7 @@ export default React.forwardRef((props, ref) => {
179 180
           params={queryParams}
180 181
           onDataChange={setDetail}
181 182
           refresherEnabled={false}
182
-          noData="暂无房源信息"
183
+          noData='暂无房源信息'
183 184
         >
184 185
           <view className='waterfall'>
185 186
             {

+ 25
- 25
src/pages/details/NoteDetails/index.jsx Просмотреть файл

@@ -14,17 +14,20 @@ import zhuandao from "@/assets/icons/housemantj/backTop.png";
14 14
 import withLayout from '@/layouts'
15 15
 import SpinBox from "@/components/Spin/SpinBox";
16 16
 import { getNoteList, getNoteID } from '@/services/note'
17
+import { getTravelMine } from '@/services/travel'
17 18
 
18 19
 import TabIcon from '@/components/HorTabbar/TabIcon'
19 20
 import { useState, useEffect } from 'react'
20 21
 import { getTouristDetail, getExtendContent, getRecommendList } from '@/services/home'
21 22
 import logo from "@/assets/icons/UserCenter/laba.png"
22
-import { Swiper, SwiperItem, Button, View, Ad } from '@tarojs/components';
23
+import { Swiper, SwiperItem, Button, View, Ad, Video } from '@tarojs/components';
23 24
 import useSave from "@/utils/hooks/useSave"
24 25
 import useLike from "@/utils/hooks/useLike"
25 26
 import NoteCards from '@/components/foodCards/NoteCard/index'
26 27
 import Taro, { useShareAppMessage } from '@tarojs/taro'
27 28
 import Extend from '../components/Extend/extend'
29
+import ImageList from "../components/ImageList";
30
+
28 31
 import './index.less'
29 32
 
30 33
 
@@ -36,7 +39,8 @@ export default withLayout((props) => {
36 39
   const [isSaved, toggleSave] = useSave(detail.isSaved, 'tourist', id)
37 40
   const [isLike, toggleLike] = useLike(detail.isLike, 'tourist', id)
38 41
   const [loading, setLoading] = useState(false)
39
-
42
+  const [travelMine, setTravelMine] = useState()
43
+  const [travelMineContent, setTravelMineContent] = useState()
40 44
   //banner图集数组
41 45
   const [imglist, setimglist] = useState([])
42 46
   const [index, setIndex] = useState(0)
@@ -61,11 +65,18 @@ export default withLayout((props) => {
61 65
 
62 66
 
63 67
   useEffect(() => {
68
+    //获取我的行程。
69
+    getTravelMine({ pageNum: 1, pageSize: 99, simple: true }).then(e => {
70
+      setTravelMine(e)
71
+
72
+    })
73
+
74
+
75
+
64 76
     if (id) {
65 77
       setLoading(true)
66 78
       getNoteID(id).then((res) => {
67 79
         setDetail(res)
68
-        console.log("🚀 ~ file: index.jsx ~ line 68 ~ getNoteID ~ res", res)
69 80
         setimglist(res.imageList || [])
70 81
         setRecommend(res.wxResourceList || [])
71 82
 
@@ -91,6 +102,8 @@ export default withLayout((props) => {
91 102
       imageUrl: detail.poster,
92 103
     }
93 104
   })
105
+
106
+
94 107
   return (
95 108
     <view className='page-index'>
96 109
       {
@@ -110,29 +123,16 @@ export default withLayout((props) => {
110 123
             <View className='huadong'>
111 124
               {
112 125
                 detail.noteType === 'image' ?
113
-                  <Swiper className='swiper' circular onChange={handchange}>
114
-                    {
115
-                      imglist.map((item, key) => (
116
-                        <SwiperItem key={key}>
117
-                          <image src={compressImage(item.url)} mode='aspectFit' className='storeImage' />
118
-                        </SwiperItem>
119
-                      ))}
120
-                  </Swiper>
126
+                  <ImageList imglist={imglist} />
121 127
                   :
122
-                  <Swiper className='swiper' circular onChange={handchange}>
123
-                    {
124
-                      imglist.map((item, key) => (
125
-                        <MoreGuide key={key} item={item} />
126
-
127
-                      ))}
128
-                  </Swiper>
128
+                  <Video
129
+                    controls
130
+                    autoplay={false}
131
+                    loop={false}
132
+                    muted={false} style={{ width: "100%", height: '200px' }} src={detail.videoUrl}
133
+                  >
134
+                  </Video>
129 135
               }
130
-
131
-              <view className='tpPage'>
132
-                <text>
133
-                  {index + 1}/{imglist.length}
134
-                </text>
135
-              </view>
136 136
             </View>
137 137
 
138 138
 
@@ -159,7 +159,7 @@ export default withLayout((props) => {
159 159
             <view className='title'>
160 160
               <image src={TextMentioned} />文中提及
161 161
             </view>
162
-            {(recommend || []).map((item) => <NoteCards key={item} item={item} det={item} />)}
162
+            {(recommend || []).map((item) => <NoteCards travelMine={travelMine} travelMineContent={travelMineContent} key={item} item={item} det={item} />)}
163 163
           </view>
164 164
           <view className='botton'>这是我的底线</view>
165 165
         </scroll-view>

+ 2
- 2
src/pages/index/tabs/Guide.jsx Просмотреть файл

@@ -169,7 +169,7 @@ export default (props) => {
169 169
               </view>
170 170
               {/* --------停车场-------- */}
171 171
               {
172
-                !taRoomContent.parkingLocation ?null:
172
+                !taRoomContent.parkingLocation ? null :
173 173
                   <view className='room-box-info-Parking'>
174 174
                     <view className='room-bi-name-Parking' >
175 175
                       <view className='room-bin-title-Parking'>停车位置</view>
@@ -185,7 +185,7 @@ export default (props) => {
185 185
               }
186 186
               {/* --------无线网-------- */}
187 187
               {
188
-                !taRoomContent.wifiName && !taRoomContent.wifiPassword ?null:
188
+                !taRoomContent.wifiName && !taRoomContent.wifiPassword ? null :
189 189
                   <view className='room-box-info-WIFIContent'>
190 190
                     <view className='room-bi-name-WIFIContent' >
191 191
                       <view className='room-bin-title-WIFIContent'>WiFi信息</view>

+ 2
- 2
src/pages/index/tabs/RecommendNote/index.jsx Просмотреть файл

@@ -14,7 +14,7 @@ import NoteCard from '../../components/NoteCard'
14 14
 const listStyle = { height: '100%' }
15 15
 
16 16
 export default (props) => {
17
-  const { router, person, location } = props
17
+  const { router, person, location, queryParamsSearch } = props
18 18
   const listClass = useMemo(() => random('f'), [])
19 19
   const [activeTab, setActiveTab] = useState(0)
20 20
   const listRef = useRef()
@@ -76,7 +76,7 @@ export default (props) => {
76 76
         ref={listRef}
77 77
         style={listStyle}
78 78
         request={getNoteList}
79
-        params={queryParams}
79
+        params={queryParamsSearch || queryParams}
80 80
         refresherEnabled={false}
81 81
         onDataChange={handleDataChange}
82 82
       >

+ 4
- 1
src/pages/search/search.jsx Просмотреть файл

@@ -14,15 +14,18 @@ export default withLayout((props) => {
14 14
   const hotSearch = (val) => {
15 15
     Taro.navigateTo({ url: `/pages/searchResult/searchResult?q=${val}` });
16 16
   }
17
+
17 18
   const onSearch = (e) => {
18 19
     if (e.detail.value !== '') {
19
-      Taro.navigateTo({ url: `/pages/searchResult/searchResult?q=${e.detail.value}` });
20
+      Taro.navigateTo({ url: `/pages/searchResult/searchResult?q=${e.detail.value}&targetTypeValue=${selectValue}` });
20 21
     }
21 22
   }
23
+
22 24
   const [selectValue, setselectValue] = useState('地点')
23 25
   const state = {
24 26
     selector: ['地点', '笔记'],
25 27
     selectorChecked: selectValue,
28
+
26 29
     // timeSel: '12:01',
27 30
     // dateSel: '2018-04-22'
28 31
   }

+ 29
- 19
src/pages/searchResult/searchResult.jsx Просмотреть файл

@@ -4,6 +4,8 @@ import CustomNav from '@/components/CustomNav'
4 4
 import Taro from '@tarojs/taro'
5 5
 import { View } from '@tarojs/components';
6 6
 import { getResourceList } from '@/services/home'
7
+import { getNoteList } from '@/services/note'
8
+
7 9
 import MasonryLayout from '@/components/MasonryLayout';
8 10
 import NoData from '@/components/NoData'
9 11
 import List from '@/components/List';
@@ -11,18 +13,21 @@ import withLayout from '@/layouts'
11 13
 import './searchResult.less'
12 14
 import Card from '../index/components/Card'
13 15
 import iconsearch from '../../assets/icons/housemantj/search.png'
16
+import RecommendNote from '../index/tabs/RecommendNote/index'
14 17
 
15 18
 
16 19
 const listStyle = { height: '100%' }
17 20
 
18 21
 export default withLayout((props) => {
19 22
   const { router, person, location } = props
20
-  const { q } = props.router.params
23
+  console.log("🚀 ~ file: searchResult.jsx ~ line 22 ~ withLayout ~ props", props)
24
+  const { q, targetTypeValue } = props.router.params
21 25
 
22 26
   const [listData, setListData] = useState({ list: [], rfTimes: 0 })
23 27
 
24 28
   // 横向tab
25
-  const [queryParams, setQueryParams] = useState({ q: q, location, pageNum: 1, pageSize: 10, typeId: '' })
29
+  // targetType: targetTypeValue 
30
+  const [queryParams, setQueryParams] = useState({ q: q, location, pageNum: 1, pageSize: 10, })
26 31
   const rfTimes = useRef(0)
27 32
 
28 33
 
@@ -59,23 +64,28 @@ export default withLayout((props) => {
59 64
         </view>
60 65
 
61 66
         <View style={{ flex: 1, overflow: 'hidden' }}>
62
-          <List
63
-            ref={listRef}
64
-            style={listStyle}
65
-            request={getResourceList}
66
-            params={queryParams}
67
-            refresherEnabled={false}
68
-            onDataChange={handleDataChange}
69
-            noData={<NoData />}
70
-          >
71
-            <view style={{ padding: '30rpx 15rpx' }}>
72
-              <MasonryLayout
73
-                itemKey='resourceNo'
74
-                listData={listData}
75
-                render={(item) => <Card key={item.resourceNo} item={item} />}
76
-              />
77
-            </view>
78
-          </List>
67
+          {
68
+            targetTypeValue == '地点' ?
69
+              <List
70
+                ref={listRef}
71
+                style={listStyle}
72
+                request={getResourceList}
73
+                params={queryParams}
74
+                refresherEnabled={false}
75
+                onDataChange={handleDataChange}
76
+                noData={<NoData />}
77
+              >
78
+                <view style={{ padding: '30rpx 15rpx' }}>
79
+                  <MasonryLayout
80
+                    itemKey='resourceNo'
81
+                    listData={listData}
82
+                    render={(item) => <Card key={item.resourceNo} item={item} />}
83
+                  />
84
+                </view>
85
+              </List>
86
+              : <RecommendNote queryParamsSearch={queryParams} />
87
+          }
88
+
79 89
         </View>
80 90
       </view>
81 91
     </view>

+ 3
- 0
src/services/note.js Просмотреть файл

@@ -24,3 +24,6 @@ export const getNoteID = (id, params) => request(`/note/${id}`, { params })
24 24
 
25 25
 
26 26
 
27
+
28
+
29
+

+ 32
- 0
src/services/travel.js Просмотреть файл

@@ -0,0 +1,32 @@
1
+
2
+import request from '@/utils/request'
3
+
4
+
5
+
6
+/**
7
+ * Picker获取行程
8
+ * @param {*} 
9
+ * @returns 
10
+ */
11
+
12
+export const getTravelMine = (params) => request(`/travel/mine`, { params })
13
+
14
+
15
+
16
+/**
17
+ * 新建保存行程
18
+ * @param {*} 
19
+ * @returns 
20
+ */
21
+
22
+export const newTravelMine = (data) => request(`/travel`, { method: 'post', data })
23
+
24
+
25
+
26
+/**
27
+ * 保存行程地点
28
+ * @param {*} 
29
+ * @returns 
30
+ */
31
+
32
+export const saveTravel = (id, data) => request(`/travel/${id}/travel-item`, { method: 'post', data })

+ 29
- 29
src/shop/components/ShopKeeper/shopKeeper.jsx Просмотреть файл

@@ -88,12 +88,12 @@ export default (props) => {
88 88
     },
89 89
   ]
90 90
   return (
91
-    <view style={{height:'100%'}}>
92
-      <view style={{ padding: '0 15px 0 15px', height: '100%',display:'flex' ,flexDirection:'column' }}>
93
-        <view className='storexx' style={{flex:'none'}}>
94
-          <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder='请选择商铺' value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>          
91
+    <view style={{ height: '100%' }}>
92
+      <view style={{ padding: '0 15px 0 15px', height: '100%', display: 'flex', flexDirection: 'column' }}>
93
+        <view className='storexx' style={{ flex: 'none' }}>
94
+          <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder='请选择商铺' value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>
95 95
           <view className='User-info-cutover-normal'>
96
-            <ToggleRole role='shop' isBind={isBind}/>
96
+            <ToggleRole role='shop' isBind={isBind} />
97 97
           </view>
98 98
           <view className='tip'>(计算收入以核销为准)</view>
99 99
           <view className='money'>
@@ -114,10 +114,10 @@ export default (props) => {
114 114
               </view></view>
115 115
           </view>
116 116
         </view>
117
-        <view className='search' style={{flex:'none'}}>
117
+        <view className='search' style={{ flex: 'none' }}>
118 118
           <SearchBar placeholder='搜索订单(输入客户手机号码)' onBlur={handelSearch} />
119 119
         </view>
120
-        <view className='index-tabs' style={{flex:'none'}}>
120
+        <view className='index-tabs' style={{ flex: 'none' }}>
121 121
           <mp-tabs
122 122
             tabClass='tabs-Unselected'
123 123
             swiperClass='tabs-swiper'
@@ -129,33 +129,33 @@ export default (props) => {
129 129
           >
130 130
           </mp-tabs>
131 131
         </view>
132
-        <view style={{flex:1,overflow:'hidden'}}>
132
+        <view style={{ flex: 1, overflow: 'hidden' }}>
133 133
           {/* 未核销 */}
134 134
           {activeTab === 0 &&
135
-              <List
136
-                style={{ height: '100%' }}
137
-                request={getVerifiedOrder}
138
-                params={queryParams}
139
-                refresherEnabled={refres}
140
-                refresOff={refresOff}
141
-                noData={<NoData />}
142
-                render={({ item, index }) =>
143
-                  <ShopUnused key={(index)} item={item} />}
144
-              >
145
-              </List>
135
+            <List
136
+              style={{ height: '100%' }}
137
+              request={getVerifiedOrder}
138
+              params={queryParams}
139
+              refresherEnabled={refres}
140
+              refresOff={refresOff}
141
+              noData={<NoData />}
142
+              render={({ item, index }) =>
143
+                <ShopUnused key={(index)} item={item} />}
144
+            >
145
+            </List>
146 146
           }
147 147
           {/* 已核销 */}
148 148
           {activeTab === 1 &&
149
-              <List
150
-                style={{ height: '100%' }}
151
-                noData={<NoData />}
152
-                request={getVerifiedOrder}
153
-                params={queryParams}
154
-                refresherEnabled={refres}
155
-                refresOff={refresOff}
156
-                render={({ item, index }) => <ShopUsed verifiedOrder={verifiedOrder} key={(index)} item={item} />}
157
-              >
158
-              </List>
149
+            <List
150
+              style={{ height: '100%' }}
151
+              noData={<NoData />}
152
+              request={getVerifiedOrder}
153
+              params={queryParams}
154
+              refresherEnabled={refres}
155
+              refresOff={refresOff}
156
+              render={({ item, index }) => <ShopUsed verifiedOrder={verifiedOrder} key={(index)} item={item} />}
157
+            >
158
+            </List>
159 159
           }
160 160
         </view>
161 161
       </view>