| | |
| | | "name" : "中扬WMS", |
| | | "appid" : "__UNI__DA5854D", |
| | | "description" : "", |
| | | <<<<<<< HEAD |
| | | "versionName" : "20220824A", |
| | | ======= |
| | | "versionName" : "20220820A", |
| | | >>>>>>> 455e1c7242cd79491e2c034c85d60ae7247c0255 |
| | | "versionCode" : 103, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | |
| | | <template> |
| | | <view> |
| | | |
| | | <view style="width: 100%;height: 200rpx;background-color: aqua;margin-top: 10rpx;" |
| | | v-for="(item,index) in listData" :key="index"> |
| | | <text>{{index}}</text> |
| | | </view> |
| | | <uni-load-more :status="status" :icon-size="16" :content-text="contentText" /> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | return { |
| | | commonUrl:null, |
| | | listData: [], |
| | | |
| | | reload: false, |
| | | status: 'more', |
| | | contentText: { |
| | | contentdown: '上拉加载更多', |
| | | contentrefresh: '加载中', |
| | | contentnomore: '没有更多' |
| | | } |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | this.getList() |
| | | }, |
| | | onPullDownRefresh() { |
| | | this.reload = true; |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | |
| | | this.status = 'more'; |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | |
| | | }, |
| | | getList() { |
| | | let that = this |
| | | console.log(that.commonUrl); |
| | | uni.request({ |
| | | url: that.commonUrl + '/waitPakin/list/auth', |
| | | data:{ |
| | | curr:1, |
| | | limit:16, |
| | | limit:10, |
| | | }, |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | let res = result.data |
| | | if (res.code === 200) { |
| | | if (res.data) { |
| | | let list = res.data.records |
| | | that.listData = this.reload ? list : this.listData.concat(list); |
| | | this.reload = false; |
| | | |
| | | } |
| | | } |