@uxda/appkit 4.3.25 → 4.3.26

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,9 @@ 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
+ amounts.value = amounts.value.filter((item) => item.paymentAmount === 5e3);
3975
+ }
3973
3976
  emit("loaded");
3974
3977
  });
3975
3978
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.3.25",
3
+ "version": "4.3.26",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -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 { isAlipay,isAndroid,isChrome,isIOS,isSafari,isWechat } from '../../shared/composables/useDeviceEnv'
111
+ import { isWechat } from '../../shared/composables/useDeviceEnv'
112
112
 
113
113
  // 充值用户界面
114
114
  // 配置了必须的属性后
@@ -222,6 +222,10 @@ 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
+ amounts.value = amounts.value.filter((item: any) => item.paymentAmount === 5000)
228
+ }
225
229
  emit('loaded')
226
230
  })
227
231
  })