1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-22 03:32:47 +08:00
2020-09-17 21:29:29 +08:00

48 lines
1.1 KiB
JavaScript

layui.use(['jquery', 'layer'], function () {
var $ = layui.jquery;
var layer = layui.layer;
/**
* 查看咨询
*/
$('.btn-show-consult').on('click', function () {
var url = $(this).data('url');
layer.open({
type: 2,
title: '咨询详情',
content: [url, 'no'],
area: ['720px', '320px']
});
});
/**
* 回复咨询
*/
$('.btn-reply-consult').on('click', function () {
var url = $(this).data('url');
layer.open({
type: 2,
title: '回复咨询',
content: [url, 'no'],
area: ['720px', '300px'],
cancel: function () {
parent.location.reload();
}
});
});
/**
* 直播推流
*/
$('.btn-live-push').on('click', function () {
var url = $(this).data('url');
layer.open({
type: 2,
title: '直播推流',
content: [url, 'no'],
area: ['640px', '420px']
});
});
});