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

test1

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