作者 刘朕

更新

... ... @@ -518,27 +518,29 @@ Page({
let token = wx.getStorageSync('token')
let id = that.data.id
let homeChe = that.data.homeChe
if (token) {
if (id == '') {
// if (token) {
if (!id) {
that.setData({
msg: '您尚未绑定4S店'
})
that.popTest()
return;
}
if (homeChe.length == 0) {
if (homeChe == null) {
that.setData({
msg: '请先绑定爱车'
})
that.popTest()
return;
}
if (homeChe.length != 0 && id != '') {
if (homeChe != null && id != '') {
wx.navigateTo({
url: '/pages/upkeepImg/upkeepImg?id=' + id
})
}
} else {
that.goLogin()
}
// } else {
// that.goLogin()
// }
},
toMyGarage() { // 我的车库
let token = wx.getStorageSync("token")
... ... @@ -556,20 +558,20 @@ Page({
let token = wx.getStorageSync('token')
let id = that.data.id
let homeChe = that.data.homeChe
if (token) {
if (id == '') {
// if (token) {
if (!id) {
that.setData({
msg: '您尚未绑定4S店'
})
that.popTest()
return;
}
if (homeChe == null) {
that.setData({
msg: '请先绑定爱车'
})
that.popTest()
return;
}
if (homeChe != null && id != '') {
wx.navigateTo({
... ... @@ -577,29 +579,29 @@ Page({
})
}
} else {
that.goLogin()
}
// } else {
// that.goLogin()
// }
},
goVopenPolicyB() {
let that = this
let token = wx.getStorageSync('token')
let id = that.data.id
let homeChe = that.data.homeChe
if (token) {
if (id == '') {
// if (token) {
if (!id) {
that.setData({
msg: '您尚未绑定4S店'
})
that.popTest()
return;
}
if (homeChe == null) {
that.setData({
msg: '请先绑定爱车'
})
that.popTest()
return;
}
if (homeChe != null && id != '') {
wx.navigateTo({
... ... @@ -607,36 +609,38 @@ Page({
})
}
} else {
that.goLogin()
}
// } else {
// that.goLogin()
// }
},
goVopenPolicyC() {
let that = this
let token = wx.getStorageSync('token')
let id = that.data.id
let homeChe = that.data.homeChe
if (token) {
if (id == '') {
// if (token) {
if (!id) {
that.setData({
msg: '您尚未绑定4S店'
})
that.popTest()
return;
}
if (homeChe == null) {
that.setData({
msg: '请先绑定爱车'
})
that.popTest()
return;
}
if (homeChe != null && id != '') {
wx.navigateTo({
url: '/pages/VopenPolicyC/VopenPolicyC?che_id=' + homeChe.id
})
}
} else {
that.goLogin()
}
// } else {
// that.goLogin()
// }
},
gobindChe() {
let that = this
... ...
... ... @@ -27,7 +27,7 @@
</view>
</view>
<view class="car_center">
<!-- <view class="car_item">
<view class="car_item">
<view class="car_i_a">
<image src="{{imagesUrl}}assets/static/img/v-k.png" />
<view class="car_i_text">车辆保险</view>
... ... @@ -35,8 +35,8 @@
<view class="car_i_b" wx:if="{{homeGouDay.xian_str!='???天到期'}}">
{{homeGouDay.xian_str}}
</view>
</view> -->
<!-- <view class="car_item" bindtap="goUpkeepimg">
</view>
<view class="car_item" bindtap="goUpkeepimg">
<view class="car_i_a">
<image src="{{imagesUrl}}assets/static/img/v-j.png" />
<view class="car_i_text">车辆保养</view>
... ... @@ -44,8 +44,8 @@
<view class="car_i_b" wx:if="{{homeGouDay.yang_str!='???天到期'}}">
{{homeGouDay.yang_str}}
</view>
</view> -->
<!-- <view class="car_item">
</view>
<view class="car_item">
<view class="car_i_a">
<image src="{{imagesUrl}}assets/static/img/v-l.png" />
<view class="car_i_text">车辆年检</view>
... ... @@ -53,7 +53,7 @@
<view class="car_i_b" wx:if="{{homeGouDay.jian_str!='???天到期'}}">
{{homeGouDay.jian_str}}
</view>
</view> -->
</view>
</view>
<view class="car_d_gong">
<image src="{{imagesUrl}}assets/static/img/v-z.png" />
... ... @@ -84,7 +84,7 @@
<image src="{{imagesUrl}}assets/static/img/v-i.png" />
<view class="nav_text">违章查询</view>
</view> -->
<!-- <view class="nav_item" bindtap="goUpkeepimg">
<view class="nav_item" bindtap="goUpkeepimg">
<image src="{{imagesUrl}}assets/static/img/v-h.png" />
<view class="nav_text">保养预约</view>
</view>
... ... @@ -99,7 +99,7 @@
<view class="nav_item" bindtap="goVopenPolicyB">
<image src="{{imagesUrl}}assets/static/img/v-e.png" />
<view class="nav_text">爱车评估</view>
</view> -->
</view>
</view>
<view class="nav_search" bindtap="goSearch">
<image src="{{imagesUrl}}assets/static/img/v-y.png" />
... ...
... ... @@ -28,6 +28,20 @@
"query": "id=68",
"launchMode": "default",
"scene": null
},
{
"name": "保养",
"pathName": "pages/upkeepImg/upkeepImg",
"query": "id=1",
"launchMode": "default",
"scene": null
},
{
"name": "保险",
"pathName": "pages/VopenPolicy/VopenPolicy",
"query": "che_id=455",
"launchMode": "default",
"scene": null
}
]
}
... ...