Commit 8d0a685f by 冷斌

推广

parent 96588514
......@@ -399,7 +399,7 @@ class UserAction extends CommonAction
$results = M('zy_split_balance_flow')->where([
'uid' => $this->mid,
'type' => 5,
])->findAll();
])->order('ctime desc')->findAll();
$sum = M('zy_split_balance_flow')->where([
'uid' => $this->mid,
'type' => 5,
......
<include file="__THEME__/public_header_w3g" />
<include file="__THEME__/public_header_w3g"/>
<style type="text/css">
</style>
<div id="app">
<div class="layout_v">
<div class="widthraw_list_top layout_h">
<span class="text_12_400 color_999999">收益总金额:</span>
<span class="text_12_400 color_primary">¥{$num}</span>
</div>
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad">
<!-- v-for="(item, index)" :key="index" -->
<div class="layout_h_b income_item">
<div class="weight_full layout_v_b">
<span class="text_14_400 color_333333">用户8989购买了你推荐的【智慧校园教材】</span>
<span class="text_12_400 color_999999" style="margin-top: 0.75rem;">2020-01-02 15:35</span>
</div>
<span class="self_center text_14_600 color_FF3B3B" style="margin-left: 1rem;">+¥220.00</span>
</div>
</van-list>
</div>
<div class="layout_v">
<div class="widthraw_list_top layout_h">
<span class="text_12_400 color_999999">收益总金额:</span>
<span class="text_12_400 color_primary">¥{$num}</span>
</div>
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad">
<!-- v-for="(item, index)" :key="index" -->
<?php foreach($data as $i=>$rs):?>
<div class="layout_h_b income_item">
<div class="weight_full layout_v_b">
<span class="text_14_400 color_333333"><?= $rs['note'] ?></span>
<span class="text_12_400 color_999999" style="margin-top: 0.75rem;">2020-01-02 15:35</span>
</div>
<span class="self_center text_14_600 color_FF3B3B" style="margin-left: 1rem;">+¥220.00</span>
</div>
<?php endforeach;?>
</van-list>
</div>
</div>
<script type="text/javascript">
new Vue({
el: "#app",
data: function() {
return {
loading: false,//加载时置为true
finished: false,//加载完毕时置为true,为false时自动到底加载更多,
items: []
}
},
created:function(){
$("#preloader").hide();
},
methods: {
onLoad: function() {
new Vue({
el: "#app",
data: function () {
return {
loading: false,//加载时置为true
finished: true,//加载完毕时置为true,为false时自动到底加载更多,
items: []
}
},
created: function () {
$("#preloader").hide();
},
methods: {
onLoad: function () {
}
}
})
}
}
})
</script>
<include file="__THEME__/public_footer_w3g" />
<include file="__THEME__/public_footer_w3g"/>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment