Selaa lähdekoodia

添加测试页面

ymm 3 vuotta sitten
vanhempi
commit
e94add45f9
2 muutettua tiedostoa jossa 487 lisäystä ja 456 poistoa
  1. 7 456
      microserviceUserH5/vcloud/actFissionShare.html
  2. 480 0
      microserviceUserH5/vcloud/test.html

+ 7 - 456
microserviceUserH5/vcloud/actFissionShare.html

@@ -6,474 +6,25 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
     <meta name="description" content="分享攻略 ">
     <link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
-    <link rel="stylesheet" href="../static/css/index.css?v=1.0.0.3">
-    <link rel="stylesheet" href="../static/css/vant.css" />
-    <script src="../static/js/vender/vue/vue.min.js"></script>
-    <script src="../static/js/vender/vue/vant.min.js"></script>
+    <!-- <link rel="stylesheet" href="../static/css/index.css?v=1.0.0.3">
+    <link rel="stylesheet" href="../static/css/vant.css" /> -->
     <script src="../static/js/vender/config.js"></script>
-    <script src="../static/js/vender/uuid.js"></script>
-    <script src="../static/js/vender/vue/axios.min.js"></script>
-    <script src="../static/js/vender/vue/config.js"></script>
-    <script src="../static/js/vender/vue/api.js"></script>
+ 
     <title>攻略分享 </title>
     <style>
