From 49f6412aefc2fc62d519d94131fc003a9e1dda93 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 03 六月 2025 20:01:13 +0800
Subject: [PATCH] 修改bug
---
ruoyi-ui/src/views/qrcode/pdfShow.vue | 7 +--
ruoyi-ui/src/views/qrcode/pdfShow1.vue | 59 +++++++++++++++++++++++++++++
2 files changed, 62 insertions(+), 4 deletions(-)
diff --git a/ruoyi-ui/src/views/qrcode/pdfShow.vue b/ruoyi-ui/src/views/qrcode/pdfShow.vue
index 496945d..c3014b6 100644
--- a/ruoyi-ui/src/views/qrcode/pdfShow.vue
+++ b/ruoyi-ui/src/views/qrcode/pdfShow.vue
@@ -88,11 +88,10 @@
}
},
handleDownload(url) {
-alert(90)
+
if (this.is_weixin()) {
- alert(123)
- //this.msk = true
- window.location.href = "www.bendudu.com"
+ this.msk = true
+ //window.location.href = "www.bendudu.com"
}
else{
this.msk = false;
diff --git a/ruoyi-ui/src/views/qrcode/pdfShow1.vue b/ruoyi-ui/src/views/qrcode/pdfShow1.vue
new file mode 100644
index 0000000..e569694
--- /dev/null
+++ b/ruoyi-ui/src/views/qrcode/pdfShow1.vue
@@ -0,0 +1,59 @@
+<template>
+ <div>
+ oooo
+ <p style="text-align: center;display: none;" >
+ <a id="da" href="https://www.bendudu.com/prod-api/common/downLoadFile?path=/profile/upload/2025/05/06/1_20250506222138A002.txt">
+ <br/><font size="5">鐐瑰嚮涓嬭浇</font>
+ </a>
+ </p>
+ </div>
+
+
+</template>
+
+<script>
+ created() {
+ // var isWeixin = is_weixin();
+ // var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
+ // var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
+ // if (isWeixin) {
+ // alert(2334)
+
+ // } else {
+ // document.getElementById('da').click();
+ // }
+ },
+ methods:{
+ is_weixin() {
+ var ua = navigator.userAgent.toLowerCase();
+ if (ua.match(/MicroMessenger/i) == "micromessenger") {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ loadHtml() {
+ var div = document.createElement('div');
+ div.id = 'weixin-tip';
+ div.innerHTML = '<p><img src="live_weixin.png"/></p>'; //閬僵鍥剧墖
+ document.body.appendChild(div);
+ }
+
+ loadStyleText(cssText) {
+ var style = document.createElement('style');
+ style.rel = 'stylesheet';
+ style.type = 'text/css';
+ try {
+ style.appendChild(document.createTextNode(cssText));
+ } catch (e) {
+ style.styleSheet.cssText = cssText; //ie9浠ヤ笅
+ }
+ var head = document.getElementsByTagName("head")[0]; //head鏍囩涔嬮棿鍔犱笂style鏍峰紡
+ head.appendChild(style);
+ }
+
+ }
+
+
+<style>
+</style>
\ No newline at end of file
--
Gitblit v1.9.1