Kaynağa Gözat

ciyun弹窗

natasha 1 yıl önce
ebeveyn
işleme
22dc07ec0e

+ 15 - 6
public/ciyun/ciyunindex.html

@@ -140,9 +140,9 @@
 </head>
 
 <body>
-    <div class="wrap">
+    <div class="wraps">
 
-        <div class="content">
+        <div class="contents">
             <div class="content-inner" style="padding: 0;">
                 <div class="cloudDiv">
                     <!-- <div class="cloud-copyright">Copyright © Jason Davies</div> -->
@@ -367,6 +367,14 @@
         var searchType = null;
         var old_searchType = null
         var W_stopWordStatus = null
+        var prefix = 'HM21St_User_Token='
+        var start = document.cookie.indexOf(prefix)
+        var end = document.cookie.indexOf(";", start + prefix.length)
+        if (end == -1) {
+            end = document.cookie.length;
+        }
+        var AccessToken = JSON.parse(unescape(document.cookie.substring(start + prefix.length, end))).access_token
+
         arr.forEach((item) => {
             if (item.split("=")[0] == "articleId") {
                 articleId = item.split("=")[1];
@@ -376,7 +384,8 @@
                 old_searchType = item.split("=")[1];
             }
         });
-        // 如果是词汇  默认选中词
+        console.log(AccessToken)
+            // 如果是词汇  默认选中词
         if (old_searchType == 2) {
             $(".danwei div").removeClass("radio-active");
             $(".danwei").find("div").eq(1).addClass("radio-active")
@@ -412,7 +421,7 @@
                 stopWordStatus: W_stopWordStatus,
             }
             $.ajax({
-                url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud",
+                url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud?AccessToken=" + AccessToken,
                 // url: "/i21st-newspaper-management-test/api/article/detail/wordCloud",
                 data: JSON.stringify(data),
                 contentType: "application/json",
@@ -525,7 +534,7 @@
 
         function initStopWords() {
             $.ajax({
-                url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud_stopWordList",
+                url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud_stopWordList?AccessToken=" + AccessToken,
                 // url: "/i21st-newspaper-management-test/api/user/stopVocab/get",
                 data: JSON.stringify({}),
                 contentType: "application/json;charset=UTF-8",
@@ -807,7 +816,7 @@
         function updatawordData() {
             let userStopVocab = JSON.parse(JSON.stringify(oldstopWordList));
             $.ajax({
-                url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud_stopWordSave",
+                url: window.location.href.substring(0, window.location.href.indexOf('/#/')) + "/PaperServer/Client/Article/CalcArtWordCloud_stopWordSave?AccessToken=" + AccessToken,
                 // url: "/i21st-newspaper-management-test/api/user/stopVocab/update",
                 data: JSON.stringify({
                     tenantId: "",

+ 11 - 8
src/views/bookShelf/articleDetail.vue

@@ -162,10 +162,10 @@
         :show-close="true"
         :title="articleInfo.art_corpus_data.artTitle"
         :close-on-click-modal="false"
-        width="968px"
+        width="1182px"
         class="ciyun-dialog"
         v-if="ciyunShow">
-        <iframe width="100%" height="719px" border="none" :src="'./ciyun/ciyunindex.html?articleId='+articleId"></iframe>
+        <iframe width="100%" height="834px" border="none" :src="'./ciyun/ciyunindex.html?partitionKey=1&searchType=2&articleId='+articleId"></iframe>
     </el-dialog>
   </div>
 </template>
@@ -968,13 +968,13 @@ export default {
         // }
         // getLogin(MethodName, data)
         // .then((res) => {
-        //     // this.ciyunShow = true
+            this.ciyunShow = true
         //     window.localStorage.setItem('ciyunData', JSON.stringify(res.data))
-            window.open(
-            "./ciyun/ciyunindex.html?partitionKey=1&searchType=2&articleId=" +
-                this.articleId,
-            "_blank"
-            );
+            // window.open(
+            // "./ciyun/ciyunindex.html?partitionKey=1&searchType=2&articleId=" +
+            //     this.articleId,
+            // "_blank"
+            // );
         // })
         // .catch(() => {
         // }); 
@@ -1652,5 +1652,8 @@ export default {
     iframe{
         border: none;
     }
+    .el-dialog__body{
+        padding: 0;
+    }
 }
 </style>

+ 1 - 1
src/views/bookStore/Subscribe.vue

@@ -538,7 +538,7 @@ export default {
         this.loading = true
         let MethodName = '/ShopServer/Client/ReservationQuery/ComputeReservationSettlementPrice_Issue'
         let data = {
-            goods_study_phase: this.studyType,
+            study_phase: this.studyType,
             period_count: this.orderTotalNumber!==-1?this.orderTotalNumber:this.customOrderNumberList.length,
             is_custom_select_issue_no: this.orderTotalNumber!==-1?'false':'true',
             issue_no_list:this.customOrderNumberList