Commit 59f6ab34 by 冷斌

推广

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