Commit 0891d7ff by 李伟康

commit 车型销售打开时请求

1 parent 6ceb0202
......@@ -83,9 +83,7 @@ export default {
if (carBrandList.length) this.selectCar(carBrandList[0], true)
},
open () {
uni.showLoading({
mask: true
})
this.$refs.carBrandListVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
/**获取品牌车型 */
......@@ -101,13 +99,7 @@ export default {
});
});
this.$store.dispatch("setCarBrandsList", carBrandList);
this.$refs.carBrandListVisible.open()
uni.hideLoading()
}).catch(() => {
this.$refs.carBrandListVisible.open()
uni.hideLoading()
})
},
selectCar (e, auto = false) {
let { clickFlga } = this
......
......@@ -57,9 +57,7 @@ export default {
},
methods: {
open () {
uni.showLoading({
mask: true
})
this.$refs.employeeBoxVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
/**获取销售人员 */
......@@ -69,11 +67,6 @@ export default {
})
.then((res) => {
this.$store.dispatch("setEmployeeList", res);
this.$refs.employeeBoxVisible.open()
uni.hideLoading()
}).catch(() => {
this.$refs.employeeBoxVisible.open()
uni.hideLoading()
})
},
handleSelect (item) {
......
......@@ -82,16 +82,6 @@ export default {
return false;
},
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();
},
async onReachBottom () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!