|
|
@ -7,8 +7,8 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="priceContainer"> |
|
|
|
<view class="priceContainer"> |
|
|
|
<view class="priceCon"> |
|
|
|
<view class="priceCon"> |
|
|
|
<!-- <text>秒杀价:</text><input type="text" v-model="secondPrice" class="input" value="" |
|
|
|
<text>秒杀价:</text><input type="text" v-model="secondPrice" class="input" |
|
|
|
placeholder="秒杀价格可低于成本价" /> --> |
|
|
|
placeholder="秒杀价格可低于成本价" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="priceTime"> |
|
|
|
<view class="priceTime"> |
|
|
|
<view class="text">秒杀区间:</view> |
|
|
|
<view class="text">秒杀区间:</view> |
|
|
@ -24,10 +24,10 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="priceCon" style="justify-content: space-between;"> |
|
|
|
<view class="priceCon" style="justify-content: space-between;"> |
|
|
|
<text>秒杀限购:</text> |
|
|
|
<text>秒杀限购:</text> |
|
|
|
<u-switch v-model="secondQuota" @change="change" activeColor='#55BD6A' inactiveColor='#F1F1F1'> |
|
|
|
<u-switch v-model="secondQuota" size='35' @change="change" activeColor='#55BD6A' inactiveColor='#F1F1F1'> |
|
|
|
</u-switch> |
|
|
|
</u-switch> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="priceCon"> |
|
|
|
<view class="priceCon" v-if="secondQuota"> |
|
|
|
<text>每人限购:</text> |
|
|
|
<text>每人限购:</text> |
|
|
|
<input type="number" style="width: 130rpx;margin-right: 15rpx;" class="input" v-model="quotaNum" |
|
|
|
<input type="number" style="width: 130rpx;margin-right: 15rpx;" class="input" v-model="quotaNum" |
|
|
|
placeholder="请输入" />次 |
|
|
|
placeholder="请输入" />次 |
|
|
@ -44,7 +44,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</u-popup> |
|
|
|
</u-popup> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-calendar v-model="timeShow" mode="range" @change="getTime" range-color='#FF6257' range-bg-color='#FFBDBA' |
|
|
|
<u-calendar v-model="timeShow" mode="multiple" minDate='0' @change="getTime" :pickerOptions="pickerOptions" range-color='#FF6257' range-bg-color='#FFBDBA' |
|
|
|
active-bg-color='#FF6257'></u-calendar> |
|
|
|
active-bg-color='#FF6257'></u-calendar> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -57,9 +57,14 @@ |
|
|
|
startTime: '', |
|
|
|
startTime: '', |
|
|
|
endTime: '', |
|
|
|
endTime: '', |
|
|
|
secondPrice: '', |
|
|
|
secondPrice: '', |
|
|
|
secondQuota: '1', |
|
|
|
secondQuota: 1, |
|
|
|
quotaNum: '', |
|
|
|
quotaNum: '', |
|
|
|
fontColor:'#262626' |
|
|
|
fontColor:'#262626', |
|
|
|
|
|
|
|
pickerOptions:{ |
|
|
|
|
|
|
|
disabledDate(time){ |
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
@ -83,15 +88,15 @@ |
|
|
|
if (!this.endTime) { |
|
|
|
if (!this.endTime) { |
|
|
|
return this.$toast('请选择结束时间') |
|
|
|
return this.$toast('请选择结束时间') |
|
|
|
} |
|
|
|
} |
|
|
|
if (!this.quotaNum) { |
|
|
|
if (!this.quotaNum&&this.secondQuota) { |
|
|
|
return this.$toast('请输入限购次数') |
|
|
|
return this.$toast('请输入限购次数') |
|
|
|
} |
|
|
|
} |
|
|
|
this.$emit('getprice', { |
|
|
|
this.$emit('getprice', { |
|
|
|
startTime: this.startTime, |
|
|
|
startTime: this.startTime, |
|
|
|
endTime: this.endTime, |
|
|
|
endTime: this.endTime, |
|
|
|
secondPrice: this.secondPrice, |
|
|
|
secondPrice: this.secondPrice, |
|
|
|
quotaNum: this.quotaNum, |
|
|
|
quotaNum: this.secondQuota?this.quotaNum:'', |
|
|
|
secondQuota: this.secondQuota |
|
|
|
secondQuota: this.secondQuota?1:2 |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -101,7 +106,7 @@ |
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
::v-deep .u-btn--primary { |
|
|
|
::v-deep .u-btn--primary { |
|
|
|
background-color: #FF6257 !important; |
|
|
|
background-color: #FF6257 !important; |
|
|
|
border-color: #FF6257; |
|
|
|
border-color: #FF6257 !important; |
|
|
|
} |
|
|
|
} |
|
|
|
.afterSales { |
|
|
|
.afterSales { |
|
|
|
padding: 32upx; |
|
|
|
padding: 32upx; |
|
|
@ -128,10 +133,10 @@ |
|
|
|
margin-bottom: 20rpx; |
|
|
|
margin-bottom: 20rpx; |
|
|
|
|
|
|
|
|
|
|
|
text { |
|
|
|
text { |
|
|
|
width: 150rpx; |
|
|
|
width: 140rpx; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
font-weight: 400; |
|
|
|
line-height: 72rpx; |
|
|
|
line-height: 70rpx; |
|
|
|
text-align: left; |
|
|
|
text-align: left; |
|
|
|
font-style: normal; |
|
|
|
font-style: normal; |
|
|
|
text-transform: none; |
|
|
|
text-transform: none; |
|
|
@ -139,7 +144,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
.input { |
|
|
|
.input { |
|
|
|
width: 350rpx; |
|
|
|
width: 350rpx; |
|
|
|
height: 72rpx; |
|
|
|
height: 68rpx; |
|
|
|
background: #FFFFFF; |
|
|
|
background: #FFFFFF; |
|
|
|
border-radius: 4rpx; |
|
|
|
border-radius: 4rpx; |
|
|
|
border: 1rpx solid #EBEBEB; |
|
|
|
border: 1rpx solid #EBEBEB; |
|
|
@ -202,9 +207,9 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.btnGroup { |
|
|
|
.btnGroup { |
|
|
|
margin: 40upx 0; |
|
|
|
margin: 40rpx; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
.reset { |
|
|
|
.reset { |
|
|
|