|
@@ -2,20 +2,29 @@ import I18nBehavior from "../../i18n/behavior";
|
|
|
import { getPatients, getPatientPhone } from "../home/request";
|
|
import { getPatients, getPatientPhone } from "../home/request";
|
|
|
import { toCertificationPage } from "../home/router";
|
|
import { toCertificationPage } from "../home/router";
|
|
|
import { getOrderList, getRecordCountMethod } from "../home/request";
|
|
import { getOrderList, getRecordCountMethod } from "../home/request";
|
|
|
|
|
+
|
|
|
|
|
+const i18n = {
|
|
|
|
|
+ consultChat: { title: "记录" },
|
|
|
|
|
+ offlineTreatment: { title: "线下" },
|
|
|
|
|
+ healthTeach: { title: "分享文章" },
|
|
|
|
|
+ health: { title: "档案" },
|
|
|
|
|
+ home: {
|
|
|
|
|
+ __showRecord__: false,
|
|
|
|
|
+ tea: "茶",
|
|
|
|
|
+ tonic: "菜谱",
|
|
|
|
|
+ },
|
|
|
|
|
+ orderText: {
|
|
|
|
|
+ mineOrder: "我的服务",
|
|
|
|
|
+ paying: "待确认",
|
|
|
|
|
+ paid: "已确认",
|
|
|
|
|
+ paySuccess: "已完成",
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
Page({
|
|
Page({
|
|
|
behaviors: [I18nBehavior],
|
|
behaviors: [I18nBehavior],
|
|
|
data: {
|
|
data: {
|
|
|
- i18n: {
|
|
|
|
|
- consultChat: { title: '记录' },
|
|
|
|
|
- offlineTreatment: { title: '线下' },
|
|
|
|
|
- healthTeach: { title: '分享文章' },
|
|
|
|
|
- health: { title: '档案' },
|
|
|
|
|
- home: {
|
|
|
|
|
- __showRecord__: false,
|
|
|
|
|
- tea: '茶',
|
|
|
|
|
- tonic: '菜谱',
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ i18n,
|
|
|
patients: [] as (App.Patient.Model & { isDefault: "Y" | "N" })[],
|
|
patients: [] as (App.Patient.Model & { isDefault: "Y" | "N" })[],
|
|
|
patient: null as App.Patient.Model | null,
|
|
patient: null as App.Patient.Model | null,
|
|
|
patientDescription: "",
|
|
patientDescription: "",
|
|
@@ -26,21 +35,21 @@ Page({
|
|
|
mineOrderList: [
|
|
mineOrderList: [
|
|
|
{
|
|
{
|
|
|
url: "../../assets/icon/obligation@3x.png",
|
|
url: "../../assets/icon/obligation@3x.png",
|
|
|
- name: "待付款",
|
|
|
|
|
|
|
+ name: i18n.orderText.paying,
|
|
|
count: 0,
|
|
count: 0,
|
|
|
type: 1,
|
|
type: 1,
|
|
|
tab: "pending",
|
|
tab: "pending",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
url: "../../assets/icon/delivery@3x.png",
|
|
url: "../../assets/icon/delivery@3x.png",
|
|
|
- name: "已付款",
|
|
|
|
|
|
|
+ name: i18n.orderText.paid,
|
|
|
count: 0,
|
|
count: 0,
|
|
|
type: 2,
|
|
type: 2,
|
|
|
tab: "paid",
|
|
tab: "paid",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
url: "../../assets/icon/deal@3x.png",
|
|
url: "../../assets/icon/deal@3x.png",
|
|
|
- name: "交易成功",
|
|
|
|
|
|
|
+ name: i18n.orderText.paySuccess,
|
|
|
count: 0,
|
|
count: 0,
|
|
|
type: 3,
|
|
type: 3,
|
|
|
tab: "completed",
|
|
tab: "completed",
|