|
@@ -2,7 +2,7 @@
|
|
|
<view class="content">
|
|
|
<view class="header-box">
|
|
|
<UniStatusBar></UniStatusBar>
|
|
|
- <view class="title">
|
|
|
+ <view class="title flex align_center" :style="{height:(navHeight+'px')}">
|
|
|
<u-image src="/static/logo-h.png" width="349" height='40'></u-image>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -39,7 +39,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <text v-if="userInfo.identifyType=='VISITOR'" class="user-rz">
|
|
|
+ <text v-if="userInfo&&userInfo.identifyType=='VISITOR'" class="user-rz">
|
|
|
认证成为门店
|
|
|
</text>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
@@ -59,7 +59,7 @@
|
|
|
<view class="list-box">
|
|
|
<!-- 扫描记录 -->
|
|
|
<u-cell-group :border="false">
|
|
|
- <u-cell-item title="VIN查询历史" @click="toAllRecord" :title-style="{fontSize:'1em'}" :value="userInfo.identifyType=='VISITOR'?'':'全部'">
|
|
|
+ <u-cell-item title="VIN查询历史" @click="toAllRecord" :title-style="{fontSize:'1em'}" :value="userInfo&&userInfo.identifyType=='VISITOR'?'':'全部'">
|
|
|
<u-icon slot="icon" size="38" color="#066cff" style="margin-right: 0.3em;" name="order"></u-icon>
|
|
|
</u-cell-item>
|
|
|
</u-cell-group>
|
|
@@ -69,7 +69,7 @@
|
|
|
:key="item.id"
|
|
|
:title="item.vinCode"
|
|
|
:title-style="{fontSize:'1em'}"
|
|
|
- :label="userInfo.identifyType=='VISITOR' ? '' : (item.brandName +' '+item.modelName)">
|
|
|
+ :label="userInfo&&userInfo.identifyType=='VISITOR' ? '' : (item.brandName +' '+item.modelName)">
|
|
|
<text slot="icon"></text>
|
|
|
</u-cell-item>
|
|
|
<view style="padding: 20upx;">
|
|
@@ -107,7 +107,8 @@
|
|
|
list:[],
|
|
|
vinList: [],
|
|
|
orderTodo: null,
|
|
|
- avatarUrl:''
|
|
|
+ avatarUrl:'',
|
|
|
+ navHeight: '44'
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -124,8 +125,16 @@
|
|
|
this.$store.dispatch('checkLogin',()=>{
|
|
|
this.pageInit()
|
|
|
})
|
|
|
-
|
|
|
this.getScrollLog()
|
|
|
+
|
|
|
+ // 获取导航栏高度
|
|
|
+ const res = uni.getSystemInfoSync()
|
|
|
+ const system = res.platform
|
|
|
+ if (system === 'android') {
|
|
|
+ this.navHeight = 48
|
|
|
+ } else if (system === 'ios') {
|
|
|
+ this.navHeight = 44
|
|
|
+ }
|
|
|
},
|
|
|
onLoad() {
|
|
|
// 获取数据字典
|
|
@@ -160,6 +169,8 @@
|
|
|
this.getVinLog()
|
|
|
// 获取扫描次数
|
|
|
this.$store.dispatch("getScanNums")
|
|
|
+ }else{
|
|
|
+ uni.removeStorageSync('token')
|
|
|
}
|
|
|
},
|
|
|
// 获取数据字典
|
|
@@ -244,28 +255,34 @@
|
|
|
},
|
|
|
// 去扫描
|
|
|
openCamera(){
|
|
|
- if(this.userInfo.identifyType=='VISITOR'){
|
|
|
- if(this.vuex_vinScanNums < 10){
|
|
|
- uni.navigateTo({
|
|
|
- url: this.hasLogin ? "/pages/scan-frame/scan-frame" : '/pages/login/login'
|
|
|
- })
|
|
|
- }else{
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '个人用户扫描VIN限10次/天,您的次数已用完!',
|
|
|
- confirmText: '去认证',
|
|
|
- success(res) {
|
|
|
- if(res.confirm) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/storeManage/storeAuth'
|
|
|
- })
|
|
|
+ if(this.hasLogin){
|
|
|
+ if(this.userInfo.identifyType=='VISITOR'){
|
|
|
+ if(this.vuex_vinScanNums < 10){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/scan-frame/scan-frame"
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '个人用户扫描VIN限10次/天,您的次数已用完!',
|
|
|
+ confirmText: '去认证',
|
|
|
+ success(res) {
|
|
|
+ if(res.confirm) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/storeManage/storeAuth'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/scan-frame/scan-frame"
|
|
|
})
|
|
|
}
|
|
|
}else{
|
|
|
uni.navigateTo({
|
|
|
- url: this.hasLogin ? "/pages/scan-frame/scan-frame" : '/pages/login/login'
|
|
|
+ url: '/pages/login/login'
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -316,10 +333,10 @@
|
|
|
background-image: linear-gradient(#86defa 0%,#cdeff9 25%,#ffffff 40%);
|
|
|
.header-box{
|
|
|
z-index: 5;
|
|
|
- padding: 0.3em 1em;
|
|
|
+ padding: 0em 1em;
|
|
|
background: #066cff;
|
|
|
.title{
|
|
|
- padding: 0.5em 0;
|
|
|
+ padding: 0;
|
|
|
}
|
|
|
}
|
|
|
.cbody{
|
|
@@ -328,7 +345,7 @@
|
|
|
overflow-x: hidden;
|
|
|
}
|
|
|
.body-box{
|
|
|
- padding: 0.5em 1em;
|
|
|
+ padding: 0em 1em 0.8em;
|
|
|
z-index: 4;
|
|
|
.notices{
|
|
|
padding: 0.5em 0 0;
|