|
|
@@ -1,6 +1,22 @@
|
|
|
<template>
|
|
|
<view class="box">
|
|
|
+<!-- 自定义导航 -->
|
|
|
+ <view class="zdyNavBox">
|
|
|
+ <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
|
+ <view class="zdyNav">
|
|
|
+ <view class="zdyNavLeft">
|
|
|
+ <div @click="goback" class="uni-page-head-btn"><i class="uni-btn-icon"
|
|
|
+ style="color: rgb(0, 0, 0); font-size: 27px;"></i></div>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="zdyNavTitle">选择品牌</view>
|
|
|
+
|
|
|
+ <view style="width: 120rpx;"></view>
|
|
|
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
|
+ <view style="height: 44px;"></view>
|
|
|
|
|
|
<scroll-view class="scroll-view" :scroll-into-view="toView" scroll-y="true">
|
|
|
<view class="brand-select">
|
|
|
@@ -33,6 +49,7 @@
|
|
|
|
|
|
|
|
|
<script>
|
|
|
+ import { getHashQuery } from '../../utils/index.js'
|
|
|
export default {
|
|
|
components: {
|
|
|
|
|
|
@@ -41,16 +58,27 @@
|
|
|
return {
|
|
|
brandList: [],
|
|
|
toView: '',
|
|
|
-
|
|
|
-
|
|
|
+ iStatusBarHeight: '',
|
|
|
+ token:'',
|
|
|
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
|
this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
|
|
|
this.getItemData();
|
|
|
+ var token=getHashQuery('token')
|
|
|
+ //var encodedToken = encodeURIComponent(token);
|
|
|
+ this.token=token
|
|
|
+ localStorage.setItem('token', token)
|
|
|
+ /* uni.setStorageSync('token',token )
|
|
|
+ uni.setStorageSync('encodedToken',encodedToken ) */
|
|
|
},
|
|
|
methods: {
|
|
|
+ goback() {
|
|
|
+ console.log('返回');
|
|
|
+ //uni.navigateBack({})
|
|
|
+ window.history.back()
|
|
|
+ },
|
|
|
//获取品牌
|
|
|
getItemData() {
|
|
|
let that = this
|
|
|
@@ -100,7 +128,7 @@
|
|
|
console.log(item)
|
|
|
|
|
|
uni.navigateTo({
|
|
|
- url:'SelectCarTwo?epc_id=' + item.epc_id + '&brand_name=' + item.brand
|
|
|
+ url:'SelectCarTwo?epc_id=' + item.epc_id + '&brand_name=' + item.brand+'&token='+this.token
|
|
|
})
|
|
|
|
|
|
},
|
|
|
@@ -427,4 +455,45 @@
|
|
|
.brand-select-titleselect {
|
|
|
color: #FF4F00 !important;
|
|
|
}
|
|
|
+
|
|
|
+ .zdyNavBox {
|
|
|
+ width: 100vw;
|
|
|
+ background: #FFFFFF;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ z-index: 9999999;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .zdyNav {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding: 14rpx 6rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .zdyNavLeft {
|
|
|
+ width: 120rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .zdyNavTitle {
|
|
|
+ background: #FFFFFF;
|
|
|
+ text-align: center;
|
|
|
+ /* font-size: 32rpx; */
|
|
|
+ /* font-weight: bold; */
|
|
|
+ font-size: 18px!important;
|
|
|
+ color: #333333!important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .zdyNavRight {
|
|
|
+ background: #FFFFFF;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #3F90F7;
|
|
|
+ width: 120rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</style>
|