zjh 5 vuotta sitten
vanhempi
commit
a35ae01217
3 muutettua tiedostoa jossa 19 lisäystä ja 4 poistoa
  1. 6 0
      pages/drop/drop.js
  2. 6 3
      pages/item/item.js
  3. 7 1
      pages/rise/rise.js

+ 6 - 0
pages/drop/drop.js

@@ -197,7 +197,9 @@ Page({
   getdeclast:function(){
     var that = this;
     var getinclast = wxRequest.getRequest(Api.getdeclast());
+    wx.showLoading({title: '加载中…'})
     getinclast.then((res)=>{
+      wx.hideLoading()
       // console.log(res)
       if(res.statusCode==200){
        that.setData({
@@ -210,7 +212,9 @@ Page({
     getdeclpred:function(){
       var that = this;
       var getinclast = wxRequest.getRequest(Api.getdeclpred());
+      wx.showLoading({title: '加载中…'})
       getinclast.then((res)=>{
+        wx.hideLoading()
         // console.log(res)
         if(res.statusCode==200){
          that.setData({
@@ -223,7 +227,9 @@ Page({
       getdecnpred:function(){
         var that = this;
     var getinclast = wxRequest.getRequest(Api.getdecnpred());
+    wx.showLoading({title: '加载中…'})
     getinclast.then((res)=>{
+      wx.hideLoading()
       // console.log(res)
       if(res.statusCode==200){
        that.setData({

+ 6 - 3
pages/item/item.js

@@ -376,7 +376,7 @@ Page({
     })
   that.posthisfind(JSON.parse(options.row).industryId,)
   that.postpredfind(JSON.parse(options.row).industryId,)
-  console.log(app.globalData.userInfo)
+  // console.log(app.globalData.userInfo)
   },
   postfollow:function(){
     var that = this;
@@ -426,8 +426,10 @@ Page({
         }
       ]
       var postbyiid = wxRequest.postRequest(Api.posthisfind(),data);
+      wx.showLoading({title: '加载中…'})
       postbyiid.then((res)=>{
-       console.log(res)
+      //  console.log(res)
+       wx.hideLoading()
         // console.log(that.recursion(res.data))
         if(res.statusCode==200){
           that.setData({
@@ -469,8 +471,9 @@ Page({
           }
         ]
         var postbyiid = wxRequest.postRequest(Api.postpredfind(),data);
+        wx.showLoading({title: '加载中…'})
         postbyiid.then((res)=>{
-      
+          wx.hideLoading()
           if(res.statusCode==200){
             that.setData({
               nextchartData:that.recursion(res.data.data),

+ 7 - 1
pages/rise/rise.js

@@ -197,8 +197,10 @@ Page({
   getinclast:function(){
     var that = this;
     var getinclast = wxRequest.getRequest(Api.getinclast());
+    wx.showLoading({title: '加载中…'})
     getinclast.then((res)=>{
-      console.log(res)
+      // console.log(res)
+      wx.hideLoading()
       if(res.statusCode==200){
        that.setData({
         realData:res.data.data
@@ -210,7 +212,9 @@ Page({
     getinclpred:function(){
       var that = this;
       var getinclast = wxRequest.getRequest(Api.getinclpred());
+      wx.showLoading({title: '加载中…'})
       getinclast.then((res)=>{
+        wx.hideLoading()
         // console.log(res)
         if(res.statusCode==200){
          that.setData({
@@ -223,7 +227,9 @@ Page({
       getincnpred:function(){
         var that = this;
     var getinclast = wxRequest.getRequest(Api.getincnpred());
+    wx.showLoading({title: '加载中…'})
     getinclast.then((res)=>{
+      wx.hideLoading()
       // console.log(res)
       if(res.statusCode==200){
        that.setData({