|
@@ -46,7 +46,7 @@
|
|
|
<u-card :show-foot="false" border-radius="16" margin="20rpx 40rpx" padding="30">
|
|
|
<view class="pending-order-head" slot="head">
|
|
|
<view class="pending-order-head-left"><b>P</b>{{item.roadName}}</view>
|
|
|
- <view class="pending-order-head-right" @click="orderDetails"><u-icon class="arrow-down" name="arrow-down" size="32"></u-icon></view>
|
|
|
+ <view class="pending-order-head-right" @click="onRoadInfo(item)"><u-icon class="arrow-down" name="arrow-down" size="32"></u-icon></view>
|
|
|
</view>
|
|
|
<view class="pending-order-body" slot="body">
|
|
|
<!-- <view class="pending-order-body-nav">
|
|
@@ -137,11 +137,25 @@
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.handleGetIndexData();
|
|
|
+ // this.getLocation();
|
|
|
let locationLocaturl = window.location.search;
|
|
|
this.code = getUrlParams(locationLocaturl,"code");
|
|
|
if(this.code&&!this.$store.state.vuex_wxinfo.openId){this.handleGetWXInfo(this.code)};
|
|
|
},
|
|
|
methods: {
|
|
|
+ // getLocation(){
|
|
|
+ // console.log("请求定位")
|
|
|
+ // uni.getLocation({
|
|
|
+ // type:"gcj02",
|
|
|
+ // success : function (res) {
|
|
|
+ // console.log("定位返回信息:", res)
|
|
|
+ // alert(res.longitude + "," + res.latitude )
|
|
|
+ // },
|
|
|
+ // fail: function(res){
|
|
|
+ // console.log("请求错误:", res)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
handleSearch(){
|
|
|
console.log('this.keyword',this.keyword);
|
|
|
this.$u.route({
|
|
@@ -161,7 +175,6 @@
|
|
|
handleGetIndexData(){
|
|
|
this.$u.api.getIndexData()
|
|
|
.then(res=>{
|
|
|
- console.log('getIndexData',res);
|
|
|
if(res.data.vehicleList.length<1){
|
|
|
this.bindCarShow = true;
|
|
|
}
|
|
@@ -237,8 +250,20 @@
|
|
|
});
|
|
|
},
|
|
|
//
|
|
|
- orderDetails(){
|
|
|
- this.showOrderDetails = true;
|
|
|
+ onRoadInfo(item){
|
|
|
+ this.$u.api.roadInfoById({id:item.roadId})
|
|
|
+ .then(res=>{
|
|
|
+ this.content = `
|
|
|
+ <dl><dt>路段名称:</dt> <dd>` + res.data.roadName + `</dd></dl>`
|
|
|
+ + `<dl><dt>路段编码:</dt><dd>` + res.data.roadNo + `</dd></dl>`
|
|
|
+ + `<dl><dt>联系人:</dt><dd>` + res.data.manager + `</dd></dl>`
|
|
|
+ + `<dl><dt>联系电话:</dt><dd>` + res.data.telephone + `</dd></dl>`;
|
|
|
+
|
|
|
+ this.showOrderDetails = true;
|
|
|
+ }).catch(err=>{
|
|
|
+ alert(err.msg);
|
|
|
+ console.log('getIndexData err',err)
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
}
|