diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..115cc02
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,31 @@
+/*
+ * Eslint config file
+ * Documentation: https://eslint.org/docs/user-guide/configuring/
+ * Install the Eslint extension before using this feature.
+ */
+module.exports = {
+ env: {
+ es6: true,
+ browser: true,
+ node: true,
+ },
+ ecmaFeatures: {
+ modules: true,
+ },
+ parserOptions: {
+ ecmaVersion: 2018,
+ sourceType: 'module',
+ },
+ globals: {
+ wx: true,
+ App: true,
+ Page: true,
+ getCurrentPages: true,
+ getApp: true,
+ Component: true,
+ requirePlugin: true,
+ requireMiniProgram: true,
+ },
+ // extends: 'eslint:recommended',
+ rules: {},
+}
diff --git a/1.png b/1.png
new file mode 100644
index 0000000..08105fa
Binary files /dev/null and b/1.png differ
diff --git a/2.png b/2.png
new file mode 100644
index 0000000..00b77e9
Binary files /dev/null and b/2.png differ
diff --git a/3.png b/3.png
new file mode 100644
index 0000000..3b60548
Binary files /dev/null and b/3.png differ
diff --git a/4.png b/4.png
new file mode 100644
index 0000000..6df81bc
Binary files /dev/null and b/4.png differ
diff --git a/README.md b/README.md
index 3cf6b71..b3446d7 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,3 @@
# qimokao
-
+![https://b23.tv/IYbVzhU
+](./4.png)
diff --git a/app.js b/app.js
new file mode 100644
index 0000000..1ed57c4
--- /dev/null
+++ b/app.js
@@ -0,0 +1,19 @@
+// app.js
+App({
+ onLaunch() {
+ // 展示本地存储能力
+ const logs = wx.getStorageSync('logs') || []
+ logs.unshift(Date.now())
+ wx.setStorageSync('logs', logs)
+
+ // 登录
+ wx.login({
+ success: res => {
+ // 发送 res.code 到后台换取 openId, sessionKey, unionId
+ }
+ })
+ },
+ globalData: {
+ userInfo: null
+ }
+})
diff --git a/app.json b/app.json
new file mode 100644
index 0000000..f3474b8
--- /dev/null
+++ b/app.json
@@ -0,0 +1,38 @@
+{
+ "pages":[
+ "pages/index/index",
+ "pages/history/history",
+ "pages/apply/apply"
+ ],
+"entryPagePath": "pages/index/index",
+ "window":{
+ "backgroundTextStyle":"light",
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTitleText": "中国古代数学",
+ "navigationBarTextStyle":"black"
+ },
+ "tabBar": {
+ "list": [
+ {
+ "pagePath": "pages/index/index",
+ "text": "首页",
+ "iconPath": "/pages/images/a.png",
+ "selectedIconPath": "/pages/images/a1.png"
+ },
+ {
+ "pagePath": "pages/history/history",
+ "text": "历史",
+ "iconPath": "/pages/images/b.png",
+ "selectedIconPath": "/pages/images/b1.png"
+ },
+ {
+ "pagePath": "pages/apply/apply",
+ "text": "应用",
+ "iconPath": "/pages/images/d.png",
+ "selectedIconPath": "/pages/images/d1.png"
+ }
+ ]
+ },
+ "style": "v2",
+ "sitemapLocation": "sitemap.json"
+}
diff --git a/app.wxss b/app.wxss
new file mode 100644
index 0000000..06c6fc9
--- /dev/null
+++ b/app.wxss
@@ -0,0 +1,10 @@
+/**app.wxss**/
+.container {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: space-between;
+ padding: 200rpx 0;
+ box-sizing: border-box;
+}
diff --git a/pages/apply/apply.js b/pages/apply/apply.js
new file mode 100644
index 0000000..2d6bee3
--- /dev/null
+++ b/pages/apply/apply.js
@@ -0,0 +1,66 @@
+// pages/apply/apply.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/apply/apply.json b/pages/apply/apply.json
new file mode 100644
index 0000000..964ff81
--- /dev/null
+++ b/pages/apply/apply.json
@@ -0,0 +1,3 @@
+{
+ "navigationBarTitleText": "应用"
+}
\ No newline at end of file
diff --git a/pages/apply/apply.wxml b/pages/apply/apply.wxml
new file mode 100644
index 0000000..0279509
--- /dev/null
+++ b/pages/apply/apply.wxml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+ 【中国古代数学应用】
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+中国古代数学还涉及到许多其他方面,如天文学、航海、工程等。在古代的天文学y研究中,数学起到了至关重要的作用,如利用勾股定理等数学知识来计算天文数据和星体位置。
+
+在航海方面,中国古代数学也有着广泛的应用,如通过计算航路和确定航行速度等,以保证船舶的安全航行。此外,中国古代数学在工程领域也有着重要的应用,如利用算盘等工具进行计算和测量,以确保建筑工程的质量和安全。
+
+总之,中国古代数学的应用非常广泛和深入,不仅涉及到各个领域,而且为古代中国的经济发展、社会进步和科技发展做出了重要的贡献。
+
+除了以上提到的应用场景,中国古代数学还与古代的科技发展有着密切的联系。例如,在机械制造方面,数学被用于设计和制造各种复杂的机械装置,如水车、纺织机等。此外,在医学领域,中国古代数学也发挥了重要作用,如通过计算人体比例和尺寸来设计医疗器械和药物配方。
+
+总的来说,中国古代数学的应用是多元而广泛的,不仅涉及到了经济、社会和科技的发展,更在一定程度上推动了古代文明的发展和进步。这些数学的应用,不仅仅是为了解决实际问题,更是在实践中孕育出了独特的数学思想和理念,为中国古代的数学发展注入了源源不断的动力。
+
+当然,除了上述的例子,中国古代数学的应用还体现在其他许多方面。例如,在教育领域,数学被广泛应用于培养学生的计算和推理能力,为未来的社会发展培养了一批又一批的优秀人才。
+
+同时,中国古代数学的应用也体现在文学和艺术领域。例如,在诗词中,数学意象和数学思维被广泛应用,如“一寸光阴一寸金,金是光阴之积”等诗句,就运用了比例和乘法的知识。而在绘画中,在绘画方面,如“黄金分割”等理念,也被用于设计画面的布局和比例,在古代绘画中得到了广泛应用。
+
+综上所述,中国古代数学的应用是多元而广泛的,它不仅推动了古代社会的经济发展、科技进步和文明发展,还在各个领域中孕育出了独特的数学思想和理念,为后人留下了宝贵的文化遗产。
+
\ No newline at end of file
diff --git a/pages/apply/apply.wxss b/pages/apply/apply.wxss
new file mode 100644
index 0000000..8e45472
--- /dev/null
+++ b/pages/apply/apply.wxss
@@ -0,0 +1,56 @@
+/* pages/apply/apply.wxss */
+page{
+ height:100%;
+}
+
+.head{
+ width: 100%;
+ height: 30%;
+}
+
+.head image{
+ width: 100%;
+ height: 100%;
+}
+
+.new{
+ width: 100%;
+ height: 30%;
+ border: 1rpx solid black;
+}
+/* 标题 */
+.new .title{
+ width: 100%;
+ height: 20%;
+ border: 1rpx solid blanchedalmond;
+ text-align: center;
+}
+/* 产品 */
+scroll-view{
+ width: 100%;
+ height: 80%;
+ border: 1rpx solid black;
+}
+
+.pros{
+ width: 100%;
+ height: 100%;
+ white-space: nowrap;
+}
+
+.pros .pro{
+ /* flex-shrink: 0; */
+ width: 30%;
+ height: 100%;
+ border: 1rpx solid black;
+ display: inline-block;
+}
+.pros .pro image{
+ width: 100%;
+ height: 100%;
+}
+
+.version{
+ width: 100%;
+ border: 1rpx solid black;
+}
\ No newline at end of file
diff --git a/pages/history/history.js b/pages/history/history.js
new file mode 100644
index 0000000..a0128ab
--- /dev/null
+++ b/pages/history/history.js
@@ -0,0 +1,119 @@
+// pages/history/history.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ index:0,
+ pros:[
+ {
+ url:"/pages/images/11.jpg"
+ },
+ {
+ url:"/pages/images/22.jpg"
+ },
+ {
+ url:"/pages/images/33.jpg"
+ },
+ {
+ url:"/pages/images/44.jpg"
+ },
+ {
+ url:"/pages/images/55.jpg"
+ }
+ ]
+ },
+ navclick(event){
+
+ console.log("进入点击事件");
+ console.log(event.target.dataset.index);
+
+ this.setData({
+ index:event.target.dataset.index
+ })
+ var index =event.target.dataset.index;
+ var result=null;
+ if(index==0){
+ result=[
+ {
+ url:"/pages/images/11.jpg"
+ },
+ {
+ url:"/pages/images/22.jpg"
+ },
+ {
+ url:"/pages/images/33.jpg"
+ },
+ {
+ url:"/pages/images/44.jpg"
+ },
+ {
+ url:"/pages/images/55.jpg"
+ }
+ ];
+ }else if(index==1){
+ result=[
+ {
+ url:"/pages/images/21.png"
+ },
+ {
+ url:"/pages/images/22.png"
+ },
+ {
+ url:"/pages/images/23.png"
+ },
+ {
+ url:"/pages/images/24.png"
+ },
+ {
+ url:"/pages/images/25.png"
+ },
+ {
+ url:"/pages/images/26.png"
+ },
+ {
+ url:"/pages/images/27.png"
+ },
+ {
+ url:"/pages/images/28.png"
+ }
+];
+}else{
+ result=[ {
+ url:"/pages/images/11.png"
+ },
+ {
+ url:"/pages/images/12.png"
+ },
+ {
+ url:"/pages/images/13.png"
+ },
+ {
+ url:"/pages/images/14.png"
+ },
+ {
+ url:"/pages/images/15.png"
+ },
+ {
+ url:"/pages/images/16.png"
+ },
+ {
+ url:"/pages/images/17.png"
+ },
+ {
+ url:"/pages/images/18.png"
+ },
+ {
+ url:"/pages/images/19.png"
+ },
+ {
+ url:"/pages/images/20.png"
+ }
+ ]}
+ this.setData({
+ pros:result
+ })
+ }
+ }
+)
\ No newline at end of file
diff --git a/pages/history/history.json b/pages/history/history.json
new file mode 100644
index 0000000..f6cf4a4
--- /dev/null
+++ b/pages/history/history.json
@@ -0,0 +1,4 @@
+{
+ "navigationBarTitleText": "历史",
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/history/history.wxml b/pages/history/history.wxml
new file mode 100644
index 0000000..8fe896f
--- /dev/null
+++ b/pages/history/history.wxml
@@ -0,0 +1,23 @@
+
+
+
+
+ 发展历程
+
+
+
+ 杰出成就
+
+
+ 著名学者
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/history/history.wxss b/pages/history/history.wxss
new file mode 100644
index 0000000..be622c0
--- /dev/null
+++ b/pages/history/history.wxss
@@ -0,0 +1,84 @@
+/* pages/history/history.wxss */
+page{
+ height:100%;
+}
+/* 头部 */
+.navs{
+width: 100%;
+height: 6%;
+border: 1rpx solid rgb(121, 121, 121);
+display: flex;
+flex-direction: row;
+}
+.navs .nav{
+width: 33%;
+height: 100%;
+border: 1rpx solid rgb(121, 121, 121);
+display: flex;
+flex-direction: row;
+justify-content: center;
+}
+.navs .nav .active{
+background-color: #eee;
+}
+/*flex*/
+.opart{
+height: 30%;
+width: 100%;
+border: 1rpx solid rgb(77, 77, 77);
+}
+.opart{
+height: 30%;
+width: 100%;
+border: 1rpx solid rgb(121, 121, 121);
+}
+.opart image{
+height: 100%;
+width: 100%;
+}
+.twpart{
+height: 30%;
+width: 100%;
+border: 1rpx solid rgb(121, 121, 121);
+}
+.twpart image{
+height: 100%;
+width: 100%;
+}
+.thpart{
+height: 30%;
+width: 100%;
+border: 1rpx solid rgb(121, 121, 121);
+}
+.thpart image{
+height: 100%;
+width: 100%;
+}
+.fopart{
+height: 30%;
+width: 100%;
+border: 1rpx solid rgb(121, 121, 121);
+}
+.fopart image{
+height: 100%;
+width: 100%;
+}
+.fipart{
+height: 30%;
+width: 100%;
+border: 1rpx solid rgb(121, 121, 121);
+}
+.fipart image{
+height: 100%;
+width: 100%;
+}
+
+/*底部*/
+.botton{
+width: 100%;
+height:50%;
+border:1rpx solid red;
+display: flex;
+flex-direction: column;
+justify-content: space-between;
+}
diff --git a/pages/images/1.jpg b/pages/images/1.jpg
new file mode 100644
index 0000000..e729159
Binary files /dev/null and b/pages/images/1.jpg differ
diff --git a/pages/images/1.png b/pages/images/1.png
new file mode 100644
index 0000000..5c5ca43
Binary files /dev/null and b/pages/images/1.png differ
diff --git a/pages/images/11.jpg b/pages/images/11.jpg
new file mode 100644
index 0000000..89edbd3
Binary files /dev/null and b/pages/images/11.jpg differ
diff --git a/pages/images/11.png b/pages/images/11.png
new file mode 100644
index 0000000..d8c98a7
Binary files /dev/null and b/pages/images/11.png differ
diff --git a/pages/images/12.png b/pages/images/12.png
new file mode 100644
index 0000000..f6064e0
Binary files /dev/null and b/pages/images/12.png differ
diff --git a/pages/images/13.png b/pages/images/13.png
new file mode 100644
index 0000000..65283af
Binary files /dev/null and b/pages/images/13.png differ
diff --git a/pages/images/14.png b/pages/images/14.png
new file mode 100644
index 0000000..1e994ba
Binary files /dev/null and b/pages/images/14.png differ
diff --git a/pages/images/15.png b/pages/images/15.png
new file mode 100644
index 0000000..082f54e
Binary files /dev/null and b/pages/images/15.png differ
diff --git a/pages/images/16.png b/pages/images/16.png
new file mode 100644
index 0000000..08278cd
Binary files /dev/null and b/pages/images/16.png differ
diff --git a/pages/images/17.png b/pages/images/17.png
new file mode 100644
index 0000000..8490e56
Binary files /dev/null and b/pages/images/17.png differ
diff --git a/pages/images/18.png b/pages/images/18.png
new file mode 100644
index 0000000..c7d86ef
Binary files /dev/null and b/pages/images/18.png differ
diff --git a/pages/images/19.png b/pages/images/19.png
new file mode 100644
index 0000000..3e7c6a6
Binary files /dev/null and b/pages/images/19.png differ
diff --git a/pages/images/2.jpg b/pages/images/2.jpg
new file mode 100644
index 0000000..cbeb6e2
Binary files /dev/null and b/pages/images/2.jpg differ
diff --git a/pages/images/2.png b/pages/images/2.png
new file mode 100644
index 0000000..6a96e3d
Binary files /dev/null and b/pages/images/2.png differ
diff --git a/pages/images/20.png b/pages/images/20.png
new file mode 100644
index 0000000..48f3ec2
Binary files /dev/null and b/pages/images/20.png differ
diff --git a/pages/images/21.png b/pages/images/21.png
new file mode 100644
index 0000000..a400a3d
Binary files /dev/null and b/pages/images/21.png differ
diff --git a/pages/images/22.jpg b/pages/images/22.jpg
new file mode 100644
index 0000000..69a60c4
Binary files /dev/null and b/pages/images/22.jpg differ
diff --git a/pages/images/22.png b/pages/images/22.png
new file mode 100644
index 0000000..09a7f13
Binary files /dev/null and b/pages/images/22.png differ
diff --git a/pages/images/23.png b/pages/images/23.png
new file mode 100644
index 0000000..51f43d6
Binary files /dev/null and b/pages/images/23.png differ
diff --git a/pages/images/24.png b/pages/images/24.png
new file mode 100644
index 0000000..9bf50c9
Binary files /dev/null and b/pages/images/24.png differ
diff --git a/pages/images/25.png b/pages/images/25.png
new file mode 100644
index 0000000..30f6fa0
Binary files /dev/null and b/pages/images/25.png differ
diff --git a/pages/images/26.png b/pages/images/26.png
new file mode 100644
index 0000000..d364da2
Binary files /dev/null and b/pages/images/26.png differ
diff --git a/pages/images/27.png b/pages/images/27.png
new file mode 100644
index 0000000..3d525c7
Binary files /dev/null and b/pages/images/27.png differ
diff --git a/pages/images/28.png b/pages/images/28.png
new file mode 100644
index 0000000..0602f2c
Binary files /dev/null and b/pages/images/28.png differ
diff --git a/pages/images/3.jpg b/pages/images/3.jpg
new file mode 100644
index 0000000..58e7555
Binary files /dev/null and b/pages/images/3.jpg differ
diff --git a/pages/images/3.png b/pages/images/3.png
new file mode 100644
index 0000000..57d7bbe
Binary files /dev/null and b/pages/images/3.png differ
diff --git a/pages/images/33.jpg b/pages/images/33.jpg
new file mode 100644
index 0000000..f42f27f
Binary files /dev/null and b/pages/images/33.jpg differ
diff --git a/pages/images/4.jpg b/pages/images/4.jpg
new file mode 100644
index 0000000..6230e1a
Binary files /dev/null and b/pages/images/4.jpg differ
diff --git a/pages/images/4.png b/pages/images/4.png
new file mode 100644
index 0000000..a57bab3
Binary files /dev/null and b/pages/images/4.png differ
diff --git a/pages/images/44.jpg b/pages/images/44.jpg
new file mode 100644
index 0000000..b34b015
Binary files /dev/null and b/pages/images/44.jpg differ
diff --git a/pages/images/5.jpg b/pages/images/5.jpg
new file mode 100644
index 0000000..745e4c1
Binary files /dev/null and b/pages/images/5.jpg differ
diff --git a/pages/images/5.png b/pages/images/5.png
new file mode 100644
index 0000000..8a17814
Binary files /dev/null and b/pages/images/5.png differ
diff --git a/pages/images/55.jpg b/pages/images/55.jpg
new file mode 100644
index 0000000..e89b968
Binary files /dev/null and b/pages/images/55.jpg differ
diff --git a/pages/images/6.png b/pages/images/6.png
new file mode 100644
index 0000000..7d9f366
Binary files /dev/null and b/pages/images/6.png differ
diff --git a/pages/images/7.png b/pages/images/7.png
new file mode 100644
index 0000000..347d27c
Binary files /dev/null and b/pages/images/7.png differ
diff --git a/pages/images/8.png b/pages/images/8.png
new file mode 100644
index 0000000..347d27c
Binary files /dev/null and b/pages/images/8.png differ
diff --git a/pages/images/a.png b/pages/images/a.png
new file mode 100644
index 0000000..be5cf20
Binary files /dev/null and b/pages/images/a.png differ
diff --git a/pages/images/a1.png b/pages/images/a1.png
new file mode 100644
index 0000000..427cd5c
Binary files /dev/null and b/pages/images/a1.png differ
diff --git a/pages/images/aa.png b/pages/images/aa.png
new file mode 100644
index 0000000..9a7817c
Binary files /dev/null and b/pages/images/aa.png differ
diff --git a/pages/images/b.png b/pages/images/b.png
new file mode 100644
index 0000000..fb46de7
Binary files /dev/null and b/pages/images/b.png differ
diff --git a/pages/images/b1.png b/pages/images/b1.png
new file mode 100644
index 0000000..e776c76
Binary files /dev/null and b/pages/images/b1.png differ
diff --git a/pages/images/bb.png b/pages/images/bb.png
new file mode 100644
index 0000000..0032541
Binary files /dev/null and b/pages/images/bb.png differ
diff --git a/pages/images/c.png b/pages/images/c.png
new file mode 100644
index 0000000..853e624
Binary files /dev/null and b/pages/images/c.png differ
diff --git a/pages/images/c1.png b/pages/images/c1.png
new file mode 100644
index 0000000..2f4e47a
Binary files /dev/null and b/pages/images/c1.png differ
diff --git a/pages/images/cc.png b/pages/images/cc.png
new file mode 100644
index 0000000..cb7b1c0
Binary files /dev/null and b/pages/images/cc.png differ
diff --git a/pages/images/d.png b/pages/images/d.png
new file mode 100644
index 0000000..5b55f39
Binary files /dev/null and b/pages/images/d.png differ
diff --git a/pages/images/d1.png b/pages/images/d1.png
new file mode 100644
index 0000000..e7009e4
Binary files /dev/null and b/pages/images/d1.png differ
diff --git a/pages/images/dd.png b/pages/images/dd.png
new file mode 100644
index 0000000..42f4fda
Binary files /dev/null and b/pages/images/dd.png differ
diff --git a/pages/images/ee.png b/pages/images/ee.png
new file mode 100644
index 0000000..5b13e35
Binary files /dev/null and b/pages/images/ee.png differ
diff --git a/pages/images/ff.png b/pages/images/ff.png
new file mode 100644
index 0000000..6551355
Binary files /dev/null and b/pages/images/ff.png differ
diff --git a/pages/index/index.js b/pages/index/index.js
new file mode 100644
index 0000000..1e3a5fb
--- /dev/null
+++ b/pages/index/index.js
@@ -0,0 +1,53 @@
+// index.js
+const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'
+
+Page({
+ data: {
+ simgUrl:[
+ "/pages/images/2.png",
+ "/pages/images/3.png",
+ "/pages/images/4.png",
+ "/pages/images/5.png",
+ "/pages/images/6.png"
+ ],
+ navList:[
+ {
+ iconUrl:"/pages/images/a.png",
+ iconName:"历史",
+ },
+ {
+ iconUrl:"/data (1)/icons/category/c2.png",
+ iconName:"电子产品",
+ },
+ {
+ iconUrl:"/data (1)/icons/category/c3.png",
+ iconName:"化妆品",
+ },
+ {
+ iconUrl:"/data (1)/icons/category/c4.png",
+ iconName:"鞋类",
+ },
+ {
+ iconUrl:"/data (1)/icons/category/c5.png",
+ iconName:"衣服",
+ },
+ {
+ iconUrl:"/data (1)/icons/category/c6.png",
+ iconName:"珠宝",
+ },
+ ]
+ },
+ getUserProfile(e) {
+ // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
+ wx.getUserProfile({
+ desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
+ success: (res) => {
+ console.log(res)
+ this.setData({
+ userInfo: res.userInfo,
+ hasUserInfo: true
+ })
+ }
+ })
+ },
+})
diff --git a/pages/index/index.json b/pages/index/index.json
new file mode 100644
index 0000000..b55b5a2
--- /dev/null
+++ b/pages/index/index.json
@@ -0,0 +1,4 @@
+{
+ "usingComponents": {
+ }
+}
\ No newline at end of file
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
new file mode 100644
index 0000000..c23811e
--- /dev/null
+++ b/pages/index/index.wxml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 历史
+
+
+
+ 题目
+
+
+
+ 故事
+
+
+
+ 交流
+
+
+
+ 学习
+
+
+
+ 应用
+
+
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
new file mode 100644
index 0000000..a0e2e77
--- /dev/null
+++ b/pages/index/index.wxss
@@ -0,0 +1,70 @@
+/* pages/index/index.wxss */
+page{
+ height:100%;
+}
+
+.head{
+ width: 100%;
+ height: 25%;
+}
+
+.head image{
+ width: 100%;
+ height: 100%;
+
+}
+
+.banner{
+ width: 100%;
+ height: 35%;
+}
+
+.banner swiper{
+ width: 100%;
+ height: 100%;
+}
+
+.banner swiper image{
+ width: 100%;
+ height: 100%;
+}
+
+.grids{
+ display: flex;
+ flex-wrap: wrap;
+}
+
+.grids .item{
+ width: 250rpx;
+ height: 250rpx;
+ border-right:1rpx solid #eee ;
+ border-bottom:1rpx solid #eee;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items:center;
+}
+
+.grids .item:nth-child(3){
+ border-right: 0;
+}
+
+.grids .item:nth-child(6){
+ border-right: 0;
+}
+
+.grids .item:nth-child(9){
+ border-right: 0;
+}
+
+.grids .item image{
+ width: 80rpx;
+ height: 80rpx;
+}
+
+.grids .item text{
+ color: rgb(14, 13, 13);
+ font-size: 28rpx;
+ margin-top: 20rpx;
+}
\ No newline at end of file
diff --git a/project.config.json b/project.config.json
new file mode 100644
index 0000000..affbb89
--- /dev/null
+++ b/project.config.json
@@ -0,0 +1,29 @@
+{
+ "compileType": "miniprogram",
+ "libVersion": "trial",
+ "setting": {
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "minified": true,
+ "enhance": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmRelationList": [],
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "ignoreUploadUnusedFiles": true
+ },
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "auto",
+ "tabSize": 2
+ },
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "appid": "wx88d20e697c125c57"
+}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
new file mode 100644
index 0000000..bdf6932
--- /dev/null
+++ b/project.private.config.json
@@ -0,0 +1,7 @@
+{
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "projectname": "examination",
+ "setting": {
+ "compileHotReLoad": true
+ }
+}
\ No newline at end of file
diff --git a/sitemap.json b/sitemap.json
new file mode 100644
index 0000000..ca02add
--- /dev/null
+++ b/sitemap.json
@@ -0,0 +1,7 @@
+{
+ "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
+ "rules": [{
+ "action": "allow",
+ "page": "*"
+ }]
+}
\ No newline at end of file
diff --git a/utils/util.js b/utils/util.js
new file mode 100644
index 0000000..764bc2c
--- /dev/null
+++ b/utils/util.js
@@ -0,0 +1,19 @@
+const formatTime = date => {
+ const year = date.getFullYear()
+ const month = date.getMonth() + 1
+ const day = date.getDate()
+ const hour = date.getHours()
+ const minute = date.getMinutes()
+ const second = date.getSeconds()
+
+ return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}`
+}
+
+const formatNumber = n => {
+ n = n.toString()
+ return n[1] ? n : `0${n}`
+}
+
+module.exports = {
+ formatTime
+}