添加单位
This commit is contained in:
@@ -87,8 +87,13 @@ Page({
|
||||
//获取列表筛选条件-时间
|
||||
getAppCustomersFilter(){
|
||||
_.apiQuery.getAppCustomersFilter().then(res => {
|
||||
let timeArray = []
|
||||
res.data.buy_time.forEach(item => {
|
||||
timeArray.push(item + '天')
|
||||
})
|
||||
this.setData({
|
||||
timeArray:res.data.buy_time,
|
||||
timeArray:timeArray,
|
||||
timeList:res.data.buy_time,
|
||||
timeIndex:-1,
|
||||
})
|
||||
});
|
||||
@@ -156,7 +161,7 @@ Page({
|
||||
//预计购车时间
|
||||
changeTime(e) {
|
||||
this.setData({
|
||||
buy_time:this.data.timeArray[e.detail.value],
|
||||
buy_time:this.data.timeList[e.detail.value],
|
||||
timeIndex:e.detail.value,
|
||||
})
|
||||
},
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<view class="pt30 pb30 text-right font-28 color-666">
|
||||
<picker bindchange="changeTime" value="{{timeIndex}}" range="{{timeArray}}">
|
||||
<text class="color-ccc" wx:if="{{timeIndex == -1}}">请选择</text>
|
||||
<text wx:else>{{timeArray[timeIndex]}}天</text>
|
||||
<text wx:else>{{timeArray[timeIndex]}}</text>
|
||||
<i class="iconfont ml5 icon-gengduo"></i>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
@@ -608,8 +608,13 @@ Page({
|
||||
getAppCustomersFilter(){
|
||||
_.apiQuery.getAppCustomersFilter().then(res => {
|
||||
|
||||
let timeArray = []
|
||||
res.data.buy_time.forEach(item => {
|
||||
timeArray.push(item + '天')
|
||||
})
|
||||
this.setData({
|
||||
timeArray:res.data.buy_time,
|
||||
timeArray:timeArray,
|
||||
timeList:res.data.buy_time,
|
||||
})
|
||||
|
||||
if(this.data.baseinfo.buy_time.value != 0){
|
||||
@@ -625,6 +630,7 @@ Page({
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
//输入
|
||||
inputTx(e) {
|
||||
this.setData({
|
||||
@@ -700,7 +706,7 @@ Page({
|
||||
changeTime(e) {
|
||||
if(this.data.timeIndex != e.detail.value){
|
||||
this.setData({
|
||||
buy_time:this.data.timeArray[e.detail.value],
|
||||
buy_time:this.data.timeList[e.detail.value],
|
||||
timeIndex:e.detail.value,
|
||||
})
|
||||
this.putAppCustomerData()
|
||||
|
||||
Reference in New Issue
Block a user