Commit 59f6ab34 by 冷斌

推广

parent 42d7b4f5
......@@ -509,8 +509,6 @@ class UserAction extends CommonAction
$results = M('zy_split_balance_flow')->where("uid = {$this->mid} and type != 5")->order('ctime desc')->findAll();
$sum = M('zy_split_balance_flow')->where("uid = {$this->mid} and type != 5")->sum('num');
var_dump($sum, $results);
die;
$this->assign('num', $sum);
$this->assign('data', $results);
}
......
<include file="__THEME__/public_header_w3g" />
<style type="text/css">
</style>
<div id="app">
<div class="layout_v">
......@@ -11,14 +11,15 @@
<van-list
v-model="loading"
:finished="finished"
finished-text="没有更多了"
@load="onLoad">
<div v-for="(item, index) in items" :key="index" class="layout_h_b widthraw_list_item">
<span class="text_14_400 color_333333">2020-01-02 15:35</span>
<span class="text_14_600 color_primary">-¥220.00</span>
<?php foreach($data as $i=>$rs):?>
<div class="layout_h_b widthraw_list_item">
<span class="text_14_400 color_333333"><?= date('Y-m-d H:i', $rs['ctime']) ?></span>
<span class="text_14_600 color_primary"><?= $rs['type'] == 2 ? '-' : '+'?>¥<?= $rs['num']?></span>
</div>
<?php endforeach;?>
</van-list>
</div>
</div>
......@@ -29,7 +30,7 @@
data: function() {
return {
loading: false,//加载时置为true
finished: false,//加载完毕时置为true,为false时自动到底加载更多,
finished: true,//加载完毕时置为true,为false时自动到底加载更多,
items: [1]
}
},
......@@ -38,10 +39,10 @@
},
methods: {
onLoad: function() {
}
}
})
</script>
<include file="__THEME__/public_footer_w3g" />
\ No newline at end of file
<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