现有接口对接完成
parent
69386222a4
commit
7684c12c6f
|
@ -21,7 +21,7 @@
|
|||
<view class="item flex">
|
||||
<picker mode="date" :start="startDate" :end="endDate" @change="chooseTime(1,$event)">
|
||||
<view class="font24 opacity-08">开始日期</view>
|
||||
<input class="input font30" type="text" v-model="start_time" disabled="true" placeholder="请选择开始日期" placeholder-style="color:#b4b4b4"/>
|
||||
<input class="input font30" type="text" v-model="start_time_value" disabled="true" placeholder="请选择开始日期" placeholder-style="color:#b4b4b4"/>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="icon flex">
|
||||
|
@ -30,7 +30,7 @@
|
|||
<view class="item item-right flex">
|
||||
<picker mode="date" :start="startDate" :end="endDate" @change="chooseTime(2,$event)">
|
||||
<view class="font24 opacity-08">结束日期</view>
|
||||
<input class="input font30" type="text" v-model="end_time" disabled="true" placeholder="请选择结束日期" placeholder-style="color:#b4b4b4"/>
|
||||
<input class="input font30" type="text" v-model="end_time_value" disabled="true" placeholder="请选择结束日期" placeholder-style="color:#b4b4b4"/>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -93,7 +93,9 @@
|
|||
start_addr:'' ,// 始发地
|
||||
arrive_addr:'',// 目的地
|
||||
start_time:'',// 开始日期
|
||||
start_time_value:'',// 开始日期展示
|
||||
end_time:'',// 结束日期
|
||||
end_time_value:'',// 结束日期展示
|
||||
logistics_type:'',// 物流类型
|
||||
lineList:[], //线路列表
|
||||
tags:'~ 下拉加载更多内容 ~', //提示信息
|
||||
|
@ -191,10 +193,12 @@
|
|||
chooseTime(index,e) {
|
||||
switch (index){
|
||||
case 1:
|
||||
this.start_time = e.detail.value.split('-')[1]+'月'+e.detail.value.split('-')[2]+'日';
|
||||
this.start_time = e.detail.value;
|
||||
this.start_time_value = e.detail.value.split('-')[1]+'月'+e.detail.value.split('-')[2]+'日';
|
||||
break;
|
||||
case 2:
|
||||
this.end_time = e.detail.value.split('-')[1]+'月'+e.detail.value.split('-')[2]+'日';
|
||||
this.end_time = e.detail.value;
|
||||
this.end_time_value = e.detail.value.split('-')[1]+'月'+e.detail.value.split('-')[2]+'日';
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -253,7 +253,9 @@ function getDate(type) {
|
|||
start_addr: '', // 始发地
|
||||
arrive_addr: '', // 目的地
|
||||
start_time: '', // 开始日期
|
||||
start_time_value: '', // 开始日期展示
|
||||
end_time: '', // 结束日期
|
||||
end_time_value: '', // 结束日期展示
|
||||
logistics_type: '', // 物流类型
|
||||
lineList: [], //线路列表
|
||||
tags: '~ 下拉加载更多内容 ~', //提示信息
|
||||
|
@ -351,10 +353,12 @@ function getDate(type) {
|
|||
chooseTime: function chooseTime(index, e) {
|
||||
switch (index) {
|
||||
case 1:
|
||||
this.start_time = e.detail.value.split('-')[1] + '月' + e.detail.value.split('-')[2] + '日';
|
||||
this.start_time = e.detail.value;
|
||||
this.start_time_value = e.detail.value.split('-')[1] + '月' + e.detail.value.split('-')[2] + '日';
|
||||
break;
|
||||
case 2:
|
||||
this.end_time = e.detail.value.split('-')[1] + '月' + e.detail.value.split('-')[2] + '日';
|
||||
this.end_time = e.detail.value;
|
||||
this.end_time_value = e.detail.value.split('-')[1] + '月' + e.detail.value.split('-')[2] + '日';
|
||||
break;}
|
||||
|
||||
},
|
||||
|
|
|
@ -1 +1 @@
|
|||
<block wx:if="{{isLoading}}"><view class="pad-x100"><status-nav vue-id="2c6ce440-1" ifReturn="{{false}}" navBarTitle="线路信息及报价" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="line-search pad-zy30 border-box"><view class="list pad-zy10 border-box flex"><view class="item flex"><view class="font24 opacity-08">始发地</view><input class="input font30" type="text" placeholder="请输入始发地" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','start_addr','$event',[]]]]]]}}" value="{{start_addr}}" bindinput="__e"/></view><view class="icon flex"><image style="width:48rpx;height:48rpx;" src="/static/icon/icon-arrow-right.png" mode="widthFix"></image></view><view class="item item-right flex"><view class="font24 opacity-08">目的地</view><input class="input font30" type="text" placeholder="请输入目的地" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','arrive_addr','$event',[]]]]]]}}" value="{{arrive_addr}}" bindinput="__e"/></view></view><view class="list pad-zy10 border-box flex"><view class="item flex"><picker mode="date" start="{{startDate}}" end="{{endDate}}" data-event-opts="{{[['change',[['chooseTime',[1,'$event']]]]]}}" bindchange="__e"><view class="font24 opacity-08">开始日期</view><input class="input font30" type="text" disabled="true" placeholder="请选择开始日期" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','start_time','$event',[]]]]]]}}" value="{{start_time}}" bindinput="__e"/></picker></view><view class="icon flex"><image style="width:44rpx;height:44rpx;" src="/static/icon/icon-calendar.png" mode="widthFix"></image></view><view class="item item-right flex"><picker mode="date" start="{{startDate}}" end="{{endDate}}" data-event-opts="{{[['change',[['chooseTime',[2,'$event']]]]]}}" bindchange="__e"><view class="font24 opacity-08">结束日期</view><input class="input font30" type="text" disabled="true" placeholder="请选择结束日期" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','end_time','$event',[]]]]]]}}" value="{{end_time}}" bindinput="__e"/></picker></view></view><view class="list pad-zy10 border-box flex"><view class="item flex"><view class="font24 opacity-08">物流类型</view><picker style="width:100%;" range="{{typeArray}}" data-event-opts="{{[['change',[['bindPickerChange',['$event']]]]]}}" bindchange="__e"><input class="input font30" type="text" disabled="true" placeholder="请选择物流类型" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','logistics_type','$event',[]]]]]]}}" value="{{logistics_type}}" bindinput="__e"/></picker></view></view><view class="line-btn pad-sx25"><view data-event-opts="{{[['tap',[['searchEv',['$event']]]]]}}" class="submit-btn font26 radius35 flex" bindtap="__e">立即搜索</view></view></view><view class="line"><list-all vue-id="2c6ce440-2" lineList="{{lineList}}" bind:__l="__l"></list-all></view><view class="tags font20 opacity-05">{{tags}}</view><foot-tab vue-id="2c6ce440-3" current="{{1}}" bind:__l="__l"></foot-tab></view></block>
|
||||
<block wx:if="{{isLoading}}"><view class="pad-x100"><status-nav vue-id="2c6ce440-1" ifReturn="{{false}}" navBarTitle="线路信息及报价" marginBottom="{{0}}" bind:__l="__l"></status-nav><view class="line-search pad-zy30 border-box"><view class="list pad-zy10 border-box flex"><view class="item flex"><view class="font24 opacity-08">始发地</view><input class="input font30" type="text" placeholder="请输入始发地" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','start_addr','$event',[]]]]]]}}" value="{{start_addr}}" bindinput="__e"/></view><view class="icon flex"><image style="width:48rpx;height:48rpx;" src="/static/icon/icon-arrow-right.png" mode="widthFix"></image></view><view class="item item-right flex"><view class="font24 opacity-08">目的地</view><input class="input font30" type="text" placeholder="请输入目的地" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','arrive_addr','$event',[]]]]]]}}" value="{{arrive_addr}}" bindinput="__e"/></view></view><view class="list pad-zy10 border-box flex"><view class="item flex"><picker mode="date" start="{{startDate}}" end="{{endDate}}" data-event-opts="{{[['change',[['chooseTime',[1,'$event']]]]]}}" bindchange="__e"><view class="font24 opacity-08">开始日期</view><input class="input font30" type="text" disabled="true" placeholder="请选择开始日期" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','start_time_value','$event',[]]]]]]}}" value="{{start_time_value}}" bindinput="__e"/></picker></view><view class="icon flex"><image style="width:44rpx;height:44rpx;" src="/static/icon/icon-calendar.png" mode="widthFix"></image></view><view class="item item-right flex"><picker mode="date" start="{{startDate}}" end="{{endDate}}" data-event-opts="{{[['change',[['chooseTime',[2,'$event']]]]]}}" bindchange="__e"><view class="font24 opacity-08">结束日期</view><input class="input font30" type="text" disabled="true" placeholder="请选择结束日期" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','end_time_value','$event',[]]]]]]}}" value="{{end_time_value}}" bindinput="__e"/></picker></view></view><view class="list pad-zy10 border-box flex"><view class="item flex"><view class="font24 opacity-08">物流类型</view><picker style="width:100%;" range="{{typeArray}}" data-event-opts="{{[['change',[['bindPickerChange',['$event']]]]]}}" bindchange="__e"><input class="input font30" type="text" disabled="true" placeholder="请选择物流类型" placeholder-style="color:#b4b4b4" data-event-opts="{{[['input',[['__set_model',['','logistics_type','$event',[]]]]]]}}" value="{{logistics_type}}" bindinput="__e"/></picker></view></view><view class="line-btn pad-sx25"><view data-event-opts="{{[['tap',[['searchEv',['$event']]]]]}}" class="submit-btn font26 radius35 flex" bindtap="__e">立即搜索</view></view></view><view class="line"><list-all vue-id="2c6ce440-2" lineList="{{lineList}}" bind:__l="__l"></list-all></view><view class="tags font20 opacity-05">{{tags}}</view><foot-tab vue-id="2c6ce440-3" current="{{1}}" bind:__l="__l"></foot-tab></view></block>
|
|
@ -203,6 +203,10 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue