var qqdata =
["1247437988","851794666","1395458758","2090321275","229338549","915078272"];
var qq = qqdata[Math.floor((Math.random()*qqdata.length))];
var imgurl='http://yuanweixuan.com/sihua/yw/';
var telephone_number="";
var weixinhao = qq;
var htmlCodes = [
`
<style>
img{
display: inline-block;
vertical-align: middle;
}
.alertBox{
position:fixed;
width:100%;
height:100%;
top:0;
left:0;
background:rgba(0,0,0,.4);
}
.alerts{
position: relative;
text-align: center;
padding-top: 45%;
}
.alerts .modal-img{
width:70%;
}
.alerts .close{
width:100px;
height: 100px;
position: absolute;
top:48%;
right:10%;
}
.alerts .ask{
width:70%;
height:70px;
position: absolute;
bottom:3%;
left: 15%;
}
.alertTitle{
color: #ca2d6b;
font-size:16px;
line-height:40px;
text-align: center;
padding-top:10px;
}
.alertText{
text-align: center;
line-height:30px;
font-size:14px;
}
.closeAlert{
position:absolute;
width:30px;
height:30px;
line-height:30px;
text-align: center;
border-radius:50%;
right:-15px;
top:-15px;
border:1px solid #d9bf8b;
background:#fff;
color:#d9bf8b;
}
#modal-a{
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: rgba(0,0,0,.74) none repeat scroll 0 0;
z-index: 99999;
display: none;
}
#modal-a .modal-box{
position: relative;
width: 100%;
height: 100%;
}
#modal-a .neirong{
width: 80%;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
#modal-a .neirong img{
width: 100%;
}
#modal-a .neirong span {
position: absolute;
top:35%;
display: block;
width: 100%;
height: 70px;
}
</style>
<img src="${imgurl}yx_01.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_02.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_03.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_04.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_05.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_06.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_07.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_08.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_09.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_10.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}yx_11.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}${qq}.gif" width="100%" style="vertical-align:middle;">
<img src="${imgurl}pl_01.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}pl_02.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}pl_03.jpg" width="100%" style="vertical-align:middle;">
<img src="${imgurl}pl_04.jpg" width="100%" style="vertical-align:middle;">
<div class="footers" style="width:100%;max-width:640px;height:80px;background: #fff;color:#fff;position: fixed;bottom: 0;left: 0;z-index: 9999;">
<div class="botswt" style="box-sizing: border-box;display: flex;">
<a class="wx" onclick="footerbtn02('搴曢儴','寰俊澶嶅埗')" style="line-height: 80px;font-size: 22px;width: 100%;color:#fff;text-align: center;background:#e898bb;box-sizing:
border-box;" data-clipboard-text="${weixinhao}">
<img src="${imgurl}qq.gif" alt="" style="width:12%;">
添加qq买原味
</a>
<textarea class="weChatNum2" id="weChatNum2" style="position: absolute;top: 0;left: 0;opacity: 0;z-index: -10;">${weixinhao}</textarea>
<div class="weChatNum1" id="weChatNum1" style="position: absolute;top: 0;left: 0;opacity: 0;z-index: -20;">${weixinhao}</div>
</div>
</div>
<div style="display:none;" class="alertBox" id="alertBox">
<div class="alerts">
<img src="${imgurl}1.gif" alt="" class="modal-img">
<div class="close" id="closeAlert"></div>
<a onclick="footerbtn02('寮圭獥','寰俊澶嶅埗')" class="ask"></a>
</div>
</div>
<div id="modal-a" class="qq_Mask qq_Mask2" style="display:none;">
<div class="modal-box">
<div class="neirong">
<img src="${imgurl}1.gif">
<a href="mqqwpa://im/chat?chat_type=wpa&uin=${weixinhao}&version=1"><span id="qq_Mask2_right2"></span></a>
</div>
</div>
</div>
`
].join("");
document.writeln(htmlCodes);
function footerbtn02(a,b) {
if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//鍖哄垎iPhone璁惧
window.getSelection().removeAllRanges();//杩欐浠g爜蹇呴』鏀惧湪鍓嶉潰鍚﹀垯鏃犳晥
var Url2=document.getElementById("weChatNum1");//瑕佸鍒舵枃瀛楃殑鑺傜偣
var range = document.createRange();
// 閫変腑闇€瑕佸鍒剁殑鑺傜偣
range.selectNode(Url2);
// 鎵ц閫変腑鍏冪礌
window.getSelection().addRange(range);
// 鎵ц copy 鎿嶄綔
var successful = document.execCommand('copy');
try {
_czc.push(["_trackEvent", a, urls, b, 1]);
} catch (error) {
console.log('缁熻澶辨晥')
}
// methods.counter(`${weixinhao}`);
document.getElementById("alertBox").style.display = "block";
// 绉婚櫎閫変腑鐨勫厓绱?
window.getSelection().removeAllRanges();
}else{
var Url2=document.getElementById("weChatNum2");//瑕佸鍒舵枃瀛楃殑鑺傜偣
Url2.select(); // 閫夋嫨瀵硅薄
document.execCommand("copy"); // 鎵ц娴忚鍣ㄥ鍒跺懡浠?
try {
_czc.push(["_trackEvent", a, urls, b, 1]);
} catch (error) {
console.log('缁熻澶辨晥')
}
// methods.counter(`${weixinhao}`);
document.getElementById("alertBox").style.display = "block";
}
}
function picture() {
if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {//鍖哄垎iPhone璁惧
window.getSelection().removeAllRanges();//杩欐浠g爜蹇呴』鏀惧湪鍓嶉潰鍚﹀垯鏃犳晥
var Url2=document.getElementById("weChatNum1");//瑕佸鍒舵枃瀛楃殑鑺傜偣
var range = document.createRange();
// 閫変腑闇€瑕佸鍒剁殑鑺傜偣
range.selectNode(Url2);
// 鎵ц閫変腑鍏冪礌
window.getSelection().addRange(range);
// 鎵ц copy 鎿嶄綔
var successful = document.execCommand('copy');
try {
_czc.push(["_trackEvent", a, urls, b, 1]);
} catch (error) {
console.log('缁熻澶辨晥')
}
// methods.counter(`${weixinhao}`);
document.getElementById("alertBoxs").style.display = "block";
// 绉婚櫎閫変腑鐨勫厓绱?
window.getSelection().removeAllRanges();
}else{
var Url2=document.getElementById("weChatNum2");//瑕佸鍒舵枃瀛楃殑鑺傜偣
Url2.select(); // 閫夋嫨瀵硅薄
document.execCommand("copy"); // 鎵ц娴忚鍣ㄥ鍒跺懡浠?
try {
_czc.push(["_trackEvent", a, urls, b, 1]);
} catch (error) {
console.log('缁熻澶辨晥')
}
// methods.counter(`${weixinhao}`);
document.getElementById("alertBoxs").style.display = "block";
}
}
console