Commit 0d56d562 authored by Mac's avatar Mac

司导页面

parent f1b8a809
...@@ -310,13 +310,12 @@ getGuideCarBrandList(){ ...@@ -310,13 +310,12 @@ getGuideCarBrandList(){
}, },
changeHandler(val){ changeHandler(val){
this.tic = val; this.tic = val;
this.msg.CarClass = this.classList[val].ID; this.msg.CarClass = this.classList[val].Id;
this.msg.pageIndex=1; this.msg.pageIndex=1;
this.g = []; this.g = [];
this.init() this.init()
}, },
change(val){ change(val){
console.log(val)
if(val==0){ if(val==0){
if(val==this.current&& this.screenshow==true){ if(val==this.current&& this.screenshow==true){
this.screenshow= false this.screenshow= false
...@@ -332,8 +331,6 @@ getGuideCarBrandList(){ ...@@ -332,8 +331,6 @@ getGuideCarBrandList(){
} }
this.screenList = this.contents2 this.screenList = this.contents2
} }
console.log(this.screenList)
this.current= val this.current= val
}, },
onItemSelect(val){ onItemSelect(val){
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<span style='font-size: 11px;color: #121212;margin-left: 5px;'>{{info.Tips}}</span> <span style='font-size: 11px;color: #121212;margin-left: 5px;'>{{info.Tips}}</span>
</view> </view>
<view class="btnstyle" :style="{'color':info.ButtonTextColor,'background':info.ButtonColor,'border-radius':info.ButtonFilletPX+'px'}" @click="goList"> <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> </view>
</view> </view>
...@@ -206,7 +206,10 @@ ...@@ -206,7 +206,10 @@
}, },
amapPlugin:null, amapPlugin:null,
key: 'c785085c46d1eb41b1ebe8d1ec7fd945' key: 'c785085c46d1eb41b1ebe8d1ec7fd945',
latitude:'',
longitude:'',
} }
}, },
created() { created() {
...@@ -247,7 +250,9 @@ ...@@ -247,7 +250,9 @@
}); });
this.amapPlugin.getRegeo({ this.amapPlugin.getRegeo({
success: (data) => { 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(); uni.hideLoading();
} }
}); });
...@@ -303,6 +308,16 @@ ...@@ -303,6 +308,16 @@
}, },
getPickcar(Name){//选择取消地址 getPickcar(Name){//选择取消地址
this.Pickcar = 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){//车辆类型 radioChange(item){//车辆类型
this.carName = item.Name; this.carName = item.Name;
...@@ -399,8 +414,11 @@ ...@@ -399,8 +414,11 @@
openmap(){//打开地图选择详情地址 openmap(){//打开地图选择详情地址
let that = this let that = this
uni.chooseLocation({ uni.chooseLocation({
latitude:this.latitude,
longitude:this.longitude,
success: function (res) { success: function (res) {
console.log(res) that.latitude = res.latitude;
that.longitude = res.longitude;
that.address = res.address that.address = res.address
let parseResult = AddressParse(that.address, 0) let parseResult = AddressParse(that.address, 0)
let nameList = [parseResult.province, parseResult.city, parseResult.area]; let nameList = [parseResult.province, parseResult.city, parseResult.area];
...@@ -434,8 +452,16 @@ ...@@ -434,8 +452,16 @@
}, },
goList(){ goList(){
let that = this let that = this
let msg = that.msg let msg = that.msg
if(msg.RegionIds==0){
uni.showToast({
title: "接送地址不能为空",
icon: "none"
});
return false
}
let tic= 0; let tic= 0;
that.classList.forEach((x,i)=>{ that.classList.forEach((x,i)=>{
if(x.Id == msg.CarClass){ 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