瀏覽代碼

no message

陈鹏铭 9 月之前
父節點
當前提交
5fcebdc1d9
共有 6 個文件被更改,包括 231 次插入146 次删除
  1. 7 6
      js_sdk/http.js
  2. 3 3
      js_sdk/request/requestConfig.js
  3. 125 115
      manifest.json
  4. 8 0
      pages.json
  5. 29 22
      pages/index/index.vue
  6. 59 0
      pages/watermark/index.vue

+ 7 - 6
js_sdk/http.js

@@ -30,7 +30,8 @@ export function loginByWeixin2(code) {
         '/wx/auth/login_by_weixin2',
         code, {}
     )
-}export function switchCommonUser(code) {
+}
+export function switchCommonUser(code) {
 
     return $http.post(
         '/wx/auth/switchCommonUser',
@@ -161,7 +162,7 @@ export function repairList(data) {
         '/wx/repair/list',
         data, {}
     )
-}export function repairHandleList(data) {
+} export function repairHandleList(data) {
     return $http.post(
         '/wx/repair/handleList',
         data, {}
@@ -877,7 +878,7 @@ export function policyGetById(data) {
         data, {}
     )
 }
- // 经法填报列表
+// 经法填报列表
 export function fillControllerList(data) {
     return $http.post(
         '/wx/fillController/list',
@@ -885,7 +886,7 @@ export function fillControllerList(data) {
     )
 }
 
- // 经法填报详情
+// 经法填报详情
 export function getByStag(data) {
     return $http.post(
         '/wx/fillController/getByStag',
@@ -893,14 +894,14 @@ export function getByStag(data) {
     )
 }
 
- // 经法填报详情保存/提交
+// 经法填报详情保存/提交
 export function fillControllerEditSave(data) {
     return $http.post(
         '/wx/fillController/editSave',
         data, {}
     )
 }
- // 园区通知详情
+// 园区通知详情
 export function getParkNoticeById(data) {
     return $http.post(
         '/wx/noticePark/getById',

+ 3 - 3
js_sdk/request/requestConfig.js

@@ -36,7 +36,7 @@ let $http = new request({
 let requestNum = 0;
 //请求开始拦截器
 $http.requestStart = function (options) {
-     console.log(`$http.requestSta`,options)
+    // console.log(`$http.requestSta`, options)
     for (const key in options.data) {
         if (options.data[key] == null) {
             delete options.data[key]
@@ -55,7 +55,7 @@ $http.requestStart = function (options) {
     requestNum += 1;
     //请求前加入token
     options.headers['Authorization'] = 'Bearer ' + uni.getStorageSync('laocui_user_token');
-    console.log(uni.getStorageSync('USERINFO'))
+    // console.log(uni.getStorageSync('USERINFO'))
     options.headers['requestHanderAuth'] = uni.getStorageSync('USERINFO') ? JSON.parse(uni.getStorageSync('USERINFO')).requestHanderAuth : '';
 
     // console.log("请求开始前", options);
@@ -140,7 +140,7 @@ $http.dataFactory = function (options, resolve) {
         callback.success = true;
     }
     uni.stopPullDownRefresh();
-    console.log('callback',callback)
+    console.log('callback', callback)
     return callback;
 };
 export default $http;

+ 125 - 115
manifest.json

@@ -1,162 +1,172 @@
 {
-    "name" : "产品化管理端",
-    "appid" : "__UNI__E97C301",
-    "description" : "应用描述",
-    "versionName" : "1.0.0",
-    "versionCode" : "100",
-    "transformPx" : false,
-    "app-plus" : {
-        "usingComponents" : true,
-        "nvueCompiler" : "uni-app",
-        "nvueStyleCompiler" : "uni-app",
-        "compilerVersion" : 3,
-        "nvueLaunchMode" : "fast",
-        "splashscreen" : {
-            "alwaysShowBeforeRender" : true,
-            "waiting" : true,
-            "autoclose" : true,
-            "delay" : 0
+    "name": "消防与市场主体",
+    "appid": "__UNI__E97C301",
+    "description": "应用描述",
+    "versionName": "1.0.0",
+    "versionCode": "100",
+    "transformPx": false,
+    "app-plus": {
+        "usingComponents": true,
+        "nvueCompiler": "uni-app",
+        "nvueStyleCompiler": "uni-app",
+        "compilerVersion": 3,
+        "nvueLaunchMode": "fast",
+        "splashscreen": {
+            "alwaysShowBeforeRender": true,
+            "waiting": true,
+            "autoclose": true,
+            "delay": 0
         },
-        "modules" : {
-            "OAuth" : {},
-            "Payment" : {},
-            "Push" : {},
-            "Share" : {},
-            "Speech" : {},
-            "VideoPlayer" : {}
+        "modules": {
+            "OAuth": {},
+            "Payment": {},
+            "Push": {},
+            "Share": {},
+            "Speech": {},
+            "VideoPlayer": {}
         },
-        "distribute" : {
-            "android" : {
-                "permissions" : []
+        "distribute": {
+            "android": {
+                "permissions": []
             },
-            "ios" : {
-                "UIBackgroundModes" : [ "audio" ],
-                "urlschemewhitelist" : [ "baidumap", "iosamap" ]
+            "ios": {
+                "UIBackgroundModes": [
+                    "audio"
+                ],
+                "urlschemewhitelist": [
+                    "baidumap",
+                    "iosamap"
+                ]
             },
-            "sdkConfigs" : {
-                "speech" : {
-                    "ifly" : {}
+            "sdkConfigs": {
+                "speech": {
+                    "ifly": {}
                 }
             },
-            "orientation" : [ "portrait-primary" ]
+            "orientation": [
+                "portrait-primary"
+            ]
         },
-        "uniStatistics" : {
-            "enable" : false
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "quickapp" : {},
-    "quickapp-native" : {
-        "icon" : "/static/logo.png",
-        "package" : "com.example.demo",
-        "features" : [
+    "quickapp": {},
+    "quickapp-native": {
+        "icon": "/static/logo.png",
+        "package": "com.example.demo",
+        "features": [
             {
-                "name" : "system.clipboard"
+                "name": "system.clipboard"
             }
         ]
     },
-    "quickapp-webview" : {
-        "icon" : "/static/logo.png",
-        "package" : "com.example.demo",
-        "minPlatformVersion" : 1070,
-        "versionName" : "1.0.0",
-        "versionCode" : 100
+    "quickapp-webview": {
+        "icon": "/static/logo.png",
+        "package": "com.example.demo",
+        "minPlatformVersion": 1070,
+        "versionName": "1.0.0",
+        "versionCode": 100
     },
-    "mp-weixin" : {
-        "libVersion" : "latest",
-        "appid" : "wx15404cced62d7b37",
-        "optimization" : {
-            "subPackages" : true
+    "mp-weixin": {
+        "libVersion": "latest",
+        "appid": "wx15404cced62d7b37",
+        "optimization": {
+            "subPackages": true
         },
-        "setting" : {
-            "urlCheck" : true,
-            "es6" : true,
-            "postcss" : false,
-            "minified" : true
+        "setting": {
+            "urlCheck": true,
+            "es6": true,
+            "postcss": false,
+            "minified": true
         },
-        "usingComponents" : true,
-        "permission" : {
-            "scope.userLocation" : {
-                "desc" : "查询用户地理位置"
+        "usingComponents": true,
+        "permission": {
+            "scope.userLocation": {
+                "desc": "查询用户地理位置"
             }
         },
-        "requiredPrivateInfos" : [ "getLocation", "chooseLocation" ],
-        "uniStatistics" : {
-            "enable" : true
+        "requiredPrivateInfos": [
+            "getLocation",
+            "chooseLocation"
+        ],
+        "uniStatistics": {
+            "enable": true
         }
     },
-    "mp-alipay" : {
-        "usingComponents" : true,
-        "uniStatistics" : {
-            "enable" : false
+    "mp-alipay": {
+        "usingComponents": true,
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "mp-baidu" : {
-        "usingComponents" : true,
-        "uniStatistics" : {
-            "enable" : false
+    "mp-baidu": {
+        "usingComponents": true,
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "mp-toutiao" : {
-        "usingComponents" : true,
-        "uniStatistics" : {
-            "enable" : false
+    "mp-toutiao": {
+        "usingComponents": true,
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "mp-jd" : {
-        "usingComponents" : true,
-        "uniStatistics" : {
-            "enable" : false
+    "mp-jd": {
+        "usingComponents": true,
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "h5" : {
-        "template" : "template.h5.html",
-        "router" : {
-            "mode" : "history",
-            "base" : ""
+    "h5": {
+        "template": "template.h5.html",
+        "router": {
+            "mode": "history",
+            "base": ""
         },
-        "sdkConfigs" : {
-            "maps" : {
-                "qqmap" : {
-                    "key" : "TKUBZ-D24AF-GJ4JY-JDVM2-IBYKK-KEBCU"
+        "sdkConfigs": {
+            "maps": {
+                "qqmap": {
+                    "key": "TKUBZ-D24AF-GJ4JY-JDVM2-IBYKK-KEBCU"
                 }
             }
         },
-        "async" : {
-            "timeout" : 20000
+        "async": {
+            "timeout": 20000
         },
-        "uniStatistics" : {
-            "enable" : false
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "vueVersion" : "2",
-    "mp-kuaishou" : {
-        "uniStatistics" : {
-            "enable" : false
+    "vueVersion": "2",
+    "mp-kuaishou": {
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "mp-lark" : {
-        "uniStatistics" : {
-            "enable" : false
+    "mp-lark": {
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "mp-qq" : {
-        "uniStatistics" : {
-            "enable" : false
+    "mp-qq": {
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "quickapp-webview-huawei" : {
-        "uniStatistics" : {
-            "enable" : false
+    "quickapp-webview-huawei": {
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "quickapp-webview-union" : {
-        "uniStatistics" : {
-            "enable" : false
+    "quickapp-webview-union": {
+        "uniStatistics": {
+            "enable": false
         }
     },
-    "uniStatistics" : {
-        "version" : "2",
-        "enable" : false
+    "uniStatistics": {
+        "version": "2",
+        "enable": false
     },
-    "locale" : "zh-Hans"
-}
+    "locale": "zh-Hans"
+}

+ 8 - 0
pages.json

@@ -157,6 +157,14 @@
             "van-circle": "/wxcomponents/weapp/dist/circle/index",
             "van-grid": "/wxcomponents/weapp/dist/grid/index",
             "van-calendar": "/wxcomponents/weapp/dist/calendar/index"
+        },
+        "watermark": {
+            "text": "这是水印",
+            "alpha": 0.3,
+            "fontSize": 30,
+            "color": "#000000",
+            "rotate": 30,
+            "zIndex": 1000
         }
     },
     "tabBar": {

+ 29 - 22
pages/index/index.vue

@@ -1,15 +1,17 @@
 <template>
   <view>
+    <water-rmark :info="`ww0335`" />
     <div class="managementBody" v-show="userType == 2">
       <image
         src="https://www.idea-co-sf.com/gardenProduct/image/banner.png"
         class="banner"
       ></image>
       <div class="needBox">
-        <div class="needLeft"  @click="toMsgPage('/pages/subPackages/todo/index')">
-          <div
-            class="needLeftLeft"
-          >
+        <div
+          class="needLeft"
+          @click="toMsgPage('/pages/subPackages/todo/index')"
+        >
+          <div class="needLeftLeft">
             <span style="color: #18172a; font-size: 4.5vw; margin-bottom: 1vw"
               >我的待办</span
             >
@@ -71,11 +73,16 @@
 </template>
 <script>
 // import {demo} from "@/js_sdk/http"
-import { getUserPower, getUserLocalStorageInfo, getReadSizeByTypes } from "@/js_sdk/http";
+import {
+  getUserPower,
+  getUserLocalStorageInfo,
+  getReadSizeByTypes,
+} from "@/js_sdk/http";
+import waterRmark from "@/pages/watermark";
 import EnterpriseSide from "./components/enterpriseSide.vue";
-import {getHandleSizeTypes} from "../../js_sdk/http";
+import { getHandleSizeTypes } from "../../js_sdk/http";
 export default {
-  components: { EnterpriseSide },
+  components: { EnterpriseSide, waterRmark },
   data() {
     return {
       readSize: 0,
@@ -217,8 +224,8 @@ export default {
   },
   onShow() {
     this.getUserPower();
-    this.getReadSize()
-    this.getHandleSize()
+    this.getReadSize();
+    this.getHandleSize();
   },
   onLoad(e) {
     // uni.$on("userType", (userType) => {
@@ -228,23 +235,23 @@ export default {
     // });
   },
   methods: {
-    getReadSize(){
+    getReadSize() {
       const data = {
         userId: getUserLocalStorageInfo().userId,
-        types: '1'
-      }
-      getReadSizeByTypes(data).then(res=>{
-        this.readSize = res
-      })
+        types: "1",
+      };
+      getReadSizeByTypes(data).then((res) => {
+        this.readSize = res;
+      });
     },
-    getHandleSize(){
+    getHandleSize() {
       const data = {
         userId: getUserLocalStorageInfo().userId,
-        types: '0,1,8,9,10,11'
-      }
-      getHandleSizeTypes(data).then(res=>{
-        this.handleSize = res
-      })
+        types: "0,1,8,9,10,11",
+      };
+      getHandleSizeTypes(data).then((res) => {
+        this.handleSize = res;
+      });
     },
     toMsgPage(e) {
       uni.navigateTo({
@@ -255,7 +262,7 @@ export default {
     // getUserLocalStorageInfo
     async getUserPower() {
       let that = this;
-      console.log('getUserLocalStorageInfo',getUserLocalStorageInfo());
+      console.log("getUserLocalStorageInfo", getUserLocalStorageInfo());
       that.userType = getUserLocalStorageInfo().userType;
       if (that.userType == 3) {
         uni.showModal({

+ 59 - 0
pages/watermark/index.vue

@@ -0,0 +1,59 @@
+<template>
+  <view class="make">
+    <view class="list">
+      <view class="item" v-for="i in 500">
+        <text>{{ info }}</text>
+      </view>
+    </view>
+    <slot></slot>
+  </view>
+</template>
+
+<script>
+export default {
+  name: "watermark",
+  props: {
+    info: {
+      type: String,
+      default: "全局水印",
+    },
+  },
+  data() {
+    return {};
+  },
+};
+</script>
+
+<style lang="scss" scoped>
+.make {
+  position: fixed;
+  width: 100%;
+  height: 100%;
+  top: 0;
+  left: 0;
+  z-index: 9999;
+  background: rgba(0, 0, 0, 0);
+  pointer-events: none;
+
+  .list {
+    width: 500%;
+    height: 400%;
+    position: absolute;
+    top: -50%;
+    left: -50%;
+    transform: rotate(-45deg);
+    display: flex;
+    flex-wrap: wrap;
+    justify-content: space-between;
+    pointer-events: none;
+
+    .item {
+      font-size: 28px;
+      color: rgba(220, 220, 220, 0.3);
+      font-weight: bold;
+      padding: 30rpx;
+      pointer-events: none;
+    }
+  }
+}
+</style>