Commit c8338800 authored by xd's avatar xd

商品详情样式调整

parent d0c50363
......@@ -57,6 +57,7 @@
</van-cell>
<van-cell title="活动开始时间" style="font-size:14px;">
<template slot="default">
<div class="jpsl">
<van-field
v-model="startTime1"
placeholder="选择活动开始时间"
......@@ -73,10 +74,12 @@
@change="startTimeChange"
/>
</van-popup>
</div>
</template>
</van-cell>
<van-cell title="活动结束时间" style="font-size:14px;">
<template slot="default">
<div class="jpsl">
<van-field
v-model="endTime1"
placeholder="选择活动结束时间"
......@@ -93,6 +96,7 @@
@change="endTimeChange"
/>
</van-popup>
</div>
</template>
</van-cell>
<van-cell title="上架数量" style="font-size:14px;" class="nob">
......@@ -128,7 +132,7 @@ export default {
startShow: false,
endShow: false,
number: "",
type: '1',
type: "1",
show: false,
show2: false,
show3: false,
......@@ -141,8 +145,14 @@ export default {
let year = 1900 + time.getYear();
let month = "0" + (time.getMonth() + 1);
let date = "0" + time.getDate();
return year + "-" + month.substring(month.length-2, month.length) + "-" + date.substring(date.length-2, date.length)
+ " "
return (
year +
"-" +
month.substring(month.length - 2, month.length) +
"-" +
date.substring(date.length - 2, date.length) +
" "
);
},
startTimeChange(e) {
let startTimeArr = e.getValues();
......@@ -153,19 +163,21 @@ export default {
this.endTime1 = `${endTimeArr[0]}-${endTimeArr[1]}-${endTimeArr[2]}`;
},
handleStartTime(value) {
this.startTime1 = this.timeFormat(value)
this.startShow = false
this.startTime1 = this.timeFormat(value);
this.startShow = false;
},
handleEndTime(value) {
this.endTime1 = this.timeFormat(value)
this.endShow = false
},
this.endTime1 = this.timeFormat(value);
this.endShow = false;
}
}
};
</script>
<style scoped>
.jpsl >>> .van-cell:not(:last-child)::after {
display: none;
}
.price {
width: 88px;
height: 36px;
......@@ -261,14 +273,14 @@ h3 {
text-align: center;
}
.creat {
width:96%;
height:40px;
background:rgba(117,178,253,1);
border-radius:10px;
width: 96%;
height: 40px;
background: rgba(117, 178, 253, 1);
border-radius: 10px;
text-align: center;
line-height: 40px;
font-size:16px;
font-weight:bold;
font-size: 16px;
font-weight: bold;
color: #fff;
margin-left: 2%;
position: absolute;
......
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