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

bug 修改

上级 1c415cf7
...@@ -238,6 +238,12 @@ export function pageJumpUrl(){ ...@@ -238,6 +238,12 @@ export function pageJumpUrl(){
return url; return url;
} }
export function sortParmData(originData, orderCol, index) {
return originData.sort((a, b) => {
return (a[orderCol] - b[orderCol] ) * -1
})
}
//跳转个人评价页面 //跳转个人评价页面
export function jumpEvaluatPage(){ export function jumpEvaluatPage(){
return evaluatPageUrl return evaluatPageUrl
......
...@@ -148,11 +148,10 @@ export default { ...@@ -148,11 +148,10 @@ export default {
window.__getUserInfo = function(params){ window.__getUserInfo = function(params){
_this.token = params.userToken _this.token = params.userToken
// _this.SET_USER_INFO(params) // _this.SET_USER_INFO(params)
// _this.search() _this.search()
_this.getAdjustData() _this.getAdjustData()
} }
if(window.__isWeb) { if(window.__isWeb) {
_this.getAdjustData()
_this.search() _this.search()
} }
window.__refresh = function(){ window.__refresh = function(){
...@@ -161,7 +160,6 @@ export default { ...@@ -161,7 +160,6 @@ export default {
}, },
mounted(){ mounted(){
this.getUserInfo() this.getUserInfo()
this.search()
// this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll') // this.searchAll(this.searchText, '1', 'contentAppModels', 'contentAppModelsAll')
}, },
methods: { methods: {
...@@ -183,10 +181,11 @@ export default { ...@@ -183,10 +181,11 @@ export default {
createdTime: new Date().getTime(), createdTime: new Date().getTime(),
}) })
this.showLoading = true this.showLoading = true
let str2 = (this.searchText || '').replace(/[\-\_\,\!\|\~\`\(\)\#\$\%\^\&\*\{\}\:\;\"\L\<\>\?]/g, '');// 去掉特殊字符
let _this = this, let _this = this,
para = { para = {
searchCategory: '1,2,3,4', searchCategory: '1,2,3,4',
searchValue: _this.searchText, searchValue: str2,
keywordColor: 'rgba(244,122,72,1)', keywordColor: 'rgba(244,122,72,1)',
sortItem: 1, sortItem: 1,
pageNo: 1, pageNo: 1,
...@@ -323,6 +322,7 @@ export default { ...@@ -323,6 +322,7 @@ export default {
width: 100%; width: 100%;
/* margin: 0 20px; */ /* margin: 0 20px; */
border-bottom: 1px solid #E7E7E7 !important; border-bottom: 1px solid #E7E7E7 !important;
/* background-color: #fff; */
} }
.mint-searchbar { .mint-searchbar {
position: relative; position: relative;
......
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
width: 100%; width: 100%;
/* margin: 0 20px; */ /* margin: 0 20px; */
border-bottom: 1px solid #E7E7E7 !important; border-bottom: 1px solid #E7E7E7 !important;
background-color: #fff;
} }
.mint-searchbar { .mint-searchbar {
position: relative; position: relative;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册