refactor: 统一移除局部金额格式化过滤器并全局复用

1. 移除多个页面/组件内重复的moneyFormat局部过滤器
2. 将moneyFormat方法提取到全局配置中复用
3. 调整登录弹窗跳转模式适配H5场景
4. 新增open方法调试日志方便排查
This commit is contained in:
2026-06-27 17:14:03 +08:00
parent f794a2ae27
commit 0b760e41a3
9 changed files with 16 additions and 35 deletions

View File

@@ -77,7 +77,7 @@ export default {
// 鸿蒙下 ArkUI 对 slot 内 Vue 响应式更新失效,数据加载后强制重建 slot DOM
// 通过把 listSlotKey 自增,使 :key 变化,触发整个 slot 子树销毁重建
const oldUpCallback = this.upCallback;
this.upCallback = function() {
this.upCallback = () => {
const ret = oldUpCallback.apply(this, arguments);
// 数据回来后 200ms 自增 key,强制 slot DOM 重建
setTimeout(() => {

View File

@@ -254,6 +254,7 @@ export default {
// 打开弹窗
open(url = '', mode = 'navigateTo') {
console.log(`------> ns-login.open`, url);
if (url) this.url = url;
// #ifdef MP-WEIXIN
this.getCode(authData => {