Commit 0891d7ff by 李伟康

commit 车型销售打开时请求

1 parent 6ceb0202
...@@ -83,9 +83,7 @@ export default { ...@@ -83,9 +83,7 @@ export default {
if (carBrandList.length) this.selectCar(carBrandList[0], true) if (carBrandList.length) this.selectCar(carBrandList[0], true)
}, },
open () { open () {
uni.showLoading({ this.$refs.carBrandListVisible.open()
mask: true
})
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
/**获取品牌车型 */ /**获取品牌车型 */
...@@ -101,13 +99,7 @@ export default { ...@@ -101,13 +99,7 @@ export default {
}); });
}); });
this.$store.dispatch("setCarBrandsList", carBrandList); this.$store.dispatch("setCarBrandsList", carBrandList);
this.$refs.carBrandListVisible.open()
uni.hideLoading()
}).catch(() => {
this.$refs.carBrandListVisible.open()
uni.hideLoading()
}) })
}, },
selectCar (e, auto = false) { selectCar (e, auto = false) {
let { clickFlga } = this let { clickFlga } = this
......
...@@ -57,9 +57,7 @@ export default { ...@@ -57,9 +57,7 @@ export default {
}, },
methods: { methods: {
open () { open () {
uni.showLoading({ this.$refs.employeeBoxVisible.open()
mask: true
})
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
/**获取销售人员 */ /**获取销售人员 */
...@@ -69,11 +67,6 @@ export default { ...@@ -69,11 +67,6 @@ export default {
}) })
.then((res) => { .then((res) => {
this.$store.dispatch("setEmployeeList", res); this.$store.dispatch("setEmployeeList", res);
this.$refs.employeeBoxVisible.open()
uni.hideLoading()
}).catch(() => {
this.$refs.employeeBoxVisible.open()
uni.hideLoading()
}) })
}, },
handleSelect (item) { handleSelect (item) {
......
...@@ -82,16 +82,6 @@ export default { ...@@ -82,16 +82,6 @@ export default {
return false; return false;
}, },
onShow () { onShow () {
var localStorageSpace = function () {
var allStrings = '';
for (var key in window.localStorage) {
if (window.localStorage.hasOwnProperty(key)) {
allStrings += window.localStorage[key];
}
}
return allStrings ? 3 + ((allStrings.length * 16) / (8 * 1024)) + ' KB' : 'Empty (0 KB)';
}
console.log('localStorage当前占用' + localStorageSpace())
this.init(); this.init();
}, },
async onReachBottom () { async onReachBottom () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!