|
|
@ -7,7 +7,7 @@ |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- item --> |
|
|
|
<view class="item flex_col flex_start_y bg-white padding " v-for="i in 3" @click="jumpPage('eventGrade')"> |
|
|
|
<view class="item flex_col flex_start_y bg-white padding " v-for="(i,k) in pageList.list" :key="k" @click="jumpPage('eventGrade')"> |
|
|
|
|
|
|
|
<view class="time flex_row"> |
|
|
|
<image src="../../static/images/event/event_lock.png" mode=""></image> |
|
|
@ -38,25 +38,55 @@ |
|
|
|
|
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {matchList} from "../../nxTemp/apis/userAPI.js" |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
title:"默认块级元素默认块级元素默认块级元素", |
|
|
|
address:"广州省广州市区白云区广州省广州市区白云区永泰广州省广州市区白云区广州省广州市区白云区永泰", |
|
|
|
login:true |
|
|
|
postData:{ |
|
|
|
page:1, |
|
|
|
page_size:10, |
|
|
|
token:123 |
|
|
|
}, |
|
|
|
pageList:[] |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(parms) { |
|
|
|
|
|
|
|
onLoad(opt) { |
|
|
|
this.updatePage() |
|
|
|
}, |
|
|
|
onUnload() { |
|
|
|
|
|
|
|
this.resetPostData() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
jumpPage(name){ |
|
|
|
this.$Router.push({name}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//更新页面列表 |
|
|
|
updatePage() { |
|
|
|
matchList(this.postData).then(res => { |
|
|
|
this.$tools.showNone("已更新"); |
|
|
|
this.pageList.push(res) |
|
|
|
this.postData.page++ |
|
|
|
}).catch(e=>{ |
|
|
|
this.$tools.showNone(e.errMsg) |
|
|
|
}) |
|
|
|
}, |
|
|
|
//预留 |
|
|
|
getFilteredItem(item){ |
|
|
|
return Promise.resolve({}=item) |
|
|
|
}, |
|
|
|
//重置请求参数 |
|
|
|
resetPostData(){ |
|
|
|
this.postData = { |
|
|
|
page:1, |
|
|
|
page_size:10 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|