Commit 3d3b3ab9 authored by ZJG's avatar ZJG

一些细节处理

parent d6388964
......@@ -501,25 +501,30 @@
</u-popup>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</view>
</template>
<script>
import auth from "@/components/auth/index.vue";
import Calendar from './components/Calendar.vue'
export default {
components: {
Calendar,
auth
},
data(options) {
return {
showAuth:false,
screenshow: false,
startDate: '',
pageTitle: "去订车",
showcalendar: false,
mainColor: '',
u:{},
msg: {
pageIndex: 1,
pageSize: 20,
......@@ -588,11 +593,21 @@
},
methods: {
yuding(x){
uni.navigateTo({
url: '/pages/guidecar/specialCarReserve?Id='+x.Id +'&Date='+this.msg.Q_Date
})
yuding(x){
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
} else{
uni.navigateTo({
url: '/pages/guidecar/specialCarReserve?Id='+x.Id +'&Date='+this.msg.Q_Date
})
}
},
popupchange(e) { //tab事件
this.popupcurrent = e;
......@@ -832,6 +847,18 @@
}
},
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.init();
if(this.u.IsDistrbutorUser && this.u.IsDistrbutorUser ==1){
this.isdistributor = true
}
},
//关闭登录窗口
gbAuth(){
this.showAuth = false;
},
}
}
......
......@@ -26,7 +26,7 @@
</view>
<view class="g_Second" style="position: relative;background: #fff;width: 100%;">
<view style=" border-bottom: 1px solid rgba(0, 0, 0, 0.03);">
<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" bar-height='4' active-color="#FF8585"></u-tabs>
<u-tabs :list="list" :is-scroll="false" :show-bar="false" duration="0" font-size="28" :activeFontSize="34" :bold="true" :current="current" @change="change" bar-height='4' active-color="#FF8585"></u-tabs>
</view>
<view v-if="screenshow==true" class="tanchu">
<scroll-view :scroll-y="true" :enable-back-to-top="true" style="max-height: 321px;">
......
......@@ -69,6 +69,10 @@
this.src_latitude = this.upcar[0].Lonlat.split(',')[1];
this.src_longitude = this.upcar[0].Lonlat.split(',')[0];
this.upcar.map(x=>{
if(this.details.SelectID == x.Id){
this.src_latitude = x.Lonlat.split(',')[1];
this.src_longitude = x.Lonlat.split(',')[0];
}
let obj = {
id: x.Id,
iconPath: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/dcdtbiaoji.png',
......@@ -84,6 +88,10 @@
this.src_latitude = this.downcar[0].Lonlat.split(',')[1];
this.src_longitude = this.downcar[0].Lonlat.split(',')[0];
this.downcar.map(x=>{
if(this.details.SelectID == x.Id){
this.src_latitude = x.Lonlat.split(',')[1];
this.src_longitude = x.Lonlat.split(',')[0];
}
let obj = {
id: x.Id,
iconPath: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/dcdtbiaoji.png',
......
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