todo
This commit is contained in:
50
src/App.vue
50
src/App.vue
@@ -13,9 +13,9 @@ export default {
|
||||
name: "App",
|
||||
created() {
|
||||
localStronge.setServiceip({
|
||||
// ip: "127.0.0.1",
|
||||
ip: "127.0.0.1",
|
||||
// ip: "192.168.1.115",
|
||||
ip: "192.168.101.121",
|
||||
// ip: "192.168.101.121",
|
||||
host: "9081",
|
||||
});
|
||||
// 127.0.0.1 8082
|
||||
@@ -32,24 +32,24 @@ export default {
|
||||
document.head.appendChild(script);
|
||||
});
|
||||
},
|
||||
initWaterAPI(){
|
||||
this.loadScript('http://47.112.247.192:8001/caserver/wm-ys-2024.js?v='+new Date().getTime())
|
||||
initWaterAPI() {
|
||||
this.loadScript('http://47.112.247.192:8001/caserver/wm-ys-2024.js?v=' + new Date().getTime())
|
||||
.then(() => {
|
||||
// 文件加载成功后执行的逻辑
|
||||
console.log('JavaScript 文件加载成功');
|
||||
}).then(()=>{
|
||||
let params={
|
||||
URL:"http://47.112.247.192:8001/caserver/",
|
||||
opened:1, //水印开关:0关闭 1开启
|
||||
companyId:"TS002", //企业编号
|
||||
userId:"001", //员工工号
|
||||
alpha:0.6, //水印强度
|
||||
anchorAlpha:0.3 //定位点强度
|
||||
}).then(() => {
|
||||
let params = {
|
||||
URL: "http://47.112.247.192:8001/caserver/",
|
||||
opened: 1, //水印开关:0关闭 1开启
|
||||
companyId: "TS002", //企业编号
|
||||
userId: "001", //员工工号
|
||||
alpha: 0.6, //水印强度
|
||||
anchorAlpha: 0.3 //定位点强度
|
||||
};
|
||||
setTimeout(function(){
|
||||
setTimeout(function () {
|
||||
watermarkY(params)
|
||||
}
|
||||
,1000)
|
||||
, 1000)
|
||||
})
|
||||
.catch(() => {
|
||||
// 文件加载失败的处理逻辑
|
||||
@@ -64,17 +64,17 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
#mask_bgw{
|
||||
position:fixed;
|
||||
_position:absolute;
|
||||
top:2px;
|
||||
left:2px;
|
||||
z-index:99999997;
|
||||
background:url("~@/assets/img/U01_1.png");
|
||||
background-size:150px 150px;
|
||||
opacity:1;
|
||||
pointer-events : none;
|
||||
#mask_bgw {
|
||||
position: fixed;
|
||||
_position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
z-index: 99999997;
|
||||
background: url("~@/assets/img/U01_1.png");
|
||||
background-size: 150px 150px;
|
||||
opacity: 1;
|
||||
pointer-events: none;
|
||||
width: 100%;
|
||||
height:100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user