Commit d86ba208 by 陈超

A

parent 59703b0f
...@@ -408,12 +408,12 @@ ...@@ -408,12 +408,12 @@
el: "#app", el: "#app",
data: function() { data: function() {
return { return {
info: {}
} }
}, },
created: function() { created: function() {
let p = {:json_encode($paper)}; this.info = {:json_encode($paper)};
console.log(p) console.log(this.info)
}, },
methods: { methods: {
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</div> </div>
</div> </div>
<div class="class_right layout_center"> <div class="class_right layout_center">
<div v-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div> <div @click="onPay(item)" v-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div>
<div @click="startDo(item)" v-if="item.price == 0" class="button_green layout_center">开始做题</div> <div @click="startDo(item)" v-if="item.price == 0" class="button_green layout_center">开始做题</div>
</div> </div>
</div> </div>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
</div> </div>
</div> </div>
<div class="class_right layout_center"> <div class="class_right layout_center">
<div v-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div> <div @click="onPay(item)" v-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div>
<div v-if="item.price == 0" class="button_green layout_center">下载试题</div> <div v-if="item.price == 0" class="button_green layout_center">下载试题</div>
</div> </div>
</div> </div>
......
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