| | |
| | | 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) |
| | |
| | | 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, |
| | |
| | | } |
| | | 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 |