feat: rebrand to LumiFlow across miniprogram, admin-console, and server
这个提交包含在:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>智美 - 管理后台</title>
|
<title>LumiFlow - 管理后台</title>
|
||||||
<!--preload-links-->
|
<!--preload-links-->
|
||||||
<!--app-context-->
|
<!--app-context-->
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="admin-layout">
|
<view class="admin-layout">
|
||||||
<view class="sidebar">
|
<view class="sidebar">
|
||||||
<view class="sidebar-logo">💎 智美</view>
|
<view class="sidebar-logo">💎 LumiFlow</view>
|
||||||
<view class="sidebar-sub">管理后台</view>
|
<view class="sidebar-sub">管理后台</view>
|
||||||
<view class="sidebar-menu">
|
<view class="sidebar-menu">
|
||||||
<view
|
<view
|
||||||
@@ -54,7 +54,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
pageTitle() {
|
pageTitle() {
|
||||||
var item = this.menuItems.find(m => m.view === this.currentPage)
|
var item = this.menuItems.find(m => m.view === this.currentPage)
|
||||||
return item ? item.icon + ' ' + item.label : '智美管理后台'
|
return item ? item.icon + ' ' + item.label : 'LumiFlow 管理后台'
|
||||||
},
|
},
|
||||||
adminName() {
|
adminName() {
|
||||||
var store = useUserStore()
|
var store = useUserStore()
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "智美后台",
|
"name": "LumiFlow 后台",
|
||||||
"appid": "__UNI__HOXADMIN",
|
"appid": "__UNI__HOXADMIN",
|
||||||
"description": "Hox beauty device admin console",
|
"description": "Hox beauty device admin console",
|
||||||
"versionName": "1.0.0",
|
"versionName": "1.0.0",
|
||||||
"versionCode": "100",
|
"versionCode": "100",
|
||||||
"h5": {
|
"h5": {
|
||||||
"title": "智美后台",
|
"title": "LumiFlow 后台",
|
||||||
"router": {
|
"router": {
|
||||||
"mode": "hash",
|
"mode": "hash",
|
||||||
"base": "/admin/"
|
"base": "/admin/"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "智美后台",
|
"navigationBarTitleText": "LumiFlow 后台",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
"backgroundColor": "#f5f5f5"
|
"backgroundColor": "#f5f5f5"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<view class="login-page">
|
<view class="login-page">
|
||||||
<view class="login-card">
|
<view class="login-card">
|
||||||
<view class="login-logo">💎</view>
|
<view class="login-logo">💎</view>
|
||||||
<view class="login-title">智美</view>
|
<view class="login-title">LumiFlow</view>
|
||||||
<view class="login-subtitle">管理后台</view>
|
<view class="login-subtitle">管理后台</view>
|
||||||
|
|
||||||
<view class="form-group">
|
<view class="form-group">
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
登 录
|
登 录
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<view class="login-footer">© 2026 智美管理后台</view>
|
<view class="login-footer">© 2026 LumiFlow</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@
|
|||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
"navigationBarTitleText": "智美",
|
"navigationBarTitleText": "LumiFlow",
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"backgroundColor": "#f5f5f5"
|
"backgroundColor": "#f5f5f5"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<view class="found-card" wx:if="{{state === 'binding'}}">
|
<view class="found-card" wx:if="{{state === 'binding'}}">
|
||||||
<view class="found-icon">💆</view>
|
<view class="found-icon">💆</view>
|
||||||
<view class="found-name">智能面膜-{{deviceId}}</view>
|
<view class="found-name">LumiFlow-{{deviceId}}</view>
|
||||||
<text class="status-badge status-badge-green">正在配对...</text>
|
<text class="status-badge status-badge-green">正在配对...</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<view class="page">
|
<view class="page">
|
||||||
<view class="page-header page-header-pink" style="padding-top: {{statusBarHeight + 24}}px;">
|
<view class="page-header page-header-pink" style="padding-top: {{statusBarHeight + 24}}px;">
|
||||||
<view class="page-header-title">智美</view>
|
<view class="page-header-title">LumiFlow</view>
|
||||||
<view class="page-header-subtitle">微信登录</view>
|
<view class="page-header-subtitle">微信登录</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="page-content">
|
<view class="page-content">
|
||||||
<view class="welcome-text">欢迎使用智美</view>
|
<view class="welcome-text">欢迎使用LumiFlow</view>
|
||||||
|
|
||||||
<view class="flower-area">
|
<view class="flower-area">
|
||||||
<text class="flower">💎</text>
|
<text class="flower">💎</text>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<view class="page">
|
<view class="page">
|
||||||
<view class="page-header page-header-pink" style="padding-top: {{statusBarHeight + 24}}px;">
|
<view class="page-header page-header-pink" style="padding-top: {{statusBarHeight + 24}}px;">
|
||||||
<view class="page-header-title">智美</view>
|
<view class="page-header-title">LumiFlow</view>
|
||||||
<view class="page-header-subtitle">完善个人资料</view>
|
<view class="page-header-subtitle">完善个人资料</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<view class="device-row-icon">💆</view>
|
<view class="device-row-icon">💆</view>
|
||||||
<view class="device-row-info">
|
<view class="device-row-info">
|
||||||
<view class="device-row-name">
|
<view class="device-row-name">
|
||||||
智能面膜
|
LumiFlow
|
||||||
<text class="status-badge status-badge-green" wx:if="{{connected}}">已连接</text>
|
<text class="status-badge status-badge-green" wx:if="{{connected}}">已连接</text>
|
||||||
<text class="status-badge" style="background:#ccc;" wx:else>未连接</text>
|
<text class="status-badge" style="background:#ccc;" wx:else>未连接</text>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ async function create(device) {
|
|||||||
device_id: device.device_id,
|
device_id: device.device_id,
|
||||||
product_id: device.product_id || 'HOX_LIGHT_MASK',
|
product_id: device.product_id || 'HOX_LIGHT_MASK',
|
||||||
device_secret: device.device_secret || '',
|
device_secret: device.device_secret || '',
|
||||||
device_name: device.device_name || '智能面膜',
|
device_name: device.device_name || 'LumiFlow',
|
||||||
firmware_version: device.firmware_version || '1.0.0'
|
firmware_version: device.firmware_version || '1.0.0'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -111,7 +111,7 @@ async function createBatch(deviceIds) {
|
|||||||
device_id: deviceId,
|
device_id: deviceId,
|
||||||
product_id: 'HOX_LIGHT_MASK',
|
product_id: 'HOX_LIGHT_MASK',
|
||||||
device_secret: '',
|
device_secret: '',
|
||||||
device_name: '智能面膜',
|
device_name: 'LumiFlow',
|
||||||
firmware_version: '1.0.0'
|
firmware_version: '1.0.0'
|
||||||
})
|
})
|
||||||
created++
|
created++
|
||||||
|
|||||||
+1
-1
@@ -92,7 +92,7 @@ async function createPrepayOrder({ openid, orderId, amountFen, description }) {
|
|||||||
const body = {
|
const body = {
|
||||||
appid: config.wxpay.appid || config.wechat.appid,
|
appid: config.wxpay.appid || config.wechat.appid,
|
||||||
mchid: config.wxpay.mchId,
|
mchid: config.wxpay.mchId,
|
||||||
description: description || '智能面膜订阅',
|
description: description || 'LumiFlow 订阅',
|
||||||
out_trade_no: orderId,
|
out_trade_no: orderId,
|
||||||
notify_url: config.wxpay.notifyUrl,
|
notify_url: config.wxpay.notifyUrl,
|
||||||
amount: { total: amountFen, currency: 'CNY' },
|
amount: { total: amountFen, currency: 'CNY' },
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ router.post('/devices', requireAdmin, wrap(async (req, res) => {
|
|||||||
device_id: deviceId,
|
device_id: deviceId,
|
||||||
product_id: req.body.product_id || 'HOX_LIGHT_MASK',
|
product_id: req.body.product_id || 'HOX_LIGHT_MASK',
|
||||||
device_secret: req.body.device_secret || '',
|
device_secret: req.body.device_secret || '',
|
||||||
device_name: req.body.device_name || '智能面膜',
|
device_name: req.body.device_name || 'LumiFlow',
|
||||||
firmware_version: req.body.firmware_version || '1.0.0'
|
firmware_version: req.body.firmware_version || '1.0.0'
|
||||||
})
|
})
|
||||||
await logDao.write({ admin_id: req.admin.admin_id, action: 'admin_device_create', detail: '预生成产品码: ' + deviceId, ip: req.ip })
|
await logDao.write({ admin_id: req.admin.admin_id, action: 'admin_device_create', detail: '预生成产品码: ' + deviceId, ip: req.ip })
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ router.post('/subscription/purchase', requireUser, wrap(async (req, res) => {
|
|||||||
openid: req.user.openid,
|
openid: req.user.openid,
|
||||||
orderId,
|
orderId,
|
||||||
amountFen,
|
amountFen,
|
||||||
description: '智能面膜-' + (plan === 'yearly' ? '年卡' : '月卡')
|
description: 'LumiFlow-' + (plan === 'yearly' ? '年卡' : '月卡')
|
||||||
})
|
})
|
||||||
|
|
||||||
await paymentOrderDao.markPrepay(orderId, prepayId)
|
await paymentOrderDao.markPrepay(orderId, prepayId)
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户