Commit 62fdd1a4 by 李伟康

commit 提交

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