Commit b0b0c1e3 by 陈超

T

parent 66573a10
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
</div> </div>
</div> </div>
<div class="layout_v pay_course_bottom"> <div class="layout_v pay_course_bottom">
<span class="text_16_600 color_333333" style="margin-bottom: 0.75rem;">选择支付方式</span> <span class="text_16_600 color_333333" style="margin-bottom: 0.75rem;">选择数量</span>
<van-icon @click="onMinus" name="__THEME__/img/minus.png" size="20" ></van-icon>
<span class="text_16_600 color_primary" style="margin-left: 0.5rem;margin-right: 0.5rem;">{{count}}</span>
<van-icon @click="onPlus" name="__THEME__/img/plus.png" size="20" ></van-icon>
</div> </div>
<div class="layout_v pay_course_bottom"> <div class="layout_v pay_course_bottom">
<span class="text_16_600 color_333333" style="margin-bottom: 0.75rem;">选择支付方式</span> <span class="text_16_600 color_333333" style="margin-bottom: 0.75rem;">选择支付方式</span>
...@@ -36,12 +39,26 @@ ...@@ -36,12 +39,26 @@
el: "#app", el: "#app",
data: function() { data: function() {
return { return {
count: 1,
info: "" info: ""
} }
}, },
created:function(){ created:function(){
let d = {:json_encode($data)}; let d = {:json_encode($data)};
this.info = d this.info = d
},
methods: {
onMinus: function() {
if(this.count - 1 > 1) {
this.count += 1
}
},
onPlus: function() {
this.count += 1
},
} }
}) })
......
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