This commit is contained in:
Austin 2026-07-21 23:27:37 +08:00
parent c7239ce3f4
commit 85a8e7f9bd
4 changed files with 10 additions and 10 deletions

View File

@ -31,7 +31,7 @@ export const PROPERTY_APP = {
ALIPAY_APP_ID: '', ALIPAY_APP_ID: '',
BIND_HOUSE_PATH: 'pagesC/certification/index?from=cashier', BIND_HOUSE_PATH: 'pagesC/certification/index?from=cashier',
MINE_PATH: 'pages/mine/mine', MINE_PATH: 'pages/mine/mine',
/** 物业基金页(微信端「物业基金」入口) */ /** 物业抵扣金页(微信端入口) */
POINTS_PATH: 'pagesE/points/index', POINTS_PATH: 'pagesE/points/index',
WECHAT_APP_ID: 'wx02de0e1de9f4bda3' WECHAT_APP_ID: 'wx02de0e1de9f4bda3'
} as const; } as const;

View File

@ -62,7 +62,7 @@ const amount = ref('0.00');
const accumulation = ref('0.00'); const accumulation = ref('0.00');
const merchantName = ref(''); const merchantName = ref('');
const merchantUrl = ref(''); const merchantUrl = ref('');
const scoreName = ref('物业公积金'); const scoreName = ref('物业抵扣金');
const tradeNo = ref(''); const tradeNo = ref('');
const status = ref<ResultStatus>('pending'); const status = ref<ResultStatus>('pending');
const statusMessage = ref('支付结果确认超时,请稍后在付款记录中查看'); const statusMessage = ref('支付结果确认超时,请稍后在付款记录中查看');
@ -151,7 +151,7 @@ onLoad((options: any) => {
accumulation.value = options?.accumulation || '0.00'; accumulation.value = options?.accumulation || '0.00';
merchantName.value = decodeOption(options?.merchant_name || options?.merchantName); merchantName.value = decodeOption(options?.merchant_name || options?.merchantName);
merchantUrl.value = decodeOption(options?.merchant_url || options?.url); merchantUrl.value = decodeOption(options?.merchant_url || options?.url);
scoreName.value = decodeOption(options?.score_name) || '物业公积金'; scoreName.value = decodeOption(options?.score_name) || '物业抵扣金';
tradeNo.value = decodeOption(options?.trade_no || options?.order_id || options?.orderId); tradeNo.value = decodeOption(options?.trade_no || options?.order_id || options?.orderId);
pollTradeStatus(); pollTradeStatus();
}); });

View File

@ -10,7 +10,7 @@
<view class="fund-card-left"> <view class="fund-card-left">
<image class="fund-icon-image" :src="fundIconUrl" mode="aspectFit" /> <image class="fund-icon-image" :src="fundIconUrl" mode="aspectFit" />
<view class="fund-text"> <view class="fund-text">
<text class="fund-title">物业</text> <text class="fund-title">物业抵扣</text>
<text class="fund-desc">{{ propertyFundDesc }}</text> <text class="fund-desc">{{ propertyFundDesc }}</text>
</view> </view>
</view> </view>
@ -46,7 +46,7 @@ const platformScoreText = ref('0.00');
const loading = ref(false); const loading = ref(false);
// #ifndef MP-ALIPAY // #ifndef MP-ALIPAY
const fundIconUrl = `${APP_CONFIG.PROPERTY_IMG_URL}property/new/cashier/fangwu.png`; const fundIconUrl = `${APP_CONFIG.PROPERTY_IMG_URL}property/new/cashier/fangwu.png`;
const propertyFundDesc = '查看我的物业金余额'; const propertyFundDesc = '查看我的物业抵扣金余额';
// #endif // #endif
const loadPlatformScore = async () => { const loadPlatformScore = async () => {

View File

@ -225,7 +225,7 @@ const amount = ref('');
const remark = ref(''); const remark = ref('');
const paying = ref(false); const paying = ref(false);
const activeMerchantUrl = ref(''); const activeMerchantUrl = ref('');
const scoreName = ref('物业公积金'); const scoreName = ref('物业抵扣金');
const propertyName = ref(''); const propertyName = ref('');
const propertyMerchantId = ref(''); const propertyMerchantId = ref('');
const propertyList = ref<MerchantListItem[]>([]); const propertyList = ref<MerchantListItem[]>([]);
@ -245,7 +245,7 @@ const accumulationAmount = computed(() => {
return value.toFixed(2); return value.toFixed(2);
}); });
const showBenefitTip = computed(() => Number(merchant.value.accumulationRate) > 0); const showBenefitTip = computed(() => Number(merchant.value.accumulationRate) > 0);
const benefitTitle = computed(() => `预计获得${scoreName.value || '物业公积金'}`); const benefitTitle = computed(() => `预计获得${scoreName.value || '物业抵扣金'}`);
/** 商户名越长字号越小,尽量单行展示「向 xxx 付款」 */ /** 商户名越长字号越小,尽量单行展示「向 xxx 付款」 */
const merchantNameFontSize = computed(() => { const merchantNameFontSize = computed(() => {
const len = String(merchant.value.name || '').trim().length; const len = String(merchant.value.name || '').trim().length;
@ -442,7 +442,7 @@ const resetToEmptyMerchantState = () => {
propertyList.value = []; propertyList.value = [];
propertySheetVisible.value = false; propertySheetVisible.value = false;
alipayPropertyUnbound.value = false; alipayPropertyUnbound.value = false;
scoreName.value = '物业公积金'; scoreName.value = '物业抵扣金';
clearPendingMerchantUrl(); clearPendingMerchantUrl();
clearActiveMerchantContext(); clearActiveMerchantContext();
}; };
@ -528,7 +528,7 @@ const initWithMerchantUrl = async (
propertyList.value = []; propertyList.value = [];
propertySheetVisible.value = false; propertySheetVisible.value = false;
alipayPropertyUnbound.value = false; alipayPropertyUnbound.value = false;
scoreName.value = '物业公积金'; scoreName.value = '物业抵扣金';
applySupplierInfo(supplierResult.supplier); applySupplierInfo(supplierResult.supplier);
await loadPropertyBinding(merchantUrl); await loadPropertyBinding(merchantUrl);
} catch (error: any) { } catch (error: any) {
@ -693,7 +693,7 @@ const deleteKey = () => {
const showAlipayUnboundTip = () => { const showAlipayUnboundTip = () => {
uni.showModal({ uni.showModal({
title: '暂未绑定房源', title: '暂未绑定房源',
content: `请搜索并进入「${PROPERTY_APP.WECHAT_NAME}」小程序,完成房源绑定后消费即可获得物业金。`, content: `请搜索并进入「${PROPERTY_APP.WECHAT_NAME}」小程序,完成房源绑定后消费即可获得物业抵扣金。`,
showCancel: false, showCancel: false,
confirmText: '知道了' confirmText: '知道了'
}); });