소스 검색

tugengxin

zjh 5 년 전
부모
커밋
a35ae01217
3개의 변경된 파일19개의 추가작업 그리고 4개의 파일을 삭제
  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(){
   getdeclast:function(){
     var that = this;
     var that = this;
     var getinclast = wxRequest.getRequest(Api.getdeclast());
     var getinclast = wxRequest.getRequest(Api.getdeclast());
+    wx.showLoading({title: '加载中…'})
     getinclast.then((res)=>{
     getinclast.then((res)=>{
+      wx.hideLoading()
       // console.log(res)
       // console.log(res)
       if(res.statusCode==200){
       if(res.statusCode==200){
        that.setData({
        that.setData({
@@ -210,7 +212,9 @@ Page({
     getdeclpred:function(){
     getdeclpred:function(){
       var that = this;
       var that = this;
       var getinclast = wxRequest.getRequest(Api.getdeclpred());
       var getinclast = wxRequest.getRequest(Api.getdeclpred());
+      wx.showLoading({title: '加载中…'})
       getinclast.then((res)=>{
       getinclast.then((res)=>{
+        wx.hideLoading()
         // console.log(res)
         // console.log(res)
         if(res.statusCode==200){
         if(res.statusCode==200){
          that.setData({
          that.setData({
@@ -223,7 +227,9 @@ Page({
       getdecnpred:function(){
       getdecnpred:function(){
         var that = this;
         var that = this;
     var getinclast = wxRequest.getRequest(Api.getdecnpred());
     var getinclast = wxRequest.getRequest(Api.getdecnpred());
+    wx.showLoading({title: '加载中…'})
     getinclast.then((res)=>{
     getinclast.then((res)=>{
+      wx.hideLoading()
       // console.log(res)
       // console.log(res)
       if(res.statusCode==200){
       if(res.statusCode==200){
        that.setData({
        that.setData({

+ 6 - 3
pages/item/item.js

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

+ 7 - 1
pages/rise/rise.js

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