bd0716 3 年之前
父節點
當前提交
8d3c71a936
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      config/index.js
  2. 3 3
      src/view/rai_pj/raiReportDtl.vue

+ 2 - 2
config/index.js

@@ -60,10 +60,10 @@ module.exports = {
 
   build: {
     // Template for index.html
-    index: path.resolve(__dirname, '../dist/index.html'),
+    index: path.resolve(__dirname, '../raiwechat_link_h5/index.html'),
 
     // Paths
-    assetsRoot: path.resolve(__dirname, '../dist'),
+    assetsRoot: path.resolve(__dirname, '../raiwechat_link_h5'),
     assetsSubDirectory: 'static',
     assetsPublicPath: './',
     // productionSourceMap: true,

+ 3 - 3
src/view/rai_pj/raiReportDtl.vue

@@ -280,7 +280,7 @@ export default {
               //有访问权限
               this.reportInfo = res.Data.Detail;
               this.fileLink = res.Data.Detail.FileLink;
-              if(this.reportInfo.IsBelongSummary){
+              if(this.reportInfo.IsResearch){
                 this.waterMark(res.Data.Mobile)
               }
               $(document).on("click", "#report-content img", function(event) {
@@ -308,7 +308,7 @@ export default {
               //有访问权限
               this.reportInfo = res.Data.Detail;
               this.fileLink = res.Data.Detail.FileLink;
-               if(this.reportInfo.IsBelongSummary){
+               if(this.reportInfo.IsResearch){
                 this.waterMark(res.Data.Mobile)
               }
               $(document).on("click", "#report-content img", function(event) {
@@ -403,7 +403,7 @@ export default {
       });
     },
     waterMark(key) {
-      var text = key;
+      var text = key ||'';
       var shuiyinDiv = document.createElement("div");
       var style = shuiyinDiv.style;
       style.position = "fixed";