1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- Page({
-
- data: {
- },
-
- onLoad: function (options) {
- },
-
- changeGrade: function (e) {
- const grade = e.target.dataset.code;
- wx.setStorageSync('grade', grade)
- this.setData({
- grade: grade
- })
-
- let gradeText = '一年级';
- switch (e.target.dataset.code) {
- case '0':
- gradeText = '学前班';
- break;
- case '1':
- gradeText = '一年级';
- break;
- case '2':
- gradeText = '二年级';
- break;
- case '3':
- gradeText = '三年级';
- break;
- }
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- }
- })
|