Procházet zdrojové kódy

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

张延森 před 3 roky
rodič
revize
f066d584bd

+ 6
- 3
src/components/CompoentsOrder/complete/index.jsx Zobrazit soubor

@@ -41,9 +41,12 @@ export default (props) => {
41 41
       pageSize: 10,
42 42
       ...(type !== undefined ? dict[type] : null),
43 43
     }).then((res) => {
44
-      setList(
45
-        pageNum === 1 ? res.records || [] : list.concat(res.records || [])
46
-      );
44
+      if (pageNum === 1) {
45
+        setList(res.records || [])
46
+      } else {
47
+        setList(res.records || [])
48
+      }
49
+
47 50
       setHasNextPage(res.current < res.pages);
48 51
       setLoading(false)
49 52
 

+ 1
- 6
src/pages/MineUserAll/ContactMe/index.jsx Zobrazit soubor

@@ -24,7 +24,7 @@ export default withLayout((props) => {
24 24
         content
25 25
       }).then(() => {
26 26
         Taro.showToast({
27
-          title: '我们已经收到亲亲的反馈了哟~',
27
+          title: '收到啦~',
28 28
           icon: 'success',
29 29
           duration: 1500
30 30
         }).then(
@@ -57,15 +57,10 @@ export default withLayout((props) => {
57 57
         <view className='weChate-image' >
58 58
           <Image mode='aspectFit' src='https://yz-shigongli.oss-cn-shanghai.aliyuncs.com/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20210918145337.png' />
59 59
         </view>
60
-
61 60
         <view className='button-info'>
62
-
63 61
           <Button className='button-box' onClick={submit} loading={loading}  >提交</Button>
64
-
65 62
           <Button className='button-box-Cancel' onClick={back} >取消</Button>
66
-
67 63
         </view>
68
-
69 64
       </view>
70 65
     </view >
71 66
   )