提交 69af73d2 编写于 作者: 杨广俊's avatar 杨广俊

test

上级 efc932f5
......@@ -162,7 +162,11 @@ export default {
"seqNo": 1
}]
}
this.pageBurialPoin(obj)
this.pageBurialPoin({
...m_search_result_five_minutes_detail,
labelValue: item.title,
createdTime: new Date().getTime(),
})
let paramList = this.setEventByModuleCode(itemData);
// alert(itemData.appModuleInfo.code)
......
......@@ -146,61 +146,6 @@ export default {
})
},
goToDetail(item) {
let _this = this;
this.$router.push({
path: '/teachersDetail',
query: {
id: item.doctorId,
token: _this.token
}
})
this.pageBurialPoin({
...m_search_result_health_cartoon_detail,
labelValue: orderIndex,
createdTime: new Date().getTime(),
})
},
//排序
sortFun() {
this.dir = this.dir == 1 ? 2 : 1;
this.getData()
},
randomBg(d) {
for (let i = 0; i < d.length; i++) {
if (i % 4 == 0) {
d[i].bgColor = '#EBF6F1'
} else if (i % 4 == 1) {
d[i].bgColor = '#EDF3FA'
} else if (i % 4 == 2) {
d[i].bgColor = '#F0F0FA'
} else if (i % 4 == 3) {
d[i].bgColor = '#F6EFE6'
}
}
/// console.log(d);
},
getData() {
let _this = this,
para = {
token: _this.token,
setEntry: 'headers'
}
let url = '/contents/courseDoctor/getAllTeacher/orderby/' + _this.col + '/dir/' + _this.dir
this.GET(url, para).then(res => {
if (res.code == '000000') {
_this.list = res.data.teacherList || [];
_this.followCount = res.data.followCount || 0;
_this.studyCount = res.data.studyCount || 0;
if (_this.list.length > 0) {
_this.randomBg(_this.list);
}
}
})
},
orderAction(orderIndex) {
this.pageBurialPoin({
...m_search_result_health_cartoon_order,
......
......@@ -3,7 +3,7 @@
<section class="history-labels-title">
<span>{{title}}</span>
<span v-show="showDelete" class="history-labels-title-all">
<span @click="showConfirm=true">全部删除</span><span>|</span><span @click="toggleDelete">取消</span>
<span @click="confirmDelete">全部删除</span><span>|</span><span @click="toggleDelete">取消</span>
</span>
<img @click="toggleDelete" v-show="!showDelete" src="../../images/sousuo/recicle.png" alt="删除">
</section>
......@@ -12,8 +12,8 @@
v-if="index < 10"
@click="searchAction(item.keyword)"
v-for="(item, index) in allLabels" :key="index" >
<span>
<span class="history-labels-item-name">{{item.keyword}}</span>
<span class="history-labels-item-name">
<span >{{item.keyword}}</span>
<img @click="deleteLabels(false, index)" v-show="showDelete"
src="../../images/sousuo/delete.png" alt=""
>
......@@ -118,7 +118,15 @@ export default {
},
getUserInfo: function () {
rocNative.getUserInfo({'__funcName': '__getUserInfo'})
},
},
confirmDelete() {
this.showConfirm = true
this.pageBurialPoin({
...m_search_result_lecturer_order,
labelValue: orderIndex,
createdTime: new Date().getTime(),
})
}
}
}
</script>
......
......@@ -118,16 +118,6 @@ export default {
labelValue: item.name,
createdTime: new Date().getTime(),
})
// this.appBuryingPointEntrust({
// ...teacher,
// labelId: item.doctorId,
// labelValue: item.doctorName
// })
},
// 埋点
appBuryingPointEntrust(val) {
rocNative.appBuryingPointEntrust(val)
},
//排序
......@@ -169,11 +159,6 @@ export default {
}
})
// this.appBuryingPointEntrust({
// ...teacher,
// labelId: _this.dir,
// labelValue: _this.dir === 1 ? '升序' : '降序'
// })
},
orderAction(orderIndex) {
this.pageBurialPoin({
......
<template>
<section class="search-container">
<input type="search" @click="gotoPage"/>
<section >
<!-- <input type="search" @click="gotoPage"/> -->
<!-- <form @submit.prevent="search"> -->
<!-- <mt-search @onkeydown="gotoPage"></mt-search> -->
<!-- <button v-show="false" type="submit" /> -->
<!-- </form> -->
<img src="https://test1-file.yunqueyi.com/image/HJ_B001_YD_002_A.jpg">
<img v-lazy="imgUrl">
</section>
</template>
<script>
export default {
data() {
return {
imgUrl: 'https://test1-file.yunqueyi.com/image/HJ_B001_TS_012_A.jpg'
}
},
created() {
......
此差异已折叠。
......@@ -70,6 +70,9 @@
</template>
<script>
import {
m_search_result_tab_switch
} from '@/utils/buryingPoint'
import SplitLine from '../components/business/split-line';
import NoMoreItem from '../components/business/no-more-item';
import ShowAllItem from '../components/business/show-all-item';
......@@ -161,6 +164,12 @@ export default {
showAllItem(index) {
console.log(typeof index)
this.navIndex = index
this.pageBurialPoin({
...m_search_result_tab_switch,
labelValue: index,
createdTime: new Date().getTime(),
})
},
// 搜索结果
search() {
......
<template>
<div>
<!-- <SearchHeader @search="search" :searchText="searchText"/> -->
<form @submit.prevent="search">
<mt-search v-model="searchText" ></mt-search>
<button v-show="false" type="submit" />
</form>
<!-- <SplitLine /> -->
<div class="mt-100"></div>
<HistoryLabels/>
<HotLabels/>
</div>
</template>
<script>
import {mapState, mapMutations} from 'vuex'
import SearchHeader from '../components/business/search-header';
import SplitLine from '../components/business/split-line';
import HistoryLabels from '../components/business/history-labels';
import HotLabels from '../components/business/hot-labels';
export default {
data() {
return {
searchText: '',
token: ''
}
},
components: {
SearchHeader,
SplitLine,
HistoryLabels,
HotLabels
},
created(){
},
computed:{
...mapState([
'sousuo'
])
},
mounted(){
// let _self = this;
// window.__getUserInfo = function(params){
// _self.token = params.userToken
// // _self.SET_USER_INFO(params)
// _self.getData()
// }
// window.__refresh = function(){
// _self.getUserInfo()
// }
// window.__getStatusBarHeight = function(params){
// _self.SET_NAVBAR_HEIGHT(params)
// }
// window.__getStatusBarHeight = function(parm){
// //lert(parm.statusBarHeight)
// if(window.__isAndroid){
// _this.popHeight = parseInt(parm.statusBarHeight)/2.5
// }else{
// _this.popHeight = parm.statusBarHeight
// }
// _this.ptop = _this.popHeight+'px';
// _this.menuptop = _this.popHeight+'px'
// // alert(parm.statusBarHeight);
// }
// if(window.__isWeb) {
// _self.getData()
// }
// _self.getUserInfo()
// _self.getStatusBarHeight()
},
methods: {
...mapMutations([
'SET_USER_INFO', 'SET_NAVBAR_HEIGHT'
]),
// 跳转到结果页面,并
search() {
if(!this.searchText) return;
this.$router.push({
path: '/result',
query: {
searchText: this.searchText
}
})
},
// 获取历史搜索
getData() {
let _this = this,
para = {
type: 1,
token: _this.token,
setEntry: 'headers'
}
let url = '/contents/searchKeyword/listKeywords'
this.GET(url, para).then(res => {
if (res.code == '000000') {
if (res.data && res.data.length) {
let index = Math.floor(Math.random() * res.data.length)
this.searchText = res.data[index].keyword
}
}
})
},
getUserInfo: function () {
rocNative.getUserInfo({'__funcName': '__getUserInfo'})
},
getStatusBarHeight: function () {
rocNative.getStatusBarHeight({'__funcName': '__getStatusBarHeight'})
}
},
}
</script>
<style >
.mint-search {
position: fixed;
top: 0px;
z-index: 2;
height: 66px;
width: 100%;
border-bottom: 1px solid #E7E7E7 !important;
}
.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>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import '../style/mixin.scss';
@import '../style/global.scss';
.mt-100 {
padding-top: px2rem(63px) !important;
}
</style>
......@@ -16,6 +16,13 @@
<script>
import {mapState, mapMutations} from 'vuex'
import { sortParmData } from '@/utils/index'
import {
m_search_result_five_minutes_detail,
m_search_result_five_minutes_order,
m_search_result_five_minutes_top,
} from '@/utils/buryingPoint'
import SearchHeader from '../components/business/search-header';
import SplitLine from '../components/business/split-line';
import HistoryLabels from '../components/business/history-labels';
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册