Commit 8024b2e0 authored by xd's avatar xd

优惠券加名字

parent 8d979550
<template> <template>
<div class="contain"> <div class="contain">
<div class="box"> <div class="box">
<div class="name">{{ form.name }}</div>
<div class="yhq"> <div class="yhq">
<div class="left"> <div class="left">
<div class="price">¥{{ form.unit }}</div> <div class="price">¥{{ form.unit }}</div>
...@@ -30,6 +31,7 @@ export default { ...@@ -30,6 +31,7 @@ export default {
data() { data() {
return { return {
form: { form: {
name: '优惠券',
unit: '100', unit: '100',
type: '老用户回馈券', type: '老用户回馈券',
usageAmount: '500', usageAmount: '500',
...@@ -73,6 +75,11 @@ export default { ...@@ -73,6 +75,11 @@ export default {
</script> </script>
<style scoped> <style scoped>
.name {
font-size: 22px;
padding-bottom: 16px;
text-align: center;
}
.contain { .contain {
background-color: rgb(237, 239, 243); background-color: rgb(237, 239, 243);
height: 100%; height: 100%;
...@@ -83,7 +90,7 @@ export default { ...@@ -83,7 +90,7 @@ export default {
height: 50%; height: 50%;
background-color: #fff; background-color: #fff;
width: 90%; width: 90%;
padding: 50px 20px; padding: 20px 20px 50px;
} }
.yhq { .yhq {
background-color: #F39B00; background-color: #F39B00;
......
<template> <template>
<div class="contain"> <div class="contain">
<div class="box" v-for="(item,index) in list" :key="index" @click="handleCoupon(item.id)"> <div class="box" v-for="(item,index) in list" :key="index" @click="handleCoupon(item.id)">
<div class="name">{{ item.name }}</div>
<div class="nr">
<div class="left" > <div class="left" >
<div class="price">¥{{ item.unit }}</div> <div class="price">¥{{ item.unit }}</div>
<div class="type">{{ item.type }}</div> <div class="type">{{ item.type }}</div>
...@@ -14,6 +16,8 @@ ...@@ -14,6 +16,8 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="btn-plus" @click="handleAddCoupon"><span>+</span></div> <div class="btn-plus" @click="handleAddCoupon"><span>+</span></div>
</div> </div>
</template> </template>
...@@ -67,6 +71,14 @@ export default { ...@@ -67,6 +71,14 @@ export default {
</script> </script>
<style scoped> <style scoped>
.name {
display: flex;
align-items: center;
font-size: 20px;
width: 100%;
border-bottom: 1px dashed #ccc;
padding-bottom: 10px;
}
.contain { .contain {
background-color: rgb(237, 239, 243); background-color: rgb(237, 239, 243);
height: auto; height: auto;
...@@ -80,6 +92,7 @@ export default { ...@@ -80,6 +92,7 @@ export default {
} }
.box { .box {
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
width: 90%; width: 90%;
padding: 20px; padding: 20px;
...@@ -88,6 +101,11 @@ export default { ...@@ -88,6 +101,11 @@ export default {
border: 1px solid #777; border: 1px solid #777;
margin-top: 18px; margin-top: 18px;
} }
.nr {
display: flex;
align-items: center;
width: 100%;
}
.left { .left {
width: 35%; width: 35%;
} }
......
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