Commit 8051a704 by 李嘉林

删除没用代码

parent 72b69832
...@@ -102,73 +102,6 @@ export default { ...@@ -102,73 +102,6 @@ export default {
}); });
return; return;
}; };
return;
// 进店规则获取门店id
let query = {
channelType: 2, //设备类型(0:pc,1:app,2:小程序)
consumerLongitude: this.offlineStoreReq.longitude, //经度,小程序和app可以获取到就要传,没有不传
consumerLatitude: this.offlineStoreReq.latitude, //纬度,小程序和app可以获取到就要传,没有不传
distributionOfficerShopcode: "" //分销员门店id,没有不传
}
let enterShopRes = await shop.getEnterShopId(query);
if (enterShopRes && enterShopRes.code == 200) {
this.enterShopId = enterShopRes.data;
}
shop.changingOverShopForXinHua(this.offlineStoreReq).then(res1 => {
let res = res1.data;
if (res.code == 200) {
if (res.data && res.data.length != 0) {
this.storeList = res.data;
let isStore = false;
let { offlineShopName, offlineShopCode } = getStoreInfo();
console.log(offlineShopName, offlineShopCode, '------------------sa114')
if (this.enterShopId) {
// 如果有进店规则门店id则直接匹配存入
let ruleShop = this.storeList.filter(item => item.id == this.enterShopId);
if (ruleShop && ruleShop.length > 0) {
this.name = ruleShop[0].shopName;
this.$store.dispatch("setShopCode", {
shopCode: ruleShop[0].shopCode,
});
this.$store.dispatch("setShopName", {
shopName: ruleShop[0].shopName,
});
this.$emit("toUpdate");
return;
}
}
this.storeList.forEach((item, index) => {
if (item.shopName == offlineShopName) {
isStore = true;
} else if (offlineShopCode == "") {
isStore = true;
}
});
console.log(offlineShopName, isStore, "sa97");
if (offlineShopName && isStore) {
console.log("判断列表中是否存在(未关闭网店)");
this.name = offlineShopName;
this.$emit("toUpdate");
} else {
console.log("如果关闭网店,重新选择列表第一个");
setStoreInfo({
offlineShopCode: this.storeList[0].shopCode,
offlineShopName: this.storeList[0].shopName,
});
this.name = this.storeList[0].shopName;
this.$emit("toUpdate");
}
} else {
console.log("如果列表为空--选择商城");
setStoreInfo({
offlineShopCode: "",
offlineShopName: this.shopName,
});
this.name = this.shopName;
this.$emit("toUpdate");
}
}
});
}, },
// 去切换门店页面 // 去切换门店页面
pushStorePage() { pushStorePage() {
......
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