import uniPagination from '@/components/uni-pagination/uni-pagination.vue'
export default {
components: {uniPagination}
}
<uni-pagination title="标题文字" show-icon="true" :total="total" :current="current" @change="handlePage"></uni-pagination>
data(){
return{
total:'',
current:1
}
}
methods:{
getcompanyId(){
let token = this.$db.get('userToken')
let current = this.current;
let data = {
token:token,
page:current
}
this.$api.gethistorearningorder(data,res=>{
if(res.status){
this.shoperList = res.data.order_info
this.total = res.data.count
}
// console.log(res)
})
},
handlePage(params){
// console.log(params)
this.current = params.current;
this.getcompanyId()
}
}
下面是成功案例展示
版权声明:本文为weixin_40808668原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。