From 1a72f92a1e53b1e4bb4ebf9c861cfa174c29e70a Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Thu, 30 Sep 2021 13:14:15 +0800 Subject: [PATCH] ['...'] --- pages/coupons/add.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/coupons/add.vue b/pages/coupons/add.vue index cff7fa0..3f69338 100644 --- a/pages/coupons/add.vue +++ b/pages/coupons/add.vue @@ -24,7 +24,7 @@ - + {{types[typeIndex].text}} @@ -71,7 +71,7 @@ - + {{times[timeIndex].text}} @@ -163,8 +163,8 @@ this.useWay = e.detail.value }, // 选择 - changePicker(e){ - this[e.target.dataset.type] = e.detail.value + changePicker(e, key){ + this[key] = e.detail.value }, // 日期 confirmDatePicker(e){ @@ -207,11 +207,11 @@ start_at : this.datePickerValue[0], end_at : this.datePickerValue[1], description : this.description, - time_type : this.times[this.typeIndex].type, + time_type : this.times[this.timeIndex].type, days : this.timeNumber, goodsable_ids : this.coupongoods } - console.log(valuss) + console.log(valuss.time_type) pushCoupons(valuss).then(res => { uni.showModal({ title : '提示',