Bladeren bron

首页预约添加ID字段

yuhao 2 jaren geleden
bovenliggende
commit
20605c4f35
3 gewijzigde bestanden met toevoegingen van 8 en 5 verwijderingen
  1. 3 1
      src/pages/home/calendarPop/index.vue
  2. 1 0
      src/pages/home/index.vue
  3. 4 4
      vue.config.js

+ 3 - 1
src/pages/home/calendarPop/index.vue

@@ -9,7 +9,7 @@
9 9
       >
10 10
         <span slot="title" class="slot-title">
11 11
           <i @click="closeFilterPop" class="el-icon-arrow-left"></i>
12
-          10月客户预约表
12
+          {{month}}月客户预约表
13 13
         </span>
14 14
         <!-- 日历 -->
15 15
         <el-calendar v-model="value">
@@ -49,6 +49,7 @@ export default {
49 49
       value: "",
50 50
       orderSumList: "", //每天预约人数
51 51
       today: "",
52
+      month:'',
52 53
     };
53 54
   },
54 55
   methods: {
@@ -110,6 +111,7 @@ export default {
110 111
     // 获取当天日
111 112
     let date = new Date();
112 113
     this.today = date.getDate();
114
+    this.month = date.getMonth()+1
113 115
   },
114 116
 };
115 117
 </script>

+ 1 - 0
src/pages/home/index.vue

@@ -34,6 +34,7 @@
34 34
             </div>
35 35
             <div class="user-information">
36 36
               <div class="name">客户昵称:<span>{{ item.nickname }}</span></div>
37
+              <div class="name">客户ID:<span>{{ item.user_id }}</span></div>
37 38
               <div class="name">预约项目时间:<span>{{ item.order_time }}</span></div>
38 39
               <div class="name">预约项目数量:<span>{{ item.project_num }}</span></div>
39 40
             </div>

+ 4 - 4
vue.config.js

@@ -4,11 +4,11 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
4 4
 
5 5
 module.exports = {
6 6
   // 测试
7
-  publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/test_pad/dist' :
8
-    process.env.env_config === 'test' ? '/vapps/calory/' : '/dist/',
9
-  // 正式
10
-  // publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/dist' :
7
+  // publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/test_pad/dist' :
11 8
   //   process.env.env_config === 'test' ? '/vapps/calory/' : '/dist/',
9
+  // 正式
10
+  publicPath: process.env.env_config === 'prod' ? 'https://h5-cms-vue.ijolijoli.com/dist' :
11
+    process.env.env_config === 'test' ? '/vapps/calory/' : '/dist/',
12 12
   // 设置跨域
13 13
   crossorigin: 'anonymous',
14 14
   /**