diff --git a/littleApp_child/pages/childcare_knowledge/childcare_knowledge.js b/littleApp_child/pages/childcare_knowledge/childcare_knowledge.js index 0fab569..660624f 100644 --- a/littleApp_child/pages/childcare_knowledge/childcare_knowledge.js +++ b/littleApp_child/pages/childcare_knowledge/childcare_knowledge.js @@ -12,7 +12,9 @@ var isRefresh var app = getApp() var pageLimit=15 - +var animation1 = wx.createAnimation({ + duration:1000 +}) Page({ data: { list: [ @@ -33,6 +35,7 @@ Page({ titles: [],//"日常护理", "营养美食", "疾病护理", "亲子互动", "言传身教" category:'', current_index:0, + animationData:{}, swiperHeight:0 }, onLoad: function (e) { @@ -81,7 +84,17 @@ Page({ list: [], }) - + animation1 = wx.createAnimation({ + duration: 1000 + }) + animation1.rotate(720).step() + + this.setData({ + animationData: animation1.export() + }) + + + networkUtil.showLoading() // 网络请求,重新请求一遍数据 this.requestData(); @@ -144,9 +157,25 @@ Page({ list:arr, hasMore: hasMore }) + // var that = this; + setTimeout(function () { + animation1.rotate(0).step({ duration: 0, transformOrigin: "50%,50%", timingFunction: 'linear' }) + self.setData({ + animationData: animation1.export() + }) + }, 300) + },function(res){ isRefresh = false + setTimeout(function () { + animation1.rotate(0).step({ duration: 0, transformOrigin: "50%,50%", timingFunction: 'linear' }) + self.setData({ + animationData: animation1.export() + }) + }, 300) }) + + }, // 文章点赞 articleLike: function (e){ diff --git a/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxml b/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxml index 5de6d29..f4c0fce 100644 --- a/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxml +++ b/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxml @@ -43,6 +43,6 @@ - + \ No newline at end of file diff --git a/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxss b/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxss index d59789e..d9b0963 100644 --- a/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxss +++ b/littleApp_child/pages/childcare_knowledge/childcare_knowledge.wxss @@ -111,7 +111,7 @@ .zar_box { display: flex; margin-left:-5px; - + width: 50px; } .zar_img { diff --git a/littleApp_child/utils/network_util.js b/littleApp_child/utils/network_util.js index b3fb37a..5367ec7 100644 --- a/littleApp_child/utils/network_util.js +++ b/littleApp_child/utils/network_util.js @@ -2,7 +2,7 @@ // 测试用户‘花雪莲’,手机号15928512992,验证码666666 // 0测试环境 1正式环境 2演示环境 3衡水 -var Builing_Release_AppStore = 1 +var Builing_Release_AppStore = 0 // 获取服务器地址 function kServerBaseUrl() { switch (Builing_Release_AppStore) {