@uxda/appkit 4.3.25 → 4.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -3970,6 +3970,12 @@ var script$A = /* @__PURE__ */ defineComponent({
|
|
|
3970
3970
|
}).then((res) => {
|
|
3971
3971
|
balance.value = res.balance;
|
|
3972
3972
|
amounts.value = res.paymentCaseConfigVOS;
|
|
3973
|
+
if (!props.headerApp) {
|
|
3974
|
+
const has5000 = amounts.value.some((item) => item.paymentAmount === 5e3);
|
|
3975
|
+
if (has5000) {
|
|
3976
|
+
amounts.value = amounts.value.filter((item) => item.paymentAmount === 5e3);
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3973
3979
|
emit("loaded");
|
|
3974
3980
|
});
|
|
3975
3981
|
});
|
package/package.json
CHANGED
|
@@ -108,7 +108,7 @@ import { endpoints as balanceEndpoints } from "../../balance/api";
|
|
|
108
108
|
import { requestBrandWCPayByBean, requestPaymentByBean } from '../services'
|
|
109
109
|
import Taro, { showToast, useRouter, showModal } from '@tarojs/taro'
|
|
110
110
|
import { useAmount } from '../../shared/composables/useAmount'
|
|
111
|
-
import {
|
|
111
|
+
import { isWechat } from '../../shared/composables/useDeviceEnv'
|
|
112
112
|
|
|
113
113
|
// 充值用户界面
|
|
114
114
|
// 配置了必须的属性后
|
|
@@ -222,6 +222,13 @@ onMounted(() => {
|
|
|
222
222
|
}).then((res: any) => {
|
|
223
223
|
balance.value = res.balance
|
|
224
224
|
amounts.value = res.paymentCaseConfigVOS
|
|
225
|
+
// 如果没有应用权限,只显示5000元多充值档位
|
|
226
|
+
if (!props.headerApp) {
|
|
227
|
+
const has5000 = amounts.value.some((item: any) => item.paymentAmount === 5000)
|
|
228
|
+
if (has5000) {
|
|
229
|
+
amounts.value = amounts.value.filter((item: any) => item.paymentAmount === 5000)
|
|
230
|
+
}
|
|
231
|
+
}
|
|
225
232
|
emit('loaded')
|
|
226
233
|
})
|
|
227
234
|
})
|