Commit e3dce555 authored by Mac's avatar Mac

司导组件

parent 383a1003
This diff is collapsed.
......@@ -133,8 +133,7 @@
<view class="row" style="justify-content: flex-start;">
<u-rate
:current="g.guide_score"
active-color="#FF8C10"
inactive-color="#DDDDDD"
active-color="#FEC471" inactive-color="#DDDDDD"
active-icon="star"
inactive-icon="star-o"
size="20"
......
......@@ -324,16 +324,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;
}
);
// 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;
......
......@@ -139,6 +139,7 @@
let pages = getCurrentPages(); // 当前页面
let beforePage
beforePage = pages[pages.length - 2]; // 前一个页面
// console.log( beforePage.$vm)
setTimeout(()=>{
uni.navigateBack({
delta:1,
......
......@@ -28,7 +28,7 @@
:bold="false"
@change="changeHandler"
></u-tabs>
<button @click="gosid">司导</button>
<template v-for="(item, i) in myPageData.home_pages.navs">
<view :key="i" v-if="active == i">
<template v-for="(d, di) in item.template.data">
......@@ -54,6 +54,7 @@
<quicknav v-if="d.id == 'quick-nav' && d.data.navSwitch == 1" :navs="d.data" :key="di"></quicknav>
<pingtuan v-if="d.id == 'pintuan'" :goods="d.data" :key="di"></pingtuan>
<shopinfo v-if="d.id == 'shop-info' " :ad="d.data" :key="di" ref="son"></shopinfo>
<guide v-if="d.id == 'drive-guide'" :info="d.data" ref='city'></guide>
</template>
</view>
</template>
......@@ -110,6 +111,7 @@ import coupon from "@/components/coupons/coupons";
import pingtuan from "@/components/pingtuan/index";
import shopinfo from "@/components/shopinfo/shopinfo";
import auth from "@/components/auth/index.vue";
import guide from "@/components/guidecar/index.vue";
export default {
data() {
......@@ -163,6 +165,7 @@ export default {
pingtuan,
shopinfo,
auth,
guide
},
onLoad(options) {
console.log(options, "option");
......@@ -420,11 +423,6 @@ export default {
},
methods: {
gosid(){
uni.navigateTo({
url:'/pages/guidecar/index'
})
},
//调用获取code
getCode(obj) {
var that = this;
......@@ -816,7 +814,10 @@ export default {
'&StartTime='+this.guidecar.StartTime+
'&EndTime='+this.guidecar.EndTime
})
}
},
getPickcar(Name){//选择取消地址
this.$refs.city[0].getPickcar(Name)
},
},
};
</script>
......
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