Commit bdfd9844 by 侯体倬

beta 环境切换 es

parent f9a87af4
...@@ -324,11 +324,12 @@ const componentOptions = { ...@@ -324,11 +324,12 @@ const componentOptions = {
query.minPrice = this.data.submitFliterVal.minPrice; query.minPrice = this.data.submitFliterVal.minPrice;
query.maxPrice = this.data.submitFliterVal.maxPrice; query.maxPrice = this.data.submitFliterVal.maxPrice;
} }
if (processEnv.NODE_ENV == 'xhyx_prod') { const envList = ['xhyx_prod', 'xhyx_beta'];
if (envList.includes(processEnv.NODE_ENV)) {
// 隔离门店搜索 // 隔离门店搜索
query.searchScopeFlag = 1; query.searchScopeFlag = 1;
} }
goodsApi[processEnv.NODE_ENV == 'xhyx_prod'?'selectProductInfoOnEs':'queryProductInfo'](query).then(res => { goodsApi[envList.includes(processEnv.NODE_ENV)?'selectProductInfoOnEs':'queryProductInfo'](query).then(res => {
this.setData({ loading: false, queryProductInfoLoading: false }); this.setData({ loading: false, queryProductInfoLoading: false });
if (res.data.code == 200) { if (res.data.code == 200) {
let goodsLists = res.data.data.list; let goodsLists = res.data.data.list;
......
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