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

点击查看全部

上级 0d9df812
......@@ -44,6 +44,10 @@
<script>
import { mapGetters, mapActions } from 'vuex'
import {
m_search_history_no_search_result_d,
m_search_history_no_search_result_m
} from '@/utils/buryingPoint'
import {
Loadmore,
Spinner,
......@@ -128,12 +132,10 @@ export default {
//跳转
goToPage(item) {
this.pageBurialPoin({
menuLevel: 1,
menuCode: 'm_home',
functionCode: 'f_recommend',
actionCode: 'c_course',
...m_search_history_no_search_result_d,
labelId: item.id,
labelValue: item.name,
createdTime: new Date().getTime(),
})
this.pageNo = 1;
this.$emit("setRefrshParm", {
......@@ -172,23 +174,18 @@ export default {
//滑动加载更多
loadMore() {
let _this = this;
if (_this.isReauestBack) {
_this.isLoading = true;
//埋点
this.pageBurialPoin({
menuLevel: 1,
menuCode: 'm_home',
functionCode: 'f_recommend',
actionCode: 'c_load_more'
...m_search_history_no_search_result_m,
labelValue: item.name,
createdTime: new Date().getTime(),
})
setTimeout(() => {
_this.getData('loadMore');
}, 500)
}
},
//收藏 取消收藏
......
......@@ -101,23 +101,19 @@ export default {
// 删除关键词
deleteLabels(isAll, index=0, length=1) {
alert(1)
if(isAll) {
alert(2)
this.pageBurialPoin({
...m_search_history_search_dc,
labelValue: '',
createdTime: new Date().getTime(),
})
} else {
alert(3)
this.pageBurialPoin({
...m_search_history_search_d,
labelValue: '',
createdTime: new Date().getTime(),
})
}
alert(4)
let _this = this,
para = {
token: _this.token,
......
......@@ -6,6 +6,9 @@
</section>
</template>
<script>
import {
m_search_result_colligation_all
} from '@/utils/buryingPoint'
export default {
data() {
return {
......@@ -28,6 +31,11 @@ export default {
},
methods: {
showAllItem() {
this.pageBurialPoin({
...m_search_result_colligation_all,
labelValue: '',
createdTime: new Date().getTime(),
})
this.$emit('showAllItem', this.itemIndex)
}
}
......
......@@ -174,7 +174,7 @@ module.exports = {
// 通用GET请求
GET(api, para, callback,str) {
para.token = para.token || this.token || '0CDA688FFBD541E482A77D7A07DD35FA'
para.token = para.token || this.token || '00175A13D70D4234822D90AC3C74202C'
let url = api + this.getUrlPara(para)
return fetch({
url: getBaseUrl(url),
......@@ -185,7 +185,7 @@ module.exports = {
// 通用POST请求
POST(api, para, callback) {
para.token = para.token || this.token || '0CDA688FFBD541E482A77D7A07DD35FA'
para.token = para.token || this.token || '00175A13D70D4234822D90AC3C74202C'
return fetch({
url: getBaseUrl(api),
method: 'post',
......@@ -195,7 +195,7 @@ module.exports = {
// 通用GET请求
API_GET(api, para, callback) {
para.token = para.token || this.token || '0CDA688FFBD541E482A77D7A07DD35FA' //'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
para.token = para.token || this.token || '00175A13D70D4234822D90AC3C74202C' //'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
let url = api + this.getUrlPara(para)
return fetch({
url: getApiUrl(url),
......@@ -206,7 +206,7 @@ module.exports = {
// 通用POST请求
API_POST(api, para, callback) {
para.token = para.token || this.token || '0CDA688FFBD541E482A77D7A07DD35FA' //'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
para.token = para.token || this.token || '00175A13D70D4234822D90AC3C74202C' //'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
return fetch({
url: getApiUrl(api),
method: 'post',
......
......@@ -106,7 +106,7 @@ import NoResultPage from '@/components/business/no-result-page'
import Loading from '@/components/common/loading-new'
import ConfirmTip from '@/components/common/confirm-tip'
import BackTop from '@/components/common/backTop'
let tabTitle = ['综合', '课程', '五分钟医学院', '讲师', '健康漫画']
export default {
data() {
......@@ -188,7 +188,7 @@ export default {
this.navIndex = index
this.pageBurialPoin({
...m_search_result_tab_switch,
labelValue: index,
labelValue: tabTitle[index],
createdTime: new Date().getTime(),
})
this.$refs.refBackTop.backTop()
......@@ -344,6 +344,11 @@ export default {
},
tabClick(index) {
this.navIndex = index
this.pageBurialPoin({
...m_search_result_tab_switch,
labelValue: tabTitle[index],
createdTime: new Date().getTime(),
})
this.$refs.refBackTop.backTop()
},
back() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册