提交 36135a29 编写于 作者: 杨广俊's avatar 杨广俊

test1

上级 e36d6610
...@@ -8,42 +8,44 @@ ...@@ -8,42 +8,44 @@
</template> </template>
<script> <script>
import {
m_search_result_colligation_top
} from '@/utils/buryingPoint'
export default { export default {
data(){ data(){
return{ return {
objPoint:{} objPoint:{}
} }
}, },
props:{ props: {
burialPoint:{ burialPoint:{
default:'', default:'',
type:String type:String
} }
}, },
// computed: {
// cNeedShow() {
// return this.needShow
// }
// },
mounted(){ mounted(){
if(this.burialPoint == 'activity'){
this.objPoint = {
menuLevel:2,
menuFromCode:'m_home',
menuCode:'m_content_list',
functionCode:'f_activity',
actionCode:'c_top'
}
}
}, },
methods: { methods: {
backTop:function(){ backTop: function(){
if(this.burialPoint == 'activity'){ this.pageBurialPoin({
this.pageBurialPoin(this.objPoint); ...m_search_result_colligation_top,
} labelValue: '',
createdTime: new Date().getTime(),
})
var osTop = document.documentElement.scrollTop || document.body.scrollTop; var osTop = document.documentElement.scrollTop || document.body.scrollTop;
if(osTop > 0){ if(osTop > 0){
document.documentElement.scrollTop = document.body.scrollTop = 0; document.documentElement.scrollTop = document.body.scrollTop = 0;
this.$emit('backTop')
// this.needShow = false
} }
} }
}, },
......
...@@ -250,17 +250,17 @@ export function jumpEvaluatPage(){ ...@@ -250,17 +250,17 @@ export function jumpEvaluatPage(){
} }
// // dev地址 // dev地址
// const baseUrl = 'http://10.177.10.149:8080/' // const baseUrl = 'http://10.177.10.149:8080/'
// // const baseUrl = 'https://dev-sc.yunqueyi.com/' const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const apiUrl = 'https://dev-api.yunqueyi.com/' const apiUrl = 'https://dev-api.yunqueyi.com/'
// const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home' const evaluatPageUrl = 'https://dev-phome.yunqueyi.com/gpr/#/home'
// test1地址 // // test1地址
// const baseUrl = 'http://10.177.10.149:8080/' // // const baseUrl = 'http://10.177.10.149:8080/'
const baseUrl = 'https://test1-sc.yunqueyi.com/' // const baseUrl = 'https://test1-sc.yunqueyi.com/'
const apiUrl = 'https://test1-api.yunqueyi.com/' // const apiUrl = 'https://test1-api.yunqueyi.com/'
const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home' // const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
// // uat地址 // // uat地址
// const baseUrl = 'https://uat-sc.yunqueyi.com/' // const baseUrl = 'https://uat-sc.yunqueyi.com/'
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</div> </div>
</article> </article>
<Loading v-show="showLoading"/> <Loading v-show="showLoading"/>
<BackTop v-show="isShowTop" /> <BackTop @backTop="backTop" v-show="isShowTop" />
</section> </section>
</template> </template>
...@@ -95,7 +95,7 @@ import BackTop from '@/components/common/backTop' ...@@ -95,7 +95,7 @@ import BackTop from '@/components/common/backTop'
export default { export default {
data() { data() {
return { return {
isShowTop: true, isShowTop: false,
// token: '', // token: '',
navIndex: '0', navIndex: '0',
showLoading: false, showLoading: false,
...@@ -313,11 +313,16 @@ export default { ...@@ -313,11 +313,16 @@ export default {
let navConWrapDomOT = document.querySelector('#navbar-container-wrapper').offsetParent.offsetTop; let navConWrapDomOT = document.querySelector('#navbar-container-wrapper').offsetParent.offsetTop;
let scrollTop = document.body.scrollTop || document.documentElement.scrollTop; let scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
console.log('this' ,this, scrollTop > 50) console.log('this' ,this, scrollTop > 50)
if(scrollTop > 50){ if(scrollTop > 2){
this.isShowTop = true this.isShowTop = true
} else {
this.isShowTop = false
} }
console.log(navConWrapDomOT) console.log(navConWrapDomOT)
console.log(scrollTop) console.log(scrollTop)
},
backTop() {
this.isShowTop = false
} }
}, },
} }
......
<template> <template>
<div> <div>
<!-- <SearchHeader @search="search" :searchText="searchText"/> --> <!-- <SearchHeader @search="search" :searchText="searchText"/> -->
<form @submit.prevent="search"> <form @submit.prevent="search">
<mt-search v-model="searchText" ></mt-search> <mt-search v-model="searchText" ></mt-search>
...@@ -10,6 +11,7 @@ ...@@ -10,6 +11,7 @@
<div class="mt-100"></div> <div class="mt-100"></div>
<HistoryLabels/> <HistoryLabels/>
<HotLabels/> <HotLabels/>
dev 环境
<img src="https://test1-file.yunqueyi.com/image/HJ_B001_YD_002_A.jpg" @click="gotoPage"> <img src="https://test1-file.yunqueyi.com/image/HJ_B001_YD_002_A.jpg" @click="gotoPage">
</div> </div>
</template> </template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册