Commit 65506f5f by 李嘉林

feat: v2接口加判断

parent 63990eda
...@@ -678,14 +678,18 @@ export default { ...@@ -678,14 +678,18 @@ export default {
distributionOfficerShopCode: "" distributionOfficerShopCode: ""
}); });
if (res.data.code == 200 && !isNaN(res.data.data - 0)) { if (res.data.code == 200 && !isNaN(res.data.data - 0)) {
this.preEntryStoreId = res.data.data; if (res.data.data != null && res.data.data != 'null') {
let storeDetail = await shop.getOfflineStoreDetail({ this.preEntryStoreId = res.data.data;
shopId: this.preEntryStoreId, }
}); if (this.preEntryStoreId) {
if (storeDetail.data.code == 200) { let storeDetail = await shop.getOfflineStoreDetail({
this.storeDetail = storeDetail.data.data; shopId: this.preEntryStoreId,
});
if (storeDetail.data.code == 200) {
this.storeDetail = storeDetail.data.data;
}
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