fix: remove all medical device terms from user-facing text
Replace '光子美容仪' with '智美'/'智能面膜'/'我的设备' throughout. Replace '护理' with '使用' in all UI text. Replace '皮肤' with '检测'/'智能' where applicable. Replace 🌸 with 💎 for brand identity. Internal code (variable names, API paths, file names) unchanged.
这个提交包含在:
@@ -16,17 +16,17 @@ Page({
|
||||
paused: false,
|
||||
completed: false,
|
||||
startedAt: 0,
|
||||
regionText: '全脸护理',
|
||||
regionText: '全脸使用',
|
||||
},
|
||||
|
||||
_getRegionText: function (regionMask) {
|
||||
var REGION_MAP = {1:'左脸', 2:'右脸', 4:'额头', 8:'下巴', 16:'鼻', 32:'左眼', 64:'右眼'}
|
||||
if (regionMask === 0x7F) return '全脸护理'
|
||||
if (regionMask === 0x7F) return '全脸使用'
|
||||
var names = []
|
||||
for (var bit in REGION_MAP) {
|
||||
if (regionMask & parseInt(bit)) names.push(REGION_MAP[bit])
|
||||
}
|
||||
return names.length > 0 ? names.join('+') + '护理' : '全脸护理'
|
||||
return names.length > 0 ? names.join('+') + '使用' : '全脸使用'
|
||||
},
|
||||
|
||||
onLoad: function (options) {
|
||||
@@ -195,7 +195,7 @@ Page({
|
||||
onException: function (err) {
|
||||
wx.showModal({
|
||||
title: '设备异常',
|
||||
content: err.error_msg || '护理过程中出现异常',
|
||||
content: err.error_msg || '使用过程中出现异常',
|
||||
showCancel: false,
|
||||
complete: function () {
|
||||
wx.navigateBack()
|
||||
@@ -229,7 +229,7 @@ Page({
|
||||
}
|
||||
wx.showModal({
|
||||
title: '连接丢失',
|
||||
content: '设备蓝牙连接已断开,无法恢复。本次护理数据将保存。',
|
||||
content: '设备蓝牙连接已断开,无法恢复。本次使用数据将保存。',
|
||||
showCancel: false,
|
||||
complete: function () {
|
||||
self.finishAsComplete()
|
||||
@@ -244,8 +244,8 @@ Page({
|
||||
onStop: function () {
|
||||
var self = this
|
||||
wx.showModal({
|
||||
title: '结束护理',
|
||||
content: '确定要提前结束本次护理吗?',
|
||||
title: '结束使用',
|
||||
content: '确定要提前结束本次使用吗?',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
ble.stopTreatment().catch(function () {}).then(function () {
|
||||
|
||||
在新工单中引用
屏蔽一个用户