diff --git a/src/views/reservation/Detail.jsx b/src/views/reservation/Detail.jsx
index bc49ad5..be5f3c7 100644
--- a/src/views/reservation/Detail.jsx
+++ b/src/views/reservation/Detail.jsx
@@ -50,16 +50,18 @@ function Detail() {
const [dataLoading, setDataLoading] = useState(false);
const { notification } = App.useApp();
const { reservationId } = useParams();
- const { reservationStore } = useStore();
+ const { authStore, reservationStore } = useStore();
const { reservationDetail, confirmationList } = reservationStore;
-
+ const { login } = authStore;
+ const officeWebViewerUrl =
+ 'https://view.officeapps.live.com/op/embed.aspx?wdPrint=1&wdHideGridlines=0&wdHideComments=1&wdEmbedCode=0&src=';
const reservationUrl =
- 'https://view.officeapps.live.com/op/embed.aspx?wdPrint=1&wdHideGridlines=0&wdHideComments=1&wdEmbedCode=0&src=' +
- encodeURIComponent('https://www.chinahighlights.com/public/reservationW220420009.doc');
-
+ `https://p9axztuwd7x8a7.mycht.cn/service-fileServer/DownloadPlanDoc?GRI_SN=${reservationId}&VEI_SN=${login.travelAgencyId}FileType=1`;
const nameCardUrl =
- 'https://view.officeapps.live.com/op/embed.aspx?wdPrint=false&wdHideGridlines=true&wdHideComments=true&src=' +
- encodeURIComponent('https://www.chinahighlights.com/public/W220420009.doc');
+ `https://p9axztuwd7x8a7.mycht.cn/service-fileServer/DownloadPlanDoc?GRI_SN=${reservationId}&VEI_SN=${login.travelAgencyId}FileType=2`;
+
+ const reservationPreviewUrl = officeWebViewerUrl + encodeURIComponent(reservationUrl);
+ const nameCardPreviewUrl = officeWebViewerUrl + encodeURIComponent(nameCardUrl);
const showConfirmModal = (confirm) => {
setIsModalOpen(true);
@@ -123,10 +125,10 @@ function Detail() {
-
+
-
+