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 () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "护理中"
|
||||
"navigationBarTitleText": "使用中"
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<view class="page">
|
||||
<view class="page-header page-header-blue" style="padding-top: {{statusBarHeight + 24}}px;">
|
||||
<view class="nav-back nav-back-light" bindtap="onBack">‹ 返回</view>
|
||||
<view class="page-header-title">护理中</view>
|
||||
<view class="page-header-subtitle">正在护理...</view>
|
||||
<view class="page-header-title">使用中</view>
|
||||
<view class="page-header-subtitle">正在使用...</view>
|
||||
</view>
|
||||
|
||||
<view class="page-content">
|
||||
@@ -23,10 +23,10 @@
|
||||
<text class="relax-icon">💆</text>
|
||||
<view class="relax-text">
|
||||
<text>请放松心情</text>
|
||||
<text>享受护理时光</text>
|
||||
<text>享受美好时光</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<button class="btn-primary btn-primary-red" bindtap="onStop">停止护理</button>
|
||||
<button class="btn-primary btn-primary-red" bindtap="onStop">停止使用</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
在新工单中引用
屏蔽一个用户