
<template>
    <section class="search-container"> 
        <input type="search" @click="gotoPage"/>
        <!-- <form @submit.prevent="search"> -->
          <!-- <mt-search @onkeydown="gotoPage"></mt-search> -->
          <!-- <button v-show="false" type="submit" /> -->
        <!-- </form> -->

    </section>
</template>
<script>
export default {
    data() {
        return {

        }
    },
    created() {
        window.__isFirstTime = function(param) {
            if(param.isFirst == 'true') {
                rocNative.setFirstTime({
                    projectName: 'YQY_PROJECT_SOUSUO',
                    isFirst: 'false'
                })
            }
        }
        // this.isFirstTime()
    },
    methods: {
        gotoPage() {
            this.$router.push('/search')
        },
        gotoPage(item) {
            let obj = {

            }
            console.log(item);
            // let url = pageJumpUrl();
            //  console.log(url.pageListUrl);
            let itemData = {
                "imageUrl": "",
                "appModuleInfo": {
                    "code": "M300",
                    "type": 4,
                    "name": "课程介绍页",
                    "paramFlag": 1,
                    "paramList": []
                }
            };
            obj = {
                menuLevel: 1,
                menuCode: 'm_home',
                functionCode: 'f_five_minutes',
                actionCode: 'c_content',
                labelId: item.id,
                labelValue: item.title,
            }
            itemData.title = item.name;
            itemData.appModuleInfo["paramList"] = [{
                    "key": "pageUrl",
                    "value": 'http://10.177.10.211:8019/#/search',
                    // "value": 'com.picahealth.yunque.activitys.music.WebMusicListActivity###FiveMinutesMedicalSchoolWebViewController',
                    "type": 4,
                    "seqNo": 1
                }
            ]
            
            // this.pageBurialPoin(obj)

            let paramList = this.setEventByModuleCode(itemData);
            // alert(itemData.appModuleInfo.code)
            // alert(JSON.stringify(paramList))
            rocNative.dispatchEventByModuleCode({
                modeCode: itemData.appModuleInfo.code,
                jsonString: paramList
            })
        },
        isFirstTime() {
            rocNative.isFirstTime({
                projectName: 'YQY_PROJECT_SOUSUO',
                __funcName: '__isFirstTime'
            })
        },

    }
}
</script>
<style >
  .mint-search {
    position: fixed;
    top: 0px;
    z-index: 2;
    height: 66px;
    width: 100%;
    border-bottom: 1px solid #E7E7E7;
  }
 .mint-searchbar {
    position: relative;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #fff;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 30px 10px 8px;
    z-index: 1;
  }
  .mint-searchbar-cancel {
    margin-left: 10px;
    font-size: 14px ;
    color: #999;
    text-decoration: none;
  }
  .mint-searchbar-inner {
    background: #F5F6F6;
  }
  .mint-searchbar-core {
    background: #F5F6F6;
  }
</style>
<style lang="scss">
    .search-container {
        height: 200px;
        text-align: center;
        background-color: #E7E7E7;
        padding-top: 60px;
        input {
            width: 320px;
            padding: 4px 10px;
        }
    }
    
</style>
