uview-plus组件库全面升级更新,订单结算判断支付方式是否可用代码调整,公众号关注二维码修改

This commit is contained in:
2025-10-21 10:44:31 +08:00
parent 5d98b7efc2
commit 5f3a307fec
395 changed files with 31264 additions and 2477 deletions

View File

@@ -237,6 +237,13 @@ export function object(value) {
return Object.prototype.toString.call(value) === '[object Object]'
}
/**
* 是否是Promise对象
*/
export function objectPromise(value) {
return Object.prototype.toString.call(value) === '[object Promise]';
}
/**
* 是否短信验证码
*/
@@ -257,7 +264,7 @@ export function func(value) {
* @param {Object} value
*/
export function promise(value) {
return object(value) && func(value.then) && func(value.catch)
return objectPromise(value) && func(value.then) && func(value.catch)
}
/** 是否图片格式