mirror of
https://github.com/imgyh/tiktok.git
synced 2025-04-06 01:05:44 +08:00
refactor(web): 优化前端细节
This commit is contained in:
parent
ee4ec700b8
commit
80825b2fc2
@ -16,6 +16,7 @@ function SendAjax() {
|
||||
if (result.status_code === 200) {
|
||||
if (result.awemeType === 0) {
|
||||
$("#awemeType").html("预览视频");
|
||||
$("#AwemeOrLive").html("下载视频");
|
||||
$("#video").attr("href", result.video.play_addr.url_list);
|
||||
$("#pre_video").attr("src", result.video.play_addr.url_list);
|
||||
$("#video").attr("style", "display:inline;");//显示 video
|
||||
@ -95,12 +96,12 @@ function SendAjax() {
|
||||
|
||||
if (result.awemeType === 2) {
|
||||
if (result.status === 4) {
|
||||
console.log("进入")
|
||||
$("#loading").attr("style", "display:none;");//隐藏 loading
|
||||
$("#download").attr("style", "display:none;");//隐藏 download
|
||||
// 执行弹框
|
||||
narnWarn()
|
||||
} else {
|
||||
$("#AwemeOrLive").html("下载直播");
|
||||
$("#awemeType").html("预览直播");
|
||||
$("#video").attr("href", result.flv_pull_url0);
|
||||
$("#pre_video").attr("src", result.flv_pull_url0);
|
||||
|
@ -114,7 +114,7 @@
|
||||
</a>
|
||||
<a id="video" href="#" target="_blank">
|
||||
<button type="button" class="btn btn1">
|
||||
<span>下载视频</span>
|
||||
<span id="AwemeOrLive"></span>
|
||||
</button>
|
||||
</a>
|
||||
<a id="music" href="#" target="_blank">
|
||||
|
Loading…
x
Reference in New Issue
Block a user