4
4
< script src ="./public/ext/jquery.min.js "> </ script >
5
5
< script type ="text/javascript " src ="./public/ext/bootstrap.min.js "> </ script >
6
6
< script type ="text/javascript " src ="./public/ext/tongji.baidu.js "> </ script >
7
+ < style >
8
+ button {
9
+ position : relative;
10
+ display : inline-block;
11
+ overflow : hidden;
12
+ border : 1px solid # 999 ;
13
+ }
14
+ </ style >
7
15
8
16
< div id ="app ">
9
-
10
-
11
-
12
- < div > 站点:
13
- < button v-for ="(host,index) in hostlist " v-on:click ="changehost(host.id) "> {{ host.id }} {{ host.name }}</ button >
14
- </ div >
15
-
16
- < div > 分类:
17
- < button v-for ="(item,index) in getclass_rsp.class " v-on:click ="getclasspage(item.cid) "> {{ item.cid }}{{ item.title }}</ button >
18
- </ div >
19
-
20
17
< div >
21
- < input v-model ="querywd " placeholder ="请输入关键字 " size ="50 " type ='text ' />
22
- < button v-on:click ="querypage "> 查询"{{ querywd }}"</ button >
18
+ <!--style="position:fixed;width:100%;height:700px"style="background:#EEEEEE;"-->
19
+
20
+ < video id ="video " controls style ="width:100%; "> </ video >
21
+ < div >
22
+
23
+ < br />
24
+ < div > 站点:
25
+ < button v-for ="(host,index) in hostlist " v-on:click ="changehost(host.id) " class ="btn "> {{ host.id }}
26
+ {{ host.name }}</ button >
27
+ </ div > < br />
28
+
29
+ < div > 分类:
30
+ < button v-for ="(item,index) in getclass_rsp.class " v-on:click ="getclasspage(item.cid) "
31
+ class ="btn "> {{ item.cid }}
32
+ {{ item.title }}</ button >
33
+ </ div > < br />
34
+
35
+ < div >
36
+ < input v-model ="querywd " placeholder ="请输入关键字 " size ="50 " type ='text ' />
37
+ < button v-on:click ="querypage " class ="btn "> 查询"{{ querywd }}"</ button >
38
+ </ div > < br />
39
+
40
+ < div >
41
+ <!-- disabled来禁用按钮,v-if不会渲染按钮 -->
42
+ < button :disabled ="getlist_rsp.page===1 " v-on:click ="getnextpage(1) " class ="btn "> 首页</ button >
43
+ < button :disabled ="getlist_rsp.page===1 " v-on:click ="getnextpage(getlist_rsp.page-1) "
44
+ class ="btn "> 上一页</ button >
45
+ < span > {{ getlist_rsp.page }}/{{ getlist_rsp.pagecount }}</ span >
46
+ < button :disabled ="getlist_rsp.page===getlist_rsp.pagecount "
47
+ v-on:click ="getnextpage(getlist_rsp.page+1) " class ="btn "> 下一页</ button >
48
+ < button :disabled ="getlist_rsp.page===getlist_rsp.pagecount "
49
+ v-on:click ="getnextpage(getlist_rsp.pagecount) " class ="btn "> 最后一页</ button >
50
+ </ div >
51
+ < span > 当前站:{{ hostid }} 分类:{{ classid }} 关键字:{{ querywd }} 页数:{{ pg }} </ span > < br />
52
+ < span > 提示:{{ tips }} </ span > < br /> < br />
53
+
54
+ < button v-on:click ="showmylike() " class ="btn "> 查看本地收藏</ button >
55
+
56
+ </ div >
57
+
23
58
</ div >
24
-
25
- < span > 当前站:{{ hostid }} /分类:{{ classid }} /关键字:{{ querywd }} /页数:{{ pg }} </ span >
26
- < span > 提示:{{ tips }} </ span >
27
- < button v-on:click ="showmylike() "> 查看本地收藏</ button >
28
59
29
60
< div >
30
- <!-- disabled来禁用按钮,v-if不会渲染按钮 -->
31
- < button :disabled ="getlist_rsp.page===1 " v-on:click ="getnextpage(1) "> 首页</ button >
32
- < button :disabled ="getlist_rsp.page===1 " v-on:click ="getnextpage(getlist_rsp.page-1) "> 上一页</ button >
33
- < span > {{ getlist_rsp.page }}/{{ getlist_rsp.pagecount }}</ span >
34
- < button :disabled ="getlist_rsp.page===getlist_rsp.pagecount "
35
- v-on:click ="getnextpage(getlist_rsp.page+1) "> 下一页</ button >
36
- < button :disabled ="getlist_rsp.page===getlist_rsp.pagecount "
37
- v-on:click ="getnextpage(getlist_rsp.pagecount) "> 最后一页</ button >
38
- </ div >
39
-
40
- < div > <!--style="padding-top:700px;width:100%;"-->
41
- < div v-for ="(item,index) in getlist_rsp.data " class ="unit ">
42
- < div style ="float:left;padding:10px;max-width: 460px; ">
43
- < img v-on:click ="playvideo(item.vpath) " v-bind:src ="item.vod_pic " style ="max-width:100%; ">
44
- < p > {{ item.vod_title }}</ p >
45
- < p > {{ item.category }} {{ item.vod_addtime }}< button v-on:click ="likeit(item) "> 收藏</ button > < button v-on:click ="unlikeit(item) "> 取消收藏</ button > </ p >
61
+ <!--style="padding-top:700px;width:100%;"-->
62
+ < div v-for ="(item,index) in getlist_rsp.data " class ="unit ">
63
+ < div style ="float:left;padding:10px;max-width: 460px; ">
64
+ < img v-on:click ="playvideo(item.vpath) " v-bind:src ="item.vod_pic " style ="max-width:100%; ">
65
+ < p > {{ item.vod_title }}</ p >
66
+ < p > {{ item.category }} {{ item.vod_addtime }}
67
+ < button v-on:click ="likeit(item) " class ="btn "> 收藏</ button > < button v-on:click ="unlikeit(item) "
68
+ class ="btn "> 取消收藏</ button > </ p >
69
+ </ div >
46
70
</ div >
47
- </ div >
48
- </ div >
49
-
50
-
71
+ </ div >
51
72
</ div >
52
73
53
74
< script src ="./public/index.js "> </ script >
0 commit comments