chore: 抢单池机甲UI改造前备份当前工作区
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user