吃个甘蔗嚼一年 3 年 前
コミット
d3fbc9d7c9

+ 2
- 2
src/components/CompoentsOrder/complete/index.jsx ファイルの表示

@@ -77,8 +77,8 @@ export default (props) => {
77 77
       }
78 78
     }
79 79
   }, [IsPull]);
80
-  const [ite,setItem]=useState({})
81
-  const show=(val)=>{
80
+  const [ite, setItem] = useState({})
81
+  const show = (val) => {
82 82
     setItem(val)
83 83
   }
84 84
   const slideButtonTap = (e) => {

+ 0
- 1
src/components/MoreGuide/index.jsx ファイルの表示

@@ -23,7 +23,6 @@ export default (props) => {
23 23
               autoplay={false}
24 24
               loop={false}
25 25
               muted={false} style={{ width: "100%", height: '200px' }} src={item.content}></Video>
26
-
27 26
       }
28 27
 
29 28
     </>

+ 4
- 1
src/components/ShopUsed/index.jsx ファイルの表示

@@ -34,7 +34,7 @@ export default (props) => {
34 34
     <View className='orderCard'>
35 35
       <View style={{ overflow: 'hidden' }}>
36 36
         <View className='orderId'>订单编号:{item.orderId}</View>
37
-        <View className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:ss') || ''}</View>
37
+        <View className='orderTime'>下单日期:{formatTimes(item.orderDate, 'yyyy-MM-dd hh:mm') || ''}</View>
38 38
       </View>
39 39
       <View className='order'>
40 40
         <Image className='orderImg' src={item.poster} mode='aspectFit' />
@@ -42,6 +42,9 @@ export default (props) => {
42 42
           <View className='foodName'>{item.description}</View>
43 43
           <View className='price'>合计金额:¥<Text style={{ fontSize: '24rpx' }}>{item.actualPrice / 100}</Text>元 <Text className='pnum'>数量:<Text>1</Text>张</Text> </View>
44 44
         </View>
45
+
46
+        <View className='veri_Date' > 核销时间:{formatTimes(item.verifiedDate, 'yyyy-MM-dd hh:mm')}</View>
47
+
45 48
         <View className='line' />
46 49
         <View className='phone'>客户手机:<Text>{item.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</Text>
47 50
           {

+ 35
- 33
src/components/ShopUsed/style.less ファイルの表示

@@ -1,104 +1,106 @@
1
-.orderCard{
1
+.orderCard {
2 2
   margin-bottom: 20px;
3
-  .orderId{
3
+  .orderId {
4 4
     font-size: 20px;
5 5
     color: #666666;
6 6
     line-height: 44px;
7 7
     float: left;
8 8
     margin: 60px 0 32px 0;
9
-
10 9
   }
11
-  .orderTime{    
10
+  .orderTime {
12 11
     font-size: 20px;
13 12
     color: #666666;
14 13
     line-height: 44px;
15 14
     float: right;
16 15
     margin: 60px 0 32px 0;
17 16
   }
18
-  .order{
19
-    background: #FFFFFF;
17
+  .order {
18
+    background: #ffffff;
20 19
     box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.08);
21 20
     border-radius: 12px;
22 21
     padding: 20px;
23
-    .orderImg{
22
+    .orderImg {
24 23
       width: 194px;
25 24
       height: 194px;
26 25
       border-radius: 22px;
27 26
       float: left;
28
-      margin:0 26px 30px 0;
27
+      margin: 0 26px 30px 0;
29 28
     }
30
-    .orderRight{
31
-      .foodName{
29
+    .orderRight {
30
+      .foodName {
32 31
         height: 63px;
33 32
         font-size: 24px;
34 33
         color: #333333;
35 34
         line-height: 40px;
36 35
       }
37
-      .price{
36
+      .price {
38 37
         font-size: 20px;
39 38
         font-weight: bold;
40 39
         color: #202020;
41 40
         line-height: 44px;
42 41
         margin: 37px 0 40px 0;
43 42
         height: 19px;
44
-        .pnum{
43
+        .pnum {
45 44
           color: #333333;
46 45
           font-weight: 400;
47
-          margin-left: 47px;         
46
+          margin-left: 47px;
48 47
         }
49 48
       }
50
-      .price+view{
49
+      .price + view {
51 50
         font-size: 20px;
52 51
         font-weight: bold;
53
-        color: #FF3434;
52
+        color: #ff3434;
54 53
         line-height: 44px;
55 54
         margin-bottom: 35px;
56 55
         height: 19px;
57 56
       }
58 57
     }
59
-    .line{
58
+    .veri_Date {
59
+      color: red;
60
+      position: absolute;
61
+      letter-spacing: 1px;
62
+      font-size: 30px;
63
+    }
64
+    .line {
60 65
       width: 100%;
61 66
       height: 2px;
62 67
       background: #000;
63 68
       opacity: 0.1;
64 69
       margin-top: 100px;
65 70
     }
66
-    .phone{
71
+    .phone {
67 72
       font-size: 24px;
68 73
       color: #666666;
69 74
       line-height: 44px;
70 75
       height: 23px;
71 76
       margin: 30px 0;
72 77
       // .Button-OK{
73
-      //   font-size: 28px;   
78
+      //   font-size: 28px;
74 79
       //   color: #C0C8D3;
75 80
       //   line-height: 34px;
76 81
       //   text-align: center;
77 82
       //   padding:40px 0 100px 0;
78 83
       // }
79
-
80 84
     }
81 85
 
82
-    .tripTime{
86
+    .tripTime {
83 87
       font-size: 24px;
84 88
       color: #666666;
85 89
       line-height: 44px;
86 90
       margin-bottom: 30px;
87 91
     }
88 92
   }
89
-
90
-  
91 93
 }
92
-button{
94
+button {
93 95
   width: 160px;
94
-height: 40px;
95
-background: #1A3B83;
96
-/* margin: 0 auto; */
97
-line-height: 40px;
98
-border-radius: 12px;
99
-font-size: 23px;
100
-color: #ffffff;
101
-position: relative;
102
-right: -8em;
103
-top: -2em;
96
+  height: 40px;
97
+  background: #1a3b83;
98
+  /* margin: 0 auto; */
99
+  line-height: 40px;
100
+  border-radius: 12px;
101
+  font-size: 23px;
102
+  color: #ffffff;
103
+  position: relative;
104
+  right: -8em;
105
+  top: -2em;
104 106
 }

+ 16
- 18
src/components/toggleRole/ToggleRole.less ファイルの表示

@@ -1,56 +1,54 @@
1
-.User-box-sths{
1
+.User-box-sths {
2 2
   display: flex;
3
-  margin: 40px 0  60px 0;
3
+  margin: 40px 0 60px 0;
4 4
   justify-content: space-around;
5 5
   flex-wrap: wrap;
6
-  .User-box-selectUser{
6
+  .User-box-selectUser {
7 7
     width: 100%;
8 8
     font-size: 32px;
9 9
     font-weight: bold;
10 10
     color: #202020;
11 11
     line-height: 32px;
12
-    margin: 60px 0 70px  0;
12
+    margin: 60px 0 70px 0;
13 13
     text-align: left;
14 14
   }
15
-  .User-box-tourist{
15
+  .User-box-tourist {
16 16
     display: inline-block;
17 17
 
18
-     .Ubs-tourist-image{
18
+    .Ubs-tourist-image {
19 19
       width: 86px;
20 20
       height: 86px;
21
-
22 21
     }
23
-    .Ubs-tourist-text{
22
+    .Ubs-tourist-text {
24 23
       display: block;
25 24
       font-size: 30px;
26 25
       font-weight: bold;
27
-      color: #999999;      
26
+      color: #999999;
28 27
     }
29 28
   }
30
-  .User-box-hotelBoss{
29
+  .User-box-hotelBoss {
31 30
     display: inline-block;
32
-    .Ubs-hotelBoss-image{
31
+    .Ubs-hotelBoss-image {
33 32
       width: 86px;
34 33
       height: 86px;
35 34
     }
36
-    .Ubs-hotelBoss-text{
35
+    .Ubs-hotelBoss-text {
37 36
       display: block;
38 37
       font-size: 30px;
39 38
       font-weight: bold;
40 39
       color: #999999;
41 40
     }
42 41
   }
43
-  .User-box-shopBoss{
44
-    .Ubs-shopBoss-image{
42
+  .User-box-shopBoss {
43
+    .Ubs-shopBoss-image {
45 44
       width: 86px;
46 45
       height: 86px;
47 46
     }
48
-    .Ubs-shopBoss-text{
47
+    .Ubs-shopBoss-text {
49 48
       display: block;
50 49
       font-size: 30px;
51 50
       font-weight: bold;
52
-      color:#202020;
51
+      color: #202020;
53 52
     }
54 53
   }
55
-
56
-}
54
+}

+ 3
- 61
src/pages/index/tabs/Guide.jsx ファイルの表示

@@ -48,10 +48,8 @@ export default (props) => {
48 48
   //全部指南个数
49 49
   const [AllextNum, setAllextNum] = useState(0)
50 50
   //指南当前页数
51
-  const [epage, setEpage] = useState(2)
52 51
   const extendMore = () => {
53
-    setEpage(epage + 1)
54
-    getExtendContent('room', roomId, { pageNum: epage }).then((res) => {
52
+    getExtendContent('room', roomId, { pageNum: 99999 }).then((res) => {
55 53
       setExtend([...extend, ...res.records])
56 54
       setNewextNum(newextNum + res.records.length)
57 55
     })
@@ -174,62 +172,6 @@ export default (props) => {
174 172
         {
175 173
           ifroomId === 'reality' && (
176 174
             <view>
177
-              {/* 
178
-              <view className='MessageCard'>
179
-                <view className='MessageCard-title1'>
180
-                  <text className='MessageCard-left'>----------</text>
181
-                  名称
182
-                  <text className='MessageCard-right'>----------</text>
183
-                </view>
184
-                <view className='MessageCard-content'>
185
-                  <view className='MessageCard-name' >{taRoomContent?.roomName}</view>
186
-                </view>
187
-              </view>
188
-              <view className='MessageCard-hotle'>
189
-                <view className='MessageCard-title1-hotle'>
190
-                  <text className='MessageCard-left-hotle'>----------</text>
191
-                  民宿位置
192
-                  <text className='MessageCard-right-hotle'>----------</text>
193
-                </view>
194
-                <view className='MessageCard-content-hotle'>
195
-                  <view className='MessageCard-name-hotle' >{taRoomContent?.address}</view>
196
-                </view>
197
-                <view className='MessageCard-button-RoomName-hotle' onClick={() => { goRoomMap() }}>
198
-                  <image className='MessageCard-image-hotle' src={GoHere} />
199
-                  <text className='MessageCard-text-hotle'  >去这里</text>
200
-                </view>
201
-              </view>
202
-              <view className='MessageCard-parkView'>
203
-                <view className='MessageCard-title1-parkView'>
204
-                  <text className='MessageCard-left-parkView'>----------</text>
205
-                  停车位置
206
-                  <text className='MessageCard-right-parkView'>----------</text>
207
-                </view>
208
-                <view className='MessageCard-content-parkView'>
209
-                  <view className='MessageCard-name-parkView' >{taRoomContent?.parkingAddress}</view>
210
-                </view>
211
-                <view className='MessageCard-button-Park-parkView' onClick={() => { goParkMap() }} style={{ display: parkingButtonStyle }} >
212
-                  <image className='MessageCard-image-parkView' src={Taxi} />
213
-                  <text className='MessageCard-text-parkView'  >去这里</text>
214
-                </view>
215
-              </view>
216
-              <view className='MessageCard'>
217
-                <view className='MessageCard-title1'>
218
-                  <text className='MessageCard-left'>----------</text>
219
-                  WiFi信息
220
-                  <text className='MessageCard-right'>----------</text>
221
-                </view>
222
-                <view className='MessageCard-content' style={{ display: wifiButtonStyle }} >
223
-                  <view className='MessageCard-name' >名称:{taRoomContent?.wifiName}</view>
224
-                  <view className='MessageCard-info'  ><text className='MessageCard-name'>密码:</text>{taRoomContent?.wifiPassword}</view>
225
-                </view>
226
-
227
-                <view className='MessageCard-button' onClick={() => { wifiCopy() }} style={{ display: wifiButtonStyle }}>
228
-                  <image className='MessageCard-image' src={WiFi} />
229
-                  <text className='MessageCard-text'>复制</text>
230
-                </view>
231
-              </view> */}
232
-
233 175
 
234 176
               <view className='room-box-info-ROOM'>
235 177
                 <view className='room-bi-name-ROOM' >
@@ -288,11 +230,11 @@ export default (props) => {
288 230
                   <text className='title-title-boss' >更多指引</text>
289 231
                 </view>
290 232
                 {(extend || []).map((item, index) => <MoreGuide key={(index)} item={item} />)}
291
-
233
+                {/* 
292 234
                 <view className='showMore' style={{ display: newextNum == AllextNum ? 'none' : '' }} onClick={extendMore}>
293 235
                   <view>点击查看更多</view>
294 236
                   <image src={showMore} className='moreTip' />
295
-                </view>
237
+                </view> */}
296 238
               </view>
297 239
             </view>
298 240
           )

+ 13
- 3
src/shop/components/Sparead/spreadMoney.jsx ファイルの表示

@@ -1,8 +1,8 @@
1
-import { useState,  useMemo } from 'react'
1
+import { useState, useMemo } from 'react'
2 2
 import Taro from '@tarojs/taro'
3 3
 import List from '@/components/List';
4 4
 import Picker from '@/components/Picker'
5
-import {getAccount} from '@/services/shopBoss'
5
+import { getAccount } from '@/services/shopBoss'
6 6
 import ShopCommission from '@/components/ShopCommission'
7 7
 import eyes from '@/assets/icons/shopKeeper/eyesON.png'
8 8
 import ceyes from '@/assets/icons/shopKeeper/eyesOFF.png'
@@ -54,8 +54,12 @@ export default (props) => {
54 54
   return (
55 55
     <view>
56 56
       <ToggleRole showCutover={showCutover} maskClosable={showCutover} onClose={onClose} role='shop' />
57
+
57 58
       <view style={{ padding: '30rpx', height: '100%' }}>
59
+        <scroll-view scrollY style={{ height: 'calc(100vh - 120px)' }}>
60
+
58 61
           <view className='storexx'>
62
+
59 63
             <view className='storeName'>店名:<Picker style={{ display: 'inline-block' }} placeholder="请选择商铺" value={shop?.shopId} kv={['shopName', 'shopId']} dicts={shopList} onChange={handleHotelChange} /></view>
60 64
             <view onClick={ShowMoldeOn} className='User-info-cutover'>
61 65
               <image className='User-info-cutover-image' src={cutoverUser} />
@@ -77,7 +81,10 @@ export default (props) => {
77 81
                   <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
78 82
                 </view></view>
79 83
             </view>
84
+
80 85
           </view>
86
+
87
+
81 88
           <view className='title'>推广收入记录</view>
82 89
           <List
83 90
             style={{ height: 'calc(100% - 145px)' }}
@@ -87,7 +94,10 @@ export default (props) => {
87 94
             render={({ item, index }) => <ShopCommission key={(index)} item={item} />}
88 95
           >
89 96
           </List>
97
+        </scroll-view>
98
+
90 99
       </view>
91
-    </view>
100
+
101
+    </view >
92 102
   )
93 103
 }