master
Lee 2021-12-31 18:50:12 +08:00
parent 8229bca858
commit da67d1fd0f
1 changed files with 18 additions and 1 deletions

View File

@ -241,5 +241,22 @@ jQuery(function($){
$('.serve-survey .openImg').hover(function(){
$('.serve-survey .openEwm').toggleClass('cur');
});
// 复制微信号
if(screen.width <= 768){
var targetText=$("#target").text();
var clipboard = new Clipboard('#copy_btn');
clipboard.on('success', function(e) {
console.info('Action:', e.action);
console.info('Text:', e.text);
console.info('Trigger:', e.trigger);
alert('✔已成功复制微信号('+targetText+'),赶紧打开微信,粘贴添加好友,免费询价吧 ⊙∀⊙');
e.clearSelection();
});
}
})