|
|
@@ -4,8 +4,8 @@
|
|
|
<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="分享朋友">
|
|
|
- <title></title>
|
|
|
+ <meta name="description" content="分享内容 ">
|
|
|
+ <title>分享内容 </title>
|
|
|
<link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
|
|
|
<link rel="stylesheet" href="../static/css/index.css?v=1.0.0.2">
|
|
|
<link rel="stylesheet" href="../static/css/vant.css" />
|
|
|
@@ -21,7 +21,6 @@
|
|
|
/* align-items: center;
|
|
|
justify-content: center; */
|
|
|
}
|
|
|
-
|
|
|
.top-banner {
|
|
|
width: 6.82rem;
|
|
|
height: 0.82rem;
|
|
|
@@ -206,11 +205,14 @@
|
|
|
.top-banner {
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
+ .hide{
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
</style>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
- <div id="app" v-cloak class="container">
|
|
|
+ <div id="app" v-cloak class="container hide">
|
|
|
<div v-if='isshow&&topic!=null' style="margin: 0 auto;">
|
|
|
|
|
|
<div class="top-banner">
|
|
|
@@ -253,10 +255,15 @@
|
|
|
<script src="../static/js/vender/vue/vue-clipboard.min.js"></script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
+ var meta_description = document.getElementsByTagName('meta')['description']
|
|
|
+ document.title = '更新标题'
|
|
|
+ meta_description.content = '更新描述'; // Android iOS
|
|
|
+ document.querySelector('#app').classList.remove('hide');
|
|
|
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: {
|
|
|
@@ -276,6 +283,7 @@
|
|
|
// window.location.href = 'investigate.html'
|
|
|
},
|
|
|
mounted() {
|
|
|
+
|
|
|
this.getActDetail();
|
|
|
|
|
|
this.getMarquee(); //跑马灯
|
|
|
@@ -288,9 +296,9 @@
|
|
|
}
|
|
|
console.log(this.uuid);
|
|
|
|
|
|
-
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
//查看活动是否下架
|
|
|
getActDetail() { //获取活动状态
|
|
|
getActDetail().then(res => {
|
|
|
@@ -337,12 +345,12 @@
|
|
|
|
|
|
try {
|
|
|
if (isIOS) {
|
|
|
- var input = document.createElement("input");
|
|
|
+ const input = document.createElement("input");
|
|
|
input.value = this.code;
|
|
|
document.body.appendChild(input);
|
|
|
input.select();
|
|
|
- input.setSelectionRange(0, input.value.length), document
|
|
|
- .execCommand('Copy');
|
|
|
+ input.setSelectionRange(0, input.value.length);
|
|
|
+ document.execCommand('Copy');
|
|
|
document.body.removeChild(input);
|
|
|
this.$dialog.alert({
|
|
|
message: '复制成功'
|