Commit af6f4f4a by 冷斌

fix bug

parent d4d26fd0
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<if condition="$vo['price'] eq 0">免费 <if condition="$vo['price'] eq 0">免费
<else />¥{$vo['price']}</if> <else />¥{$vo['price']}</if>
</span> </span>
<van-image @click="onDownload({$vo})" src="__THEME__/img/down_load_icon.png" width="13" height="16"> <van-image @click="onDownload({$vo['is_buy']}, {$vo['price']}, '{$vo[attach]}')" src="__THEME__/img/down_load_icon.png" width="13" height="16">
</van-image> </van-image>
</van-icon> </van-icon>
</div> </div>
...@@ -175,8 +175,8 @@ ...@@ -175,8 +175,8 @@
onChange: function(tab) { onChange: function(tab) {
}, },
onDownload: function (item) { onDownload: function (isBuy, price, path) {
console.log(item); console.log(isBuy, price, path);
}, },
onPay: function(id) { onPay: function(id) {
console.log("Id = " + id) console.log("Id = " + id)
......
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