|
@@ -1,30 +1,27 @@
|
|
-import history from '../../../utils/history';
|
|
|
|
|
|
+import history from "../../../utils/history";
|
|
Component({
|
|
Component({
|
|
- props: {
|
|
|
|
- item: {}
|
|
|
|
- },
|
|
|
|
- data: {},
|
|
|
|
|
|
+ props: {
|
|
|
|
+ item: {},
|
|
|
|
+ },
|
|
|
|
+ data: {},
|
|
|
|
|
|
- didMount() {},
|
|
|
|
|
|
+ didMount() {},
|
|
|
|
|
|
- methods: {
|
|
|
|
- onItemTap({
|
|
|
|
- target
|
|
|
|
- }) {
|
|
|
|
- const {
|
|
|
|
- item: {
|
|
|
|
- orderId,
|
|
|
|
- type
|
|
|
|
- }
|
|
|
|
- } = target.dataset;
|
|
|
|
- history.push({
|
|
|
|
- title: '预约详情',
|
|
|
|
- query: {
|
|
|
|
- orderId
|
|
|
|
- },
|
|
|
|
- pageType: type !== 'nucleic' ? 'appointment-result' : 'booking-detail'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-});
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ onItemTap({ target }) {
|
|
|
|
+ const {
|
|
|
|
+ item: { orderId, type, deptCode = "" },
|
|
|
|
+ } = target.dataset;
|
|
|
|
+ history.push({
|
|
|
|
+ title: "预约详情",
|
|
|
|
+ query: {
|
|
|
|
+ orderId,
|
|
|
|
+ },
|
|
|
|
+ pageType:
|
|
|
|
+ deptCode == "500" || deptCode == "400"
|
|
|
|
+ ? "booking-detail"
|
|
|
|
+ : "appointment-result",
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+});
|