Commit 62fdd1a4 by 李伟康

commit 提交

1 parent be3b7e7f
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
}).then(res => { }).then(res => {
uni.hideLoading() uni.hideLoading()
this.carlist = res this.carlist = res
uni.setStorageSync(`${e.id}_${e.brandId}_carlist`, res) if (res) uni.setStorageSync(`${e.id}_${e.brandId}_carlist`, res)
if (!carList) { if (!carList) {
if (auto && res.length) this.handleSelect(res[0]) if (auto && res.length) this.handleSelect(res[0])
else this.$refs.carBoxVisible.open() else this.$refs.carBoxVisible.open()
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
</view> </view>
</view> </view>
<view class="btn-box"> <view class="btn-box">
<!-- v-if="accountLength" -->
<view <view
class="btn flex" class="btn flex"
@click="changeAccount" @click="changeAccount"
...@@ -55,7 +54,6 @@ export default { ...@@ -55,7 +54,6 @@ export default {
name: 'SettingBox', name: 'SettingBox',
data () { data () {
return { return {
accountLength: uni.$storage.get('accountLength'),
version: '', version: '',
} }
}, },
......
...@@ -375,7 +375,7 @@ export default { ...@@ -375,7 +375,7 @@ export default {
position: absolute; position: absolute;
z-index: 1; z-index: 1;
visibility: visible; visibility: visible;
animation: show-content-left 0.4s forwards; animation: show-content-left 0.15s forwards;
} }
} }
@keyframes show-content-left { @keyframes show-content-left {
......
...@@ -6,7 +6,6 @@ export default { ...@@ -6,7 +6,6 @@ export default {
try { try {
let { merchantId, isSuper, uuid } = loginUserObj let { merchantId, isSuper, uuid } = loginUserObj
if (isSuper) { if (isSuper) {
uni.$storage.set('accountLength', Date.now())
this.$emit('chooseAccount', loginUserObj) this.$emit('chooseAccount', loginUserObj)
return return
} }
...@@ -34,14 +33,12 @@ export default { ...@@ -34,14 +33,12 @@ export default {
merchantName: merchantName merchantName: merchantName
} }
}) })
uni.$storage.set('accountLength', null)
} else if (!result?.length) { } else if (!result?.length) {
return uni.showToast({ return uni.showToast({
title: '园区店关联的4s店商户账号无效,请联系总部管理员', title: '园区店关联的4s店商户账号无效,请联系总部管理员',
icon: 'none', icon: 'none',
}) })
} else { } else {
uni.$storage.set('accountLength', Date.now())
this.$emit('chooseAccount', loginUserObj) this.$emit('chooseAccount', loginUserObj)
} }
}) })
......
...@@ -101,7 +101,6 @@ export default { ...@@ -101,7 +101,6 @@ export default {
}, },
onLoad (options) { onLoad (options) {
if (options.mobile) this.mobile = options.mobile if (options.mobile) this.mobile = options.mobile
uni.$storage.rm('accountLength')
const noSignInUuid = uni.$storage.get('noSignInUuid') const noSignInUuid = uni.$storage.get('noSignInUuid')
if (noSignInUuid) this.autoLogin(noSignInUuid) if (noSignInUuid) this.autoLogin(noSignInUuid)
}, },
......
...@@ -142,8 +142,8 @@ export default { ...@@ -142,8 +142,8 @@ export default {
merchantId: shopMerchantId, merchantId: shopMerchantId,
}) })
.then((res) => { .then((res) => {
this.$store.dispatch("setEmployeeList", res); this.$store.dispatch("setEmployeeList", res || []);
uni.$storage.set('employeeList', res) uni.$storage.set('employeeList', res || [])
}); });
}, },
// 查询素材 // 查询素材
......
...@@ -15,7 +15,6 @@ export const STORAGE_OBJECTkEY = { ...@@ -15,7 +15,6 @@ export const STORAGE_OBJECTkEY = {
customerInfo: "customerInfo", customerInfo: "customerInfo",
noSignInUuid: "noSignInUuid", noSignInUuid: "noSignInUuid",
noviceGuideStatus: "noviceGuideStatus", noviceGuideStatus: "noviceGuideStatus",
accountLength: "accountLength",
carBrandList:'carBrandList', carBrandList:'carBrandList',
employeeList:'employeeList' employeeList:'employeeList'
}; };
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!