shinnosuke
2026-08-31 cb5a42c97fe9ae23b891bdc3231dc8eb100de218
rencaika/pages/benefits/benefits.uvue
@@ -69,6 +69,7 @@
   import { getMerchants } from '../../services/portal.uts'
   import { resolveApiUrl } from '../../services/http.uts'
   import { getSession } from '../../services/session.uts'
   import { openMerchantDetail } from '../../utils/merchant-navigation.uts'
   const navTop = ref(28)
   const navHeight = ref(32)
@@ -157,6 +158,9 @@
            id: '' + item.id,
            name: item.merchantName != null ? item.merchantName as string : '人才权益商户',
            merchantType: merchantType,
            detailType: item.detailType != null ? item.detailType as string : 'MERCHANT',
            detailBusinessId: item.detailBusinessId != null ? '' + item.detailBusinessId : '' + item.id,
            targetAction: item.targetAction != null ? item.targetAction as string : 'MERCHANT',
            hasCoupon: hasCoupon,
            discount: discount,
            tags: tags,
@@ -242,13 +246,7 @@
      }
      uni.showToast({ title: '已选择' + name, icon: 'none' })
   }
   const openMerchant = (item: any) => uni.navigateTo({
      url: '/pages/merchant/merchant?merchantType=' + encodeURIComponent(item.merchantType != null ? item.merchantType : 'food') + '&merchantId=' + encodeURIComponent(item.id)
         + '&name=' + encodeURIComponent(item.name)
         + '&image=' + encodeURIComponent(item.image)
         + '&address=' + encodeURIComponent(item.address)
         + '&discount=' + encodeURIComponent(item.discount)
   })
   const openMerchant = (item: any) => openMerchantDetail(item)
   const loadMoreBenefits = () => {
      if (initialLoading.value || loadingMore.value || !hasMoreBenefits.value) return
      loadMoreError.value = false