Commit dd01e8be by 陈超

T

parent b9c433ea
......@@ -828,7 +828,7 @@ div::-webkit-scrollbar {
position: relative;
width: 0;
flex-grow: 1;
height:56px;
height:58px;
border-radius:8px;
border: none;
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
<include file="__THEME__/public_header_w3g"/>
<div id="app">
<div class="layout_v">
<div class="layout_v" style="background: #F5F5F5;">
<div class="vip_buy_top_state">
<span class="text_12_400 color_999999">当前身份:<?php if($learnc['vip_type']==0):?>非会员<?php else: echo $learnc['vip_type_txt'];endif;?></span>
......@@ -40,6 +40,14 @@
<span class="text_16_600" :class="isYear ? 'color_primary' : 'color_999999'">{{yearPrice}}</span>
</div>
</div>
<div class="layout_h_v_c" style="margin-top: 1.5rem">
<span class="text_14_400 color_999999">数量:</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;"></span>
<van-icon @click="onPlus" name="__THEME__/img/plus.png" size="20" ></van-icon>
<span class="text_14_400 color_999999" style="margin-left: 0.25rem;">{{isYear ? "年" : "月"}}</span>
</div>
</div>
</div>
......@@ -168,6 +176,7 @@
return {
type: 1,
isYear: false,
count: 1,
vips: []
}
},
......@@ -197,6 +206,16 @@
r.color = { background: "#F5A623" }
}
})
},
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