瀏覽代碼

index页面开发

tanxue 1 年之前
父節點
當前提交
867db53b21
共有 4 個文件被更改,包括 37 次插入1 次删除
  1. 36 0
      api/index.js
  2. 1 1
      pages.json
  3. 二進制
      static/images/index/index-kc-default.jpg
  4. 二進制
      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": "首页"
 			}
 		},
 		{

二進制
static/images/index/index-kc-default.jpg


二進制
static/images/index/index-ks-default.png