liyongli пре 3 година
родитељ
комит
1a26d5136f
2 измењених фајлова са 40 додато и 44 уклоњено
  1. 40 1
      src/views/Apply.vue
  2. 0 43
      src/views/Appointment.vue

+ 40 - 1
src/views/Apply.vue

@@ -103,7 +103,7 @@ import "vant/lib/field/style/index";
 import "vant/lib/button/style/index";
 import "vant/lib/popup/style/index";
 import "vant/lib/picker/style/index";
-
+// import { urlSearchData } from "../utils/tool";
 import { goodsList, apply, applyrang } from "../api/index";
 import { isIphone, isAndroid } from "@/utils/isTerminal.js";
 
@@ -129,6 +129,45 @@ export default {
     };
   },
   mounted() {
+    // let search = urlSearchData();
+    // getAPPUser({
+    //   ticket: search.ticket,
+    // }).then(r => {
+    //   getAPPToken("rest/63bada00-7d01-4acc-ab2b-df8061eeeb8f").then(res => {
+    //     const t = JSON.parse(res || "{}");
+    //     localStorage.token = t.id;
+    //     getAPPUserDetail({
+    //       loginName: r,
+    //     }).then(detail => {
+    //       const obj = JSON.parse(detail || "{}");
+    //       console.log(obj);
+    //       that.phone = obj.telNumber;
+    //       that.name = obj.name;
+    //       orderList({
+    //         userPhone: that.phone || "",
+    //       }).then(res => {
+    //         const li = res || [];
+    //         let l = [];
+    //         li.sort((a, b) => {
+    //           return new Date(a.orderTime) - new Date(b.orderTime);
+    //         });
+    //         for (let i = 0; i < li.length; i++) {
+    //           const v = li[i];
+    //           v.orderTime = v.orderTime.replace(/:00$/, "");
+    //           let key = v.orderTime.split(" ")[0];
+    //           if (that.group[key]) {
+    //             that.group[key].push(v);
+    //           } else {
+    //             l.push(key);
+    //             that.group[key] = [v];
+    //           }
+    //         }
+    //         that.dataList = l;
+    //         that.onChange();
+    //       });
+    //     });
+    //   });
+    // });
     window.voteNext = () => {
       let user = "";
       var payload = {

+ 0 - 43
src/views/Appointment.vue

@@ -77,11 +77,7 @@ import "vant/lib/sidebar-item/style/index";
 import {
   orderList,
   cancel,
-  //   getAPPUser,
-  //   getAPPToken,
-  //   getAPPUserDetail,
 } from "../api/index";
-// import { urlSearchData } from "../utils/tool";
 
 export default {
   name: "Appointment",
@@ -100,7 +96,6 @@ export default {
     this.phone = this.$route.query.phone || "";
     this.name = this.$route.query.userName || "";
     localStorage.token = "";
-    // let search = urlSearchData();
     const that = this;
     orderList({
       userPhone: that.phone || "",
@@ -126,44 +121,6 @@ export default {
       that.dataList = l;
       that.onChange();
     });
-    // getAPPUser({
-    //   ticket: search.ticket,
-    // }).then(r => {
-    //   getAPPToken("rest/63bada00-7d01-4acc-ab2b-df8061eeeb8f").then(res => {
-    //     const t = JSON.parse(res || "{}");
-    //     localStorage.token = t.id;
-    //     getAPPUserDetail({
-    //       loginName: r,
-    //     }).then(detail => {
-    //       const obj = JSON.parse(detail || "{}");
-    //       console.log(obj);
-    //       that.phone = obj.telNumber;
-    //       that.name = obj.name;
-    //       orderList({
-    //         userPhone: that.phone || "",
-    //       }).then(res => {
-    //         const li = res || [];
-    //         let l = [];
-    //         li.sort((a, b) => {
-    //           return new Date(a.orderTime) - new Date(b.orderTime);
-    //         });
-    //         for (let i = 0; i < li.length; i++) {
-    //           const v = li[i];
-    //           v.orderTime = v.orderTime.replace(/:00$/, "");
-    //           let key = v.orderTime.split(" ")[0];
-    //           if (that.group[key]) {
-    //             that.group[key].push(v);
-    //           } else {
-    //             l.push(key);
-    //             that.group[key] = [v];
-    //           }
-    //         }
-    //         that.dataList = l;
-    //         that.onChange();
-    //       });
-    //     });
-    //   });
-    // });
   },
   computed: {},
   methods: {