Commit 7a594803 authored by xd's avatar xd

修改优惠券样式

parent 6a318166
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
background-color: #F39B00; background-color: #F39B00;
height: 60%; height: 60%;
display: flex; display: flex;
padding: 20px; padding: 10px;
align-items: center; align-items: center;
margin-bottom: 38px; margin-bottom: 38px;
} }
...@@ -123,13 +123,13 @@ export default { ...@@ -123,13 +123,13 @@ export default {
.left { .left {
display: flex; display: flex;
align-items: center; align-items: center;
width: 35%;
height: 100%; height: 100%;
border-right: 1px dashed #f0f0f0; border-right: 1px dashed #f0f0f0;
} }
.price { .price {
font-size: 32px; font-size: 30px;
font-weight: 800; font-weight: 800;
margin-right: 8px;
} }
.right { .right {
width: 65%; width: 65%;
......
...@@ -36,15 +36,18 @@ export default { ...@@ -36,15 +36,18 @@ export default {
}, },
mounted() { mounted() {
this.deptId = sessionStorage.getItem('oyStallCode') this.deptId = sessionStorage.getItem('oyStallCode')
// this.deptId = 3
this.getList() this.getList()
}, },
methods: { methods: {
getList() { getList() {
console.log(11);
let params = { let params = {
deptId: this.deptId deptId: 10
} }
getCouponList(params).then(res => { getCouponList(params).then(res => {
console.log(2);
this.list = res.data this.list = res.data
res.data.forEach(item => { res.data.forEach(item => {
item.begin_date = item.begin_date.substr(0,4)+'-'+item.begin_date.substr(4,2)+'-'+item.begin_date.substr(6,2) item.begin_date = item.begin_date.substr(0,4)+'-'+item.begin_date.substr(4,2)+'-'+item.begin_date.substr(6,2)
...@@ -74,6 +77,7 @@ export default { ...@@ -74,6 +77,7 @@ export default {
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
min-height: 100%;
} }
.left,.right { .left,.right {
font-size: 16px; font-size: 16px;
......
...@@ -121,9 +121,7 @@ export default { ...@@ -121,9 +121,7 @@ export default {
// }) // })
// console.log(this.zlist.voucher,'111') // console.log(this.zlist.voucher,'111')
// }) // })
let arr = res.data.map( item => { let arr = res.data.map( item => {
return this.getVoucherList(item.oyStallCode) return this.getVoucherList(item.oyStallCode)
}) })
console.log(); console.log();
...@@ -134,10 +132,10 @@ export default { ...@@ -134,10 +132,10 @@ export default {
return obj return obj
}) })
]) ])
console.log(promiseAll,'promiseAll'); console.log(promiseAll,'promiseAll')
promiseAll.then(res =>{ promiseAll.then(res =>{
console.log(res,'sss'); console.log(res,'sss')
}) })
......
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