Z1hgq 7 år sedan
förälder
incheckning
dcdd7b20f1

+ 7 - 0
Gkzs/index/index.js

xqd xqd xqd
@@ -17,6 +17,7 @@ Page({
    */
   onLoad: function (options) {
    // this.userLogin()
+   wx.hideLoading()
    this.setData({
      userid: getApp().userinfo.userid
    })
@@ -83,6 +84,9 @@ Page({
         });
       }, 3000);
     } else {
+      wx.showLoading({
+        title: '加载中',
+      })
       wx.request({
         url: 'https://t10.9026.com/api/home/agreeintroduction',
         data: {
@@ -105,6 +109,9 @@ Page({
     });
   },
   getInfo:function(){
+    wx.showLoading({
+      title: '加载中',
+    })
     var that = this
     var WxParse = require('../wxParse/wxParse.js');
     wx.request({

+ 4 - 0
Gkzs/index/info/info.js

xqd xqd
@@ -29,6 +29,7 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad: function (options) {
+    wx.hideLoading()
     var that = this
     wx.request({
       url: 'https://t10.9026.com/api/home/getbasedata',  //这里''里面填写你的服务器API接口的路径    
@@ -179,6 +180,9 @@ Page({
         infoDown: true
       })
     } else {
+      wx.showLoading({
+        title: '加载中',
+      })
       console.log(that.data)
       var app = getApp()
       app.userinfo.code = that.data.code

+ 1 - 0
Gkzs/index/result/result.js

xqd
@@ -152,6 +152,7 @@ Page({
           college_count: res.data.data.college_count,
           rank: res.data.data.rank
         })
+        wx.hideLoading()
       }
     })
   },

+ 4 - 3
Gkzs/index/result/result.wxml

xqd
@@ -39,20 +39,21 @@
           <image style='width:15px;height:15px;' src='../../images/IP.png' mode='aspectFit'></image>{{item.province}}</view>
       </view>
       <view class='weui-flex'>
-        <view class='weui-flex__item'>专业:{{item.major}}</view>
         <view class='weui-flex__item'>{{item.type}}</view>
+        <view class='weui-flex__item'>专业:{{item.major}}</view>
       </view>
       <view class='weui-flex'>
         <view class='weui-flex__item'>{{item.year}}年</view>
+        <view class='weui-flex__item'>专业备注:{{item.comment}}</view>
       </view>
       <view class='weui-flex'>
-        <view class='weui-flex__item' style='color:3CB371'>最低分 {{item.miss_grade}}</view>
+        <view class='weui-flex__item' style='color:3CB371'>最低分 {{item.min_grade}}</view>
         <view class='weui-flex__item' style='color:FF4500'>最高分 {{item.max_grade}}</view>
         <view class='weui-flex__item' style='color:DAA520'>平均分 {{item.avg_grade}}</view>
       </view>
 
       <view class='weui-flex'>
-        <view class='weui-flex__item' style='color:3CB371'>最低位次 {{item.miss_rank}}</view>
+        <view class='weui-flex__item' style='color:3CB371'>最低位次 {{item.min_rank}}</view>
         <view class='weui-flex__item' style='color:FF4500'>最高位次 {{item.max_rank}}</view>
         <view class='weui-flex__item' style='color:DAA520'>平均位次 {{item.avg_rank}}</view>
       </view>

+ 1 - 0
Gkzs/index/terms/terms.js

xqd
@@ -28,6 +28,7 @@ Page({
         })
         var article = tet.data.list[1].content
         WxParse.wxParse('article', 'html', article, that, 5)
+        wx.hideLoading()
         //callback(tet)
       }
     });

+ 3 - 0
Gkzs/login/login.js

xqd
@@ -64,6 +64,9 @@ Page({
 
   },
   userLogin: function () {
+    wx.showLoading({
+      title: '登录中',
+    })
     var that = this
     try {
       wx.login({