Browse Source

Merge branch 'main' of http://git.ycjcjy.com/marketing/miniapp into main

Your Name 3 years ago
parent
commit
4a819eccfe

+ 1
- 1
src/subpackages/pages/marketing/components/ResidentListItem/index.jsx View File

41
           <text className='Status'>已报备</text>
41
           <text className='Status'>已报备</text>
42
         } */}
42
         } */}
43
         {
43
         {
44
-          data.customerStatus - 0 === 1 && Status - 0 !== 3 &&
44
+          !data.visitStatus &&
45
           <text className='Status' onClick={() => { Taro.navigateTo({ url: `/subpackages/pages/marketing/sureVisit/index?id=${data.id}` }) }}>到访确认</text>
45
           <text className='Status' onClick={() => { Taro.navigateTo({ url: `/subpackages/pages/marketing/sureVisit/index?id=${data.id}` }) }}>到访确认</text>
46
         }
46
         }
47
       </view>
47
       </view>

+ 1
- 1
src/utils/hooks/useFavor.js View File

5
 import track from '@/utils/tracking/track'
5
 import track from '@/utils/tracking/track'
6
 
6
 
7
 const addFavor = (type, id) => fetch({ url: resolvePath(`${type}/save/${id}`),  method: 'POST' })
7
 const addFavor = (type, id) => fetch({ url: resolvePath(`${type}/save/${id}`),  method: 'POST' })
8
-const cancelFavor = (type, id) => fetch({ url: resolvePath(`${type}/save/${id}`),  method: 'POST' })
8
+const cancelFavor = (type, id) => fetch({ url: resolvePath(`${type}/save/${id}`),  method: 'DELETE' })
9
 
9
 
10
 export default function(saved, options = {}) {
10
 export default function(saved, options = {}) {
11
   const { id, eventType } = options
11
   const { id, eventType } = options