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

File diff suppressed because one or more lines are too long

View File

@@ -12,27 +12,27 @@
<view
class="u-no-network"
>
<u-icon
<up-icon
:name="image"
size="150"
imgMode="widthFit"
class="u-no-network__error-icon"
></u-icon>
></up-icon>
<text class="u-no-network__tips">{{tips}}</text>
<!-- 只有APP平台才能跳转设置页因为需要调用plus环境 -->
<!-- #ifdef APP-PLUS -->
<view class="u-no-network__app">
<text class="u-no-network__app__setting">请检查网络或前往</text>
<text class="u-no-network__app__setting">{{ t("up.noNetwork.pleaseCheck") }}</text>
<text
class="u-no-network__app__to-setting"
@tap="openSettings"
>设置</text>
>{{ t("up.common.settings") }}</text>
</view>
<!-- #endif -->
<view class="u-no-network__retry">
<u-button
size="mini"
text="重试"
:text="t('up.common.retry')"
type="primary"
plain
@click="retry"
@@ -47,6 +47,7 @@
import { mpMixin } from '../../libs/mixin/mpMixin';
import { mixin } from '../../libs/mixin/mixin';
import { toast, getDeviceInfo } from '../../libs/function/index';
import { t } from '../../libs/i18n'
/**
* noNetwork 无网络提示
* @description 该组件无需任何配置,引入即可,内部自动处理所有功能和事件。
@@ -87,6 +88,7 @@
},
emits: ["disconnected", "connected"],
methods: {
t,
retry() {
// 重新检查网络
uni.getNetworkType({
@@ -94,10 +96,10 @@
this.networkType = res.networkType
this.emitEvent(this.networkType)
if (res.networkType == 'none') {
toast('无网络连接')
toast(t("up.noNetwork.disconnect"))
this.isConnected = false
} else {
toast('网络已连接')
toast(t("up.noNetwork.connect"))
this.isConnected = true
}
}
@@ -184,7 +186,6 @@
</script>
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-no-network {
@include flex(column);