| | |
| | | <u-tabs :list="list" :is-scroll="false" :current="current" active-color="#14B9C8" |
| | | inactive-color="#595959" height="100" @change="change"></u-tabs> |
| | | |
| | | <u-search v-model='keyValue' placeholder='请输入指令内容' shape="round" class="u-search" input-align="center" |
| | | height="70" @search='searchValue' @custom='searchValue' @clear='clearValue' @change='changeValue'> |
| | | <u-search v-model='keyValue' placeholder='请输入指令内容' shape="round" class="u-search" |
| | | input-align="center" height="70" @search='searchValue' @custom='searchValue' @clear='clearValue' |
| | | @change='changeValue'> |
| | | </u-search> |
| | | |
| | | <view v-show="current == 0 && newsList.length > 0"> |
| | |
| | | pages: 0, |
| | | flag: true, |
| | | |
| | | pullDown: false |
| | | |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | that.getSend(); |
| | | } |
| | | }, 1000); |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | var that = this; |
| | | |
| | | this.pullDown = true; |
| | | this.pagelist = 0; |
| | | this.pages = 0; |
| | | this.flag = true; |
| | | this.dataList = []; |
| | | this.newsList = []; |
| | | this.status = 'loading'; |
| | | this.keyValue = ''; |
| | | setTimeout(() => { |
| | | if (that.current == 0) { |
| | | that.getReceive(); |
| | | } else { |
| | | that.getSend(); |
| | | } |
| | | }, 1000) |
| | | |
| | | }, |
| | | mounted() { |
| | | this.getReceive(); |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | width: 100%; |
| | | max-height: 100vh; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | .head { |
| | | position: relative; |
| | | |