Bladeren bron

[formart]

x 5 jaren geleden
bovenliggende
commit
7486acb02e
3 gewijzigde bestanden met toevoegingen van 20 en 10 verwijderingen
  1. 11 9
      src/utils/index.js
  2. 5 0
      src/views/user/CustomerList.vue
  3. 4 1
      src/views/user/UserVip.vue

+ 11 - 9
src/utils/index.js

@@ -38,17 +38,19 @@ export function parseQuery() {
   return res;
 }
 
-export function getQueryVariable (variable) {
-    var query = window.location.search.substring(1);
-    var vars = query.split("&");
-    for (var i=0;i<vars.length;i++) {
-        var pair = vars[i].split("=");
-        if(pair[0] == variable){return pair[1];}
+export function getQueryVariable(variable) {
+  var query = window.location.search.substring(1);
+  var vars = query.split("&");
+  for (var i = 0; i < vars.length; i++) {
+    var pair = vars[i].split("=");
+    if (pair[0] == variable) {
+      return pair[1];
     }
-    return(false);
+  }
+  return false;
 }
-
-const VUE_APP_API_URL = "http://192.168.3.20/api"; // process.env.VUE_APP_API_URL || `${location.origin}/api`;
+// https://twongd.shotshock.shop/api
+const VUE_APP_API_URL = "https://twongd.shotshock.shop/api"; // process.env.VUE_APP_API_URL || `${location.origin}/api`;
 const VUE_APP_WS_URL =
   process.env.VUE_APP_WS_URL || `ws:${location.hostname}:20003`;
 

+ 5 - 0
src/views/user/CustomerList.vue

@@ -1,5 +1,6 @@
 <template>
   <div class="CustomerList">
+    <NavBar></NavBar>
     <div
       class="item acea-row row-between-wrapper"
       v-for="item in list"
@@ -21,9 +22,13 @@
 </template>
 <script>
 import { serviceList } from "@api/user";
+import NavBar from "@components/NavBar";
 
 export default {
   name: "CustomerList",
+  components: {
+    NavBar
+  },
   data() {
     return {
       list: [],

+ 4 - 1
src/views/user/UserVip.vue

@@ -1,6 +1,7 @@
 <template>
   <div class="member-center">
     <div class="header">
+      <NavBar></NavBar>
       <div class="slider-banner banner">
         <swiper class="swiper-wrapper" :options="swiperVip" ref="mySwiper">
           <swiperSlide
@@ -92,12 +93,14 @@ import { swiper, swiperSlide } from "vue-awesome-swiper";
 import "@assets/css/swiper.min.css";
 import Recommend from "@components/Recommend";
 import { getVipInfo, getVipTask, setDetection } from "../../api/user";
+import NavBar from "@components/NavBar";
 export default {
   name: "Poster",
   components: {
     swiper,
     swiperSlide,
-    Recommend
+    Recommend,
+    NavBar
   },
   props: {},
   data: function() {