|
@@ -122,7 +122,7 @@
|
|
import { shelfBondRecordWaitPayRecord, findStoreShelf, shelfGetTotalWaitQty, getProductfindByScanCode, findPriceShow,findPriceShowType,findPriceShowEmployee } from '@/api/shelf.js'
|
|
import { shelfBondRecordWaitPayRecord, findStoreShelf, shelfGetTotalWaitQty, getProductfindByScanCode, findPriceShow,findPriceShowType,findPriceShowEmployee } from '@/api/shelf.js'
|
|
import { xprhStoreApplyRead } from '@/api/xprh.js'
|
|
import { xprhStoreApplyRead } from '@/api/xprh.js'
|
|
import { findCurrentRewardRule } from '@/api/rewardRule.js'
|
|
import { findCurrentRewardRule } from '@/api/rewardRule.js'
|
|
- import { listLookUp, getLookUpDatas } from '@/api/data.js';
|
|
|
|
|
|
+ import { listLookUp, getLookUpDatas, getCurrUserInfo } from '@/api/data.js';
|
|
import { scanVinLogQueryRoll, getScanVinLogList, getScanGetMaxQty }from '@/api/car.js'
|
|
import { scanVinLogQueryRoll, getScanVinLogList, getScanGetMaxQty }from '@/api/car.js'
|
|
import { getRewardRollList } from '@/api/rewardRule.js'
|
|
import { getRewardRollList } from '@/api/rewardRule.js'
|
|
export default {
|
|
export default {
|
|
@@ -171,7 +171,7 @@
|
|
return rule&&rule.ruleStatus == 'release'
|
|
return rule&&rule.ruleStatus == 'release'
|
|
},
|
|
},
|
|
imgList(){
|
|
imgList(){
|
|
- if(this.hasRedPacket){
|
|
|
|
|
|
+ if(this.hasRedPacket&&this.hasShelf){
|
|
return [{
|
|
return [{
|
|
image: '/static/banner1.png'
|
|
image: '/static/banner1.png'
|
|
},{
|
|
},{
|
|
@@ -274,7 +274,8 @@
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
// 获取扫描记录
|
|
// 获取扫描记录
|
|
this.getVinLog()
|
|
this.getVinLog()
|
|
-
|
|
|
|
|
|
+ // 更新用户信息
|
|
|
|
+ this.getCurrUserInfo()
|
|
// 非游客
|
|
// 非游客
|
|
if(this.userInfo.sysUserFlag == '1'){
|
|
if(this.userInfo.sysUserFlag == '1'){
|
|
// 查询是否有数字货架
|
|
// 查询是否有数字货架
|
|
@@ -313,6 +314,17 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 最新用户信息
|
|
|
|
+ getCurrUserInfo(){
|
|
|
|
+ getCurrUserInfo().then(res => {
|
|
|
|
+ if(res.data){
|
|
|
|
+ this.$store.state.vuex_userInfo.userNameCN = res.data.name;
|
|
|
|
+ this.$store.state.vuex_userInfo.mobile = res.data.mobile;
|
|
|
|
+ this.$store.state.vuex_userPhoto = res.data.photo;
|
|
|
|
+ uni.setStorageSync('userPhoto', res.data.photo);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 获取最大扫描数
|
|
// 获取最大扫描数
|
|
getMaxQty(){
|
|
getMaxQty(){
|
|
getScanGetMaxQty().then(res => {
|
|
getScanGetMaxQty().then(res => {
|