backup: 子客服改造前保本版本(逍遥梦UI+商家客服页mock)
This commit is contained in:
@@ -1,242 +1,288 @@
|
||||
// pages/shangjiazhongxin/shangjiiazhongxin.js
|
||||
|
||||
import { createPage, ensureRoleOnCenterPage, lockPrimaryRole, parseSceneOptions } from '../../utils/base-page.js';
|
||||
import { ensureLogin } from '../../utils/login.js';
|
||||
|
||||
const app = getApp();
|
||||
|
||||
Page(createPage({
|
||||
data: {
|
||||
// 图片资源
|
||||
imgUrls: {
|
||||
pageBg: '',
|
||||
avatarCardBg: '',
|
||||
assetCardBg: '',
|
||||
statCardBg: '',
|
||||
funcItemBg: '',
|
||||
primaryFuncBg: '',
|
||||
highlightFuncBg: '',
|
||||
iconRelease: '',
|
||||
iconFast: '',
|
||||
iconOrders: '',
|
||||
iconService: '',
|
||||
iconPunish: '',
|
||||
iconRank: '',
|
||||
iconRecharge: '',
|
||||
iconWithdraw: '',
|
||||
iconRefresh: '',
|
||||
iconCopy: '',
|
||||
avatarFrame: '',
|
||||
iconClear: '',
|
||||
},
|
||||
|
||||
// 商家状态
|
||||
isShangjia: false,
|
||||
isAutoRegistering: false,
|
||||
|
||||
// 用户基础信息
|
||||
uid: '',
|
||||
avatarUrl: '',
|
||||
nicheng: '',
|
||||
|
||||
// 商家核心数据
|
||||
sjyue: '0.00',
|
||||
fabu: 0,
|
||||
tuikuan: 0,
|
||||
jinriliushui: '0.00',
|
||||
jinyueliushui: '0.00',
|
||||
jinridingdan: 0,
|
||||
jinrituikuan: 0,
|
||||
chenghaoList: [],
|
||||
|
||||
// 交互控制
|
||||
inviteCode: '',
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
const parsed = parseSceneOptions(options);
|
||||
this.setupImageUrls();
|
||||
this.checkRoleStatus();
|
||||
|
||||
const inviteCode = parsed.inviteCode;
|
||||
if (inviteCode) {
|
||||
this.setData({ inviteCode });
|
||||
setTimeout(() => this.handleInviteCodeWithLoginCheck({
|
||||
inviteCode,
|
||||
role: 'shangjia',
|
||||
statusKey: 'shangjiastatus',
|
||||
alreadyMsg: '您已是商家',
|
||||
onNeedLogin: (code) => {
|
||||
this.setData({ inviteCode: code });
|
||||
ensureLogin({ silent: false, page: this })
|
||||
.then(() => {
|
||||
if (!this.data.isShangjia) {
|
||||
wx.showLoading({ title: '商家注册中...', mask: true });
|
||||
this.setData({ isAutoRegistering: true });
|
||||
this.onRegister();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
onAlreadyRegistered: () => {
|
||||
wx.showToast({ title: '您已是商家', icon: 'success' });
|
||||
ensureRoleOnCenterPage(this, 'shangjia');
|
||||
},
|
||||
}), 500);
|
||||
}
|
||||
|
||||
this.checkColdStartPopup('shangjiaduan');
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.registerNotificationComponent();
|
||||
if (this.data.isShangjia) {
|
||||
ensureRoleOnCenterPage(this, 'shangjia');
|
||||
this.refreshShangjiaInfo();
|
||||
}
|
||||
},
|
||||
|
||||
// 图片路径初始化
|
||||
setupImageUrls() {
|
||||
const ossBase = app.globalData.ossImageUrl || '';
|
||||
const imgDir = `${ossBase}beijing/shangjiaduan/`;
|
||||
this.setData({
|
||||
imgUrls: this.initImageUrls({
|
||||
pageBg: `${imgDir}page_bg.png`,
|
||||
avatarCardBg: `${imgDir}avatar_card_bg.png`,
|
||||
assetCardBg: `${imgDir}asset_card_bg.png`,
|
||||
statCardBg: `${imgDir}stat_card_bg.png`,
|
||||
funcItemBg: `${imgDir}func_item_bg.png`,
|
||||
primaryFuncBg: `${imgDir}primary_func_bg.png`,
|
||||
highlightFuncBg: `${imgDir}highlight_func_bg.png`,
|
||||
iconRelease: `${imgDir}icon_release.png`,
|
||||
iconFast: `${imgDir}icon_fast.png`,
|
||||
iconOrders: `${imgDir}icon_orders.png`,
|
||||
iconService: `${imgDir}icon_service.png`,
|
||||
iconPunish: `${imgDir}icon_punish.png`,
|
||||
iconRank: `${imgDir}icon_rank.png`,
|
||||
iconRecharge: `${imgDir}icon_recharge.png`,
|
||||
iconWithdraw: `${imgDir}icon_withdraw.png`,
|
||||
iconRefresh: `${imgDir}icon_refresh.png`,
|
||||
iconCopy: `${imgDir}icon_copy.png`,
|
||||
avatarFrame: `${imgDir}avatar_frame.png`,
|
||||
iconClear: `${ossBase}beijing/tubiao/grzx_qingchu.jpg`,
|
||||
iconSwitch: '/images/_exit.png',
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
// 商家状态检查(覆盖基类 checkRoleStatus,增加 getShangjiaInfo 调用)
|
||||
checkRoleStatus() {
|
||||
try {
|
||||
const shangjiastatus = wx.getStorageSync('shangjiastatus');
|
||||
const uid = wx.getStorageSync('uid');
|
||||
if (shangjiastatus) {
|
||||
this.setData({ isShangjia: true, uid: uid || '' });
|
||||
this.loadAvatar();
|
||||
this.getShangjiaInfo();
|
||||
ensureRoleOnCenterPage(this, 'shangjia');
|
||||
} else {
|
||||
this.setData({ isShangjia: false });
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('读取商家状态失败', error);
|
||||
this.setData({ isShangjia: false });
|
||||
}
|
||||
},
|
||||
|
||||
// 获取商家信息
|
||||
async getShangjiaInfo() {
|
||||
await this.loadData({
|
||||
url: '/yonghu/shangjiaxinxi',
|
||||
method: 'POST',
|
||||
successCode: 200,
|
||||
errorMsg: '获取商家信息失败',
|
||||
onSuccess: (data) => {
|
||||
// 更新全局缓存
|
||||
app.globalData.shangjia = data;
|
||||
wx.setStorageSync('shangjiastatus', 1);
|
||||
|
||||
const chenghaoList = data.chenghao_list || [];
|
||||
|
||||
this.setData({
|
||||
nicheng: data.nicheng || '',
|
||||
sjyue: data.sjyue || '0.00',
|
||||
fabu: data.fadanzong || 0,
|
||||
tuikuan: data.tuikuanzong || 0,
|
||||
jinriliushui: data.riliushui || '0.00',
|
||||
jinyueliushui: data.yueliushui || '0.00',
|
||||
jinridingdan: data.jinripaidan || 0,
|
||||
jinrituikuan: data.jinrituikuan || 0,
|
||||
chenghaoList: chenghaoList,
|
||||
isLoading: false,
|
||||
});
|
||||
|
||||
if (this.data.isAutoRegistering) {
|
||||
this.setData({ isAutoRegistering: false });
|
||||
wx.showToast({ title: '商家注册成功', icon: 'success' });
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
refreshShangjiaInfo() {
|
||||
this.throttledRefresh(() => this.getShangjiaInfo());
|
||||
},
|
||||
|
||||
async onRegister() {
|
||||
const { inviteCode } = this.data;
|
||||
await this.registerWithInviteCode({
|
||||
inviteCode,
|
||||
apiUrl: '/yonghu/shangjiahuce',
|
||||
role: 'shangjia',
|
||||
statusKey: 'shangjiastatus',
|
||||
successMsg: '商家注册成功',
|
||||
onSuccess: (userData) => {
|
||||
app.globalData.shangjia = userData;
|
||||
const chenghaoList = userData.chenghao_list || [];
|
||||
this.setData({
|
||||
isShangjia: true,
|
||||
nicheng: userData.nicheng || '',
|
||||
sjyue: userData.sjyue || '0.00',
|
||||
fabu: userData.fabu || 0,
|
||||
tuikuan: userData.tuikuan || 0,
|
||||
jinriliushui: userData.jinriliushui || '0.00',
|
||||
jinyueliushui: userData.jinyueliushui || '0.00',
|
||||
jinridingdan: userData.jinridingdan || 0,
|
||||
chenghaoList: chenghaoList,
|
||||
isAutoRegistering: false,
|
||||
});
|
||||
this.loadAvatar();
|
||||
ensureRoleOnCenterPage(this, 'shangjia');
|
||||
lockPrimaryRole('shangjia');
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
previewAvatar() {
|
||||
if (this.data.avatarUrl) {
|
||||
wx.previewImage({ urls: [this.data.avatarUrl] });
|
||||
}
|
||||
},
|
||||
|
||||
// 页面跳转
|
||||
goToPaiDan() { wx.navigateTo({ url: '/pages/merchant-dispatch/merchant-dispatch' }); },
|
||||
goToJiSuPaiDan() {
|
||||
wx.vibrateShort({ type: 'medium' });
|
||||
wx.navigateTo({ url: '/pages/express-order/express-order' });
|
||||
},
|
||||
goToMyOrders() { wx.navigateTo({ url: '/pages/merchant-orders/merchant-orders' }); },
|
||||
goToRecharge() { wx.navigateTo({ url: '/pages/merchant-recharge/merchant-recharge' }); },
|
||||
goToWithdraw() { wx.navigateTo({ url: '/pages/withdraw/withdraw' }); },
|
||||
goToRanking() { wx.navigateTo({ url: '/pages/fighter-rank/fighter-rank?type=shangjia' }); },
|
||||
goToMessages() { wx.navigateTo({ url: '/pages/merchant-msg/merchant-msg' }); },
|
||||
}, {
|
||||
roleConfig: {
|
||||
role: 'shangjia',
|
||||
statusKey: 'shangjiastatus',
|
||||
dataFlag: 'isShangjia',
|
||||
pageId: 'shangjiaduan',
|
||||
apiUrl: '/yonghu/shangjiaxinxi',
|
||||
},
|
||||
}));
|
||||
// pages/shangjiazhongxin/shangjiiazhongxin.js
|
||||
|
||||
import { createPage, ensureRoleOnCenterPage, lockPrimaryRole, parseSceneOptions, request } from '../../utils/base-page.js';
|
||||
import { ensureLogin } from '../../utils/login.js';
|
||||
|
||||
const app = getApp();
|
||||
|
||||
Page(createPage({
|
||||
data: {
|
||||
// 图片资源
|
||||
imgUrls: {
|
||||
pageBg: '',
|
||||
avatarCardBg: '',
|
||||
assetCardBg: '',
|
||||
statCardBg: '',
|
||||
funcItemBg: '',
|
||||
primaryFuncBg: '',
|
||||
highlightFuncBg: '',
|
||||
iconRelease: '',
|
||||
iconFast: '',
|
||||
iconOrders: '',
|
||||
iconService: '',
|
||||
iconPunish: '',
|
||||
iconRank: '',
|
||||
iconRecharge: '',
|
||||
iconWithdraw: '',
|
||||
iconRefresh: '',
|
||||
iconCopy: '',
|
||||
avatarFrame: '',
|
||||
iconClear: '',
|
||||
},
|
||||
|
||||
// 商家状态
|
||||
isShangjia: false,
|
||||
isAutoRegistering: false,
|
||||
|
||||
// 用户基础信息
|
||||
uid: '',
|
||||
avatarUrl: '',
|
||||
nicheng: '',
|
||||
|
||||
// 商家核心数据
|
||||
sjyue: '0.00',
|
||||
fabu: 0,
|
||||
tuikuan: 0,
|
||||
jinriliushui: '0.00',
|
||||
jinyueliushui: '0.00',
|
||||
jinridingdan: 0,
|
||||
jinrituikuan: 0,
|
||||
chenghaoList: [],
|
||||
|
||||
// 交互控制
|
||||
inviteCode: '',
|
||||
pendingCount: 0,
|
||||
punishPending: 0,
|
||||
statusBar: 20,
|
||||
navBar: 44,
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
const sys = wx.getSystemInfoSync();
|
||||
this.setData({
|
||||
statusBar: sys.statusBarHeight || 20,
|
||||
navBar: (sys.statusBarHeight || 20) + 44,
|
||||
});
|
||||
const parsed = parseSceneOptions(options);
|
||||
this.setupImageUrls();
|
||||
this.checkRoleStatus();
|
||||
|
||||
const inviteCode = parsed.inviteCode;
|
||||
if (inviteCode) {
|
||||
this.setData({ inviteCode });
|
||||
setTimeout(() => this.handleInviteCodeWithLoginCheck({
|
||||
inviteCode,
|
||||
role: 'shangjia',
|
||||
statusKey: 'shangjiastatus',
|
||||
alreadyMsg: '您已是商家',
|
||||
onNeedLogin: (code) => {
|
||||
this.setData({ inviteCode: code });
|
||||
ensureLogin({ silent: false, page: this })
|
||||
.then(() => {
|
||||
if (!this.data.isShangjia) {
|
||||
wx.showLoading({ title: '商家注册中...', mask: true });
|
||||
this.setData({ isAutoRegistering: true });
|
||||
this.onRegister();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
onAlreadyRegistered: () => {
|
||||
wx.showToast({ title: '您已是商家', icon: 'success' });
|
||||
ensureRoleOnCenterPage(this, 'shangjia');
|
||||
},
|
||||
}), 500);
|
||||
}
|
||||
|
||||
this.checkColdStartPopup('shangjiaduan');
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.registerNotificationComponent();
|
||||
if (this.data.isShangjia) {
|
||||
ensureRoleOnCenterPage(this, 'shangjia');
|
||||
this.refreshShangjiaInfo();
|
||||
this.loadPendingCount();
|
||||
this.loadPunishPending();
|
||||
}
|
||||
},
|
||||
|
||||
// 图片路径初始化
|
||||
setupImageUrls() {
|
||||
const ossBase = app.globalData.ossImageUrl || '';
|
||||
const imgDir = `${ossBase}beijing/shangjiaduan/`;
|
||||
this.setData({
|
||||
imgUrls: this.initImageUrls({
|
||||
pageBg: `${imgDir}page_bg.png`,
|
||||
avatarCardBg: `${imgDir}avatar_card_bg.png`,
|
||||
assetCardBg: `${imgDir}asset_card_bg.png`,
|
||||
statCardBg: `${imgDir}stat_card_bg.png`,
|
||||
funcItemBg: `${imgDir}func_item_bg.png`,
|
||||
primaryFuncBg: `${imgDir}primary_func_bg.png`,
|
||||
highlightFuncBg: `${imgDir}highlight_func_bg.png`,
|
||||
iconRelease: `${imgDir}icon_release.png`,
|
||||
iconFast: `${imgDir}icon_fast.png`,
|
||||
iconOrders: `${imgDir}icon_orders.png`,
|
||||
iconService: `${imgDir}icon_service.png`,
|
||||
iconPunish: `${imgDir}icon_punish.png`,
|
||||
iconRank: `${imgDir}icon_rank.png`,
|
||||
iconRecharge: `${imgDir}icon_recharge.png`,
|
||||
iconWithdraw: `${imgDir}icon_withdraw.png`,
|
||||
iconRefresh: `${imgDir}icon_refresh.png`,
|
||||
iconCopy: `${imgDir}icon_copy.png`,
|
||||
avatarFrame: `${imgDir}avatar_frame.png`,
|
||||
iconClear: `${ossBase}beijing/tubiao/grzx_qingchu.jpg`,
|
||||
iconSwitch: '/images/_exit.png',
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
// 商家状态检查(覆盖基类 checkRoleStatus,增加 getShangjiaInfo 调用)
|
||||
checkRoleStatus() {
|
||||
try {
|
||||
const shangjiastatus = wx.getStorageSync('shangjiastatus');
|
||||
const uid = wx.getStorageSync('uid');
|
||||
if (shangjiastatus) {
|
||||
this.setData({ isShangjia: true, uid: uid || '' });
|
||||
this.loadAvatar();
|
||||
this.getShangjiaInfo();
|
||||
ensureRoleOnCenterPage(this, 'shangjia');
|
||||
} else {
|
||||
this.setData({ isShangjia: false });
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('读取商家状态失败', error);
|
||||
this.setData({ isShangjia: false });
|
||||
}
|
||||
},
|
||||
|
||||
// 获取商家信息
|
||||
async getShangjiaInfo() {
|
||||
await this.loadData({
|
||||
url: '/yonghu/shangjiaxinxi',
|
||||
method: 'POST',
|
||||
successCode: 200,
|
||||
errorMsg: '获取商家信息失败',
|
||||
onSuccess: (data) => {
|
||||
// 更新全局缓存
|
||||
app.globalData.shangjia = data;
|
||||
wx.setStorageSync('shangjiastatus', 1);
|
||||
|
||||
const chenghaoList = data.chenghao_list || [];
|
||||
|
||||
this.setData({
|
||||
nicheng: data.nicheng || '',
|
||||
sjyue: data.sjyue || '0.00',
|
||||
fabu: data.fadanzong || 0,
|
||||
tuikuan: data.tuikuanzong || 0,
|
||||
jinriliushui: data.riliushui || '0.00',
|
||||
jinyueliushui: data.yueliushui || '0.00',
|
||||
jinridingdan: data.jinripaidan || 0,
|
||||
jinrituikuan: data.jinrituikuan || 0,
|
||||
chenghaoList: chenghaoList,
|
||||
isLoading: false,
|
||||
});
|
||||
|
||||
if (this.data.isAutoRegistering) {
|
||||
this.setData({ isAutoRegistering: false });
|
||||
wx.showToast({ title: '商家注册成功', icon: 'success' });
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
refreshShangjiaInfo() {
|
||||
this.throttledRefresh(() => this.getShangjiaInfo());
|
||||
},
|
||||
|
||||
async loadPendingCount() {
|
||||
try {
|
||||
const res = await request({
|
||||
url: '/dingdan/sjdingdanhq',
|
||||
method: 'POST',
|
||||
data: { zhuangtai_list: [8], page: 1, page_size: 1 },
|
||||
});
|
||||
if (res && res.data && (res.data.code === 0 || res.data.code === 200)) {
|
||||
this.setData({ pendingCount: res.data.data.pending_count || 0 });
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('待结算数量失败', e);
|
||||
}
|
||||
},
|
||||
|
||||
async loadPunishPending() {
|
||||
try {
|
||||
const res = await request({
|
||||
url: '/yonghu/sjcfjlhq',
|
||||
method: 'POST',
|
||||
data: { page: 1, page_size: 1, zhuangtai: 0 },
|
||||
});
|
||||
if (res && res.data && (res.data.code === 0 || res.data.code === 200)) {
|
||||
const d = res.data.data || {};
|
||||
this.setData({ punishPending: d.daichuli_count || d.pending_count || 0 });
|
||||
}
|
||||
} catch (e) {
|
||||
/* 接口字段未定时静默 */
|
||||
}
|
||||
},
|
||||
|
||||
async onRegister() {
|
||||
const { inviteCode } = this.data;
|
||||
await this.registerWithInviteCode({
|
||||
inviteCode,
|
||||
apiUrl: '/yonghu/shangjiahuce',
|
||||
role: 'shangjia',
|
||||
statusKey: 'shangjiastatus',
|
||||
successMsg: '商家注册成功',
|
||||
onSuccess: (userData) => {
|
||||
app.globalData.shangjia = userData;
|
||||
const chenghaoList = userData.chenghao_list || [];
|
||||
this.setData({
|
||||
isShangjia: true,
|
||||
nicheng: userData.nicheng || '',
|
||||
sjyue: userData.sjyue || '0.00',
|
||||
fabu: userData.fabu || 0,
|
||||
tuikuan: userData.tuikuan || 0,
|
||||
jinriliushui: userData.jinriliushui || '0.00',
|
||||
jinyueliushui: userData.jinyueliushui || '0.00',
|
||||
jinridingdan: userData.jinridingdan || 0,
|
||||
chenghaoList: chenghaoList,
|
||||
isAutoRegistering: false,
|
||||
});
|
||||
this.loadAvatar();
|
||||
ensureRoleOnCenterPage(this, 'shangjia');
|
||||
lockPrimaryRole('shangjia');
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
previewAvatar() {
|
||||
if (this.data.avatarUrl) {
|
||||
wx.previewImage({ urls: [this.data.avatarUrl] });
|
||||
}
|
||||
},
|
||||
|
||||
// 页面跳转
|
||||
goToPaiDan() { wx.navigateTo({ url: '/pages/merchant-dispatch/merchant-dispatch' }); },
|
||||
goToJiSuPaiDan() {
|
||||
wx.vibrateShort({ type: 'medium' });
|
||||
wx.navigateTo({ url: '/pages/express-order/express-order' });
|
||||
},
|
||||
goToMyOrders() { wx.redirectTo({ url: '/pages/merchant-orders/merchant-orders' }); },
|
||||
goToPendingOrders() { wx.redirectTo({ url: '/pages/merchant-orders/merchant-orders' }); },
|
||||
goToHome() { wx.redirectTo({ url: '/pages/merchant-home/merchant-home' }); },
|
||||
goToKefuKey() { wx.navigateTo({ url: '/pages/merchant-kefu-key/merchant-kefu-key' }); },
|
||||
goToKefuList() { wx.navigateTo({ url: '/pages/merchant-kefu-list/merchant-kefu-list' }); },
|
||||
goToRecharge() { wx.navigateTo({ url: '/pages/merchant-recharge/merchant-recharge' }); },
|
||||
goToWithdraw() { wx.navigateTo({ url: '/pages/withdraw/withdraw' }); },
|
||||
goToRanking() { wx.navigateTo({ url: '/pages/fighter-rank/fighter-rank?type=shangjia' }); },
|
||||
goToMessages() { wx.navigateTo({ url: '/pages/merchant-msg/merchant-msg' }); },
|
||||
}, {
|
||||
roleConfig: {
|
||||
role: 'shangjia',
|
||||
statusKey: 'shangjiastatus',
|
||||
dataFlag: 'isShangjia',
|
||||
pageId: 'shangjiaduan',
|
||||
apiUrl: '/yonghu/shangjiaxinxi',
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -5,10 +5,8 @@
|
||||
"tab-bar": "/tab-bar/index",
|
||||
"chenghao-tag": "/components/chenghao-tag/chenghao-tag"
|
||||
},
|
||||
"navigationBarTitleText": "商家中心",
|
||||
"navigationBarBackgroundColor": "#ffffff",
|
||||
"navigationBarTextStyle": "black",
|
||||
"backgroundColor": "#f8f9fc",
|
||||
"backgroundTextStyle": "light",
|
||||
"navigationStyle": "custom",
|
||||
"backgroundColor": "#fff8e1",
|
||||
"backgroundTextStyle": "dark",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
@@ -1,199 +1,166 @@
|
||||
<!-- pages/shangjiazhongxin/shangjiazhongxin.wxml -->
|
||||
<!-- 最终优化版:指标卡片缩小,图标缩小,资产卡片缩小,背景模糊 -->
|
||||
|
||||
<!-- 页面背景纹理 -->
|
||||
<image class="page-bg" src="{{imgUrls.pageBg}}" mode="aspectFill" />
|
||||
|
||||
<!-- 未注册状态 -->
|
||||
<view class="page-container unregistered" wx:if="{{!isShangjia}}">
|
||||
<view class="unreg-card" style="background-image: url('{{imgUrls.assetCardBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="unreg-content">
|
||||
<text class="status-title">商家入驻</text>
|
||||
<text class="status-desc">输入邀请码,解锁专属商家权益</text>
|
||||
<view class="input-group">
|
||||
<input class="invite-input" type="text" placeholder="请输入邀请码" maxlength="100" value="{{inviteCode}}" bindinput="onInviteCodeInput" placeholder-class="input-placeholder"/>
|
||||
</view>
|
||||
<button class="register-btn" bindtap="onRegister">立即注册</button>
|
||||
<view class="register-tip">已有邀请码?点击上方注册</view>
|
||||
<view class="sys-item sys-item-unreg" bindtap="switchToNormal">
|
||||
<image class="sys-icon" src="{{imgUrls.iconSwitch}}" mode="aspectFit" />
|
||||
<text class="sys-text">返回点单端</text>
|
||||
</view>
|
||||
<view class="sys-item sys-item-unreg" bindtap="clearCache">
|
||||
<image class="sys-icon" src="{{imgUrls.iconClear}}" mode="aspectFit" />
|
||||
<text class="sys-text">清除缓存</text>
|
||||
<text class="sys-sub">重新登录</text>
|
||||
<!-- 商家端个人中心 - 逍遥梦布局,逻辑/接口不变 -->
|
||||
<block wx:if="{{!isShangjia}}">
|
||||
<view class="sj-page user-page">
|
||||
<view class="sj-page-header">
|
||||
<view class="status-bar" style="height:{{statusBar}}px"></view>
|
||||
<view class="nav-bar flexm" style="height:{{navBar - statusBar}}px"><text class="sj-nav-title">我的</text></view>
|
||||
</view>
|
||||
<view class="unreg-area sj-mx20">
|
||||
<view class="sj-panel unreg-card">
|
||||
<text class="unreg-title">商家入驻</text>
|
||||
<input class="unreg-input" placeholder="请输入邀请码" maxlength="100" value="{{inviteCode}}" bindinput="onInviteCodeInput"/>
|
||||
<view class="sj-btn-bg unreg-btn flexm" bindtap="onRegister">立即注册</view>
|
||||
<view class="unreg-link" bindtap="switchToNormal">返回点单端</view>
|
||||
<view class="unreg-link" bindtap="clearCache">清除缓存,重新登录</view>
|
||||
</view>
|
||||
</view>
|
||||
<tab-bar/>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 已注册商家主页面 -->
|
||||
<view class="page-container registered" wx:else>
|
||||
<!-- 刷新按钮 -->
|
||||
<view class="refresh-btn" bindtap="refreshShangjiaInfo">
|
||||
<image class="refresh-icon" src="{{imgUrls.iconRefresh}}" mode="aspectFit" />
|
||||
</view>
|
||||
<block wx:else>
|
||||
<view class="sj-page user-page">
|
||||
<view class="sj-page-header">
|
||||
<view class="status-bar" style="height:{{statusBar}}px"></view>
|
||||
<view class="nav-bar flexm" style="height:{{navBar - statusBar}}px"><text class="sj-nav-title">我的</text></view>
|
||||
</view>
|
||||
|
||||
<!-- 头像卡片 -->
|
||||
<view class="avatar-card" style="background-image: url('{{imgUrls.avatarCardBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="avatar-content">
|
||||
<view class="avatar-wrapper" bindtap="previewAvatar">
|
||||
<image class="avatar-img" src="{{avatarUrl}}" mode="aspectFill" />
|
||||
<image class="avatar-frame" src="{{imgUrls.avatarFrame}}" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="user-info">
|
||||
<text class="nicheng">{{nicheng || '商家'}}</text>
|
||||
<view class="uid-area">
|
||||
<text class="uid-label">UID</text>
|
||||
<text class="uid-value">{{uid || '------'}}</text>
|
||||
<image class="copy-icon" src="{{imgUrls.iconCopy}}" mode="aspectFit" bindtap="copyUid" />
|
||||
<view class="refresh-float" bindtap="refreshShangjiaInfo">
|
||||
<image class="refresh-float-ico" src="{{imgUrls.iconRefresh}}" mode="aspectFit"/>
|
||||
</view>
|
||||
|
||||
<scroll-view class="content" scroll-y enhanced show-scrollbar="{{false}}">
|
||||
<view class="user-info flexb">
|
||||
<view class="flex">
|
||||
<image class="avatar" src="{{avatarUrl || imgUrls.iconService}}" mode="aspectFill" bindtap="previewAvatar"/>
|
||||
<view>
|
||||
<view class="nickname-row flex">
|
||||
<text class="nickname">{{nicheng || '商家'}}</text>
|
||||
<view class="sj-identity-tag">商家</view>
|
||||
</view>
|
||||
<view class="sn-row flex" bindtap="copyUid">
|
||||
<text class="sn">ID: {{uid || '--'}}</text>
|
||||
<image class="copy-ico" src="{{imgUrls.iconCopy}}" mode="aspectFit"/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 荣誉称号区域 -->
|
||||
<view class="badge-area" wx:if="{{chenghaoList.length > 0}}">
|
||||
<scroll-view class="badge-scroll" scroll-x="true" show-scrollbar="{{false}}">
|
||||
<view class="badge-row">
|
||||
<block wx:for="{{chenghaoList}}" wx:key="index">
|
||||
<chenghao-tag mingcheng="{{item.mingcheng}}" texiaoJson="{{item.texiao_json}}" />
|
||||
</block>
|
||||
<view class="badge-zone" wx:if="{{chenghaoList.length > 0}}">
|
||||
<scroll-view scroll-x class="badge-scroll">
|
||||
<view class="badge-tag-wrap" wx:for="{{chenghaoList}}" wx:key="index">
|
||||
<chenghao-tag mingcheng="{{item.mingcheng}}" texiaoJson="{{item.texiao_json}}"/>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<view class="sj-wallet-card flexb">
|
||||
<view>
|
||||
<view class="sj-w-label">商家余额(元)</view>
|
||||
<view class="sj-w-num">¥{{sjyue}}</view>
|
||||
<view class="sj-w-sub">发单总量 {{fabu}} · 退款 {{tuikuan}}</view>
|
||||
</view>
|
||||
<view class="wallet-btns flex">
|
||||
<view class="sj-btn-outline" catchtap="goToRecharge">充值</view>
|
||||
<view class="sj-btn-outline" catchtap="goToWithdraw">去提现</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="freeze-row flexa">
|
||||
<view class="freeze-col flexmc">
|
||||
<text class="freeze-num">{{jinriliushui}}</text>
|
||||
<text class="freeze-lbl">今日流水</text>
|
||||
</view>
|
||||
<view class="freeze-col flexmc">
|
||||
<text class="freeze-num">{{jinyueliushui}}</text>
|
||||
<text class="freeze-lbl">今月流水</text>
|
||||
</view>
|
||||
<view class="freeze-col flexmc">
|
||||
<text class="freeze-num">{{jinridingdan}}</text>
|
||||
<text class="freeze-lbl">今日派单</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="sj-panel sj-mx20 order-nav-box">
|
||||
<view class="sj-section-hd">我的订单</view>
|
||||
<view class="sj-order-nav">
|
||||
<view class="sj-order-nav-item" bindtap="goToPendingOrders">
|
||||
<text class="sj-order-nav-num">{{pendingCount}}</text>
|
||||
<text class="sj-order-nav-lbl">待结算</text>
|
||||
</view>
|
||||
<view class="sj-order-nav-item" bindtap="goToMyOrders">
|
||||
<text class="sj-order-nav-num">{{jinrituikuan}}</text>
|
||||
<text class="sj-order-nav-lbl">今日退款</text>
|
||||
</view>
|
||||
<view class="sj-order-nav-item" bindtap="goToMessages">
|
||||
<text class="sj-order-nav-num">{{punishPending}}</text>
|
||||
<text class="sj-order-nav-lbl">处罚待处理</text>
|
||||
</view>
|
||||
<view class="sj-order-nav-item" bindtap="goToMyOrders">
|
||||
<text class="sj-order-nav-num">›</text>
|
||||
<text class="sj-order-nav-lbl">全部订单</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="sj-panel sj-mx20">
|
||||
<view class="sj-section-hd">交易与发单</view>
|
||||
<view class="sj-func-grid">
|
||||
<view class="sj-func-item" bindtap="goToPaiDan">
|
||||
<image class="sj-func-icon" src="{{imgUrls.iconRelease}}" mode="aspectFit"/>
|
||||
<text class="sj-func-txt">自定义单</text>
|
||||
</view>
|
||||
<view class="sj-func-item" bindtap="goToJiSuPaiDan">
|
||||
<image class="sj-func-icon" src="{{imgUrls.iconFast}}" mode="aspectFit"/>
|
||||
<text class="sj-func-txt">常规单</text>
|
||||
</view>
|
||||
<view class="sj-func-item" bindtap="goToKefuKey">
|
||||
<image class="sj-func-icon" src="{{imgUrls.iconService}}" mode="aspectFit"/>
|
||||
<text class="sj-func-txt">客服邀请码</text>
|
||||
</view>
|
||||
<view class="sj-func-item" bindtap="goToKefuList">
|
||||
<image class="sj-func-icon" src="{{imgUrls.iconService}}" mode="aspectFit"/>
|
||||
<text class="sj-func-txt">客服列表</text>
|
||||
</view>
|
||||
<view class="sj-func-item" bindtap="goToMessages">
|
||||
<image class="sj-func-icon" src="{{imgUrls.iconPunish}}" mode="aspectFit"/>
|
||||
<text class="sj-func-txt">处罚记录</text>
|
||||
</view>
|
||||
<view class="sj-func-item" bindtap="goToRanking">
|
||||
<image class="sj-func-icon" src="{{imgUrls.iconRank}}" mode="aspectFit"/>
|
||||
<text class="sj-func-txt">商家排行</text>
|
||||
</view>
|
||||
<view class="sj-func-item" bindtap="goToKefu">
|
||||
<image class="sj-func-icon" src="{{imgUrls.iconService}}" mode="aspectFit"/>
|
||||
<text class="sj-func-txt">在线客服</text>
|
||||
</view>
|
||||
<view class="sj-func-item" bindtap="goToHome">
|
||||
<image class="sj-func-icon" src="{{imgUrls.iconOrders}}" mode="aspectFit"/>
|
||||
<text class="sj-func-txt">商家首页</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="sj-panel sj-mx20 sys-panel">
|
||||
<view class="sys-item flexb" bindtap="switchToNormal">
|
||||
<text class="sys-text">返回点单端</text>
|
||||
<text class="sys-arrow">›</text>
|
||||
</view>
|
||||
<view class="sys-item flexb" bindtap="clearCache">
|
||||
<text class="sys-text">清除缓存</text>
|
||||
<text class="sys-sub">重新登录</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="sj-scroll-bottom"></view>
|
||||
</scroll-view>
|
||||
<tab-bar/>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 资产卡片(稍微缩小) -->
|
||||
<view class="asset-card" style="background-image: url('{{imgUrls.assetCardBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="card-content glass-effect">
|
||||
<view class="balance-area">
|
||||
<text class="balance-label">账户余额(元)</text>
|
||||
<view class="balance-value">
|
||||
<text class="value-num">{{sjyue}}</text>
|
||||
<text class="value-unit">¥</text>
|
||||
</view>
|
||||
<view class="action-buttons">
|
||||
<view class="action-btn recharge" bindtap="goToRecharge">
|
||||
<image class="btn-icon" src="{{imgUrls.iconRecharge}}" mode="aspectFit" />
|
||||
<text>充值</text>
|
||||
</view>
|
||||
<view class="action-btn withdraw" bindtap="goToWithdraw">
|
||||
<image class="btn-icon" src="{{imgUrls.iconWithdraw}}" mode="aspectFit" />
|
||||
<text>提现</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="divider"></view>
|
||||
<view class="stats-row">
|
||||
<view class="stat-item">
|
||||
<text class="stat-label">发单总量</text>
|
||||
<text class="stat-number">{{fabu}}</text>
|
||||
</view>
|
||||
<view class="stat-item">
|
||||
<text class="stat-label">退款总量</text>
|
||||
<text class="stat-number">{{tuikuan}}</text>
|
||||
</view>
|
||||
<view class="stat-item">
|
||||
<text class="stat-label">今日流水</text>
|
||||
<text class="stat-number">{{jinriliushui}}</text>
|
||||
</view>
|
||||
<view class="stat-item">
|
||||
<text class="stat-label">今月流水</text>
|
||||
<text class="stat-number">{{jinyueliushui}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 核心指标卡片组(缩小版) -->
|
||||
<view class="metrics-section">
|
||||
<view class="metric-card" style="background-image: url('{{imgUrls.statCardBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="metric-content">
|
||||
<image class="metric-icon" src="{{imgUrls.iconRelease}}" mode="aspectFit" />
|
||||
<text class="metric-value">{{jinridingdan}}</text>
|
||||
<text class="metric-label">今日派单</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="metric-card" style="background-image: url('{{imgUrls.statCardBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="metric-content">
|
||||
<image class="metric-icon" src="{{imgUrls.iconPunish}}" mode="aspectFit" />
|
||||
<text class="metric-value">{{jinrituikuan}}</text>
|
||||
<text class="metric-label">今日退款</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 功能宫格(图标缩小) -->
|
||||
<view class="function-grid">
|
||||
<view class="func-item primary" style="background-image: url('{{imgUrls.primaryFuncBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="func-content" bindtap="goToPaiDan">
|
||||
<image class="func-icon" src="{{imgUrls.iconRelease}}" mode="aspectFit" />
|
||||
<text class="func-name">发布订单</text>
|
||||
<text class="func-desc">快速派单</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="func-item highlight" style="background-image: url('{{imgUrls.highlightFuncBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="func-content" bindtap="goToJiSuPaiDan">
|
||||
<image class="func-icon" src="{{imgUrls.iconFast}}" mode="aspectFit" />
|
||||
<text class="func-name">极速派单</text>
|
||||
<text class="func-desc">闪电体验</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="func-item" style="background-image: url('{{imgUrls.funcItemBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="func-content" bindtap="goToMyOrders">
|
||||
<image class="func-icon" src="{{imgUrls.iconOrders}}" mode="aspectFit" />
|
||||
<text class="func-name">我的订单</text>
|
||||
<text class="func-desc">管理派单</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="func-item" style="background-image: url('{{imgUrls.funcItemBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="func-content" bindtap="goToMessages">
|
||||
<image class="func-icon" src="{{imgUrls.iconPunish}}" mode="aspectFit" />
|
||||
<text class="func-name">处罚记录</text>
|
||||
<text class="func-desc">违规查询</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="func-item" style="background-image: url('{{imgUrls.funcItemBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="func-content" bindtap="goToRanking">
|
||||
<image class="func-icon" src="{{imgUrls.iconRank}}" mode="aspectFit" />
|
||||
<text class="func-name">商家排行</text>
|
||||
<text class="func-desc">业绩排名</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="func-item" style="background-image: url('{{imgUrls.funcItemBg}}'); background-size: cover; background-position: center;">
|
||||
<view class="func-content" bindtap="goToKefu">
|
||||
<image class="func-icon" src="{{imgUrls.iconService}}" mode="aspectFit" />
|
||||
<text class="func-name">在线客服</text>
|
||||
<text class="func-desc">帮助中心</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="sys-list">
|
||||
<view class="sys-item" bindtap="switchToNormal">
|
||||
<image class="sys-icon" src="{{imgUrls.iconSwitch}}" mode="aspectFit" />
|
||||
<text class="sys-text">返回点单端</text>
|
||||
</view>
|
||||
<view class="sys-item" bindtap="clearCache">
|
||||
<image class="sys-icon" src="{{imgUrls.iconClear}}" mode="aspectFit" />
|
||||
<text class="sys-text">清除缓存</text>
|
||||
<text class="sys-sub">重新登录</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="safe-bottom"></view>
|
||||
</view>
|
||||
|
||||
<!-- 加载遮罩 -->
|
||||
<view class="loading-mask" wx:if="{{isLoading}}">
|
||||
<view class="loading-content">
|
||||
<view class="loading-spinner"></view>
|
||||
<text class="loading-text">加载中...</text>
|
||||
</view>
|
||||
<view class="loading-spinner"></view>
|
||||
</view>
|
||||
|
||||
<!-- 全局组件 -->
|
||||
<global-notification id="global-notification" />
|
||||
<popup-notice id="popupNotice" />
|
||||
<tab-bar />
|
||||
<global-notification id="global-notification"/>
|
||||
<popup-notice id="popupNotice"/>
|
||||
|
||||
@@ -1,425 +1,226 @@
|
||||
/* pages/shangjiazhongxin/shangjiazhongxin.wxss */
|
||||
|
||||
page {
|
||||
background-color: #f5f7fb;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
/* .page-bg 与全局类似,仅保留差异 */
|
||||
.page-bg {
|
||||
opacity: 0.15;
|
||||
filter: blur(8rpx);
|
||||
}
|
||||
|
||||
/* .page-container 与全局类似,仅保留差异 */
|
||||
.page-container {
|
||||
z-index: 1;
|
||||
padding: 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* 未注册卡片 */
|
||||
.unregistered {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-top: 200rpx;
|
||||
}
|
||||
/* .unreg-card 与 .card 类似,仅保留差异 */
|
||||
.unreg-card {
|
||||
width: 90%;
|
||||
border-radius: 48rpx;
|
||||
box-shadow: 0 8rpx 20rpx rgba(0,0,0,0.2);
|
||||
background-color: transparent;
|
||||
}
|
||||
.unreg-content {
|
||||
padding: 60rpx 40rpx;
|
||||
text-align: center;
|
||||
background: rgba(0,0,0,0.65);
|
||||
backdrop-filter: blur(16rpx);
|
||||
border-radius: 48rpx;
|
||||
}
|
||||
.status-title {
|
||||
font-size: 44rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.status-desc {
|
||||
font-size: 28rpx;
|
||||
color: #ddd;
|
||||
margin-bottom: 50rpx;
|
||||
}
|
||||
.input-group {
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
/* .invite-input 与 .input-rounded--dark 类似,仅保留差异 */
|
||||
.invite-input {
|
||||
height: 96rpx;
|
||||
background: rgba(255,255,255,0.2);
|
||||
border-radius: 48rpx;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
/* .register-btn 与 .btn .btn-primary .btn-primary--orange 完全相同,删除 */
|
||||
|
||||
.register-tip {
|
||||
margin-top: 32rpx;
|
||||
font-size: 24rpx;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
/* 已注册页面 */
|
||||
.registered {
|
||||
padding-top: 30rpx;
|
||||
padding-bottom: 40rpx;
|
||||
}
|
||||
|
||||
/* .refresh-btn 与全局 .refresh-btn .refresh-btn--dark 类似,仅保留差异 */
|
||||
.refresh-btn {
|
||||
position: absolute;
|
||||
top: 30rpx;
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border-radius: 36rpx;
|
||||
}
|
||||
.refresh-icon {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
|
||||
/* 头像卡片 */
|
||||
.avatar-card {
|
||||
border-radius: 60rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 36rpx;
|
||||
box-shadow: 0 6rpx 18rpx rgba(0,0,0,0.2);
|
||||
background-color: transparent;
|
||||
}
|
||||
.avatar-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 28rpx 32rpx;
|
||||
background: rgba(0,0,0,0.55);
|
||||
backdrop-filter: blur(20rpx);
|
||||
}
|
||||
.avatar-wrapper {
|
||||
position: relative;
|
||||
width: 110rpx;
|
||||
height: 110rpx;
|
||||
margin-right: 28rpx;
|
||||
}
|
||||
/* .avatar-img 与 .avatar-circle 类似,仅保留差异 */
|
||||
.avatar-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 2rpx solid rgba(255,255,255,0.3);
|
||||
}
|
||||
.avatar-frame {
|
||||
position: absolute;
|
||||
top: -8rpx;
|
||||
left: -8rpx;
|
||||
width: 126rpx;
|
||||
height: 126rpx;
|
||||
pointer-events: none;
|
||||
}
|
||||
.user-info {
|
||||
flex: 1;
|
||||
}
|
||||
.nicheng {
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin-bottom: 16rpx;
|
||||
text-shadow: 0 2rpx 6rpx rgba(0,0,0,0.5);
|
||||
background: rgba(0,0,0,0.6);
|
||||
display: inline-block;
|
||||
padding: 6rpx 20rpx;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
.uid-area {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.uid-label {
|
||||
font-size: 26rpx;
|
||||
color: #fff;
|
||||
background: rgba(0,0,0,0.7);
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 28rpx;
|
||||
margin-right: 16rpx;
|
||||
backdrop-filter: blur(4rpx);
|
||||
}
|
||||
.uid-value {
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
font-family: monospace;
|
||||
background: rgba(0,0,0,0.6);
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 28rpx;
|
||||
}
|
||||
.copy-icon {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
opacity: 0.9;
|
||||
filter: drop-shadow(0 2rpx 2rpx rgba(0,0,0,0.5));
|
||||
}
|
||||
|
||||
/* 荣誉标签 */
|
||||
.badge-area {
|
||||
margin-bottom: 36rpx;
|
||||
}
|
||||
.badge-scroll {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.badge-row {
|
||||
display: inline-flex;
|
||||
gap: 16rpx;
|
||||
padding: 8rpx 0;
|
||||
}
|
||||
|
||||
/* 资产卡片 */
|
||||
.asset-card {
|
||||
border-radius: 48rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 36rpx;
|
||||
box-shadow: 0 10rpx 24rpx rgba(0,0,0,0.2);
|
||||
background-color: transparent;
|
||||
}
|
||||
.glass-effect {
|
||||
padding: 44rpx 36rpx;
|
||||
background: rgba(0,0,0,0.55);
|
||||
backdrop-filter: blur(20rpx);
|
||||
}
|
||||
.balance-area {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 32rpx;
|
||||
}
|
||||
.balance-label {
|
||||
font-size: 28rpx;
|
||||
color: #ffdebc;
|
||||
font-weight: 500;
|
||||
}
|
||||
.balance-value {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
}
|
||||
.value-num {
|
||||
font-size: 64rpx;
|
||||
font-weight: 800;
|
||||
color: #ffd966;
|
||||
font-family: 'DIN', monospace;
|
||||
}
|
||||
.value-unit {
|
||||
font-size: 32rpx;
|
||||
color: #ffdebc;
|
||||
margin-left: 6rpx;
|
||||
}
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 24rpx;
|
||||
}
|
||||
.action-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10rpx;
|
||||
background: rgba(255,255,255,0.9);
|
||||
padding: 12rpx 28rpx;
|
||||
border-radius: 60rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
.action-btn.recharge {
|
||||
color: #ff8c1a;
|
||||
}
|
||||
.action-btn.withdraw {
|
||||
color: #2d3e6e;
|
||||
}
|
||||
.btn-icon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
/* .divider 与全局 .divider-gradient 类似,仅保留差异 */
|
||||
.divider {
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
|
||||
margin: 24rpx 0;
|
||||
}
|
||||
.stats-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.stat-item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
.stat-label {
|
||||
font-size: 24rpx;
|
||||
color: #ddd;
|
||||
margin-bottom: 12rpx;
|
||||
display: block;
|
||||
}
|
||||
.stat-number {
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* 核心指标卡片组 */
|
||||
.metrics-section {
|
||||
display: flex;
|
||||
gap: 24rpx;
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.metric-card {
|
||||
flex: 1;
|
||||
border-radius: 36rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 6rpx 16rpx rgba(0,0,0,0.2);
|
||||
background-color: transparent;
|
||||
}
|
||||
.metric-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 24rpx 0;
|
||||
background: rgba(0,0,0,0.55);
|
||||
backdrop-filter: blur(12rpx);
|
||||
}
|
||||
.metric-icon {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
margin-bottom: 16rpx;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
.metric-value {
|
||||
font-size: 44rpx;
|
||||
font-weight: 800;
|
||||
color: #ffd966;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.metric-label {
|
||||
font-size: 24rpx;
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
/* 功能宫格 */
|
||||
.function-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 24rpx;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.func-item {
|
||||
border-radius: 32rpx;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 6rpx 14rpx rgba(0,0,0,0.2);
|
||||
background-color: transparent;
|
||||
}
|
||||
.func-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 32rpx 12rpx 28rpx;
|
||||
background: rgba(0,0,0,0.55);
|
||||
backdrop-filter: blur(12rpx);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.func-icon {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
margin-bottom: 20rpx;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
.func-name {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.func-desc {
|
||||
font-size: 22rpx;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
/* 底部安全区 */
|
||||
.safe-bottom {
|
||||
height: 40rpx;
|
||||
}
|
||||
|
||||
/* .sys-list 无全局对应,保留 */
|
||||
.sys-list {
|
||||
margin: 24rpx 32rpx 0;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
border: 1rpx solid rgba(0, 0, 0, 0.06);
|
||||
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
/* .sys-item 与 .list-item 类似,仅保留差异(无 border-bottom) */
|
||||
.sys-item {
|
||||
padding: 24rpx 28rpx;
|
||||
}
|
||||
|
||||
.sys-item-unreg {
|
||||
margin-top: 28rpx;
|
||||
padding-top: 24rpx;
|
||||
border-top: 1rpx solid rgba(0, 0, 0, 0.08);
|
||||
justify-content: center;
|
||||
background: rgba(255, 255, 255, 0.55);
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
/* .sys-icon 与 .list-icon 类似,仅保留差异 */
|
||||
.sys-icon {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
margin-right: 14rpx;
|
||||
}
|
||||
|
||||
/* .sys-text 与 .list-text 类似,仅保留差异 */
|
||||
.sys-text {
|
||||
font-size: 28rpx;
|
||||
color: #1A1A1A;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* .sys-sub 无全局对应,保留 */
|
||||
.sys-sub {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
font-size: 22rpx;
|
||||
color: #888;
|
||||
margin-left: 12rpx;
|
||||
}
|
||||
|
||||
/* .loading-mask 与全局 .loading-mask .loading-mask--dark 类似,仅保留差异 */
|
||||
.loading-mask {
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
.loading-content {
|
||||
background: rgba(0,0,0,0.8);
|
||||
padding: 48rpx 64rpx;
|
||||
border-radius: 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
/* .loading-spinner 与 .spinner--md 类似,仅保留差异 */
|
||||
.loading-spinner {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border: 6rpx solid rgba(255,255,255,0.3);
|
||||
border-top-color: #ffd966;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
/* .loading-text 与全局 .loading-text 类似,仅保留差异 */
|
||||
.loading-text {
|
||||
font-size: 28rpx;
|
||||
}
|
||||
@import '../../styles/shangjia-xym-common.wxss';
|
||||
|
||||
page {
|
||||
background: #fff8e1;
|
||||
}
|
||||
|
||||
.user-page {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.nav-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.refresh-float {
|
||||
position: fixed;
|
||||
right: 24rpx;
|
||||
top: calc(env(safe-area-inset-top) + 100rpx);
|
||||
z-index: 10;
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.refresh-float-ico {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
padding: 10rpx 30rpx;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 110rpx;
|
||||
height: 110rpx;
|
||||
border-radius: 50%;
|
||||
border: 4rpx solid #f1f7ff;
|
||||
margin-right: 20rpx;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.nickname {
|
||||
font-size: 38rpx;
|
||||
font-weight: 700;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.nickname-row {
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.sn-row {
|
||||
margin-top: 8rpx;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sn {
|
||||
color: #999;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.copy-ico {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
margin-left: 8rpx;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.badge-zone {
|
||||
padding: 0 24rpx 8rpx;
|
||||
}
|
||||
|
||||
.badge-scroll {
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.badge-tag-wrap {
|
||||
display: inline-block;
|
||||
transform: scale(0.72);
|
||||
transform-origin: left center;
|
||||
margin-right: -8rpx;
|
||||
}
|
||||
|
||||
.wallet-btns .sj-btn-outline {
|
||||
margin-left: 12rpx;
|
||||
}
|
||||
|
||||
.freeze-row {
|
||||
margin: 16rpx 30rpx 0;
|
||||
padding: 20rpx 10rpx;
|
||||
border-radius: 15rpx;
|
||||
background: #fef6d4;
|
||||
}
|
||||
|
||||
.freeze-col {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.freeze-num {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #7e893c;
|
||||
}
|
||||
|
||||
.freeze-lbl {
|
||||
font-size: 24rpx;
|
||||
color: #7e893c;
|
||||
font-weight: 700;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
|
||||
.order-nav-box {
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.unreg-area {
|
||||
flex: 1;
|
||||
padding: 40rpx 0 16rpx;
|
||||
}
|
||||
|
||||
.unreg-card {
|
||||
padding: 40rpx 30rpx;
|
||||
}
|
||||
|
||||
.unreg-title {
|
||||
display: block;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.unreg-input {
|
||||
height: 80rpx;
|
||||
border-radius: 12rpx;
|
||||
margin-bottom: 20rpx;
|
||||
background: #f7f7f7;
|
||||
padding: 0 24rpx;
|
||||
font-size: 28rpx;
|
||||
border: 1rpx solid #eee;
|
||||
}
|
||||
|
||||
.unreg-btn {
|
||||
height: 80rpx;
|
||||
font-size: 28rpx;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.unreg-link {
|
||||
text-align: center;
|
||||
padding: 16rpx;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.sys-panel {
|
||||
margin-top: 16rpx;
|
||||
margin-bottom: 16rpx;
|
||||
padding: 0 8rpx;
|
||||
}
|
||||
|
||||
.sys-item {
|
||||
padding: 24rpx 20rpx;
|
||||
border-bottom: 1rpx solid rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.sys-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.sys-text {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.sys-sub {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.sys-arrow {
|
||||
color: #ccc;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.loading-mask {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border: 4rpx solid rgba(0, 0, 0, 0.08);
|
||||
border-top-color: #ffd061;
|
||||
border-radius: 50%;
|
||||
animation: sjSpin 0.8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes sjSpin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user