restore: 恢复橙色逍遥梦UI版本(2ea2860)到主分支
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -46,6 +46,8 @@ export const STAFF_API = {
|
||||
penaltyApply: `${STAFF_PREFIX}/order/penalty-apply`,
|
||||
penaltyManage: `${STAFF_PREFIX}/order/penalty-manage`,
|
||||
changePlayer: `${STAFF_PREFIX}/order/change-player`,
|
||||
orderStats: `${STAFF_PREFIX}/order/stats`,
|
||||
memberUpdateRemark: `${STAFF_PREFIX}/member/update-remark`,
|
||||
};
|
||||
|
||||
export function getStaffContext() {
|
||||
@@ -222,8 +224,9 @@ export function syncStaffUi(page) {
|
||||
const ctx = staff ? (getStaffContext() || {}) : null;
|
||||
const wallet = (ctx && ctx.wallet) || {};
|
||||
const portal = isMerchantPortalUser();
|
||||
const staffFlag = Number(wx.getStorageSync('staffstatus')) === 1;
|
||||
page.setData({
|
||||
isShangjia: portal,
|
||||
isShangjia: portal || staffFlag || !!(page.data && page.data.isShangjia),
|
||||
isStaffMode: staff,
|
||||
isMerchantOwner: !staff && Number(wx.getStorageSync('shangjiastatus')) === 1,
|
||||
staffRoleName: staff ? (ctx.role_name || '客服') : '',
|
||||
|
||||
Reference in New Issue
Block a user