Commit e3dce555 authored by Mac's avatar Mac

司导组件

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