Kaynağa Gözat

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

Your Name 3 yıl önce
ebeveyn
işleme
4a819eccfe

+ 1
- 1
src/subpackages/pages/marketing/components/ResidentListItem/index.jsx Dosyayı Görüntüle

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

+ 1
- 1
src/utils/hooks/useFavor.js Dosyayı Görüntüle

@@ -5,7 +5,7 @@ import { resolvePath } from '@/constants/api'
5 5
 import track from '@/utils/tracking/track'
6 6
 
7 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 10
 export default function(saved, options = {}) {
11 11
   const { id, eventType } = options