|
|
|
|
|
|
|
|
<view class="car-item" v-for="(item,index) in state.list"> |
|
|
<view class="car-item" v-for="(item,index) in state.list"> |
|
|
<image :src="`${$imgUrl}che.png`" class="car-pic"></image> |
|
|
<image :src="`${$imgUrl}che.png`" class="car-pic"></image> |
|
|
<view class="car-info"> |
|
|
<view class="car-info"> |
|
|
<view class="car-no"><text class="no">{{item.vehiclePlate}}</text><text class="color">{{item.color}}</text></view> |
|
|
|
|
|
|
|
|
<view class="car-no"><text class="no">{{item.vehiclePlate}}</text><text |
|
|
|
|
|
class="color">{{item.color}}</text></view> |
|
|
<view class="card-no">卡号:{{item.cardId}}</view> |
|
|
<view class="card-no">卡号:{{item.cardId}}</view> |
|
|
<view class="card-no">签号:{{item.obuId}}</view> |
|
|
<view class="card-no">签号:{{item.obuId}}</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
stringToJson |
|
|
stringToJson |
|
|
} from "@/utils/network/encryption.js"; |
|
|
} from "@/utils/network/encryption.js"; |
|
|
import filter from '@/components/filter/filter.vue'; |
|
|
import filter from '@/components/filter/filter.vue'; |
|
|
import { vehiclePlateColor, vehiclePlateColorPai} from "@/datas/vehiclePlateColor.js"; |
|
|
|
|
|
|
|
|
import { vehiclePlateColor, vehiclePlateColorPai } from "@/datas/vehiclePlateColor.js"; |
|
|
const height = ref(null); |
|
|
const height = ref(null); |
|
|
const top = ref(null); |
|
|
const top = ref(null); |
|
|
const margin = ref(null); |
|
|
const margin = ref(null); |
|
|
|
|
|
|
|
|
opId: "", |
|
|
opId: "", |
|
|
}, |
|
|
}, |
|
|
accountInfoVo: { |
|
|
accountInfoVo: { |
|
|
nickName:'', |
|
|
|
|
|
|
|
|
nickName: '', |
|
|
mobile: '' |
|
|
mobile: '' |
|
|
}, |
|
|
}, |
|
|
monthFlowingVo: { |
|
|
monthFlowingVo: { |
|
|
|
|
|
|
|
|
vehicleSum: 0, |
|
|
vehicleSum: 0, |
|
|
orderStatus0: 0 |
|
|
orderStatus0: 0 |
|
|
},//车数量 ,代办数量 |
|
|
},//车数量 ,代办数量 |
|
|
isTrajectory:false, //是否有轨迹 |
|
|
|
|
|
|
|
|
isTrajectory: false, //是否有轨迹 |
|
|
}); |
|
|
}); |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
const res = uni.getMenuButtonBoundingClientRect(); |
|
|
const res = uni.getMenuButtonBoundingClientRect(); |
|
|
|
|
|
|
|
|
state.data.opId = getItem(StorageKeys.OpenId); |
|
|
state.data.opId = getItem(StorageKeys.OpenId); |
|
|
mobile.value = getItem("mobile"); |
|
|
mobile.value = getItem("mobile"); |
|
|
}); |
|
|
}); |
|
|
const goTrajectory=()=>{ |
|
|
|
|
|
if(state.isTrajectory){ |
|
|
|
|
|
|
|
|
const goTrajectory = () => { |
|
|
|
|
|
if (state.isTrajectory) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url:"/subpackage/personal-center/trajectory/trajectory" |
|
|
|
|
|
|
|
|
url: "/subpackage/personal-center/trajectory/trajectory" |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
msg("暂无轨迹") |
|
|
msg("暂无轨迹") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log('用户信息', res) |
|
|
console.log('用户信息', res) |
|
|
let data = stringToJson(res.bizContent) |
|
|
let data = stringToJson(res.bizContent) |
|
|
state.accountInfoVo = data.accountInfoVo; |
|
|
state.accountInfoVo = data.accountInfoVo; |
|
|
if(data.monthFlowingVo && JSON.stringify(data.monthFlowingVo) != "{}"){ |
|
|
|
|
|
|
|
|
if (data.monthFlowingVo && JSON.stringify(data.monthFlowingVo) != "{}") { |
|
|
state.monthFlowingVo = data.monthFlowingVo; |
|
|
state.monthFlowingVo = data.monthFlowingVo; |
|
|
state.isTrajectory=true; |
|
|
|
|
|
|
|
|
state.isTrajectory = true; |
|
|
} |
|
|
} |
|
|
state.userVehicleInfoSumQueryVo.vehicleSum = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).vehicleSum; |
|
|
state.userVehicleInfoSumQueryVo.vehicleSum = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).vehicleSum; |
|
|
state.userVehicleInfoSumQueryVo.orderStatus0 = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).orderStatus0; |
|
|
state.userVehicleInfoSumQueryVo.orderStatus0 = JSON.parse(JSON.stringify(data.userVehicleInfoSumQueryVo)).orderStatus0; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
const goOrder=(index)=>{ |
|
|
|
|
|
|
|
|
const goOrder = (index) => { |
|
|
uni.reLaunch({ |
|
|
uni.reLaunch({ |
|
|
url:`../order/order?index=${index}` |
|
|
|
|
|
|
|
|
url: `../order/order?index=${index}` |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
.menu .sub-tit { |
|
|
.menu .sub-tit { |
|
|
padding-right: 20rpx; |
|
|
padding-right: 20rpx; |
|
|
} |
|
|
} |
|
|
.color{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.color { |
|
|
padding: 4rpx 8rpx; |
|
|
padding: 4rpx 8rpx; |
|
|
border-radius: 10rpx; |
|
|
border-radius: 10rpx; |
|
|
color: white; |
|
|
color: white; |