diff --git a/app.json b/app.json index 2d2fceb..d3c6d6f 100644 --- a/app.json +++ b/app.json @@ -11,7 +11,6 @@ "pages/setting/setting", "pages/classroom/classroom", "pages/about/about", - "pages/test/test", "pages/course/course", "pages/files/files", "pages/mark_detail/mark_detail", diff --git a/model/class.js b/model/class.js index 2e47aca..d91ef4c 100644 --- a/model/class.js +++ b/model/class.js @@ -1,3 +1,9 @@ +/** + * https://github.com/jinke18/educoder_weapp + * @licence GPL-3.0 + * @author jinke18 + */ + const AV = require('../lib/av-live-query-weapp-min'); const Presence = require("./presence") diff --git a/model/grade.js b/model/grade.js index 9da78bf..66e8942 100644 --- a/model/grade.js +++ b/model/grade.js @@ -1,3 +1,8 @@ +/** + * https://github.com/jinke18/educoder_weapp + * @licence GPL-3.0 + * @author jinke18 + */ const AV = require('../lib/av-live-query-weapp-min'); //数据储存模板--分数 diff --git a/model/message.js b/model/message.js index 838a77a..f87d2cd 100644 --- a/model/message.js +++ b/model/message.js @@ -1,3 +1,8 @@ +/** + * https://github.com/jinke18/educoder_weapp + * @licence GPL-3.0 + * @author jinke18 + */ const AV = require("../lib/av-live-query-weapp-min") class Message extends AV.Object{ diff --git a/model/presence.js b/model/presence.js index 51b60da..002510e 100644 --- a/model/presence.js +++ b/model/presence.js @@ -1,3 +1,8 @@ +/** + * https://github.com/jinke18/educoder_weapp + * @licence GPL-3.0 + * @author jinke18 + */ const AV = require('../lib/av-live-query-weapp-min'); class Presence extends AV.Object{ diff --git a/pages/about/about.js b/pages/about/about.js index 7d8d5f0..64be0c0 100644 --- a/pages/about/about.js +++ b/pages/about/about.js @@ -1,21 +1,13 @@ -// pages/about/about.js const app = getApp(); Page({ - /** - * 页面的初始数据 - */ md: '# 简介\n## 源码\n[https://github/jinke18/smart_class](https://github.com/jinke18/smart_class)\n\n## 小程序码\n![小程序码](/images/weapp_code_smart_class.jpg)\n\n# 功能介绍\n\n## 教室\n- 学员可以输入邀请码进入课堂\n\n- 进入教室界面会显示在位,头像为彩色,若退出课堂界面则会显示灰色头像\n\n- 教员在教室界面中可以直观地看到学员在位情况,可以选择学员让其起立回答问题,并且对学员可以进行加分、减分操作\n\n- 在分数列表中可以看到加减分记录(数据在后台可以导出)\n\n- 学员可以收到教员让其起立提问、回答的提示,还可以点击“我要提问、回答”\n\n- 教室内有讨论区,可以交流\n\n## 课程资源\n\n- 在课程界面进入“资源”可以查看本课堂的课程文件资源\n\n- 支持打开ppt doc xls pdf文件\n\n## 试卷作答\n\n- 学员在课程内可以看到老师发布的试卷,并且回答\n\n- 试卷截止后并且老师选择了公开答案,学生可以看到公布的答案\n\n- 老师可以创建试卷,发布试卷,查看学员作答分数\n\n## 其他\n账号的注册、登陆、找回密码、头像更改等\n\n# 实现\n## educoder平台接入\n使用HTTP与平台的api接口交互\n\n接口列表如下\n- 搜索课堂https://www.educoder.net/api/courses.json\n\n- 查询用户的课堂https://www.educoder.net/api/users//courses.json\n\n- 查询学校https://www.educoder.net/api/schools/school_list.json\n\n- 新建课堂https://www.educoder.net/api/courses.json\n\n- 加入课堂https://www.educoder.net/api/courses/apply_to_join_course.json\n\n- 新建试卷https://www.educoder.net/api/courses//exercises/new.json\n\n- 查询试卷https://www.educoder.net/api/courses//exercises.json\n\n- 班级文件资源https://www.educoder.net/api/files.json\n\n# 教室学员在位情况及分数的同步实现\n使用了[leancloud](https://www.leancloud.cn/)提供的javascript开发包实现数据同步功能, 如学员在位情况、分数的同步, 其底部技术为websocket' , - data: { article: {} }, - /** - * 生命周期函数--监听页面加载 - */ onLoad: function (options) { const _ts = this; let data = app.towxml.toJson(this.md,'markdown'); @@ -24,51 +16,6 @@ Page({ }); }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function () { } diff --git a/pages/about/about.wxss b/pages/about/about.wxss index e417485..3785fde 100644 --- a/pages/about/about.wxss +++ b/pages/about/about.wxss @@ -1,15 +1,5 @@ -/* pages/about/about.wxss */ - -/**基础风格样式**/ @import '/towxml/style/main.wxss'; - - -/**如果页面有动态主题切换,则需要将使用到的样式全部引入**/ - -/**主题配色(浅色样式)**/ @import '/towxml/style/theme/light.wxss'; - -/**主题配色(深色样式)**/ @import '/towxml/style/theme/dark.wxss'; .container{ diff --git a/pages/classroom/classroom.js b/pages/classroom/classroom.js index 8eab97d..a986d3d 100644 --- a/pages/classroom/classroom.js +++ b/pages/classroom/classroom.js @@ -237,16 +237,10 @@ Page({ //this.pull_messages(); }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ onReady: function () { console.log("onReady"); }, - /** - * 生命周期函数--监听页面显示 - */ onShow: function () { console.log("onShow"); if(this.my_presence){ @@ -255,17 +249,11 @@ Page({ } }, - /** - * 生命周期函数--监听页面隐藏 - */ onHide: function () { this.my_presence.leave(); console.log("onHide"); }, - /** - * 生命周期函数--监听页面卸载 - */ onUnload: function () { this.my_presence.leave(); console.log("onUnload"); @@ -275,9 +263,6 @@ Page({ //this.messageUnbind(); }, - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ onPullDownRefresh: function () { this.pull_course(); this.pull_students() @@ -306,16 +291,6 @@ Page({ //this.pull_messages(); }, - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function () { console.log("onShareAppMessage"); } diff --git a/pages/course/course.js b/pages/course/course.js index fa2c211..53e183b 100644 --- a/pages/course/course.js +++ b/pages/course/course.js @@ -1,10 +1,5 @@ -// pages/course_detail/course_detail.js const app = getApp(); Page({ - - /** - * 页面的初始数据 - */ data: { course: {}, show_classroom: new Date().getTime() < 1580820786606 @@ -36,9 +31,7 @@ Page({ }) } }, - /** - * 生命周期函数--监听页面加载 - */ + onLoad: function (options) { this.course_id = options.course_id; this.setData({course_id: options.course_id}) @@ -50,16 +43,6 @@ Page({ console.log(this.data); }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ onShow: function () { app.client.get_course_info({course_id: this.course_id}) .then(res=>{ @@ -68,37 +51,6 @@ Page({ }); }, - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function (options) { let course = this.data.course; let next_week_time = new Date().getTime()+7*24*3600*1000; diff --git a/pages/course/course.wxml b/pages/course/course.wxml index b8dbb16..e685169 100644 --- a/pages/course/course.wxml +++ b/pages/course/course.wxml @@ -1,13 +1,8 @@ {{course.name}} - - - - - 进入教室 试卷 资源 diff --git a/pages/course/course.wxss b/pages/course/course.wxss index 91d2e50..b6d6295 100644 --- a/pages/course/course.wxss +++ b/pages/course/course.wxss @@ -1,4 +1,3 @@ -/* pages/course_detail/course_detail.wxss */ .nav { background: white; border-bottom: 1px solid #eee; diff --git a/pages/course_invite/course_invite.js b/pages/course_invite/course_invite.js index 1fb5c2a..fd59066 100644 --- a/pages/course_invite/course_invite.js +++ b/pages/course_invite/course_invite.js @@ -1,10 +1,6 @@ -// pages/course_join/course_invite.js const app = getApp(); Page({ - /** - * 页面的初始数据 - */ data: { }, @@ -44,9 +40,6 @@ Page({ }) }, - /** - * 生命周期函数--监听页面加载 - */ onLoad: function (options) { console.log(options); this.invite_code = options.invite_code; @@ -58,51 +51,6 @@ Page({ this.setData({current_time: current_time}); }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function () { } diff --git a/pages/course_invite/course_invite.wxss b/pages/course_invite/course_invite.wxss index f352e92..e69de29 100644 --- a/pages/course_invite/course_invite.wxss +++ b/pages/course_invite/course_invite.wxss @@ -1 +0,0 @@ -/* pages/course_join/course_invite.wxss */ \ No newline at end of file diff --git a/pages/course_setting/course_setting.js b/pages/course_setting/course_setting.js index 37fbcc0..5953b31 100644 --- a/pages/course_setting/course_setting.js +++ b/pages/course_setting/course_setting.js @@ -1,13 +1,10 @@ -// pages/course_setting/course_setting.js import { getNowFormatDate } from "../../utils/dateutils"; const app = getApp(); Page({ - /** - * 页面的初始数据 - */ + initial_form_data: { //course_module_types shixun_homework: true, @@ -109,62 +106,12 @@ Page({ console.log(value); this.setData({ "form_data.end_date": value }); }, - /** - * 生命周期函数--监听页面加载 - */ + onLoad: function (options) { this.intent = options.intent; if (this.intent == "create") this.reset(); console.log(options); console.log(this.intent); - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - } + }) \ No newline at end of file diff --git a/pages/courses/courses.js b/pages/courses/courses.js index 22e8394..789dc00 100644 --- a/pages/courses/courses.js +++ b/pages/courses/courses.js @@ -88,32 +88,6 @@ Page({ }) }, - - onReady: function () { - - }, - - - onShow: function () { - - }, - - - onHide: function () { - - }, - - - onUnload: function () { - - }, - - - onPullDownRefresh: function () { - - }, - - onReachBottom: function () { if(!this.data.loaded_all){ wx.pageScrollTo({ @@ -131,7 +105,6 @@ Page({ } }, - onShareAppMessage: function () { } diff --git a/pages/exercise/exercise.js b/pages/exercise/exercise.js index 4ff3598..d905d04 100644 --- a/pages/exercise/exercise.js +++ b/pages/exercise/exercise.js @@ -2,9 +2,6 @@ const app = getApp(); Page({ - /** - * 页面的初始数据 - */ data: { exercise_questions: [], loading: true, @@ -147,24 +144,12 @@ Page({ } }) }, - /** - * 生命周期函数--监听页面加载 - */ + onLoad: function (options) { this.exercise_id = options.exercise_id; this.course_name = options.exercise_name;//todo finish }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ onShow: function () { if(this.data.loading){ this.pull_questions(); @@ -174,37 +159,18 @@ Page({ onError: function(e){ console.error(e); }, - /** - * 生命周期函数--监听页面隐藏 - */ onHide: function () { this.save_exercise({show_loading: false}); }, - /** - * 生命周期函数--监听页面卸载 - */ onUnload: function () { this.save_exercise({ show_loading: false }); }, - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ onPullDownRefresh: function () { }, - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function () { } diff --git a/pages/exercise_grade/exercise_grade.js b/pages/exercise_grade/exercise_grade.js index fb8c451..656d1ac 100644 --- a/pages/exercise_grade/exercise_grade.js +++ b/pages/exercise_grade/exercise_grade.js @@ -22,51 +22,6 @@ Page({ }) }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function () { } diff --git a/pages/exercise_result/exercise_result.js b/pages/exercise_result/exercise_result.js index 02db148..7ec0727 100644 --- a/pages/exercise_result/exercise_result.js +++ b/pages/exercise_result/exercise_result.js @@ -18,12 +18,6 @@ Page({ this.exercise_id = options.exercise_id; }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, /** * 生命周期函数--监听页面显示 @@ -61,34 +55,6 @@ Page({ }) }, - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - /** * 用户点击右上角分享 */ diff --git a/pages/exercise_setting/exercise_setting.js b/pages/exercise_setting/exercise_setting.js index 018b150..6f55c85 100644 --- a/pages/exercise_setting/exercise_setting.js +++ b/pages/exercise_setting/exercise_setting.js @@ -92,11 +92,6 @@ Page({ } }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - }, /** * 生命周期函数--监听页面显示 @@ -114,34 +109,5 @@ Page({ }) } }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - }) \ No newline at end of file diff --git a/pages/files/files.js b/pages/files/files.js index 29973cb..c479e9a 100644 --- a/pages/files/files.js +++ b/pages/files/files.js @@ -56,12 +56,6 @@ Page({ console.log(this.course_id); }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, /** * 生命周期函数--监听页面显示 @@ -70,34 +64,6 @@ Page({ this.pull_files(); }, - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - /** * 用户点击右上角分享 */ diff --git a/pages/findmore/findmore.js b/pages/findmore/findmore.js index 38e7c6a..df787d7 100644 --- a/pages/findmore/findmore.js +++ b/pages/findmore/findmore.js @@ -25,33 +25,6 @@ Page({ }) }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, /** * 页面相关事件处理函数--监听用户下拉动作 @@ -60,13 +33,6 @@ Page({ this.onLoad(); }, - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - /** * 用户点击右上角分享 */ diff --git a/pages/login/login.js b/pages/login/login.js index 8d80ceb..08c3603 100644 --- a/pages/login/login.js +++ b/pages/login/login.js @@ -101,13 +101,6 @@ Page({ } }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - /** * 生命周期函数--监听页面显示 */ @@ -115,13 +108,6 @@ Page({ this.pull_test(); }, - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - /** * 生命周期函数--监听页面卸载 */ @@ -129,20 +115,6 @@ Page({ app.logining = false; }, - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - /** * 用户点击右上角分享 */ diff --git a/pages/mark_detail/mark_detail.js b/pages/mark_detail/mark_detail.js index b8a59ce..b4feb8f 100644 --- a/pages/mark_detail/mark_detail.js +++ b/pages/mark_detail/mark_detail.js @@ -67,48 +67,6 @@ Page({ this.pull_students().then(this.pull_grades); }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - /** * 用户点击右上角分享 */ diff --git a/pages/my_courses/my_courses.js b/pages/my_courses/my_courses.js index eb75189..ebfad54 100644 --- a/pages/my_courses/my_courses.js +++ b/pages/my_courses/my_courses.js @@ -2,7 +2,6 @@ const { Class } = require("../../model/class"); const login = require("../../model/user"); const AV = require("../../lib/av-live-query-weapp-min.js"); const { jsonify } = require('../../utils/leancloudutils'); -// pages/class/class.js const app = getApp(); const getDataForRender = class_ => ({ @@ -11,13 +10,6 @@ const getDataForRender = class_ => ({ }); Page({ - /** - 页面的初始数据data,用于与.wxlm文件绑定 - classes: 课程列表 type: Array - 元素class: 课程信息 class.objectId 唯一 - class.objectId 课程唯一主键 - class.name 课程名称 - */ options:{}, data: { categories: [{ name: "所有", value: "",checked:true }, { name: "我管理的", value: "manage" }, { name:"我学习的", value:"study"}], @@ -107,21 +99,8 @@ Page({ }).catch(console.error); console.log(this.data); }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - - }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - /** * 生命周期函数--监听页面显示 */ @@ -129,19 +108,7 @@ Page({ this.pull_courses(this.options); }, - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - }, /** * 页面相关事件处理函数--监听用户下拉动作 @@ -150,13 +117,6 @@ Page({ this.pull_courses(this.options); }, - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - /** * 用户点击右上角分享 */ diff --git a/pages/question_setting/question_setting.js b/pages/question_setting/question_setting.js index d403c68..48753a8 100644 --- a/pages/question_setting/question_setting.js +++ b/pages/question_setting/question_setting.js @@ -37,51 +37,6 @@ Page({ this.exercise_id = options.exercise_id; }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function () { } diff --git a/pages/register/register.js b/pages/register/register.js index 1ebc947..28eeca3 100644 --- a/pages/register/register.js +++ b/pages/register/register.js @@ -59,58 +59,7 @@ Page({ }, 1000) }) }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function () { } diff --git a/pages/reset_password/reset_password.js b/pages/reset_password/reset_password.js index a01fb73..a58ccd0 100644 --- a/pages/reset_password/reset_password.js +++ b/pages/reset_password/reset_password.js @@ -107,51 +107,6 @@ Page({ } }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ onShareAppMessage: function () { } diff --git a/pages/setting/setting.js b/pages/setting/setting.js index 0e93043..f7a65b9 100644 --- a/pages/setting/setting.js +++ b/pages/setting/setting.js @@ -121,15 +121,4 @@ Page({ } - // enter_usersetting: function(event){ - // wx.navigateTo({ - // url: '../user/user' - // }) - // }, - // enter_changeuser: function(event){ - // console.log(event); - // wx.navigateTo({ - // url: '../changeuser/changeuser' - // }) - // }, }) \ No newline at end of file diff --git a/pages/test/test.js b/pages/test/test.js deleted file mode 100644 index 8aeebcd..0000000 --- a/pages/test/test.js +++ /dev/null @@ -1,68 +0,0 @@ -// pages/test/test.js -Page({ - - /** - * 页面的初始数据 - */ - data: { - data:[{index:2,value:"一"}, - {index:1, value:"二"}, - {index:2, value:'三'}] - }, - - /** - * 生命周期函数--监听页面加载 - */ - 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/pages/test/test.json b/pages/test/test.json deleted file mode 100644 index 8835af0..0000000 --- a/pages/test/test.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "usingComponents": {} -} \ No newline at end of file diff --git a/pages/test/test.wxml b/pages/test/test.wxml deleted file mode 100644 index 465b252..0000000 --- a/pages/test/test.wxml +++ /dev/null @@ -1,6 +0,0 @@ - -pages/test/test.wxml - - - {{d.value}} - \ No newline at end of file diff --git a/pages/test/test.wxss b/pages/test/test.wxss deleted file mode 100644 index 3ee2480..0000000 --- a/pages/test/test.wxss +++ /dev/null @@ -1 +0,0 @@ -/* pages/test/test.wxss */ \ No newline at end of file