Ver código fonte

index页面开发

tanxue 1 ano atrás
pai
commit
867db53b21

+ 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