Commit 0d56d562 authored by Mac's avatar Mac

司导页面

parent f1b8a809
......@@ -310,13 +310,12 @@ getGuideCarBrandList(){
},
changeHandler(val){
this.tic = val;
this.msg.CarClass = this.classList[val].ID;
this.msg.CarClass = this.classList[val].Id;
this.msg.pageIndex=1;
this.g = [];
this.init()
},
change(val){
console.log(val)
if(val==0){
if(val==this.current&& this.screenshow==true){
this.screenshow= false
......@@ -332,8 +331,6 @@ getGuideCarBrandList(){
}
this.screenList = this.contents2
}
console.log(this.screenList)
this.current= val
},
onItemSelect(val){
......
......@@ -86,7 +86,7 @@
<span style='font-size: 11px;color: #121212;margin-left: 5px;'>{{info.Tips}}</span>
</view>
<view class="btnstyle" :style="{'color':info.ButtonTextColor,'background':info.ButtonColor,'border-radius':info.ButtonFilletPX+'px'}" @click="goList">
{{info.ButtonText}}
{{info.ButtonText?info.ButtonText:''}}
</view>
</view>
</view>
......@@ -206,7 +206,10 @@
},
amapPlugin:null,
key: 'c785085c46d1eb41b1ebe8d1ec7fd945'
key: 'c785085c46d1eb41b1ebe8d1ec7fd945',
latitude:'',
longitude:'',
}
},
created() {
......@@ -247,7 +250,9 @@
});
this.amapPlugin.getRegeo({
success: (data) => {
this.Pickcar = data[0].regeocodeData.addressComponent.city
this.Pickcar = data[0].regeocodeData.addressComponent.city;
this.latitude = data[0].latitude;
this.longitude = data[0].longitude;
uni.hideLoading();
}
});
......@@ -303,6 +308,16 @@
},
getPickcar(Name){//选择取消地址
this.Pickcar = Name
this.request2(
{
url: "/api/AppletGuideCar/GetLngAndLat",
data: {Address:Name},
},
(res) => {
this.latitude = res.data.lng;
this.longitude = res.data.lat;
}
);
},
radioChange(item){//车辆类型
this.carName = item.Name;
......@@ -399,8 +414,11 @@
openmap(){//打开地图选择详情地址
let that = this
uni.chooseLocation({
latitude:this.latitude,
longitude:this.longitude,
success: function (res) {
console.log(res)
that.latitude = res.latitude;
that.longitude = res.longitude;
that.address = res.address
let parseResult = AddressParse(that.address, 0)
let nameList = [parseResult.province, parseResult.city, parseResult.area];
......@@ -434,8 +452,16 @@
},
goList(){
let that = this
let msg = that.msg
if(msg.RegionIds==0){
uni.showToast({
title: "接送地址不能为空",
icon: "none"
});
return false
}
let tic= 0;
that.classList.forEach((x,i)=>{
if(x.Id == msg.CarClass){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment