diff --git a/db/schema_phase9_admin_zh.sql b/db/schema_phase9_admin_zh.sql new file mode 100644 index 0000000..7136305 --- /dev/null +++ b/db/schema_phase9_admin_zh.sql @@ -0,0 +1,40 @@ +-- ============================================================================ +-- 优匠优服 · Phase 9 后台全站中文 +-- 仅更新后台菜单/权限节点标题,不改业务数据 +-- ============================================================================ +SET NAMES utf8mb4; + +-- 一级/页面菜单 +UPDATE `fa_auth_rule` SET `title`='控制台' WHERE `name`='dashboard'; +UPDATE `fa_auth_rule` SET `title`='常规管理' WHERE `name`='general'; +UPDATE `fa_auth_rule` SET `title`='分类管理' WHERE `name`='category'; +UPDATE `fa_auth_rule` SET `title`='插件管理' WHERE `name`='addon'; +UPDATE `fa_auth_rule` SET `title`='权限管理' WHERE `name`='auth'; +UPDATE `fa_auth_rule` SET `title`='系统配置' WHERE `name`='general/config'; +UPDATE `fa_auth_rule` SET `title`='附件管理' WHERE `name`='general/attachment'; +UPDATE `fa_auth_rule` SET `title`='个人资料' WHERE `name`='general/profile'; +UPDATE `fa_auth_rule` SET `title`='管理员管理' WHERE `name`='auth/admin'; +UPDATE `fa_auth_rule` SET `title`='管理员日志' WHERE `name`='auth/adminlog'; +UPDATE `fa_auth_rule` SET `title`='角色组' WHERE `name`='auth/group'; +UPDATE `fa_auth_rule` SET `title`='菜单规则' WHERE `name`='auth/rule'; +UPDATE `fa_auth_rule` SET `title`='会员管理' WHERE `name`='user'; +UPDATE `fa_auth_rule` SET `title`='会员列表' WHERE `name`='user/user'; +UPDATE `fa_auth_rule` SET `title`='会员分组' WHERE `name`='user/group'; +UPDATE `fa_auth_rule` SET `title`='会员规则' WHERE `name`='user/rule'; + +-- 权限节点动作文案 +UPDATE `fa_auth_rule` SET `title`='查看' WHERE `title`='View'; +UPDATE `fa_auth_rule` SET `title`='添加' WHERE `title`='Add'; +UPDATE `fa_auth_rule` SET `title`='编辑' WHERE `title`='Edit'; +UPDATE `fa_auth_rule` SET `title`='删除' WHERE `title`='Delete'; +UPDATE `fa_auth_rule` SET `title`='删除' WHERE `title`='Del'; +UPDATE `fa_auth_rule` SET `title`='批量更新' WHERE `title`='Multi'; +UPDATE `fa_auth_rule` SET `title`='详情' WHERE `title`='Detail'; +UPDATE `fa_auth_rule` SET `title`='选择附件' WHERE `title`='Select attachment'; +UPDATE `fa_auth_rule` SET `title`='更新个人信息' WHERE `title`='Update profile'; +UPDATE `fa_auth_rule` SET `title`='配置' WHERE `title`='Setting'; +UPDATE `fa_auth_rule` SET `title`='刷新' WHERE `title`='Refresh'; +UPDATE `fa_auth_rule` SET `title`='本地插件' WHERE `title`='Local addon'; +UPDATE `fa_auth_rule` SET `title`='启用/禁用' WHERE `title`='Update state'; + +-- 回滚:按原英文标题反向 UPDATE(建议先从备份 fa_auth_rule 恢复) diff --git a/server/application/admin/controller/Order.php b/server/application/admin/controller/Order.php index f0379e6..68e443b 100644 --- a/server/application/admin/controller/Order.php +++ b/server/application/admin/controller/Order.php @@ -23,6 +23,12 @@ class Order extends Backend parent::_initialize(); $this->model = new \app\admin\model\Order; $this->view->assign("priceTypeList", $this->model->getPriceTypeList()); + $this->view->assign("statusList", $this->model->getStatusList()); + $this->view->assign("payStatusList", $this->model->getPayStatusList()); + $this->view->assign("settleStatusList", $this->model->getSettleStatusList()); + $this->view->assign("isReviewList", $this->model->getIsReviewList()); + $this->view->assign("hasElevatorList", $this->model->getHasElevatorList()); + $this->view->assign("urgentList", $this->model->getUrgentList()); } diff --git a/server/application/admin/lang/zh-cn.php b/server/application/admin/lang/zh-cn.php index f0e1bc4..8683f1c 100755 --- a/server/application/admin/lang/zh-cn.php +++ b/server/application/admin/lang/zh-cn.php @@ -221,4 +221,186 @@ return [ 'User Module' => '会员模块', 'Register' => '注册', 'User Center' => '会员中心', + + // ==================== 业务后台字段与状态中文 ==================== + 'Accept_rate' => '接单率', + 'Accept_time' => '接单时间', + 'Account' => '账号', + 'Addon info name incorrect' => '插件信息名称不正确', + 'Addon info version incorrect' => '插件信息版本不正确', + 'Address' => '服务地址', + 'Admin Email' => '管理员邮箱', + 'Admin Password' => '管理员密码', + 'Admin Username' => '管理员用户名', + 'Amount' => '金额', + 'Appoint_time' => '预约时间', + 'Arrive_amount' => '到账金额', + 'Arrive_time' => '到达时间', + 'Audit' => '审核', + 'Audit_msg' => '审核意见', + 'Badge' => '角标', + 'Bank' => '银行卡', + 'Base_amount' => '基础金额', + 'Base_price' => '基础价', + 'Cancel_reason' => '取消原因', + 'Cash' => '现金券', + 'Cat_id' => '类目ID', + 'Cert_images' => '资质图片', + 'Channel' => '提现渠道', + 'Commission' => '佣金', + 'Commission_rate' => '佣金比例', + 'Contact' => '联系人', + 'Contact_time' => '联系客户时间', + 'Control panel' => '控制台', + 'Coupon_id' => '优惠券ID', + 'Date_text' => '日期文案', + 'Deduct' => '扣款', + 'Discount' => '折扣券', + 'Discount Rate' => '折扣率', + 'Discount_amount' => '优惠金额', + 'Distance_amount' => '距离费', + 'District' => '区县', + 'Done' => '已完成', + 'End_time' => '结束时间', + 'Failed to copy %s to %s' => '复制 %s 到 %s 失败', + 'Fee' => '费用', + 'Female' => '女', + 'Finish_time' => '完工时间', + 'Fixed' => '一口价', + 'Floor' => '楼层', + 'Floor_amount' => '楼层费', + 'Floor_fee' => '楼层费单价', + 'Free_floor' => '免费楼层', + 'Frozen_money' => '冻结金额', + 'Goods_images' => '商品图片', + 'Goods_model' => '商品型号', + 'Goods_num' => '商品数量', + 'Handling' => '处理中', + 'Has_elevator' => '有无电梯', + 'Idcard_back' => '身份证反面', + 'Idcard_front' => '身份证正面', + 'Idcard_no' => '身份证号', + 'Install Successed' => '安装成功', + 'Install now' => '立即安装', + 'Installing' => '安装中', + 'Installing FastAdmin' => '正在安装 FastAdmin', + 'Invalid request' => '无效请求', + 'Invoice_account' => '银行账号', + 'Invoice_bank' => '开户行', + 'Invoice_no' => '发票号码', + 'Invoice_tax_no' => '纳税人识别号', + 'Invoice_title' => '发票抬头', + 'Is_anonymous' => '是否匿名', + 'Is_read' => '是否已读', + 'Is_review' => '是否已评价', + 'Issued' => '已开票', + 'Lat' => '纬度', + 'Legal_person' => '法人代表', + 'License_image' => '营业执照', + 'License_no' => '统一社会信用代码', + 'Link' => '跳转链接', + 'Lng' => '经度', + 'Master' => '师傅', + 'Master_id' => '师傅ID', + 'Max_price' => '最高价', + 'Merchant_id' => '商家ID', + 'Min_amount' => '最低消费', + 'Misjudge' => '误判', + 'Monthly' => '月结', + 'Multiple Nav' => '多级导航', + 'Multiple Tab' => '多标签页', + 'My Website' => '我的网站', + 'Mysql Database' => '数据库名', + 'Mysql Hostname' => '数据库主机', + 'Mysql Hostport' => '数据库端口', + 'Mysql Password' => '数据库密码', + 'Mysql Prefix' => '数据表前缀', + 'Mysql Username' => '数据库用户名', + 'Need_model' => '是否填写型号', + 'No Results were found' => '未找到记录', + 'Off' => '暂停接单', + 'Offline' => '线下结算', + 'On' => '接单中', + 'Ontime_rate' => '准时率', + 'Order' => '订单', + 'Order_amount' => '订单金额', + 'Order_count' => '订单数', + 'Order_id' => '订单ID', + 'Order_no' => '订单号', + 'Other' => '其他', + 'PDO is not currently installed and cannot be installed' => '未安装 PDO 扩展,无法继续安装', + 'Pass' => '已通过', + 'Password is too weak' => '密码强度太弱', + 'Pay_amount' => '实付金额', + 'Pay_status' => '支付状态', + 'Pay_time' => '支付时间', + 'Pay_type' => '支付方式', + 'Pending' => '待审核', + 'Please go to the official website to download the full package or resource package and try to install' => '请前往官网下载完整包或资源包后重试', + 'Please input correct database' => '请输入正确的数据库名', + 'Please input correct website' => '请输入正确的网站地址', + 'Prepay' => '预付', + 'Price_type' => '计价方式', + 'Province' => '省份', + 'Quote' => '师傅报价', + 'Range' => '按面积计价', + 'Realname' => '真实姓名', + 'Receive_id' => '接收人ID', + 'Receive_type' => '接收类型', + 'Received' => '已领取', + 'Refund_amount' => '退款金额', + 'Reject' => '已驳回', + 'Remind' => '提醒', + 'Repeat Password' => '确认密码', + 'Reply' => '回复', + 'Review' => '评价', + 'Sales' => '销量', + 'Serve_radius' => '服务半径', + 'Service_id' => '服务ID', + 'Service_image' => '服务图片', + 'Service_name' => '服务名称', + 'Settle_amount' => '结算金额', + 'Settle_status' => '结算状态', + 'Settle_time' => '结算时间', + 'Settle_type' => '结算方式', + 'Settled' => '已结算', + 'Special' => '专用发票', + 'Start_time' => '开始时间', + 'Subtitle' => '副标题', + 'System' => '系统', + 'Tags' => '标签', + 'Tax_no' => '税号', + 'The current PHP %s is too low, please use PHP %s or higher' => '当前 PHP 版本 %s 过低,请使用 PHP %s 或更高版本', + 'The current permissions are insufficient to write the configuration file application/database.php' => '当前权限不足,无法写入配置文件 application/database.php', + 'The current permissions are insufficient to write the file %s' => '当前权限不足,无法写入文件 %s', + 'The system has been installed. If you need to reinstall, please remove %s first' => '系统已安装,如需重新安装请先删除 %s', + 'The two passwords you entered did not match' => '两次输入的密码不一致', + 'Toggle navigation' => '切换导航', + 'Toggle the left sidebar' => '切换左侧边栏', + 'Total' => '合计', + 'Total_amount' => '订单总额', + 'Transaction_id' => '交易流水号', + 'Unit' => '单位', + 'Unknown' => '未知', + 'Urgent' => '是否加急', + 'Urgent_amount' => '加急费', + 'Verify_code' => '验收码', + 'Verify_status' => '审核状态', + 'Verify_time' => '验收时间', + 'Wait' => '待处理', + 'Website' => '网站', + 'Wechat' => '微信', + 'Work_status' => '接单状态', + 'You' => '你', + 'ZinArchive not install' => 'ZinArchive 压缩扩展未安装', + 'Custom' => '用户自主定价', + '普通发票' => '普通发票', + '专用发票' => '专用发票', + 'User_id' => '用户ID', + 'Avatar' => '头像', + 'City' => '城市', + 'Level' => '等级', + 'Images' => '图片', + 'Remark' => '备注', + 'Url' => '链接地址', ]; diff --git a/server/application/admin/lang/zh-cn/appeal.php b/server/application/admin/lang/zh-cn/appeal.php new file mode 100644 index 0000000..5361afb --- /dev/null +++ b/server/application/admin/lang/zh-cn/appeal.php @@ -0,0 +1,12 @@ + '误判', + 'Review' => '评价', + 'Deduct' => '扣款', + 'Other' => '其他', + 'Wait' => '待处理', + 'Handling' => '处理中', + 'Done' => '已完成', + 'Reject' => '已驳回', +]; diff --git a/server/application/admin/lang/zh-cn/banner.php b/server/application/admin/lang/zh-cn/banner.php new file mode 100644 index 0000000..a918059 --- /dev/null +++ b/server/application/admin/lang/zh-cn/banner.php @@ -0,0 +1,15 @@ + '角标文案', + 'Title' => '主标题', + 'Subtitle' => '副标题', + 'Date_text' => '活动日期', + 'Theme' => '主题样式', + 'Action_text' => '按钮文案', + 'Stats' => '统计数据', + 'Image' => '运营图', + 'Link' => '跳转链接', + 'Weigh' => '权重', + 'Status' => '状态', +]; diff --git a/server/application/admin/lang/zh-cn/coupon.php b/server/application/admin/lang/zh-cn/coupon.php new file mode 100644 index 0000000..2d150ce --- /dev/null +++ b/server/application/admin/lang/zh-cn/coupon.php @@ -0,0 +1,8 @@ + '现金券', + 'Discount' => '折扣券', + 'Total' => '发行量', + 'Received' => '已领取', +]; diff --git a/server/application/admin/lang/zh-cn/invoice.php b/server/application/admin/lang/zh-cn/invoice.php new file mode 100644 index 0000000..9f91c1a --- /dev/null +++ b/server/application/admin/lang/zh-cn/invoice.php @@ -0,0 +1,9 @@ + '普通发票', + 'Special' => '专用发票', + 'Wait' => '开票中', + 'Issued' => '已开票', + 'Reject' => '已驳回', +]; diff --git a/server/application/admin/lang/zh-cn/master.php b/server/application/admin/lang/zh-cn/master.php new file mode 100644 index 0000000..fbd6587 --- /dev/null +++ b/server/application/admin/lang/zh-cn/master.php @@ -0,0 +1,9 @@ + '暂停接单', + 'On' => '接单中', + 'Pending' => '待审核', + 'Pass' => '已通过', + 'Reject' => '未通过', +]; diff --git a/server/application/admin/lang/zh-cn/merchant.php b/server/application/admin/lang/zh-cn/merchant.php new file mode 100644 index 0000000..3d3f0d3 --- /dev/null +++ b/server/application/admin/lang/zh-cn/merchant.php @@ -0,0 +1,9 @@ + '预付', + 'Monthly' => '月结', + 'Pending' => '待审核', + 'Pass' => '已通过', + 'Reject' => '未通过', +]; diff --git a/server/application/admin/lang/zh-cn/message.php b/server/application/admin/lang/zh-cn/message.php new file mode 100644 index 0000000..ab6cb8a --- /dev/null +++ b/server/application/admin/lang/zh-cn/message.php @@ -0,0 +1,10 @@ + '用户', + 'Master' => '师傅', + 'System' => '系统', + 'Audit' => '审核', + 'Remind' => '提醒', + 'Order' => '订单', +]; diff --git a/server/application/admin/lang/zh-cn/order.php b/server/application/admin/lang/zh-cn/order.php new file mode 100644 index 0000000..5fc8764 --- /dev/null +++ b/server/application/admin/lang/zh-cn/order.php @@ -0,0 +1,55 @@ + '订单号', + 'User_id' => '下单用户', + 'Master_id' => '接单师傅', + 'Service_id' => '服务ID', + 'Cat_id' => '类目ID', + 'Service_name' => '服务名称', + 'Service_image' => '服务主图', + 'Goods_images' => '商品图片', + 'Goods_model' => '商品型号', + 'Goods_num' => '商品数量', + 'Floor' => '楼层', + 'Has_elevator' => '有无电梯', + 'Urgent' => '是否加急', + 'Remark' => '备注/施工要求', + 'Contact' => '联系人', + 'Mobile' => '联系电话', + 'Province' => '省份', + 'City' => '城市', + 'District' => '区县', + 'Address' => '详细地址', + 'Lng' => '经度', + 'Lat' => '纬度', + 'Appoint_time' => '预约上门时间', + 'Base_amount' => '基础价', + 'Floor_amount' => '楼层费', + 'Distance_amount' => '距离费', + 'Urgent_amount' => '加急费', + 'Discount_amount' => '优惠金额', + 'Total_amount' => '订单总额', + 'Pay_amount' => '实付金额', + 'Status' => '订单状态', + 'Pay_status' => '支付状态', + 'Pay_type' => '支付方式', + 'Pay_time' => '支付时间', + 'Transaction_id' => '交易流水号', + 'Coupon_id' => '优惠券ID', + 'Accept_time' => '接单时间', + 'Contact_time' => '联系客户时间', + 'Arrive_time' => '到达时间', + 'Start_time' => '开始服务时间', + 'Finish_time' => '完工时间', + 'Verify_time' => '验收时间', + 'Verify_code' => '验收码', + 'Settle_status' => '结算状态', + 'Settle_amount' => '结算金额', + 'Cancel_reason' => '取消原因', + 'Refund_amount' => '退款金额', + 'Is_review' => '是否已评价', + 'Price_type' => '计价方式', + 'Createtime' => '创建时间', + 'Updatetime' => '更新时间', +]; diff --git a/server/application/admin/lang/zh-cn/review.php b/server/application/admin/lang/zh-cn/review.php new file mode 100644 index 0000000..625fa5a --- /dev/null +++ b/server/application/admin/lang/zh-cn/review.php @@ -0,0 +1,7 @@ + '星级(1-5)', + 'Tags' => '标签', + 'Reply' => '师傅回复', +]; diff --git a/server/application/admin/lang/zh-cn/service.php b/server/application/admin/lang/zh-cn/service.php new file mode 100644 index 0000000..1bfce17 --- /dev/null +++ b/server/application/admin/lang/zh-cn/service.php @@ -0,0 +1,16 @@ + '类目ID', + 'Name' => '服务名称', + 'Image' => '主图', + 'Price_type' => '计价方式', + 'Base_price' => '基础价', + 'Max_price' => '区间上限', + 'Unit' => '计价单位', + 'Floor_fee' => '楼层费(元/层)', + 'Free_floor' => '免费楼层数', + 'Need_model' => '是否需填型号', + 'Description' => '服务说明', + 'Sales' => '销量', +]; diff --git a/server/application/admin/lang/zh-cn/service/cat.php b/server/application/admin/lang/zh-cn/service/cat.php new file mode 100644 index 0000000..9e4609d --- /dev/null +++ b/server/application/admin/lang/zh-cn/service/cat.php @@ -0,0 +1,8 @@ + '父级ID', + 'Name' => '类目名称', + 'Icon' => '图标标识', + 'Weigh' => '权重', +]; diff --git a/server/application/admin/lang/zh-cn/settle.php b/server/application/admin/lang/zh-cn/settle.php new file mode 100644 index 0000000..203926e --- /dev/null +++ b/server/application/admin/lang/zh-cn/settle.php @@ -0,0 +1,7 @@ + '待结算', + 'Settled' => '已结算', + 'Offline' => '线下结算', +]; diff --git a/server/application/admin/lang/zh-cn/withdraw.php b/server/application/admin/lang/zh-cn/withdraw.php new file mode 100644 index 0000000..b7efc5e --- /dev/null +++ b/server/application/admin/lang/zh-cn/withdraw.php @@ -0,0 +1,10 @@ + '微信', + 'Bank' => '银行卡', + 'Wait' => '待审核', + 'Pass' => '已通过', + 'Reject' => '已驳回', + 'Done' => '已打款', +]; diff --git a/server/application/admin/model/Invoice.php b/server/application/admin/model/Invoice.php index 31bee8a..072e4fc 100644 --- a/server/application/admin/model/Invoice.php +++ b/server/application/admin/model/Invoice.php @@ -33,7 +33,7 @@ class Invoice extends Model public function getTypeList() { - return ['normal' => __('Normal'), 'special' => __('Special')]; + return ['normal' => __('Ordinary'), 'special' => __('Special')]; } public function getStatusList() diff --git a/server/application/admin/model/Order.php b/server/application/admin/model/Order.php index fa77ca9..6eefe4e 100644 --- a/server/application/admin/model/Order.php +++ b/server/application/admin/model/Order.php @@ -26,6 +26,12 @@ class Order extends Model // 追加属性 protected $append = [ 'price_type_text', + 'status_text', + 'pay_status_text', + 'settle_status_text', + 'is_review_text', + 'has_elevator_text', + 'urgent_text', 'appoint_time_text', 'pay_time_text', 'accept_time_text', @@ -51,6 +57,75 @@ class Order extends Model return $list[$value] ?? ''; } + public function getStatusList() + { + return [ + 0 => '待支付', 1 => '待接单', 2 => '报价中', 3 => '已接单', 4 => '待上门', + 5 => '已到达', 6 => '服务中', 7 => '待验收', 8 => '已完成', 9 => '已取消', 10 => '售后中', + ]; + } + + public function getPayStatusList() + { + return [0 => '未支付', 1 => '已支付', 2 => '已退款']; + } + + public function getSettleStatusList() + { + return [0 => '未结算', 1 => '已结算']; + } + + public function getIsReviewList() + { + return [0 => '未评价', 1 => '已评价']; + } + + public function getHasElevatorList() + { + return [0 => '无电梯', 1 => '有电梯']; + } + + public function getUrgentList() + { + return [0 => '普通', 1 => '加急']; + } + + public function getStatusTextAttr($value, $data) + { + $list = $this->getStatusList(); + return $list[(int)($data['status'] ?? 0)] ?? ''; + } + + public function getPayStatusTextAttr($value, $data) + { + $list = $this->getPayStatusList(); + return $list[(int)($data['pay_status'] ?? 0)] ?? ''; + } + + public function getSettleStatusTextAttr($value, $data) + { + $list = $this->getSettleStatusList(); + return $list[(int)($data['settle_status'] ?? 0)] ?? ''; + } + + public function getIsReviewTextAttr($value, $data) + { + $list = $this->getIsReviewList(); + return $list[(int)($data['is_review'] ?? 0)] ?? ''; + } + + public function getHasElevatorTextAttr($value, $data) + { + $list = $this->getHasElevatorList(); + return $list[(int)($data['has_elevator'] ?? 0)] ?? ''; + } + + public function getUrgentTextAttr($value, $data) + { + $list = $this->getUrgentList(); + return $list[(int)($data['urgent'] ?? 0)] ?? ''; + } + public function getAppointTimeTextAttr($value, $data) { diff --git a/server/application/admin/view/common/control.html b/server/application/admin/view/common/control.html index 69bc449..6e2b51a 100755 --- a/server/application/admin/view/common/control.html +++ b/server/application/admin/view/common/control.html @@ -39,26 +39,26 @@
{:__('Toggle between dark and light skins for the right sidebar')}
Blue
Black
Purple
Green
Red
Yellow
蓝色
黑色
紫色
绿色
红色
黄色
Blue Light
Black Light
Purple Light
Green Light
Red Light
Yellow Light
浅蓝色
浅黑色
浅紫色
浅绿色
浅红色
浅黄色
Black Blue
Black Purple
Black Green
Black Red
Black Yellow
Black Pink
黑蓝色
黑紫色
黑绿色
黑红色
黑黄色
黑粉色