-        [v-cloak] {display: none !important;}
-        .container {
-            display: flex;
-            height: 100vh;
-            padding: 0.2rem 0.3rem;
-            /* align-items: center;
-			justify-content: center; */
-        }
-
-        .top-banner {
-            width: 6.82rem;
-            height: 0.82rem;
-            background: url("../static/offImg/share-top.png") no-repeat;
-            background-size: 100% 100%;
-        }
-
-        .footer {
-            position: fixed;
-            bottom: 0.5rem;
-            padding: 0 0.3rem;
-            width: 100%;
-            left: 0;
-            display: flex;
-            justify-content: center;
-
-
-        }
-
-        .download-btn {
-            width: 6.9rem;
-            height: 1.3rem;
-            background: url('../static/offImg/btn-down.png') no-repeat scroll top center #3B7FFF;
-            background-size: 100% 100%;
-            box-shadow: 0rem 0.06rem 0.4rem 0rem rgba(59, 127, 255, 0.6);
-            border-radius: 0.2rem;
-            display: flex;
-            justify-content: space-between;
-            align-items: center;
-            padding: 0 0.4rem;
-
-        }
-
-        .button-download {
-            width: 2.5rem;
-            height: 0.8rem;
-            line-height: 0.8rem;
-            background: linear-gradient(360deg, #FF8300 0%, #FEC000 100%);
-            border-radius: 0.2rem;
-            text-align: center;
-            font-size: 0.3rem;
-            font-family: PingFangSC-Medium, PingFang SC;
-            color: #FFFFFF;
-        }
-
-
-        .download-btn .left-nav p:first-of-type {
-            font-size: 0.24rem;
-            font-family: PingFangSC-Regular, PingFang SC;
-            font-weight: 400;
-            color: rgba(255, 255, 255, 0.7);
-            margin-bottom: 0.02rem;
-        }
-
-        .download-btn .left-nav p+p {
-            font-size: 0.28rem;
-            font-family: PingFangSC-Regular, PingFang SC;
-            font-weight: 400;
-            color: rgba(255, 255, 255, 0.9);
-        }
-
-        .hideContainer {
-            width: 100%;
-            display: flex;
-            justify-content: center;
-            align-items: center;
-            height: calc(100vh - 1.36rem);
-            text-align: center;
-
-        }
-
-        .hideContainer img {
-            width: 2.8rem;
-            height: 2.8rem;
-        }
-
-        .hideContainer p {
-            margin-top: 0.3rem;
-            font-family: PingFangSC-Regular, PingFang SC;
-            color: #999999;
-            font-size: 0.28rem;
-        }
-
-        .top-content {
-            width: 6.9rem;
-            padding-bottom: 0.3rem;
-
-        }
-
-        .top-content .title {
-            font-size: 0.44rem;
-            font-family: PingFangSC-Medium, PingFang SC;
-            color: #000000;
-            letter-spacing: 0.01rem;
-            margin-bottom: 0.2rem;
-        }
-
-        .topic-info {
-            padding-bottom: 1.6rem;
-
-        }
-
-        .topic-info img {
-            max-width: 100%;
-            width: auto;
-            height: auto;
-            border-radius: 0.2rem;
-            margin-bottom: 0.2rem;
-            margin-top: 0.2rem;
-        }
-
-        .topic-info p {
-            font-size: 0.36rem;
-            font-family: PingFangSC-Regular, PingFang SC;
-            font-weight: 400;
-            color: #333333;
-            letter-spacing: 0.02rem;
-
-        }
-
-        .van-notice-bar {
-            height: 100%;
-            background: none;
-            width: 100%;
-        }
-
-        .notice-swipe {
-            height: 0.8rem;
-            line-height: 0.8rem;
-        }
-
-        .van-swipe-item {
-            display: flex;
-            align-items: center;
-        }
-
-        .van-swipe-item img {
-            width: 0.6rem;
-            margin-left: 0.3rem;
-            border-radius: 50%;
-            margin-right: 0.1rem;
-            height: 0.6rem;
-        }
-
-        .van-swipe-item p {
-            font-size: 0.28rem;
-            font-family: PingFangSC-Regular, PingFang SC;
-            color: #FFFFFF;
-        }
-
-        .van-swipe-item p:first-of-type {
-            max-width: 2.4rem;
-            display: block;
-            overflow: hidden;
-            word-break: keep-all;
-            white-space: nowrap;
-            text-overflow: ellipsis;
-        }
-
-        .topic-info img {
-            max-width: 100%;
-            width: auto;
-            height: auto;
-            border-radius: 0.2rem;
-            margin-bottom: 0.2rem;
-            margin-top: 0.2rem;
-        }
-
-        .topic-info p {
-            font-size: 0.3rem;
-            font-family: PingFangSC-Regular, PingFang SC;
-            font-weight: 400;
-            color: #333333;
-            letter-spacing: 0.02rem;
-
-        }
-
-        .van-dialog__footer {
-            display: none;
-        }
-
-        .top-banner {
-            margin: 0 auto;
-        }
-
-        h1,
-        h2,
-        h3,
-        h4,
-        h5 {
-            font-size: 0.32rem;
-            font-family: PingFangSC-Semibold, PingFang SC;
-            font-weight: 600;
-            color: #333333;
-            /* margin-bottom: 0.12rem;
-			margin-top: 0.12rem; */
-        }
-
-        .hide {
-            display: none;
-        }
+      
     </style>
 </head>
 
 <body>
  
-    <div id="app" v-cloak class="container ">
-        <div v-show='isshow&&topic!=null' style="margin: 0 auto;">
-
-            <div class="top-banner">
-                <van-notice-bar :scrollable="false">
-                    <van-swipe vertical class="notice-swipe" :autoplay="2000" :show-indicators="false">
-                        <van-swipe-item v-for="(item,index) in marqueeList">
-                            <img :src="standarImg(item.headImgUrl)" :onerror="defaultImg" alt="">
-                            <p>{{item.surfaceName}}</p>
-                            <p>已获得星动云手机套餐</p>
-                        </van-swipe-item>
-
-                    </van-swipe>
-                </van-notice-bar>
-            </div>
-            <div class="top-content">
-                <div v-html="topic" class="topic-info"></div>
-
-            </div>
-            <div class="footer">
-                <div class="download-btn">
-                    <div class="left-nav">
-                        <p>激活码:</p>
-                        <p>AS4*********SD3</p>
-                    </div>
-                    <div class="button-download copybtn" @click='createCopy()'>点击复制并下载</div>
-                </div>
-            </div>
-        </div>
-        <div v-show='!isshow' class="hideContainer">
-            <div>
-                <img src="../static/offImg/no-data.png" alt="" />
-                <p>{{msg}},敬请期待</p>
-            </div>
-        </div>
-    </div>
+   
     <!-- <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> -->
 
 
     <script type="text/javascript">
-        // var meta_description = document.getElementsByTagName('meta')['description']
-        // document.title = '更新标题'
-        // meta_description.content = '更新描述'; // Android iOS
-
-        var u = navigator.userAgent,
-            app = navigator.appVersion;
-        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
-        var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
-
-        new Vue({
-            el: '#app',
-            data: {
-                isshow: true,
-                id: GetRequest().id ? GetRequest().id : 404,
-                username: GetRequest().username ? GetRequest().username : 'Cqowt16032622',
-                topic: null,
-                defaultImg: 'this.src="' + "../static/offImg/tou.png" + '"',
-                marqueeList: [],
-                code: '',
-                msg: '活动已下架',
-                tagId: 0,
-                uuid: '',
-
-            },
-            created() {
-                // window.location.href = 'investigate.html'
-            },
-            mounted() {
-                //  document.querySelector('#app').classList.remove('hide');
-                this.getActDetail();
-                this.getMarquee(); //跑马灯
-                if (localStorage.getItem("uuid")) {
-                    this.uuid = localStorage.getItem("uuid");
-                } else {
-                    this.uuid = UUID.generate();
-                    localStorage.setItem("uuid", this.uuid);
-                }
-                console.log(this.uuid);
-            },
-            methods: {
-
-                //查看活动是否下架
-                getActDetail() { //获取活动状态
-                    getActDetail().then(res => {
-                        this.$toast.clear();
-                        if (res.status === 0) {
-                            if (res.data.actStatus == 1) {
-                                this.isshow = true;
-                                this.getStrategy();
-                            } else {
-                                this.isshow = false;
-                            }
-
-                        } else {
-                            this.$toast(res.msg);
-                        }
-                    })
-                },
-                getCheck() {
-                    getEvantCheck(this.id).then(res => {
-                        console.log(res)
-                    })
-                },
-                createCopy() {
-
-                    // this.$toast.loading({
-                    //     duration: 0,
-                    //     message: '加载中...',
-                    //     forbidClick: true,
-                    //     loadingType: 'spinner',
-                    // });
-                    systemBuriedPoint({
-                        pointName: 'dt_裂变_h5_复制激活码'
-                    }).then(res => {
-
-                    })
-                    var clipboard = new ClipboardJS('.copybtn')
-
-                    getActivationCode(this.username, this.tagId, this.uuid).then(res => {
-                        this.$toast.clear();
-                        if (res.status === 0) {
-                            //此处为点击的dom的类名
-                            this.code = res.data;
-                            console.log(this.code);
-
-                            try {
-                                if (isIOS) {
-                                    const input = document.createElement("input");
-                                    input.value = this.code;
-                                    document.body.appendChild(input);
-                                    input.select();
-                                    input.setSelectionRange(0, input.value.length);
-                                    document.execCommand('Copy');
-                                    document.body.removeChild(input);
-                                    this.$dialog.alert({
-                                        message: '复制成功'
-                                    });
-                                    setTimeout(() => {
-                                        this.$dialog.close();
-                                        this.download();
-                                    }, 2000)
-                                } else {
-                                    const input = document.createElement('textarea')
-                                    input.value = this.code;
-                                    document.body.appendChild(input)
-                                    input.select() // 选择对象
-                                    document.execCommand('Copy') // 执行浏览器复制命令
-                                    input.style.display = 'none'
-                                    input.remove()
-                                    // console.log(this.code);
-                                    this.$dialog.alert({
-                                        message: '复制成功'
-                                    });
-                                    setTimeout(() => {
-                                        this.$dialog.close();
-                                        this.download();
-                                    }, 2000)
-
-                                }
-
-                            } catch (err) {
-                                this.$dialog.alert({
-                                    message: '失败'
-                                });
-                                setTimeout(() => {
-                                    this.$dialog.close();
-                                }, 2000)
-                            }
-
-
-
-                        } else {
-                            this.$dialog.alert({
-                                message: res.msg
-                            });
-                            setTimeout(() => {
-                                this.$dialog.close();
-                            }, 2000)
-                        }
-
-                    })
-
-                },
-                download() {
-                    if (isAndroid) {
-                        window.location.href =
-                            'http://www.androidscloud.com//suanchou';
-                    } else if (isIOS) {
-                        window.location.href = 'https://www.pgyer.com/gemini6';
-                    }
-                },
-                standarImg(id) {
-                    return `${fileCenterApi}/file-center/fileOperate/getImage?id=${id}`;
-                },
-                getMarquee() {
-                    getMarquee().then(res => {
-                        if (res.status === 0) {
-                            this.marqueeList = res.data;
-                        } else {
-                            this.$toast(res.msg);
-                        }
-                    })
-                },
-                getStrategy() {
-                    this.$toast.loading({
-                        duration: 0,
-                        message: '加载中...',
-                        forbidClick: true,
-                        loadingType: 'spinner',
-                    });
-                    getStrategy().then(res => {
-                        this.$toast.clear();
-                        if (res.status == 0) {
-                            if (res.data) {
-                                this.isshow = true;
-                                this.topic = res.data.content;
-                                this.tagId = res.data.tagId;
-                                console.log(this.topic)
-                            } else {
-                                this.msg = res.msg;
-                                this.isshow = false;
-
-                            }
-
-                        }
-                        console.log(res)
-
-                    })
-                },
-                onCopy() {
-                    console.log(2323);
-                    this.$toast('复制成功');
-
-
-                },
-                onError() {
-                    this.$toast('复制失败');
-
-                },
-            }
-
-        })
+    let username= GetRequest().username ? GetRequest().username : 'Cqowt16032622'
+     window.location.href='./test.html?username='+username;
     </script>
 </body>
 

+ 480 - 0
microserviceUserH5/vcloud/test.html

@@ -0,0 +1,480 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
+    <meta name="description" content="分享攻略 ">
+    <link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
+    <link rel="stylesheet" href="../static/css/index.css?v=1.0.0.3">
+    <link rel="stylesheet" href="../static/css/vant.css" />
+    <script src="../static/js/vender/vue/vue.min.js"></script>
+    <script src="../static/js/vender/vue/vant.min.js"></script>
+    <script src="../static/js/vender/config.js"></script>
+    <script src="../static/js/vender/uuid.js"></script>
+    <script src="../static/js/vender/vue/axios.min.js"></script>
+    <script src="../static/js/vender/vue/config.js"></script>
+    <script src="../static/js/vender/vue/api.js"></script>
+    <title>攻略分享 </title>
+    <style>
+        [v-cloak] {display: none !important;}
+        .container {
+            display: flex;
+            height: 100vh;
+            padding: 0.2rem 0.3rem;
+            /* align-items: center;
+			justify-content: center; */
+        }
+
+        .top-banner {
+            width: 6.82rem;
+            height: 0.82rem;
+            background: url("../static/offImg/share-top.png") no-repeat;
+            background-size: 100% 100%;
+        }
+
+        .footer {
+            position: fixed;
+            bottom: 0.5rem;
+            padding: 0 0.3rem;
+            width: 100%;
+            left: 0;
+            display: flex;
+            justify-content: center;
+
+
+        }
+
+        .download-btn {
+            width: 6.9rem;
+            height: 1.3rem;
+            background: url('../static/offImg/btn-down.png') no-repeat scroll top center #3B7FFF;
+            background-size: 100% 100%;
+            box-shadow: 0rem 0.06rem 0.4rem 0rem rgba(59, 127, 255, 0.6);
+            border-radius: 0.2rem;
+            display: flex;
+            justify-content: space-between;
+            align-items: center;
+            padding: 0 0.4rem;
+
+        }
+
+        .button-download {
+            width: 2.5rem;
+            height: 0.8rem;
+            line-height: 0.8rem;
+            background: linear-gradient(360deg, #FF8300 0%, #FEC000 100%);
+            border-radius: 0.2rem;
+            text-align: center;
+            font-size: 0.3rem;
+            font-family: PingFangSC-Medium, PingFang SC;
+            color: #FFFFFF;
+        }
+
+
+        .download-btn .left-nav p:first-of-type {
+            font-size: 0.24rem;
+            font-family: PingFangSC-Regular, PingFang SC;
+            font-weight: 400;
+            color: rgba(255, 255, 255, 0.7);
+            margin-bottom: 0.02rem;
+        }
+
+        .download-btn .left-nav p+p {
+            font-size: 0.28rem;
+            font-family: PingFangSC-Regular, PingFang SC;
+            font-weight: 400;
+            color: rgba(255, 255, 255, 0.9);
+        }
+
+        .hideContainer {
+            width: 100%;
+            display: flex;
+            justify-content: center;
+            align-items: center;
+            height: calc(100vh - 1.36rem);
+            text-align: center;
+
+        }
+
+        .hideContainer img {
+            width: 2.8rem;
+            height: 2.8rem;
+        }
+
+        .hideContainer p {
+            margin-top: 0.3rem;
+            font-family: PingFangSC-Regular, PingFang SC;
+            color: #999999;
+            font-size: 0.28rem;
+        }
+
+        .top-content {
+            width: 6.9rem;
+            padding-bottom: 0.3rem;
+
+        }
+
+        .top-content .title {
+            font-size: 0.44rem;
+            font-family: PingFangSC-Medium, PingFang SC;
+            color: #000000;
+            letter-spacing: 0.01rem;
+            margin-bottom: 0.2rem;
+        }
+
+        .topic-info {
+            padding-bottom: 1.6rem;
+
+        }
+
+        .topic-info img {
+            max-width: 100%;
+            width: auto;
+            height: auto;
+            border-radius: 0.2rem;
+            margin-bottom: 0.2rem;
+            margin-top: 0.2rem;
+        }
+
+        .topic-info p {
+            font-size: 0.36rem;
+            font-family: PingFangSC-Regular, PingFang SC;
+            font-weight: 400;
+            color: #333333;
+            letter-spacing: 0.02rem;
+
+        }
+
+        .van-notice-bar {
+            height: 100%;
+            background: none;
+            width: 100%;
+        }
+
+        .notice-swipe {
+            height: 0.8rem;
+            line-height: 0.8rem;
+        }
+
+        .van-swipe-item {
+            display: flex;
+            align-items: center;
+        }
+
+        .van-swipe-item img {
+            width: 0.6rem;
+            margin-left: 0.3rem;
+            border-radius: 50%;
+            margin-right: 0.1rem;
+            height: 0.6rem;
+        }
+
+        .van-swipe-item p {
+            font-size: 0.28rem;
+            font-family: PingFangSC-Regular, PingFang SC;
+            color: #FFFFFF;
+        }
+
+        .van-swipe-item p:first-of-type {
+            max-width: 2.4rem;
+            display: block;
+            overflow: hidden;
+            word-break: keep-all;
+            white-space: nowrap;
+            text-overflow: ellipsis;
+        }
+
+        .topic-info img {
+            max-width: 100%;
+            width: auto;
+            height: auto;
+            border-radius: 0.2rem;
+            margin-bottom: 0.2rem;
+            margin-top: 0.2rem;
+        }
+
+        .topic-info p {
+            font-size: 0.3rem;
+            font-family: PingFangSC-Regular, PingFang SC;
+            font-weight: 400;
+            color: #333333;
+            letter-spacing: 0.02rem;
+
+        }
+
+        .van-dialog__footer {
+            display: none;
+        }
+
+        .top-banner {
+            margin: 0 auto;
+        }
+
+        h1,
+        h2,
+        h3,
+        h4,
+        h5 {
+            font-size: 0.32rem;
+            font-family: PingFangSC-Semibold, PingFang SC;
+            font-weight: 600;
+            color: #333333;
+            /* margin-bottom: 0.12rem;
+			margin-top: 0.12rem; */
+        }
+
+        .hide {
+            display: none;
+        }
+    </style>
+</head>
+
+<body>
+ 
+    <div id="app" v-cloak class="container ">
+        <div v-show='isshow&&topic!=null' style="margin: 0 auto;">
+
+            <div class="top-banner">
+                <van-notice-bar :scrollable="false">
+                    <van-swipe vertical class="notice-swipe" :autoplay="2000" :show-indicators="false">
+                        <van-swipe-item v-for="(item,index) in marqueeList">
+                            <img :src="standarImg(item.headImgUrl)" :onerror="defaultImg" alt="">
+                            <p>{{item.surfaceName}}</p>
+                            <p>已获得星动云手机套餐</p>
+                        </van-swipe-item>
+
+                    </van-swipe>
+                </van-notice-bar>
+            </div>
+            <div class="top-content">
+                <div v-html="topic" class="topic-info"></div>
+
+            </div>
+            <div class="footer">
+                <div class="download-btn">
+                    <div class="left-nav">
+                        <p>激活码:</p>
+                        <p>AS4*********SD3</p>
+                    </div>
+                    <div class="button-download copybtn" @click='createCopy()'>点击复制并下载</div>
+                </div>
+            </div>
+        </div>
+        <div v-show='!isshow' class="hideContainer">
+            <div>
+                <img src="../static/offImg/no-data.png" alt="" />
+                <p>{{msg}},敬请期待</p>
+            </div>
+        </div>
+    </div>
+    <!-- <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> -->
+
+
+    <script type="text/javascript">
+        // var meta_description = document.getElementsByTagName('meta')['description']
+        // document.title = '更新标题'
+        // meta_description.content = '更新描述'; // Android iOS
+
+        var u = navigator.userAgent,
+            app = navigator.appVersion;
+        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
+        var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
+
+        new Vue({
+            el: '#app',
+            data: {
+                isshow: true,
+                id: GetRequest().id ? GetRequest().id : 404,
+                username: GetRequest().username ? GetRequest().username : 'Cqowt16032622',
+                topic: null,
+                defaultImg: 'this.src="' + "../static/offImg/tou.png" + '"',
+                marqueeList: [],
+                code: '',
+                msg: '活动已下架',
+                tagId: 0,
+                uuid: '',
+
+            },
+            created() {
+                // window.location.href = 'investigate.html'
+            },
+            mounted() {
+                //  document.querySelector('#app').classList.remove('hide');
+                this.getActDetail();
+                this.getMarquee(); //跑马灯
+                if (localStorage.getItem("uuid")) {
+                    this.uuid = localStorage.getItem("uuid");
+                } else {
+                    this.uuid = UUID.generate();
+                    localStorage.setItem("uuid", this.uuid);
+                }
+                console.log(this.uuid);
+            },
+            methods: {
+
+                //查看活动是否下架
+                getActDetail() { //获取活动状态
+                    getActDetail().then(res => {
+                        this.$toast.clear();
+                        if (res.status === 0) {
+                            if (res.data.actStatus == 1) {
+                                this.isshow = true;
+                                this.getStrategy();
+                            } else {
+                                this.isshow = false;
+                            }
+
+                        } else {
+                            this.$toast(res.msg);
+                        }
+                    })
+                },
+                getCheck() {
+                    getEvantCheck(this.id).then(res => {
+                        console.log(res)
+                    })
+                },
+                createCopy() {
+
+                    // this.$toast.loading({
+                    //     duration: 0,
+                    //     message: '加载中...',
+                    //     forbidClick: true,
+                    //     loadingType: 'spinner',
+                    // });
+                    systemBuriedPoint({
+                        pointName: 'dt_裂变_h5_复制激活码'
+                    }).then(res => {
+
+                    })
+                    var clipboard = new ClipboardJS('.copybtn')
+
+                    getActivationCode(this.username, this.tagId, this.uuid).then(res => {
+                        this.$toast.clear();
+                        if (res.status === 0) {
+                            //此处为点击的dom的类名
+                            this.code = res.data;
+                            console.log(this.code);
+
+                            try {
+                                if (isIOS) {
+                                    const input = document.createElement("input");
+                                    input.value = this.code;
+                                    document.body.appendChild(input);
+                                    input.select();
+                                    input.setSelectionRange(0, input.value.length);
+                                    document.execCommand('Copy');
+                                    document.body.removeChild(input);
+                                    this.$dialog.alert({
+                                        message: '复制成功'
+                                    });
+                                    setTimeout(() => {
+                                        this.$dialog.close();
+                                        this.download();
+                                    }, 2000)
+                                } else {
+                                    const input = document.createElement('textarea')
+                                    input.value = this.code;
+                                    document.body.appendChild(input)
+                                    input.select() // 选择对象
+                                    document.execCommand('Copy') // 执行浏览器复制命令
+                                    input.style.display = 'none'
+                                    input.remove()
+                                    // console.log(this.code);
+                                    this.$dialog.alert({
+                                        message: '复制成功'
+                                    });
+                                    setTimeout(() => {
+                                        this.$dialog.close();
+                                        this.download();
+                                    }, 2000)
+
+                                }
+
+                            } catch (err) {
+                                this.$dialog.alert({
+                                    message: '失败'
+                                });
+                                setTimeout(() => {
+                                    this.$dialog.close();
+                                }, 2000)
+                            }
+
+
+
+                        } else {
+                            this.$dialog.alert({
+                                message: res.msg
+                            });
+                            setTimeout(() => {
+                                this.$dialog.close();
+                            }, 2000)
+                        }
+
+                    })
+
+                },
+                download() {
+                    if (isAndroid) {
+                        window.location.href =
+                            'http://www.androidscloud.com//suanchou';
+                    } else if (isIOS) {
+                        window.location.href = 'https://www.pgyer.com/gemini6';
+                    }
+                },
+                standarImg(id) {
+                    return `${fileCenterApi}/file-center/fileOperate/getImage?id=${id}`;
+                },
+                getMarquee() {
+                    getMarquee().then(res => {
+                        if (res.status === 0) {
+                            this.marqueeList = res.data;
+                        } else {
+                            this.$toast(res.msg);
+                        }
+                    })
+                },
+                getStrategy() {
+                    this.$toast.loading({
+                        duration: 0,
+                        message: '加载中...',
+                        forbidClick: true,
+                        loadingType: 'spinner',
+                    });
+                    getStrategy().then(res => {
+                        this.$toast.clear();
+                        if (res.status == 0) {
+                            if (res.data) {
+                                this.isshow = true;
+                                this.topic = res.data.content;
+                                this.tagId = res.data.tagId;
+                                console.log(this.topic)
+                            } else {
+                                this.msg = res.msg;
+                                this.isshow = false;
+
+                            }
+
+                        }
+                        console.log(res)
+
+                    })
+                },
+                onCopy() {
+                    console.log(2323);
+                    this.$toast('复制成功');
+
+
+                },
+                onError() {
+                    this.$toast('复制失败');
+
+                },
+            }
+
+        })
+    </script>
+</body>
+
+</html>