diff --git a/api/homepage/index.js b/api/homepage/index.js new file mode 100644 index 0000000..17569f9 --- /dev/null +++ b/api/homepage/index.js @@ -0,0 +1,38 @@ +import request from "../request.js" + +// 查询工单列表 +export function getList(data) { + return request({ + url: `/nurseApp/orders/getList`, + method: 'GET', + data: data + }) +} + +//修改订单状态 +export function updateStatus(data) { + return request({ + url: `/nurseApp/orders/updateStatus`, + method: 'post', + data: data + }) +} + +//拒单接口 +export function closeHealthConsultationOrder(data) { + return request({ + url: `/nurseApp/weChatPayment/closeHealthConsultationOrder`, + method: 'post', + data: data + }) +} + + +//消息列表 +export function consultationInfolist(data) { + return request({ + url: `/nurseApplet/consultationInfo/list`, + method: 'get', + data: data + }) +} \ No newline at end of file diff --git a/api/taskDetails/index.js b/api/taskDetails/index.js new file mode 100644 index 0000000..ceda26c --- /dev/null +++ b/api/taskDetails/index.js @@ -0,0 +1,9 @@ +import request from "../request.js" + +// 工单详情 +export function consultationInfo(id) { + return request({ + url: `/nurseApplet/consultationInfo/${id}`, + method: 'GET', + }) +} \ No newline at end of file diff --git a/pages/seekadvicefrom/seekadvicefrom.vue b/pages/seekadvicefrom/seekadvicefrom.vue new file mode 100644 index 0000000..8c5e893 --- /dev/null +++ b/pages/seekadvicefrom/seekadvicefrom.vue @@ -0,0 +1,755 @@ + + + + + \ No newline at end of file diff --git a/pages/taskDetails/taskDetails.vue b/pages/taskDetails/taskDetails.vue new file mode 100644 index 0000000..2ee7bb6 --- /dev/null +++ b/pages/taskDetails/taskDetails.vue @@ -0,0 +1,163 @@ + + + + + \ No newline at end of file diff --git a/static/homepages.png b/static/homepages.png new file mode 100644 index 0000000..9b8a228 Binary files /dev/null and b/static/homepages.png differ diff --git a/static/jinbi.png b/static/jinbi.png new file mode 100644 index 0000000..87bf6a4 Binary files /dev/null and b/static/jinbi.png differ diff --git a/static/my.png b/static/my.png new file mode 100644 index 0000000..2a8c80f Binary files /dev/null and b/static/my.png differ diff --git a/static/mys.png b/static/mys.png new file mode 100644 index 0000000..0754c73 Binary files /dev/null and b/static/mys.png differ diff --git a/utils/conversion.js b/utils/conversion.js new file mode 100644 index 0000000..c96eda1 --- /dev/null +++ b/utils/conversion.js @@ -0,0 +1,29 @@ +export function getSex(idCard) { + if (idCard.length === 15) { + return ['女', '男'][idCard.substr(14, 1) % 2] + } else if (idCard.length === 18) { + return ['女', '男'][idCard.substr(16, 1) % 2] + } + return '' +} + +export function getBirthday(idCard) { + var birthday = ""; + if (idCard != null && idCard != "") { + if (idCard.length == 15) { + birthday = "19" + idCard.substr(6, 6); + } else if (idCard.length == 18) { + birthday = idCard.substr(6, 8); + } + birthday = birthday.replace(/(.{4})(.{2})/, "$1-$2-"); + } + return birthday; +}; +// 出生日期转年龄 +export function getAgeFun(value) { + var birthdays = new Date(value.replace(/-/g, "/")); //value 是传入的值 + var time = new Date(); //当前时间 + var age = time.getFullYear() - birthdays.getFullYear() - (time.getMonth() < birthdays.getMonth() || (time.getMonth() == birthdays.getMonth() && + time.getDate() < birthdays.getDate()) ? 1 : 0); + return age; +}