|
@@ -37,7 +37,7 @@
|
|
<div v-cloak id="app">
|
|
<div v-cloak id="app">
|
|
<div class="credit-title">
|
|
<div class="credit-title">
|
|
<div class="title">我的学分</div>
|
|
<div class="title">我的学分</div>
|
|
- <div class="credit">6</div>
|
|
|
|
|
|
+ <div class="credit">{{xuefencount}}</div>
|
|
</div>
|
|
</div>
|
|
<div class="credit-list">
|
|
<div class="credit-list">
|
|
<br />
|
|
<br />
|
|
@@ -58,7 +58,7 @@
|
|
<div>{{ item.title }}</div>
|
|
<div>{{ item.title }}</div>
|
|
<div>
|
|
<div>
|
|
<span class="labelItem">{{ item.subject_name }}</span>
|
|
<span class="labelItem">{{ item.subject_name }}</span>
|
|
- <span class="creditinfo">3分</span>
|
|
|
|
|
|
+ <span class="creditinfo">{{ item.xuefen }}分</span>
|
|
</div>
|
|
</div>
|
|
<div class="price-wrap">
|
|
<div class="price-wrap">
|
|
<div class="price">¥<span>{{ item.money }}</span></div>
|
|
<div class="price">¥<span>{{ item.money }}</span></div>
|
|
@@ -88,6 +88,7 @@
|
|
activityList: [],
|
|
activityList: [],
|
|
loading: false,
|
|
loading: false,
|
|
loadend: false,
|
|
loadend: false,
|
|
|
|
+ xuefencount:0,
|
|
page: 1,
|
|
page: 1,
|
|
limit: 20,
|
|
limit: 20,
|
|
loadTitle:''
|
|
loadTitle:''
|
|
@@ -119,13 +120,18 @@
|
|
if (that.loading) return;
|
|
if (that.loading) return;
|
|
if (that.loadend) return;
|
|
if (that.loadend) return;
|
|
that.loading = true;
|
|
that.loading = true;
|
|
- store.baseGet($h.U({ c: 'my', a: 'special_log', p: { page: that.page, limit: that.limit, op:'list' } }), function (res) {
|
|
|
|
|
|
+ that.activityList = [];
|
|
|
|
+ store.baseGet($h.U({ c: 'my', a: 'history', p: { page: that.page, limit: 10000, op:'xuefenlist' } }), function (res) {
|
|
var list = res.data.data;
|
|
var list = res.data.data;
|
|
that.activityList.push.apply(that.activityList, list);
|
|
that.activityList.push.apply(that.activityList, list);
|
|
- that.loadend = list.length < that.limit;
|
|
|
|
|
|
+ that.loadend = list.length < 10000;
|
|
that.loadTitle = that.loadend ? '已全部加载完' : '上拉加载更多';
|
|
that.loadTitle = that.loadend ? '已全部加载完' : '上拉加载更多';
|
|
that.page = that.page + 1;
|
|
that.page = that.page + 1;
|
|
that.loading = false;
|
|
that.loading = false;
|
|
|
|
+ that.xuefencount = 0;
|
|
|
|
+ for (let i in that.activityList) {
|
|
|
|
+ that.xuefencount += that.activityList[i].xuefen;
|
|
|
|
+ }
|
|
that.$set(this, 'activityList', that.activityList);
|
|
that.$set(this, 'activityList', that.activityList);
|
|
}, function (res) {
|
|
}, function (res) {
|
|
that.loadTitle = '上拉加载更多';
|
|
that.loadTitle = '上拉加载更多';
|