Skip to content

Commit

Permalink
[UPDATE]加载进度条显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Exrick committed Mar 27, 2018
1 parent 44d471b commit 61643b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
### 项目已部署,在线Demo
- 前台商城:http://xmall.exrick.cn/
- 后台管理系统:http://xmadmin.exrick.cn/
- 第一次打开可能较慢,请耐心等待
### 感谢 [yucccc](https://github.com/yucccc) 的开源 [vue-mall](https://github.com/yucccc/vue-mall) 项目提供前端页面及框架支持
### 后端全部重新开发接口,实现后台系统管理,后端接口项目请跳转至 [xmall](https://github.com/Exrick/xmall) 项目仓库查看
### 新增与优化
Expand Down
8 changes: 6 additions & 2 deletions src/page/Thanks/thanks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<section class="w mt30 clearfix">
<y-shelf title="捐赠名单">
<div slot="content" class="table">
<div slot="content" class="table" v-loading="loading" element-loading-text="加载中...">
<p>佛祖保佑这些好心人写程序永无BUG,工资翻倍,长命百岁,迎娶白富美,走上人生巅峰!</p>
<el-table border :data="tableData" :default-sort = "{prop: 'time', order: 'descending'}" stripe style="width: 90%">
<el-table-column sortable prop="nickName" label="昵称" align="center"></el-table-column>
Expand Down Expand Up @@ -67,17 +67,20 @@
tableData: [],
currentPage: 1,
pageSize: 10,
total: 0
total: 0,
loading: true
}
},
methods: {
handleSizeChange (val) {
this.pageSize = val
this._thanksList()
this.loading = true
},
handleCurrentChange (val) {
this.currentPage = val
this._thanksList()
this.loading = true
},
_thanksList () {
let params = {
Expand All @@ -87,6 +90,7 @@
}
}
thanksList(params).then(res => {
this.loading = false
this.tableData = res.result.data
this.total = res.result.recordsTotal
})
Expand Down

0 comments on commit 61643b1

Please sign in to comment.