chore: 抢单池机甲UI改造前备份当前工作区

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-06-29 19:14:03 +08:00
parent e8fb32c1fe
commit 8093497c51
6 changed files with 101 additions and 84 deletions

View File

@@ -10,3 +10,18 @@ export function openCustomerServiceChat() {
url: '/pages/cs-chat/cs-chat?data=' + encodeURIComponent(JSON.stringify(param)),
});
}
/** 与打手「我的」页在线客服同一图标beijing/tubiao/grzx_kefu.jpg */
export function resolveKefuIconUrl(app) {
app = app || getApp();
const rel = 'beijing/tubiao/grzx_kefu.jpg';
let base = (app.globalData && app.globalData.ossImageUrl) || '';
if (!base && typeof app.readConfigFromStorage === 'function') {
try {
const cached = app.readConfigFromStorage();
base = (cached && cached.cos && cached.cos.ossImageUrl) || '';
} catch (e) {}
}
if (!base) return '';
return base.endsWith('/') ? base + rel : base + rel;
}