diff --git a/src/views/AccountView/AccountView.vue b/src/views/AccountView/AccountView.vue index 0bd2447..1d3e441 100644 --- a/src/views/AccountView/AccountView.vue +++ b/src/views/AccountView/AccountView.vue @@ -51,7 +51,7 @@
当前云媒体流量余额{{ balance }} GB

流量用于直播、回放与原始素材下载

-
+
订单概要云媒体流量订单订单创建后由管理员人工确认,金额以服务端订单为准。

订单记录

共 {{ orderTotal }} 条
@@ -77,11 +77,11 @@
登录手机号{{ maskPhone(profilePhone) }}
绑定邮箱{{ profileEmail }}
登录会话共 {{ sessions.length }} 个有效会话
暂无有效会话
-
可申请订单
暂无发票申请
+
可申请订单
暂无发票申请
- - + + @@ -123,6 +123,7 @@ const profileRole = computed(() => profile.value?.role === 'admin' ? '管理员' const accountStatus = computed(() => profile.value?.status === 1 ? '正常' : profile.value?.status === 0 ? '已禁用' : '--') const createdAt = computed(() => profile.value?.createdAt ? fmtTime(profile.value.createdAt) : '--') const profileInitial = computed(() => profileName.value === '--' ? '-' : profileName.value.charAt(0)) +const invoiceOrderOptions = computed(() => [{ label: '请选择已支付订单', value: 0 }, ...invoiceOrders.value.map((order) => ({ label: `${order.id} · ${money(order.totalPrice)}`, value: order.id }))]) const activeSimCount = computed(() => simCards.value.filter((card) => simStatus(card).cls === 'normal').length) const warnSimCount = computed(() => simTotal.value - activeSimCount.value) @@ -169,3 +170,59 @@ async function createOrder() { try { const order = await request.post(urls.TRAFF async function saveProfile() { saving.value = true; try { const updated = await request.put(urls.ACCOUNT_PROFILE, editForm.value); profile.value = updated; userStore.user = { ...(userStore.user || {}), ...updated }; localStorage.setItem('user', JSON.stringify(userStore.user)); editOpen.value = false; ui.toast('账户资料已保存') } catch (error) { ui.toast(error.message || '保存账户资料失败') } finally { saving.value = false } } onMounted(load) + +