Commit 65506f5f by 李嘉林

feat: v2接口加判断

parent 63990eda
...@@ -678,7 +678,10 @@ export default { ...@@ -678,7 +678,10 @@ export default {
distributionOfficerShopCode: "" distributionOfficerShopCode: ""
}); });
if (res.data.code == 200 && !isNaN(res.data.data - 0)) { if (res.data.code == 200 && !isNaN(res.data.data - 0)) {
if (res.data.data != null && res.data.data != 'null') {
this.preEntryStoreId = res.data.data; this.preEntryStoreId = res.data.data;
}
if (this.preEntryStoreId) {
let storeDetail = await shop.getOfflineStoreDetail({ let storeDetail = await shop.getOfflineStoreDetail({
shopId: this.preEntryStoreId, shopId: this.preEntryStoreId,
}); });
...@@ -687,6 +690,7 @@ export default { ...@@ -687,6 +690,7 @@ export default {
} }
await this.enterStore(this.preEntryStoreId); await this.enterStore(this.preEntryStoreId);
} }
}
} catch (error) { } catch (error) {
console.log('getEnterShopIdV1-error->', error) console.log('getEnterShopIdV1-error->', error)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment