12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- new Vue({
- el: '#app',
- data: function () {
- return {
- searchKey:'',
- hotList:[]
- }
- },
- computed: {
- },
- mounted:function() {
- this.getHot()
- },
- methods: {
- getHot:function(){
- var vm=this;
- bigDataOutApi.hot_words().then(function(res){
- vm.hotList=res
- }).catch(function(err){
- console.err(err)
- })
- },
- setIndexPage:function(key){
-
- GlobalEventBus.$emit('setleftTabUrl', {
- key: key
- });
- },
- goSearch:function(value){
- if(!value)value=''
- if(!value){
- toastr.error("请输入检索词再进行搜索");
- return
- }
- url = '../html/search.html?search='+value;
- GlobalEventBus.$emit('setIframeUrl', {
- history: {url:url,text:'搜索结果'}
- });
- }
- },
- watch: {
- }
- })
|