Commit 8d0a685f by 冷斌

推广

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