123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797 |
- Page({
-
- data: {
- toSearch: false,
- courseChosedIndex: '',
- showCourse: false,
- courseDetailChosed: '',
- courseDetailIndex: null,
- showCourseDetail: false,
- teachPositionChosed: '',
- showTeachPosition: false,
- stuSexChosed: '',
- showSexList: false,
- teachTypeChosed: '',
- showTeachType: false,
- teachEduChosed: '',
- showTeachEdu: false,
- teachSexChosed: '',
- showTeachSex: false,
- teachImgChosed: '',
- showTeachImg: false,
-
-
- courseList: ['小学', '初中', '高中', '大学', '音乐', '舞蹈', '语言', '体育', '美术', '书法', '少儿编程', '计算机', '其他'],
-
- courseDetail: [
- ['小学1-5数学', '小学1-5英语', '小学1-5语文', '小学6数学', '小学6英语', '小学6语文', '小学奥数'],
- ['初一初二语文', '初一初二数学', '初一初二英语', '初一初二物理', '初一初二化学', '初三语文', '初三数学', '初三英语', '初三物理', '初三化学', '初中历史', '初中地理', '初中奥数', '初中生物', '初中预备班', '初中科学', '初中政治'],
- ['高一高二语文', '高一高二数学', '高一高二英语', '高一高二物理', '高一高二化学', '高三语文', '高三数学', '高三英语', '高三物理', '高三化学', '高中历史', '高中地理', '高中政治', '高中生物', '信息科技', 'SAT'],
- ['托福', '雅思', '高等数学', '微观经济学', 'MBA', '成人高考', '国学', '自学考试', '专升本', '考博面试辅导', '考博专业课', '考博英语', '英语四级', '英语六级', '论文指导', '考研专业课', '考研政治', '考研数学', '考研英语', '英语专业四级', '英语专业八级', '课程辅导'],
- ['小提琴', '钢琴', '电子琴', '长笛', '琵琶', '手风琴', '古筝', '练耳歌唱', '大号', '声乐', '萨克斯', '单簧管', '吉他', '小号', '古琴', '二胡', '大提琴', '打击乐', '圆号', '中提琴', '竹笛', '架子鼓', '扬琴', '巴松'],
- ['民族舞', '爵士舞', '拉丁舞', '芭蕾舞', '街舞', '现代舞', '踢踏舞'],
- ['本地方言', '日语', '英语口语', '新概念英语', '牛津英语', '西班牙语', '德语', '商务英语', '法语', '韩语', '意大利语', '汉语', '阿拉伯语', 'SBS英语', '俄语', '葡萄牙语'],
- ['羽毛球', '跆拳道', '游泳', '乒乓球', '网球', '中国象棋', '国际象棋', '围棋', '篮球', '空手道'],
- ['卡通画', '中国画', '素描', '油画', '水彩', '漫画'],
- ['硬笔', '毛笔', '篆刻'],
- ['Scratch', 'Python', 'C++', 'microbit'],
- ['应用能力初级', '应用能力中级', '基本操作'],
- ['学习习惯', '口才', '心理辅导', '记忆力', '注意力']
- ],
-
- teachPositions: ['不限', '老师上门', '学员上门', '线上辅导', '老师住家', '学员住家'],
-
- sexList: ['不限', '男', '女'],
-
- teachType: ['不限', '专业老师', '在校大学生'],
-
- educationList: ['不限', '博士毕业', '博士在读', '硕士毕业', '硕士在读', '本科毕业', '本科在读', '专科毕业', '专科在读'],
-
- teachImgOptions: ['不限', '有照片'],
-
- stuLists: [
- [{
- id: '20220811'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '小学'
- },
- {
- courseDetail: '小学1-5语文'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '男'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周六晚上'
- },
- {
- except: '全力以赴备战小升初'
- },
- {
- teachId: '在校大学生'
- },
- {
- teachEdu: '本科在读'
- },
- {
- teachSex: '女'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- [{
- id: '20220821'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '初中'
- },
- {
- courseDetail: '初一初二语文'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '男'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周六晚上'
- },
- {
- except: '考上重点初中'
- },
- {
- teachId: '在校大学生'
- },
- {
- teachEdu: '本科在读'
- },
- {
- teachSex: '男'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- [{
- id: '20220811'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '高中'
- },
- {
- courseDetail: '高一高二物理'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '女'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周日晚上'
- },
- {
- except: '好好学习,天天向上,考个重点大学'
- },
- {
- teachId: '专职老师'
- },
- {
- teachEdu: '本科毕业'
- },
- {
- teachSex: '不限'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- [{
- id: '20220811'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '小学'
- },
- {
- courseDetail: '小学1-5语文'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '男'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周六晚上'
- },
- {
- except: '全力以赴备战小升初'
- },
- {
- teachId: '在校大学生'
- },
- {
- teachEdu: '本科在读'
- },
- {
- teachSex: '女'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- [{
- id: '20220821'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '初中'
- },
- {
- courseDetail: '初一初二语文'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '男'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周六晚上'
- },
- {
- except: '考上重点初中'
- },
- {
- teachId: '在校大学生'
- },
- {
- teachEdu: '本科在读'
- },
- {
- teachSex: '男'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- [{
- id: '20220811'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '高中'
- },
- {
- courseDetail: '高一高二物理'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '女'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周日晚上'
- },
- {
- except: '好好学习,天天向上,考个重点大学'
- },
- {
- teachId: '专职老师'
- },
- {
- teachEdu: '本科毕业'
- },
- {
- teachSex: '不限'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- [{
- id: '20220811'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '小学'
- },
- {
- courseDetail: '小学1-5语文'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '男'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周六晚上'
- },
- {
- except: '全力以赴备战小升初'
- },
- {
- teachId: '在校大学生'
- },
- {
- teachEdu: '本科在读'
- },
- {
- teachSex: '女'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- [{
- id: '20220821'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '初中'
- },
- {
- courseDetail: '初一初二语文'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '男'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周六晚上'
- },
- {
- except: '考上重点初中'
- },
- {
- teachId: '在校大学生'
- },
- {
- teachEdu: '本科在读'
- },
- {
- teachSex: '男'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- [{
- id: '20220811'
- },
- {
- name: '孙悟空'
- },
- {
- phone: '13400000000'
- },
- {
- weChatNum: '13400000000'
- },
- {
- courseNeed: '高中'
- },
- {
- courseDetail: '高一高二物理'
- },
- {
- teachPosition: '老师上门'
- },
- {
- stuSex: '女'
- },
- {
- salary: '200'
- },
- {
- schoolTime: '周日晚上'
- },
- {
- except: '好好学习,天天向上,考个重点大学'
- },
- {
- teachId: '专职老师'
- },
- {
- teachEdu: '本科毕业'
- },
- {
- teachSex: '不限'
- },
- {
- teachImg: '不限'
- },
- {
- otherNeed: '无'
- }
- ],
- ]
- },
-
- onLoad(options) {
- },
-
- toStuDetail() {
- wx.navigateTo({
- url: '/pages/stuDetail/stuDetail',
- })
- },
-
- toOpenSearch() {
- let toSearch = this.data.toSearch
- this.setData({
- toSearch: !toSearch
- })
-
- if(!this.data.toSearch){
- this.setData({
- showTeachId: false,
- showCourse: false,
- showCourseDetail: false,
- showTeachEdu: false,
- showTeachSex: false,
- showSchool: false,
- showTeachImg: false
- })
- }
- },
-
-
- chooseCourse() {
- let showCourse = this.data.showCourse
- this.setData({
- showTeachId: false,
- showCourse: !showCourse,
- showCourseDetail: false,
- showTeachEdu: false,
- showTeachSex: false,
- showSchool: false,
- showTeachImg: false
- })
- },
-
- chosedCourse(e) {
-
- let courseChosedIndex = e.currentTarget.dataset.index
- this.setData({
- courseChosedIndex,
- showCourseDetail: true
- })
-
- },
-
- chosedCourseDetail(e) {
-
- let index = e.currentTarget.dataset.index
- let courseDetail = this.data.courseDetail
- let courseChosedIndex = this.data.courseChosedIndex
-
-
- this.setData({
- courseDetailChosed: courseDetail[courseChosedIndex][index],
- showCourseDetail: false,
- showCourse: false,
- courseDetailIndex:e.currentTarget.dataset.index
- })
-
-
- },
-
-
- chooseTeachPosition() {
- let showTeachPosition = this.data.showTeachPosition
- this.setData({
- showTeachPosition: !showTeachPosition
- })
- },
-
- toChosedTeachPosition(e) {
-
- let index = e.currentTarget.dataset.index
- let teachPositionChosed = this.data.teachPositionChosed
- let teachPositions = this.data.teachPositions
- for (let i = 0; i < teachPositions.length; i++) {
- if (i == index) {
- teachPositionChosed = teachPositions[i]
- }
- }
- this.setData({
- teachPositionChosed,
- showTeachPosition: false
- })
- },
-
-
- chooseStuSex() {
- let showSexList = this.data.showSexList
- this.setData({
- showSexList: !showSexList
- })
- },
-
- toChosedStuSex(e) {
- let index = e.currentTarget.dataset.index
- let stuSexChosed = this.data.stuSexChosed
- let sexList = this.data.sexList
- for (let i = 0; i < sexList.length; i++) {
- if (i == index) {
- stuSexChosed = sexList[i]
- }
- }
- this.setData({
- stuSexChosed,
- showSexList: false
- })
- },
-
-
- chooseTeachType() {
- let showTeachType = this.data.showTeachType
- this.setData({
- showTeachType: !showTeachType
- })
- },
-
- toChosedTeachType(e) {
-
- let index = e.currentTarget.dataset.index
- let teachTypeChosed = this.data.teachTypeChosed
- let teachType = this.data.teachType
- for (let i = 0; i < teachType.length; i++) {
- if (i == index) {
- teachTypeChosed = teachType[i]
- }
- }
- this.setData({
- teachTypeChosed,
- showTeachType: false
- })
- },
-
-
- chooseTeachEdu() {
- let showTeachEdu = this.data.showTeachEdu
- this.setData({
- showTeachId: false,
- showCourse: false,
- showCourseDetail: false,
- showTeachEdu: !showTeachEdu,
- showTeachSex: false,
- showSchool: false,
- showTeachImg: false
- })
- },
-
- toChosedTeachEdu(e) {
- let index = e.currentTarget.dataset.index
- let teachEduChosed = this.data.teachEduChosed
- let educationList = this.data.educationList
- for (let i = 0; i < educationList.length; i++) {
- if (i == index) {
- teachEduChosed = educationList[i]
- }
- }
- this.setData({
- teachEduChosed,
- showTeachEdu: false
- })
- },
-
-
- chooseTeachSex() {
- let showTeachSex = this.data.showTeachSex
- this.setData({
- showTeachSex: !showTeachSex
- })
- },
-
- toChosedTeachSex(e) {
- let index = e.currentTarget.dataset.index
- let teachSexChosed = this.data.teachSexChosed
- let sexList = this.data.sexList
- for (let i = 0; i < sexList.length; i++) {
- if (i == index) {
- teachSexChosed = sexList[i]
- }
- }
- this.setData({
- teachSexChosed,
- showTeachSex: false
- })
- },
-
-
- chooseTeachImg() {
- let showTeachImg = this.data.showTeachImg
- this.setData({
- showTeachImg: !showTeachImg
- })
- },
-
- toChosedTeachImg(e) {
- let index = e.currentTarget.dataset.index
- let teachImgChosed = this.data.teachImgChosed
- let teachImgOptions = this.data.teachImgOptions
- for (let i = 0; i < teachImgOptions.length; i++) {
- if (i == index) {
- teachImgChosed = teachImgOptions[i]
- }
- }
- this.setData({
- teachImgChosed,
- showTeachImg: false
- })
- },
-
- clearOptions() {
- this.setData({
- courseDetailChosed: '',
- teachPositionChosed: '',
- stuSexChosed: '',
- teachTypeChosed: '',
- teachEduChosed: '',
- teachSexChosed: '',
- teachImgChosed: ''
- })
- },
-
- onReady() {
- },
-
- onShow() {
- },
-
- onHide() {
- },
-
- onUnload() {
- },
-
- onPullDownRefresh() {
- wx.startPullDownRefresh()
- },
-
- onReachBottom() {
- wx.showToast({
- title: '没有更多了',
- icon: 'none'
- })
- },
-
- onShareAppMessage() {
- }
- })
|