['...']
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
<view class="add-info">
|
<view class="add-info">
|
||||||
<view class="inputs">
|
<view class="inputs">
|
||||||
<label class="input-label">券类型</label>
|
<label class="input-label">券类型</label>
|
||||||
<picker :range="types" range-key="text" :value="typeIndex" data-type="typeIndex" @change="changePicker">
|
<picker :range="types" range-key="text" :value="typeIndex" @change="changePicker($event, 'typeIndex')">
|
||||||
<view class="input-text">{{types[typeIndex].text}}<uni-icons class="picker-icon" type="arrowdown" size="14" /></view>
|
<view class="input-text">{{types[typeIndex].text}}<uni-icons class="picker-icon" type="arrowdown" size="14" /></view>
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
</view>
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
</block>
|
</block>
|
||||||
<view class="inputs">
|
<view class="inputs">
|
||||||
<label class="input-label">时间类型</label>
|
<label class="input-label">时间类型</label>
|
||||||
<picker :range="times" range-key="text" :value="timeIndex" data-type="timeIndex" @change="changePicker">
|
<picker :range="times" range-key="text" :value="timeIndex" @change="changePicker($event, 'timeIndex')">
|
||||||
<view class="input-text">{{times[timeIndex].text}}<uni-icons class="picker-icon" type="arrowdown" size="14" /></view>
|
<view class="input-text">{{times[timeIndex].text}}<uni-icons class="picker-icon" type="arrowdown" size="14" /></view>
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
</view>
|
||||||
@@ -163,8 +163,8 @@
|
|||||||
this.useWay = e.detail.value
|
this.useWay = e.detail.value
|
||||||
},
|
},
|
||||||
// 选择
|
// 选择
|
||||||
changePicker(e){
|
changePicker(e, key){
|
||||||
this[e.target.dataset.type] = e.detail.value
|
this[key] = e.detail.value
|
||||||
},
|
},
|
||||||
// 日期
|
// 日期
|
||||||
confirmDatePicker(e){
|
confirmDatePicker(e){
|
||||||
@@ -207,11 +207,11 @@
|
|||||||
start_at : this.datePickerValue[0],
|
start_at : this.datePickerValue[0],
|
||||||
end_at : this.datePickerValue[1],
|
end_at : this.datePickerValue[1],
|
||||||
description : this.description,
|
description : this.description,
|
||||||
time_type : this.times[this.typeIndex].type,
|
time_type : this.times[this.timeIndex].type,
|
||||||
days : this.timeNumber,
|
days : this.timeNumber,
|
||||||
goodsable_ids : this.coupongoods
|
goodsable_ids : this.coupongoods
|
||||||
}
|
}
|
||||||
console.log(valuss)
|
console.log(valuss.time_type)
|
||||||
pushCoupons(valuss).then(res => {
|
pushCoupons(valuss).then(res => {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title : '提示',
|
title : '提示',
|
||||||
|
|||||||
Reference in New Issue
Block a user