diff --git a/api/goods/index.js b/api/goods/index.js
index 3d8f627..e7a599e 100644
--- a/api/goods/index.js
+++ b/api/goods/index.js
@@ -85,4 +85,8 @@ export const skuInfo = (goodsId, goodsSkuId, param) => {
// 生成商品海报
export const poster = param => {
return request.get(api.poster, param)
-}
+}
+// 店长设置秒杀价
+export const editGoodsSeckillPrice = param => {
+ return request.post('StoreKeeper/editGoodsSeckillPrice', param)
+}
\ No newline at end of file
diff --git a/pages/goods/components/setPrice.vue b/pages/goods/components/setPrice.vue
index 712105f..dbc7382 100644
--- a/pages/goods/components/setPrice.vue
+++ b/pages/goods/components/setPrice.vue
@@ -7,8 +7,8 @@
-
+ 秒杀价:
秒杀区间:
@@ -24,10 +24,10 @@
秒杀限购:
-
+
-
+
每人限购:
次
@@ -44,7 +44,7 @@
-
@@ -57,9 +57,14 @@
startTime: '',
endTime: '',
secondPrice: '',
- secondQuota: '1',
+ secondQuota: 1,
quotaNum: '',
- fontColor:'#262626'
+ fontColor:'#262626',
+ pickerOptions:{
+ disabledDate(time){
+ return true
+ }
+ }
}
},
methods: {
@@ -83,15 +88,15 @@
if (!this.endTime) {
return this.$toast('请选择结束时间')
}
- if (!this.quotaNum) {
+ if (!this.quotaNum&&this.secondQuota) {
return this.$toast('请输入限购次数')
}
this.$emit('getprice', {
startTime: this.startTime,
endTime: this.endTime,
secondPrice: this.secondPrice,
- quotaNum: this.quotaNum,
- secondQuota: this.secondQuota
+ quotaNum: this.secondQuota?this.quotaNum:'',
+ secondQuota: this.secondQuota?1:2
})
}
}
@@ -101,7 +106,7 @@
diff --git a/pages/news3/components/category.vue b/pages/news3/components/category.vue
index 12f5b7e..5ca5b5b 100644
--- a/pages/news3/components/category.vue
+++ b/pages/news3/components/category.vue
@@ -85,9 +85,9 @@
padding: 32upx;
.btnGroup {
- margin: 40upx 0;
+ margin: 40rpx;
display: flex;
- justify-content: center;
+ justify-content: space-between;
align-items: center;
.reset {
diff --git a/pages/news3/components/setRange.vue b/pages/news3/components/setRange.vue
index 2354481..d573a77 100644
--- a/pages/news3/components/setRange.vue
+++ b/pages/news3/components/setRange.vue
@@ -6,9 +6,9 @@
请设置价格区间
-
- -
-
+
+ -
+
@@ -94,7 +94,7 @@
display: flex;
align-items: center;
justify-content: center;
- padding-top: 56upx;
+ padding-top: 40upx;
margin-top: 34upx;
border-top: 1px solid #EAEAEA;
@@ -104,6 +104,7 @@
border-radius: 22px 22px 22px 22px;
opacity: 1;
text-align: center;
+ background-color: #F3F3F3 !important
}
::v-deep .u-input__input {
@@ -112,9 +113,9 @@
}
.btnGroup {
- margin: 60upx 0;
+ margin: 40rpx;
display: flex;
- justify-content: center;
+ justify-content: space-between;
align-items: center;
.reset {
diff --git a/pages/news3/vipPrice.vue b/pages/news3/vipPrice.vue
index b5b9d4f..9df89f2 100644
--- a/pages/news3/vipPrice.vue
+++ b/pages/news3/vipPrice.vue
@@ -38,7 +38,7 @@
请设置
-
@@ -62,7 +62,7 @@
- 最低利润率:最低利润率:%
diff --git a/uni_modules/vk-uview-ui/components/u-calendar/u-calendar.vue b/uni_modules/vk-uview-ui/components/u-calendar/u-calendar.vue
index fe9f2dc..7244dbd 100644
--- a/uni_modules/vk-uview-ui/components/u-calendar/u-calendar.vue
+++ b/uni_modules/vk-uview-ui/components/u-calendar/u-calendar.vue
@@ -32,7 +32,6 @@