util.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. var index_data = require('../data/index_data.js');
  2. var course_data = require("../data/course_data.js");
  3. var detail_data = require("../data/detail_data.js");
  4. /*index.wxml*/
  5. /*获取bannerArr*/
  6. function getBanner(){
  7. return index_data.bannerSrc.banner;
  8. }
  9. /*获取navArr */
  10. function getNav(){
  11. return index_data.navSrc.nav;
  12. }
  13. /*获取adArr */
  14. function getAd(){
  15. return index_data.adSrc.ad;
  16. }
  17. /*获取courseArr*/
  18. function getCourse(){
  19. return index_data.courseSrc.course_grp;
  20. }
  21. /*course.wxml*/
  22. /*获取courses*/
  23. function getCourses(){
  24. return course_data.courseItem.courses;
  25. }
  26. function getdiaodongcheData(){
  27. return course_data.ddongcheAD.ad;
  28. }
  29. function getSchoolData(){
  30. return course_data.schoolAD.ad;
  31. }
  32. function getproductC21(){
  33. return detail_data.productC21;
  34. }
  35. function getmaturitySchemeF22B(){
  36. return detail_data.maturitySchemeF22B;
  37. }
  38. function getmaturitySchemeF25(){
  39. return detail_data.maturitySchemeF25;
  40. }
  41. function getmaturitySchemeG22(){
  42. return detail_data.maturitySchemeG22;
  43. }
  44. function getmaturitySchemeG23(){
  45. return detail_data.maturitySchemeG23;
  46. }
  47. function getmaturitySchemeK20(){
  48. return detail_data.maturitySchemeK20;
  49. }
  50. function getmaturitySchemeS22(){
  51. return detail_data.maturitySchemeS22;
  52. }
  53. module.exports.getBanner = getBanner;
  54. module.exports.getNav = getNav;
  55. module.exports.getAd = getAd;
  56. module.exports.getCourse = getCourse;
  57. module.exports.getCourses = getCourses;
  58. module.exports.getdiaodongcheData = getdiaodongcheData;
  59. module.exports.getSchoolData = getSchoolData;
  60. module.exports.getproductC21 = getproductC21;
  61. module.exports.getmaturitySchemeF22B = getmaturitySchemeF22B;
  62. module.exports.getmaturitySchemeF25 = getmaturitySchemeF25;
  63. module.exports.getmaturitySchemeG22 = getmaturitySchemeG22;
  64. module.exports.getmaturitySchemeG23 = getmaturitySchemeG23;
  65. module.exports.getmaturitySchemeK20 = getmaturitySchemeK20;
  66. module.exports.getmaturitySchemeS22 = getmaturitySchemeS22;