diff --git a/test_mini/app.json b/test_mini/app.json
index 9fc31ef..3a8f7e1 100644
--- a/test_mini/app.json
+++ b/test_mini/app.json
@@ -21,7 +21,8 @@
"pages/workscope/index",
"pages/yati/index",
"pages/article/index",
- "pages/article/detail"
+ "pages/article/detail",
+ "pages/quota/quota"
],
"window": {
"backgroundTextStyle": "light",
diff --git a/test_mini/images/quota.svg b/test_mini/images/quota.svg
new file mode 100644
index 0000000..44b74be
--- /dev/null
+++ b/test_mini/images/quota.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/test_mini/pages/main/main.wxml b/test_mini/pages/main/main.wxml
index 4837c2a..1835961 100644
--- a/test_mini/pages/main/main.wxml
+++ b/test_mini/pages/main/main.wxml
@@ -16,6 +16,17 @@
+
+
+
+
+
+ 考试名额监控
+
+
+
+
+
diff --git a/test_mini/pages/quota/quota.js b/test_mini/pages/quota/quota.js
new file mode 100644
index 0000000..8af6002
--- /dev/null
+++ b/test_mini/pages/quota/quota.js
@@ -0,0 +1,66 @@
+// pages/quota/quota.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/test_mini/pages/quota/quota.json b/test_mini/pages/quota/quota.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/test_mini/pages/quota/quota.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/test_mini/pages/quota/quota.wxml b/test_mini/pages/quota/quota.wxml
new file mode 100644
index 0000000..885d0cf
--- /dev/null
+++ b/test_mini/pages/quota/quota.wxml
@@ -0,0 +1,2 @@
+
+pages/quota/quota.wxml
diff --git a/test_mini/pages/quota/quota.wxss b/test_mini/pages/quota/quota.wxss
new file mode 100644
index 0000000..9afd70a
--- /dev/null
+++ b/test_mini/pages/quota/quota.wxss
@@ -0,0 +1 @@
+/* pages/quota/quota.wxss */
\ No newline at end of file
diff --git a/test_server/analyse/urls.py b/test_server/analyse/urls.py
index e598c48..04fa966 100644
--- a/test_server/analyse/urls.py
+++ b/test_server/analyse/urls.py
@@ -6,4 +6,5 @@ from .views import *
urlpatterns = [
path('basic/', BasicCount.as_view()),
+ path('quota/', Quota.as_view())
]
diff --git a/test_server/analyse/views.py b/test_server/analyse/views.py
index f3923e5..7d2db71 100644
--- a/test_server/analyse/views.py
+++ b/test_server/analyse/views.py
@@ -6,6 +6,7 @@ from crm.models import Consumer
from examtest.models import ExamTest
from question.models import Question
+import pickle
# Create your views here.
class BasicCount(APIView):
@@ -19,3 +20,12 @@ class BasicCount(APIView):
ret['test_count'] = ExamTest.objects.filter(is_delete=False).count()
ret['question_count'] = Question.objects.filter(is_delete=False).count()
return Response(ret)
+
+class Quota(APIView):
+ '''
+ 获取考试名额
+ '''
+ def get(self, request, format=None):
+ with open('quota.dat','rb') as f:
+ data = pickle.load(f)
+ return Response(data)
diff --git a/test_server/quota.dat b/test_server/quota.dat
new file mode 100644
index 0000000..442cdb6
Binary files /dev/null and b/test_server/quota.dat differ