Browse Source

开发环境提示

natasha 1 day ago
parent
commit
442ae36695
2 changed files with 20 additions and 5 deletions
  1. 5 5
      src/views/bookShelf/bookPeruseItem.vue
  2. 15 0
      src/views/bookStore/index.vue

+ 5 - 5
src/views/bookShelf/bookPeruseItem.vue

@@ -71,19 +71,19 @@
                     <p class="describe">{{data.describe.describe}}</p>
                 </div> -->
           <div class="info-box">
-            <div class="info-item">
+            <div class="info-item" style="width: 55%">
               <label>机构</label>
               <span>中报二十一世纪(北京)传媒科技有限公司</span>
             </div>
-            <div class="info-item">
+            <div class="info-item" style="width: 45%">
               <label>学段</label>
               <span>{{ info.study_phase_name }}版</span>
             </div>
-            <div class="info-item">
-              <label>期数</label>
+            <div class="info-item" style="width: 55%">
+              <label>精读课堂期数</label>
               <span>{{ info.batch }} 期</span>
             </div>
-            <div class="info-item">
+            <div class="info-item" style="width: 45%">
               <label>有效期</label>
               <span>永久有效</span>
             </div>

+ 15 - 0
src/views/bookStore/index.vue

@@ -365,6 +365,21 @@ export default {
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {
+    // 如果是开发环境 提示正式环境地址
+    if (window.location.hostname === "21st.helxsoft.cn") {
+      // if (!window.sessionStorage.getItem("21stTips")) {
+      this.$confirm(
+        "此网址为开发环境系统,正确网址为:https://read.21stcentury.com.cn/",
+        "提示",
+        {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        }
+      ).then(({}) => {});
+      // window.sessionStorage.setItem("21stTips", "1");
+      // }
+    }
     this.getLBCourseList();
     this.getIssueList();
     this.getHuakanList();