<commit_before>var app = getApp();
var common = require("../../common/js/common.js");
Page({
  data: {
    articleList: {},
    videoList: {},
    schoolList: {}
  },
  onReady: function () {
    console.log(app.globalData);
    this.queryArticle();    
    this.queryVideo();
    this.querySchool();
  },
  queryArticle: function (){
    var that = this;
    common.requestServer("p=news&ac=artic&d=getArticsParam&isNeadPager=true&f=ajax", { "pindex": 1,"psize": 1 }, function(data){
      console.log(data)
      that.setData({
        articleList: data[0]
      })
    })
  },
  queryVideo: function () {
    var that = this;
    common.requestServer("p=course&ac=vcourse&d=getVcoursesParam&isNeadPager=true", { "pindex": 1, "psize": 1 }, function (data) {
      that.setData({
        videoList: data[0]
      })
    })
  },
  querySchool: function () {
    var that = this;
    common.requestServer("p=basic&ac=sys&d=getParamByKey&keys=schoolSetting", {}, function (data) {
      that.setData({
        schoolList: data
      })
    })<commit_msg>手机上查看样式微调<commit_after>var app = getApp();
var common = require("../../common/js/common.js");
Page({
  data: {
    articleList: {},
    videoList: {},
    schoolList: {}
  },
  onReady: function () {
    console.log(app.globalData);
    this.queryArticle();    
    this.queryVideo();
    this.querySchool();
  },
  queryArticle: function (){
    var that = this;
    common.requestServer("p=news&ac=artic&d=getArticsParam&isNeadPager=true&f=ajax", { "pindex": 1,"psize": 1 }, function(data){
      that.setData({
        articleList: data[0]
      })
    })
  },
  queryVideo: function () {
    var that = this;
    common.requestServer("p=course&ac=vcourse&d=getVcoursesParam&isNeadPager=true", { "pindex": 1, "psize": 1 }, function (data) {
      that.setData({
        videoList: data[0]
      })
    })
  },
  querySchool: function () {
    var that = this;
    common.requestServer("p=basic&ac=sys&d=getParamByKey&keys=schoolSetting", {}, function (data) {
      that.setData({
        schoolList: data
      })
    })
{'fraction_non_alphanumeric': 0.17678227360308285, 'fraction_numerical': 0.005780346820809248, 'mean_word_length': 3.0174081237911023, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2807963', 'n_tokens_mistral': 733, 'n_tokens_neox': 717, 'n_words': 113}