Эх сурвалжийг харах

Revert "feat:用户上单"

This reverts commit dbdd521c26e4dbb668ebf3711e8989062f25d411.
north 6 жил өмнө
parent
commit
e0bf93d455

+ 1 - 10
www/webapp/safety/src/util/api.js

@@ -19,7 +19,7 @@ export function userId() {
       '57e38f1b9f5160ac048b457d', // 塘下七武海-涛
       '57e38f1b9f5160ac048b457d', // 塘下七武海-涛
     ],
     ],
   };
   };
-  return localStorage.getItem('wxUserID2') != null ? localStorage.getItem('wxUserID2') : id.client[0];
+  return localStorage.getItem('wxUserID2') != null ? localStorage.getItem('wxUserID2') : id.care[0];
 }
 }
 
 
 export function apiPath() {
 export function apiPath() {
@@ -100,15 +100,6 @@ export async function getJsOrderList(params) {
   const data = await axios.post(`${apiPath()}/ch/JSOrder/list`, qs.stringify(params));
   const data = await axios.post(`${apiPath()}/ch/JSOrder/list`, qs.stringify(params));
   return data.data;
   return data.data;
 }
 }
-/**
- * 用户上单
- * @param {String} params.user_id // user_id
- * @param {String} params.work_id // work_id
- */
-export async function addJsOrderList(params) {
-  const data = await axios.post(`${apiPath()}/ch/JSOrder/order`, qs.stringify(params));
-  return data.data;
-}
 
 
 // 用户注册==>获取短信验证码
 // 用户注册==>获取短信验证码
 export async function getSMS(params) {
 export async function getSMS(params) {

+ 2 - 29
www/webapp/safety/src/views/Client/Order/index.vue

@@ -1,37 +1,10 @@
 <template>
 <template>
-  <div class="order">
+  <div class="upon">
     上单
     上单
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
-import { userId, addJsOrderList } from "@/util/api";
-
 export default {
 export default {
-  created() {
-    if (
-      // eslint-disable-next-line
-      JSON.stringify(this.$route.query) !== "{}" &&
-      this.$route.query.work_id !== ""
-    ) {
-      addJsOrderList({
-        user_id: userId(),
-        work_id: this.$route.query.work_id
-      }).then(res => {
-        console.log(res);
-      });
-    }
-  }
+  created() {}
 };
 };
 </script>
 </script>
-<style lang="less" scoped>
-.order {
-  position: fixed;
-  top: 0;
-  bottom: 0;
-  right: 0;
-  left: 0;
-  height: 100vh;
-  background-color: #fff;
-  z-index: 1003;
-}
-</style>