wangfei 6 years ago
parent
commit
6aca7edb42
3 changed files with 10 additions and 1 deletions
  1. 1
    1
      config/api.js
  2. 7
    0
      pages/AppointmentTime/index.js
  3. 2
    0
      pages/SelfServiceTool/Cyclopedia/index.js

+ 1
- 1
config/api.js View File

@@ -122,7 +122,7 @@ const $api = {
122 122
   uploadImage: { // 图片上传
123 123
     method: 'POST',
124 124
     url: `${BaseAPIURl}uploadImage`
125
-  }
125
+  },
126 126
 }
127 127
 
128 128
 const hasKey = (o, k) => Object.keys(o).indexOf(k) > -1

+ 7
- 0
pages/AppointmentTime/index.js View File

@@ -15,6 +15,13 @@ Page({
15 15
       BuildingId: page.getCurrentPageOptions().id,
16 16
       BuildingName: page.getCurrentPageOptions().name
17 17
     })
18
+    this.setData({
19
+      FormData: {
20
+        Name: app.globalData.UserInfo.customerName,
21
+        PhoneNum: app.globalData.UserInfo.phone,
22
+      }
23
+    })
24
+    
18 25
   },
19 26
   data: {
20 27
     UserInfo: app.globalData.UserInfo, // 用户信息

+ 2
- 0
pages/SelfServiceTool/Cyclopedia/index.js View File

@@ -1,6 +1,8 @@
1 1
 //index.js
2 2
 //获取应用实例
3 3
 const app = getApp()
4
+import fetch from '../../../utils/http'
5
+const $api = require('../../../config/api.js').$api;
4 6
 
5 7
 Page({
6 8
   onShow() {