Browse Source

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

张延森 3 years ago
parent
commit
f066d584bd

+ 6
- 3
src/components/CompoentsOrder/complete/index.jsx View File

41
       pageSize: 10,
41
       pageSize: 10,
42
       ...(type !== undefined ? dict[type] : null),
42
       ...(type !== undefined ? dict[type] : null),
43
     }).then((res) => {
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
       setHasNextPage(res.current < res.pages);
50
       setHasNextPage(res.current < res.pages);
48
       setLoading(false)
51
       setLoading(false)
49
 
52
 

+ 1
- 6
src/pages/MineUserAll/ContactMe/index.jsx View File

24
         content
24
         content
25
       }).then(() => {
25
       }).then(() => {
26
         Taro.showToast({
26
         Taro.showToast({
27
-          title: '我们已经收到亲亲的反馈了哟~',
27
+          title: '收到啦~',
28
           icon: 'success',
28
           icon: 'success',
29
           duration: 1500
29
           duration: 1500
30
         }).then(
30
         }).then(
57
         <view className='weChate-image' >
57
         <view className='weChate-image' >
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' />
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
         </view>
59
         </view>
60
-
61
         <view className='button-info'>
60
         <view className='button-info'>
62
-
63
           <Button className='button-box' onClick={submit} loading={loading}  >提交</Button>
61
           <Button className='button-box' onClick={submit} loading={loading}  >提交</Button>
64
-
65
           <Button className='button-box-Cancel' onClick={back} >取消</Button>
62
           <Button className='button-box-Cancel' onClick={back} >取消</Button>
66
-
67
         </view>
63
         </view>
68
-
69
       </view>
64
       </view>
70
     </view >
65
     </view >
71
   )
66
   )