Bläddra i källkod

index页面开发

tanxue 1 år sedan
förälder
incheckning
867db53b21
4 ändrade filer med 37 tillägg och 1 borttagningar
  1. 36 0
      api/index.js
  2. 1 1
      pages.json
  3. BIN
      static/images/index/index-kc-default.jpg
  4. BIN
      static/images/index/index-ks-default.png

+ 36 - 0
api/index.js

@@ -0,0 +1,36 @@
+import request from '@/utils/request'
+export function getExamList(data = {}) {
+  return request({
+    'url': '/app/kaoshi/list',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}
+
+export function getCourseList(data = {}) {
+  return request({
+    'url': '/app/kecheng/list',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}
+
+export function getNoticeCount(data = {}) {
+  return request({
+    'url': '/app/index',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}

+ 1 - 1
pages.json

@@ -9,7 +9,7 @@
 		{
 			"path": "pages/index/index",
 			"style": {
-				"navigationBarTitleText": "uni-app"
+				"navigationBarTitleText": "首页"
 			}
 		},
 		{

BIN
static/images/index/index-kc-default.jpg


BIN
static/images/index/index-ks-default.png