Browse Source

feat: 太和小程序设置

carver 2 years ago
parent
commit
db42dcdbe2

+ 1 - 1
antbuilder/core/components/core-container/index.axml

@@ -148,7 +148,7 @@
       <!-- 券组件登陆时的弹窗 -->
       <modal-login showLoginModal="{{showLoginModal}}"/>
       <!-- 引入消息订阅插件组件 -->
-      <component is="dynamic-plugin://2021001155639035/subscribe-msg" a:if="{{isMessagePluginLoad}}"/>
+      <!-- <component is="dynamic-plugin://2021001155639035/subscribe-msg" a:if="{{isMessagePluginLoad}}"/> -->
       <a-tabbar a:if="{{hasTabBar}}" cardMode="{{extInfoObj.tabbarCardMode}}"/>
     </view>
     <!-- 浮动刷新按钮 -->

+ 1 - 0
antbuilder/core/pages/one/store/actions/start.js

@@ -203,6 +203,7 @@ export default {
     }
 
     const { tabbar } = state.$global.pageConfig[state.templateUUID];
+    console.log('tabbar ==>',tabbar)
     const activeIndex = getActiveIndex(pageData.pageUuid, tabbar);
     if (activeIndex !== -1) {
       commit({

+ 1 - 1
antbuilder/core/utils/constants.js

@@ -35,7 +35,7 @@ export const { openNewVersion } = globalExt;
 export const { debugTemplateUuid } = globalExt;
 export const { debugNoCache } = globalExt;
 export const { ywtUrl: ywtHost } = globalExt;
-export const { ywtPrefix: ywtEnvVersionPrefix } = globalExt;
+export const { ywtPrefix: ywtEnvVersionPrefix, envContext } = globalExt;
 export const { gwAppId } = globalExt;
 export const { terminal } = globalExt;
 

+ 3 - 1
antbuilder/core/utils/request.js

@@ -112,7 +112,9 @@ export function _request({
 
 export const ywtEnvUrl = {
 	"3508C5373A7C4BF18BF3F835FA2B5146": "https://api-qa.ywtinfo.com/",
-	F0C507F7F24C4E1E95924A02B8617DC7: "https://api.ywtinfo.com/",
+	"F0C507F7F24C4E1E95924A02B8617DC7": "https://api.ywtinfo.com/",
+	"1374B32A31454A2E90E09FF738866E02": 'https://api-qa.ywtinfo.com/',
+	"A94C3DEE59344D0184C3902418DB6D81": 'https://api-qa.ywtinfo.com/'
 };
 
 export function _ywtRequest({

+ 1 - 1
antbuilder/industry/hospitalV2/components/appointment-result/index.axml

@@ -187,7 +187,7 @@
   </modal>
 </wrapper>
 
-<subscribe-msg ref="saveRef" />
+<!-- <subscribe-msg ref="saveRef" /> -->
 
 <template name="from">
   <view class="result-block tmp">

+ 180 - 154
antbuilder/industry/hospitalV2/components/components/order-session/index.js

@@ -1,163 +1,189 @@
 import * as utils from "../../../utils";
 
 const getTimeItem = (name) => ({
-	name,
-	min: 0,
-	remain: 0,
-	list: [],
-	date: "",
-	week: "",
+  name,
+  min: 0,
+  remain: 0,
+  list: [],
+  date: "",
+  week: "",
 });
 
 const restDate = (date) => date.replace(/-/g, "/");
 
 Component({
-	props: {
-		item: {},
-	},
-	data: {
-		rows: [],
-	},
-
-	didMount() {
-		const { item } = this.props;
-		this.setData({
-			rows: this.formatTimeRange(item),
-		});
-	},
-
-	methods: {
-		/* 筛选数据 */
-		filterItems(items, list) {
-			list.forEach((order) => {
-				/* 时间段以开始时间为准 */
-				let { serviceDate, datePeriod } = order;
-				const type = utils.selectDate(datePeriod);
-				const row = items[type];
-
-				if (!row.date) {
-					row.week = utils.getWeek(serviceDate);
-					row.date = serviceDate;
-				}
-				row.list.push({ ...order });
-			});
-			return items;
-		},
-
-		/* 处理时间段 */
-		formatTimeRange(item) {
-			const { orderSources = [] } = item;
-			const items = this.filterItems(
-				{
-					am: getTimeItem("上午"),
-					pm: getTimeItem("下午"),
-					mm: getTimeItem("午间"),
-					nm: getTimeItem("夜间"),
-					mnm: getTimeItem("下半夜"),
-				},
-				orderSources
-			);
-			const { length: amLength } = items.am.list;
-			const { length: pmLength } = items.pm.list;
-			const { length: mmLength } = items.mm.list;
-			const { length: nmLength } = items.nm.list;
-			const { length: mnmLength } = items.mnm.list;
-			/* 获取上午或者下午的最小价格 */
-
-			items.am.min = this.getMinCost(items.am.list);
-			items.pm.min = this.getMinCost(items.pm.list);
-			items.mm.min = this.getMinCost(items.mm.list);
-			items.nm.min = this.getMinCost(items.nm.list);
-			items.mnm.min = this.getMinCost(items.mnm.list);
-
-			if (amLength <= 0) {
-				delete items.am;
-			} else {
-				/* 获取上午的剩余挂号数 */
-				items.am.remain = this.countRemain(items.am.list);
-			}
-
-			if (pmLength <= 0) {
-				delete items.pm;
-			} else {
-				/* 获取下午的剩余挂号数 */
-				items.pm.remain = this.countRemain(items.pm.list);
-			}
-
-			if (mmLength <= 0) {
-				delete items.mm;
-			} else {
-				/* 获取下午的剩余挂号数 */
-				items.mm.remain = this.countRemain(items.mm.list);
-			}
-
-			if (nmLength <= 0) {
-				delete items.nm;
-			} else {
-				/* 获取下午的剩余挂号数 */
-				items.nm.remain = this.countRemain(items.nm.list);
-			}
-
-			if (mnmLength <= 0) {
-				delete items.mnm;
-			} else {
-				/* 获取下午的剩余挂号数 */
-				items.mnm.remain = this.countRemain(items.mnm.list);
-			}
-			/* 同时存在上午和下午 */
-			if (items.am && items.pm && items.mm && items.nm && items.mnm) {
-				const { am, pm, mm, nm, mnm } = items;
-				/* 如果上午跟下午的最小价格相等,那么就为全天 */
-
-				if ((((am.min === pm.min) === mm.min) === nm.min) === mnm.min) {
-					items.all = {
-						...am,
-						name: "全天",
-						remain:
-							items.am.remain +
-							items.pm.remain +
-							items.mm.remain +
-							items.nm.remain +
-							items.mnm.remain,
-						list: [...am.list, ...pm.list, ...mm.list, ...nm.list, ...mnm.list],
-					};
-					delete items.am;
-					delete items.pm;
-					delete items.mm;
-					delete items.nm;
-					delete items.mnm;
-				}
-			}
-			return Object.values(items);
-		},
-
-		/* 计算总的余号量 */
-		countRemain(list) {
-			return list.map(({ remain }) => remain).reduce((pre, cur) => pre + cur);
-		},
-
-		/* 获取价格的最小值 */
-		getMinCost(items) {
-			const costs = [...new Set(items)].map(({ cost }) => cost);
-			return costs.length > 0 ? Math.min(...costs) : 0;
-		},
-
-		/* 获取日期 */
-		getOrderDate(time) {
-			const date = new Date(time);
-			const year = date.getFullYear();
-			const month = date.getMonth() + 1;
-			const day = date.getDate();
-			return [year, this.checkDate(month), this.checkDate(day)].join("-");
-		},
-
-		checkDate(v) {
-			return `${v}`.length < 2 ? `0${v}` : v;
-		},
-
-		/* 根据日期获取时间 */
-		getTimeByDate(date) {
-			return utils.cuttingDate(date).time;
-		},
-	},
+  props: {
+    item: {},
+  },
+  data: {
+    rows: [],
+  },
+
+  didMount() {
+    const { item } = this.props;
+    this.setData({
+      rows: this.formatTimeRange(item),
+    });
+  },
+
+  methods: {
+    /* 筛选数据 */
+    filterItems(items, list) {
+      list.forEach((order) => {
+        /* 时间段以开始时间为准 */
+        let { serviceDate, datePeriod } = order;
+        const type = utils.selectDate(datePeriod);
+        const row = items[type];
+        if (!row.date) {
+          row.week = utils.getWeek(serviceDate);
+          row.date = serviceDate;
+        }
+        row.list.push({ ...order });
+      });
+      return items;
+    },
+
+    /* 处理时间段 */
+    formatTimeRange(item) {
+      const { orderSources = [] } = item;
+      const items = this.filterItems(
+        {
+          allm: getTimeItem("全天"),
+          am: getTimeItem("上午"),
+          pm: getTimeItem("下午"),
+          mm: getTimeItem("午间"),
+          nm: getTimeItem("夜间"),
+          mnm: getTimeItem("下半夜"),
+        },
+        orderSources
+      );
+      const { length: allmLength } = items.allm.list;
+      const { length: amLength } = items.am.list;
+      const { length: pmLength } = items.pm.list;
+      const { length: mmLength } = items.mm.list;
+      const { length: nmLength } = items.nm.list;
+      const { length: mnmLength } = items.mnm.list;
+      /* 获取上午或者下午的最小价格 */
+      items.allm.min = this.getMinCost(items.allm.list);
+      items.am.min = this.getMinCost(items.am.list);
+      items.pm.min = this.getMinCost(items.pm.list);
+      items.mm.min = this.getMinCost(items.mm.list);
+      items.nm.min = this.getMinCost(items.nm.list);
+      items.mnm.min = this.getMinCost(items.mnm.list);
+
+      if (allmLength <= 0) {
+        delete items.allm;
+      } else {
+        /* 获取上午的剩余挂号数 */
+        items.allm.remain = this.countRemain(items.allm.list);
+      }
+      if (amLength <= 0) {
+        delete items.am;
+      } else {
+        /* 获取上午的剩余挂号数 */
+        items.am.remain = this.countRemain(items.am.list);
+      }
+
+      if (pmLength <= 0) {
+        delete items.pm;
+      } else {
+        /* 获取下午的剩余挂号数 */
+        items.pm.remain = this.countRemain(items.pm.list);
+      }
+
+      if (mmLength <= 0) {
+        delete items.mm;
+      } else {
+        /* 获取下午的剩余挂号数 */
+        items.mm.remain = this.countRemain(items.mm.list);
+      }
+
+      if (nmLength <= 0) {
+        delete items.nm;
+      } else {
+        /* 获取下午的剩余挂号数 */
+        items.nm.remain = this.countRemain(items.nm.list);
+      }
+
+      if (mnmLength <= 0) {
+        delete items.mnm;
+      } else {
+        /* 获取下午的剩余挂号数 */
+        items.mnm.remain = this.countRemain(items.mnm.list);
+      }
+      /* 同时存在上午和下午 */
+      if (
+        items.allm &&
+        items.am &&
+        items.pm &&
+        items.mm &&
+        items.nm &&
+        items.mnm
+      ) {
+        const { am, pm, mm, nm, mnm, allm } = items;
+        /* 如果上午跟下午的最小价格相等,那么就为全天 */
+
+        if (
+          ((((am.min === pm.min) === mm.min) === nm.min) === mnm.min) ===
+          allm.min
+        ) {
+          items.all = {
+            ...am,
+            name: "全天",
+            remain:
+              items.am.remain +
+              items.pm.remain +
+              items.mm.remain +
+              items.nm.remain +
+              items.mnm.remain +
+              items.allm.remain,
+            list: [
+              ...am.list,
+              ...pm.list,
+              ...mm.list,
+              ...nm.list,
+              ...mnm.list,
+              ...allm.list,
+            ],
+          };
+          delete items.am;
+          delete items.pm;
+          delete items.mm;
+          delete items.nm;
+          delete items.mnm;
+          delete items.allm;
+        }
+      }
+      return Object.values(items);
+    },
+
+    /* 计算总的余号量 */
+    countRemain(list) {
+      return list.map(({ remain }) => remain).reduce((pre, cur) => pre + cur);
+    },
+
+    /* 获取价格的最小值 */
+    getMinCost(items) {
+      const costs = [...new Set(items)].map(({ cost }) => cost);
+      return costs.length > 0 ? Math.min(...costs) : 0;
+    },
+
+    /* 获取日期 */
+    getOrderDate(time) {
+      const date = new Date(time);
+      const year = date.getFullYear();
+      const month = date.getMonth() + 1;
+      const day = date.getDate();
+      return [year, this.checkDate(month), this.checkDate(day)].join("-");
+    },
+
+    checkDate(v) {
+      return `${v}`.length < 2 ? `0${v}` : v;
+    },
+
+    /* 根据日期获取时间 */
+    getTimeByDate(date) {
+      return utils.cuttingDate(date).time;
+    },
+  },
 });

+ 1 - 1
antbuilder/industry/hospitalV2/components/deposit/index.axml

@@ -33,5 +33,5 @@
   <!-- 切换就诊人弹框 -->
   <choose-hospital onGetDatas="onGetDatas" selectIndex="{{ selectIndex }}" />
   <!-- 消息订阅组件 -->
-  <component is="dynamic-plugin://2021001155639035/subscribe-msg" a:if="{{isReady}}" />
+  <!-- <component is="dynamic-plugin://2021001155639035/subscribe-msg" a:if="{{isReady}}" /> -->
 </view>

+ 0 - 1
antbuilder/industry/hospitalV2/components/general-services/generalServices.js

@@ -9,7 +9,6 @@ Component({
   },
   methods: {
     async gotoJiuyi(e) {
-      console.log('11111111');
       history.push({
         title: '就医指南',
         pageType: 'patient-guide'

+ 1 - 1
antbuilder/industry/hospitalV2/components/hospital-payment-detail/index.axml

@@ -148,4 +148,4 @@
     </block>
   </view>
 </wrapper>
-<subscribe-msg ref="saveSubscribe" />
+<!-- <subscribe-msg ref="saveSubscribe" /> -->

+ 1 - 1
antbuilder/industry/hospitalV2/components/hospital-payment/index.axml

@@ -48,4 +48,4 @@
   </scroll-fetch>
 </patient-tabs-pro>
 
-<subscribe-msg ref="saveSubscribe" />
+<!-- <subscribe-msg ref="saveSubscribe" /> -->

+ 3 - 2
antbuilder/industry/hospitalV2/components/hospital-project/index.js

@@ -11,8 +11,9 @@ import { tradePay } from "../../utils/tradePay";
 import { reportCmPV_YL } from "../../utils/cloudMonitorHelper";
 import { getSubscribeAuth } from "../../../../core/utils/ywtService";
 const deptCodeMap = {
-	541: 500,
-	540: 499,
+	541: 500, // 黄石
+	540: 499,	// 沙河
+	12: 248			// 太和
 };
 Component(
 	createSubscribe({

+ 1 - 1
antbuilder/industry/hospitalV2/components/medical-information/medicalInformation.axml

@@ -63,7 +63,7 @@
     </block>
   </block>
   <block a:if="{{ utils.showGrade(isLogin, openNotify, items, loading) }}">
-    <subscribe-msg ref="saveSubscribe" />
+    <!-- <subscribe-msg ref="saveSubscribe" /> -->
     <!-- <grade-content onAuth="onAuthHandel" /> -->
   </block>
 </wrapper>

+ 1 - 1
antbuilder/industry/hospitalV2/components/order-pay/index.axml

@@ -52,7 +52,7 @@
 
   <patient-selector show="{{ showPatient }}" onClose="onClose" onChange="onChange" />
 
-  <subscribe-msg ref="saveRef" />
+  <!-- <subscribe-msg ref="saveRef" /> -->
 </wrapper>
 
 <!-- 就诊人模板 -->

+ 1 - 1
antbuilder/industry/hospitalV2/components/pay-result/index.axml

@@ -33,5 +33,5 @@
       <text class="go-label">当押金不足时支付宝为您发送消息提醒</text> <view onTap="gotoSubscrible" class="subButton">去订阅</view>
     </view>
   </view>
-  <component is="dynamic-plugin://2021001155639035/subscribe-msg" a:if="{{isReady}}" />
+  <!-- <component is="dynamic-plugin://2021001155639035/subscribe-msg" a:if="{{isReady}}" /> -->
 </view>

+ 165 - 164
antbuilder/industry/hospitalV2/components/select-department/index.js

@@ -3,169 +3,170 @@ import { getContentHeight } from "../../utils";
 import { getDepartmentList } from "./service";
 import { queryServiceByCode } from "../../service/common";
 import { reportCmPV_YL } from "../../utils/cloudMonitorHelper";
+import { envContext } from "../../../../core/utils/constants";
 Component({
-	props: {
-		componentData: {},
-	},
-	data: {
-		index: 0,
-		show: false,
-		menus: [],
-		cache: {},
-		lastCache: {},
-		loading: true,
-		serviceItem: null,
-		contentHeight: getContentHeight(),
-	},
-
-	async didMount() {
-		/* 服务预警, 预约挂号 */
-		reportCmPV_YL({
-			title: "预约挂号",
-		});
-		const { hospitalDistrictId } = this.getQuery();
-
-		try {
-			await this.getServiceDetail(); // eslint-disable-next-line no-empty
-		} catch (e) {}
-
-		await this.fetchMenus(hospitalDistrictId);
-	},
-
-	methods: {
-		updateData(data) {
-			return new Promise((resolve) => this.setData(data, resolve));
-		},
-
-		async getServiceDetail() {
-			const code = "hospital_service_code";
-			const { link, uuid, title, linkType, accessMode, serviceDesc } =
-				await queryServiceByCode(code);
-			if (uuid) {
-				const serviceItem = {
-					url: link,
-					accessMode,
-					name: title,
-					serviceDesc,
-					urlType: linkType,
-					serviceUUID: uuid,
-				};
-				await this.updateData({
-					serviceItem,
-				});
-			}
-		},
-
-		getQuery() {
-			const { $routeConfig } = this.$page;
-			return $routeConfig.query;
-		},
-
-		async fetchProxy(func, ...arg) {
-			my.showLoading();
-			await func(...arg).finally(my.hideLoading);
-		},
-
-		/* 检测缓存 */
-		hasCache() {
-			const { index, cache } = this.data;
-			return (cache[index] || []).length > 0;
-		},
-
-		/* 设置缓存 */
-		setCache(list) {
-			const { index: i, cache: _cache } = this.data;
-			const cache = { ..._cache };
-			cache[i] = list;
-			return this.updateData({
-				cache,
-			});
-		},
-
-		/* 获取一级列表数据 */
-		async fetchMenus(hospitalDistrictId) {
-			const params = {
-				hospitalDistrictId,
-			};
-			const list = await getDepartmentList(params);
-			await this.updateData({
-				menus: list,
-				loading: false,
-			});
-			/* 获取一级列表下面的第一项的第一个 */
-
-			const departmentId = this.getDepartmentId(0);
-			await this.fetchDepartments(departmentId, list[0]);
-		},
-
-		/* 获取二级列表 */
-		async fetchDepartments(departmentId, item) {
-			if (this.hasCache()) return;
-			const list = !departmentId
-				? [item]
-				: await getDepartmentList({
-						parentId: departmentId,
-				  });
-			this.setCache(list);
-		},
-
-		/* 获取科室id */
-		getDepartmentId(index) {
-			const { menus = [] } = this.data;
-			const { hasChildren, departmentId } = menus[index] || {};
-			if (hasChildren) return departmentId;
-		},
-
-		/* 切换科室 */
-		async onTapMenu(i) {
-			const item = this.data.menus[i];
-			await this.updateData({
-				index: i,
-			});
-			const departmentId = this.getDepartmentId(i);
-			await this.fetchDepartments(departmentId, item);
-		},
-
-		/* 获取三级列表数据 */
-		async onTapOpenLast(item) {
-			const { departmentId } = item;
-			const { lastCache } = this.data;
-			const cacheList = lastCache[departmentId] || [];
-			if (cacheList.length > 0) return cacheList;
-			my.showLoading();
-			const list = await getDepartmentList({
-				parentId: departmentId,
-			}).finally(my.hideLoading);
-			lastCache[departmentId] = list;
-			await this.updateData({
-				lastCache: { ...lastCache },
-			});
-			return list;
-		},
-
-		onTapItem(item) {
-			const query = this.getQuery();
-			const { name: areaName } = query;
-			const { componentData } = this.props;
-			const {
-				departmentId,
-				name: dpName,
-				departmentCode: depCode,
-				hospitalId,
-			} = item;
-			const { subHospitalTitle, subHospitalId } = query;
-			history.push({
-				query: {
-					departmentId,
-					depCode,
-					hospitalId,
-					subHospitalTitle,
-					subHospitalId,
-				},
-				title: `${dpName}(${areaName})`,
-				pageType: "hospital-num-source",
-				componentData: { ...componentData, department: item },
-			});
-		},
-	},
+  props: {
+    componentData: {},
+  },
+  data: {
+    index: 0,
+    show: false,
+    menus: [],
+    cache: {},
+    lastCache: {},
+    loading: true,
+    serviceItem: null,
+    contentHeight: getContentHeight(),
+  },
+
+  async didMount() {
+    /* 服务预警, 预约挂号 */
+    reportCmPV_YL({
+      title: "预约挂号",
+    });
+    const { hospitalDistrictId } = this.getQuery();
+
+    try {
+      await this.getServiceDetail(); // eslint-disable-next-line no-empty
+    } catch (e) {}
+    await this.fetchMenus(hospitalDistrictId);
+  },
+
+  methods: {
+    updateData(data) {
+      return new Promise((resolve) => this.setData(data, resolve));
+    },
+
+    async getServiceDetail() {
+      const code = "hospital_service_code";
+      const { link, uuid, title, linkType, accessMode, serviceDesc } =
+        await queryServiceByCode(code);
+      if (uuid) {
+        const serviceItem = {
+          url: link,
+          accessMode,
+          name: title,
+          serviceDesc,
+          urlType: linkType,
+          serviceUUID: uuid,
+        };
+        await this.updateData({
+          serviceItem,
+        });
+      }
+    },
+
+    getQuery() {
+      const { $routeConfig } = this.$page;
+      return $routeConfig.query;
+    },
+
+    async fetchProxy(func, ...arg) {
+      my.showLoading();
+      await func(...arg).finally(my.hideLoading);
+    },
+
+    /* 检测缓存 */
+    hasCache() {
+      const { index, cache } = this.data;
+      return (cache[index] || []).length > 0;
+    },
+
+    /* 设置缓存 */
+    setCache(list) {
+      const { index: i, cache: _cache } = this.data;
+      const cache = { ..._cache };
+      cache[i] = list;
+      return this.updateData({
+        cache,
+      });
+    },
+
+    /* 获取一级列表数据 */
+    async fetchMenus(hospitalDistrictId) {
+      const params = {
+        hospitalDistrictId: envContext === 'th' ? "" : hospitalDistrictId,
+      };
+      const list = await getDepartmentList(params);
+      await this.updateData({
+        menus: list,
+        loading: false,
+      });
+      /* 获取一级列表下面的第一项的第一个 */
+      const departmentId = this.getDepartmentId(0);
+      if (list) {
+        await this.fetchDepartments(departmentId, list[0]);
+      }
+    },
+
+    /* 获取二级列表 */
+    async fetchDepartments(departmentId, item) {
+      if (this.hasCache()) return;
+      const list = !departmentId
+        ? [item]
+        : await getDepartmentList({
+            parentId: departmentId,
+          });
+      this.setCache(list);
+    },
+
+    /* 获取科室id */
+    getDepartmentId(index) {
+      const { menus = [] } = this.data;
+      const { hasChildren, departmentId } = menus[index] || {};
+      if (hasChildren) return departmentId;
+    },
+
+    /* 切换科室 */
+    async onTapMenu(i) {
+      const item = this.data.menus[i];
+      await this.updateData({
+        index: i,
+      });
+      const departmentId = this.getDepartmentId(i);
+      await this.fetchDepartments(departmentId, item);
+    },
+
+    /* 获取三级列表数据 */
+    async onTapOpenLast(item) {
+      const { departmentId } = item;
+      const { lastCache } = this.data;
+      const cacheList = lastCache[departmentId] || [];
+      if (cacheList.length > 0) return cacheList;
+      my.showLoading();
+      const list = await getDepartmentList({
+        parentId: departmentId,
+      }).finally(my.hideLoading);
+      lastCache[departmentId] = list;
+      await this.updateData({
+        lastCache: { ...lastCache },
+      });
+      return list;
+    },
+
+    onTapItem(item) {
+      const query = this.getQuery();
+      const { name: areaName } = query;
+      const { componentData } = this.props;
+      const {
+        departmentId,
+        name: dpName,
+        departmentCode: depCode,
+        hospitalId,
+      } = item;
+      const { subHospitalTitle, subHospitalId } = query;
+      history.push({
+        query: {
+          departmentId,
+          depCode,
+          hospitalId,
+          subHospitalTitle,
+          subHospitalId,
+        },
+        title: `${dpName}(${areaName})`,
+        pageType: "hospital-num-source",
+        componentData: { ...componentData, department: item },
+      });
+    },
+  },
 });

+ 1 - 0
antbuilder/industry/hospitalV2/components/select-hospital-area/index.js

@@ -34,6 +34,7 @@ Component({
 		},
 
 		async toNextPage(item, replace) {
+			console.log('item ===>', item)
 			const { name, hospitalDistrictId, extInfo, address } = item;
 			const { isNotice = "Y" } = this.getExtInfo();
 			/* 如果没有就诊须知跳转选择科室页面 */

+ 2 - 0
antbuilder/industry/hospitalV2/utils/index.js

@@ -20,6 +20,8 @@ export function cuttingDate(time = "") {
 
 export function selectDate(content = "") {
 	switch (content) {
+		case 1:
+			return "allm";
 		case 2:
 			return "am";
 		case 3:

+ 2 - 1
config.by.prod.json

@@ -14,7 +14,8 @@
 			"debugTemplateUuid": "",
 			"env": "prod",
 			"terminal": 24,
-			"miniVersion": "1.0.2"
+			"miniVersion": "1.0.2",
+			"envContext":"by"
 		}
 	}
 }

+ 2 - 1
config.by.qa.json

@@ -14,7 +14,8 @@
 			"debugTemplateUuid": "",
 			"env": "qa",
 			"terminal": 24,
-			"miniVersion": "1.0.2"
+			"miniVersion": "1.0.2",
+			"envContext":"by"
 		}
 	}
 }

+ 21 - 20
config.json

@@ -1,20 +1,21 @@
-{
-	"extEnable": true,
-	"ext": {
-		"global": {
-			"url": "https://ab-saas-api.alipay-eco.com/",
-			"ywtUrl": "https://api-qa.ywtinfo.com/",
-			"ywtPrefix": "v2/alipaymp/nfyybyfy",
-			"gwAppId": "nfyybyfy-alipay-mp",
-			"disableActiveAuthUser": true,
-			"pid": "ssbwvrxgc0/l4fxyrdh4kw==",
-			"authCodeKey": "auth_code",
-			"openNewVersion": true,
-			"debugNoCache": true,
-			"debugTemplateUuid": "",
-			"env": "qa",
-			"terminal": 24,
-			"miniVersion": "1.0.2"
-		}
-	}
-}
+{
+	"extEnable": true,
+	"ext": {
+		"global": {
+			"url": "https://ab-saas-api.alipay-eco.com/",
+			"ywtUrl": "https://api-qa.ywtinfo.com/",
+			"ywtPrefix": "v2/alipaymp/nfth",
+			"gwAppId": "nfyybyfy-alipay-mp",
+			"disableActiveAuthUser": true,
+			"pid": "ssbwvrxgc0/l4fxyrdh4kw==",
+			"authCodeKey": "auth_code",
+			"openNewVersion": true,
+			"debugNoCache": true,
+			"debugTemplateUuid": "",
+			"env": "qa",
+			"terminal": 25,
+			"miniVersion": "1.0.2",
+			"envContext":"th"
+		}
+	}
+}

+ 21 - 0
config.th.prod.json

@@ -0,0 +1,21 @@
+{
+	"extEnable": true,
+	"ext": {
+		"global": {
+			"url": "https://ab-saas-api.alipay-eco.com/",
+			"ywtUrl": "https://api.ywtinfo.com/",
+			"ywtPrefix": "v2/alipaymp/nfth",
+			"gwAppId": "nfyybyfy-alipay-mp",
+			"disableActiveAuthUser": true,
+			"pid": "ssbwvrxgc0/l4fxyrdh4kw==",
+			"authCodeKey": "auth_code",
+			"openNewVersion": true,
+			"debugNoCache": true,
+			"debugTemplateUuid": "",
+			"env": "prod",
+			"terminal": 25,
+			"miniVersion": "1.0.2",
+			"envContext":"th"
+		}
+	}
+}

+ 21 - 0
config.th.qa.json

@@ -0,0 +1,21 @@
+{
+	"extEnable": true,
+	"ext": {
+		"global": {
+			"url": "https://ab-saas-api.alipay-eco.com/",
+			"ywtUrl": "https://api-qa.ywtinfo.com/",
+			"ywtPrefix": "v2/alipaymp/nfth",
+			"gwAppId": "nfyybyfy-alipay-mp",
+			"disableActiveAuthUser": true,
+			"pid": "ssbwvrxgc0/l4fxyrdh4kw==",
+			"authCodeKey": "auth_code",
+			"openNewVersion": true,
+			"debugNoCache": true,
+			"debugTemplateUuid": "",
+			"env": "qa",
+			"terminal": 25,
+			"miniVersion": "1.0.2",
+			"envContext":"th"
+		}
+	}
+}

+ 3 - 1
package.json

@@ -4,7 +4,9 @@
 		"ainstall": "npm install --registry=https://registry.npm.taobao.org",
 		"console3": "========================================================================================> replace command",
 		"replace:by-qa": "cross-env PLAT_ENV=by-qa node replaceEnv.js",
-		"replace:by-prod": "cross-env PLAT_ENV=by-prod node replaceEnv.js"
+		"replace:by-prod": "cross-env PLAT_ENV=by-prod node replaceEnv.js",
+		"replace:th-qa": "cross-env PLAT_ENV=th-qa node replaceEnv.js",
+		"replace:th-prod": "cross-env PLAT_ENV=th-prod node replaceEnv.js"
 	},
 	"dependencies": {
 		"@mas.io/adc-address-item": "1.0.0",