feat: 单据收起汇总明细,CDN改新地址并升至1.1.18

This commit is contained in:
2026-11-06 20:27:03 +08:00
parent 69608b92d7
commit 5557819e64
29 changed files with 662 additions and 524 deletions
-24
View File
@@ -111,7 +111,6 @@
<view class="version-info">
<text class="version-text">版本: {{ appVersion }}</text>
<text class="env-text" v-if="envName">({{ envName }})</text>
<text class="check-upgrade-btn" @click="checkUpgrade">{{ checkingUpgrade ? '检查中...' : '检查更新' }}</text>
</view>
</view>
</template>
@@ -139,7 +138,6 @@ export default {
password: ""
},
showApiUrlPicker: false,
checkingUpgrade: false,
// 登录默认正式环境,本地已选过的地址仍会在 onShow 里恢复
selectedApiUrl: (config.devApiUrlOptions.find(item => item.label === '正式环境') || {}).value || config.productionApiUrl,
customApiUrl: 'http://192.168.1.66:50002/hcscm/pda/v1',
@@ -433,19 +431,8 @@ export default {
autoCheckUpgrade() {
this.runUpgradeCheck({ silentWhenLatest: true });
},
// 手动检查版本更新
checkUpgrade() {
if (this.checkingUpgrade) return;
// #ifndef APP-PLUS
this.$u.toast('小程序端或H5端已是最新版,无需检查更新!');
// #endif
// #ifdef APP-PLUS
this.runUpgradeCheck({ silentWhenLatest: false });
// #endif
},
runUpgradeCheck({ silentWhenLatest }) {
const self = this;
this.checkingUpgrade = true;
app_upgrade(async () => {
try {
const appInfo = await new Promise((resolve) => {
@@ -474,8 +461,6 @@ export default {
self.$u.toast('检查更新失败,请稍后重试');
}
return { status: 0 };
} finally {
self.checkingUpgrade = false;
}
}, 1);
},
@@ -639,15 +624,6 @@ export default {
color: #5473e8;
margin-left: 10rpx;
}
.check-upgrade-btn {
font-size: 34rpx;
color: #5473e8;
margin-left: 24rpx;
padding: 16rpx 8rpx;
min-height: 64rpx;
line-height: 64rpx;
}
</style>
<style lang="scss" scoped>
.login-env-picker {