李志伟 преди 3 години
родител
ревизия
3ce6a8a9c6

+ 1
- 1
src/components/BossCard/index.jsx Целия файл

@@ -79,7 +79,7 @@ export default (props) => {
79 79
             <text className='title-money' >¥{(item.actualPrice / 100)?.toFixed(2)}元<text className='title-money-2'>门市价{(item.standardPrice / 100)?.toFixed(2)}元</text></text>
80 80
             <view className='title-position-on'>
81 81
               <image className='title-position' src={position} />
82
-              <text className='title-position-image'>{city.areaPName}/ {city.areaName}</text>
82
+              <text className='title-position-image'>{city.areaName=='南京市'?city.areaName:city.areaPName+'/'+city.areaName}</text>
83 83
               <view style={{ display: 'inline-block' }} onClick={toggleSave}>
84 84
 
85 85
                 <image className='title-on' src={isSaved > 0 ? starOn : starOff} />

+ 7
- 5
src/components/CompoentsOrder/complete/index.jsx Целия файл

@@ -1,4 +1,4 @@
1
-import react, { useState, useEffect } from "react";
1
+import React, { useState, useEffect } from "react";
2 2
 import Taro from "@tarojs/taro";
3 3
 import { getOrderSub, getQrcode } from "@/services/payOrder";
4 4
 import formatTime from "@/utils/formatTime";
@@ -6,17 +6,15 @@ import image from "@/assets/icons/ProCard/8kb.jpg";
6 6
 import food from "@/assets/icons/ProCard/food.png";
7 7
 import ProCard_hot from "@/assets/icons/ProCard/ProCard_hot.png";
8 8
 import refund from "@/assets/icons/GuideCheck/refund.png";
9
-
9
+import NoData from '@/components/NoData'
10 10
 import Evaluation from "@/assets/icons/UserCenter/Evaluation.png";
11 11
 import Null from "@/assets/icons/UserCenter/null_logo.png";
12 12
 import QRcode from "@/assets/icons/UserCenter/QRcode.png";
13
-
14 13
 import Pay from "@/assets/icons/GuideCheck/Pay_logo.png";
15 14
 import starOn from "@/assets/icons/GuideCheck/starOn.png";
16 15
 import starOff from "@/assets/icons/GuideCheck/starOff.png";
17
-import AlreadyUsed from "../AlreadyUsed";
18
-import "./style.less";
19 16
 import { useDidShow } from "@tarojs/taro";
17
+import "./style.less";
20 18
 
21 19
 const scoreList = new Array(5).fill(0);
22 20
 const score = "3.9";
@@ -120,6 +118,9 @@ export default (props) => {
120 118
       refresher-background="#fff"
121 119
       onscrolltolower={pageLoadMore}
122 120
     >
121
+      {
122
+        list.length == 0 ?
123
+          <NoData />:
123 124
       <view className="complete-boxs">
124 125
         {list.map((item, index) => {
125 126
           /* 待支付 */
@@ -398,6 +399,7 @@ export default (props) => {
398 399
 
399 400
         <view className="foot">已经到底了~</view>
400 401
       </view>
402
+        }
401 403
     </scroll-view>
402 404
   );
403 405
 };

+ 3
- 3
src/components/List/index.jsx Целия файл

@@ -1,4 +1,4 @@
1
-import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
1
+import React, {  useEffect, useRef, useState } from 'react';
2 2
 import { ScrollView } from '@tarojs/components';
3 3
 import Taro from '@tarojs/taro';
4 4
 
@@ -6,7 +6,7 @@ export default (props) => {
6 6
   const {
7 7
     render,
8 8
     request,
9
-    params,
9
+    params={},
10 10
     pageSize = 10,
11 11
     onError,
12 12
     onDataChange,
@@ -15,7 +15,7 @@ export default (props) => {
15 15
   } = props
16 16
 
17 17
   const loadingRef = useRef(false)
18
-  const [payload, setPayload] = useState({})
18
+  const [payload, setPayload] = useState(params)
19 19
   const [list, setList] = useState([])
20 20
   const pageRef = useRef({ current: 1, pages: 0 })
21 21
   const hasMore = pageRef.current.current < pageRef.current.pages

+ 2
- 2
src/components/foodCards/foodCards.jsx Целия файл

@@ -71,7 +71,7 @@ export default (props) => {
71 71
             </view>
72 72
             <view className='address'>
73 73
               <image className='dw' src={wz} />
74
-              <text className='wz'>{city.areaPName}/{city.areaName}</text>
74
+              <text className='wz'>{city.areaName=='南京市'?city.areaName:city.areaPName+'/'+city.areaName}</text>
75 75
               <view style={{ display: 'inline-block' }} onClick={toggleSave}>
76 76
                 <image className='star' src={isSaved > 0 ? ax : good}></image>
77 77
                 <text className='collection'>{isSaved > 0 ? '已收藏' : '加入收藏'}</text>
@@ -80,7 +80,7 @@ export default (props) => {
80 80
           </view>
81 81
         </view>
82 82
       </view>
83
-      <view className='fCright' onClick={() => { Taro.navigateTo({ url: `/pages/PayOrder/index?packageId=${item.packageId}` }); }}>
83
+      <view className='fCright' onClick={() => { Taro.navigateTo({ url: `/pages/PayOrder/index?packageId=${item.packageId}`}); }}>
84 84
         <image src={pay} />
85 85
         <view>支付</view>
86 86
       </view>

+ 2
- 2
src/hotel/components/Income/income.jsx Целия файл

@@ -54,7 +54,7 @@ export default (props) => {
54 54
             <view className='sleft'>
55 55
               <view className='lword'>全年收入(税前)</view>
56 56
               <view className='yearMoney'>
57
-                <text>{isyear ? account?.amounts : '******'}</text>元
57
+                <text>{isyear ? account?.amounts/100 : '******'}</text>元
58 58
                 <image className='micon' src={isyear ? eyes : ceyes} onClick={handleYear} />
59 59
               </view>
60 60
             </view>
@@ -62,7 +62,7 @@ export default (props) => {
62 62
             <view className='sright'>
63 63
               <view className='rword'>当月收入(税前)</view>
64 64
               <view className='monthMoney'>
65
-                <text>{isMomth ? account?.currentCharges : '******'}</text>元
65
+                <text>{isMomth ? account?.currentCharges/100 : '******'}</text>元
66 66
                 <image className='micon2' src={isMomth ? eyes : ceyes} onClick={handleMonth}></image>
67 67
               </view></view>
68 68
           </view>

+ 0
- 14
src/pages/MineUserAll/AllOrder/index.jsx Целия файл

@@ -51,20 +51,6 @@ export default withLayout((props) => {
51 51
     const { index } = e.detail
52 52
     setActiveTab(index)
53 53
   }
54
-
55
-  const abccc = () => [
56
-    Taro.getSystemInfo({
57
-      success: function (res) {
58
-        let clientHeight = res.windowHeight;
59
-        let clientWidth = res.windowWidth;
60
-        let ratio = 750 / clientWidth;
61
-        let Height = ratio * clientHeight;
62
-        setSwiperHeight(`height:${Height}rpx;`)
63
-      }
64
-    })
65
-  ]
66
-
67
-
68 54
   return (
69 55
     <view className='box-content'>
70 56
       <CustomNav title='我的订单' />

+ 1
- 1
src/pages/MineUserAll/Collect/index.jsx Целия файл

@@ -24,7 +24,7 @@ export default withLayout((props) => {
24 24
   return (
25 25
     <view className='box-content'>
26 26
       <CustomNav title='我的收藏' />
27
-      <view>
27
+      <view >
28 28
         {
29 29
           collectContent.map((item, index) => { return <MyCollect key={(index)} item={item} /> })
30 30
         }

+ 3
- 2
src/pages/index/tabs/Recommend.jsx Целия файл

@@ -5,8 +5,8 @@ import locationimg from '@/assets/icons/housemantj/location.png'
5 5
 import Tip from '@/components/tip'
6 6
 import List from '@/components/List';
7 7
 import { getIndexType, getResourceList } from '@/services/home'
8
-import NoData from '@/components/NoData'
9 8
 import Card from '../components/Card'
9
+import NoData from '@/components/NoData'
10 10
 import './less/Recommend.less'
11 11
 
12 12
 
@@ -24,6 +24,7 @@ export default (props) => {
24 24
   const tabs = [{ title: '附近' }].concat(typeList.map(x => ({ ...x, title: x.typeName })))
25 25
   //切换上面的标签
26 26
   const handleTabChange = (e) => {
27
+    // Taro.pageScrollTo({ scrollTop: 0 })为什么不能置顶
27 28
     const { index } = e.detail
28 29
     setActiveTab(index)
29 30
     const tab = tabs[index].typeId
@@ -82,7 +83,7 @@ export default (props) => {
82 83
       >
83 84
         {
84 85
           alllist.length == 0 ?
85
-          <NoData />:
86
+            <NoData /> :
86 87
             <view className='waterfall'>
87 88
               {
88 89
                 alllist.map((item) => <Card key={item.resourceNo} item={item} />)