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

完成开发

上级 964c25c9
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
<div class="search-menu"> <div class="search-menu">
<div class="bgFill" :style="{height:ptop}"></div> <div class="bgFill" :style="{height:ptop}"></div>
<div class="fixBox"> <div class="fixBox">
<img @click="goBackHome" class="left-arror" :style="{top: bPtop}" src="../../images/lecturer/left-arror.png" alt="">
<div :class="isTransparent?'search-transparent':'bgWhite'" class="search" @click="goSearch"> <div :class="isTransparent?'search-transparent':'bgWhite'" class="search" @click="goSearch">
<!-- <img class="search-img-left" src="../../images/search-white.png"> -->
<span class="input">{{placeholder}}</span> <span class="input">{{placeholder}}</span>
<img class="search-img" src="../../images/search-white.png"> <img class="search-img" src="../../images/search-white.png">
</div> </div>
...@@ -21,6 +23,7 @@ export default { ...@@ -21,6 +23,7 @@ export default {
isTransparent: true, //更改颜色 背景 isTransparent: true, //更改颜色 背景
count: "", count: "",
ptop: 0, ptop: 0,
bPtop: 0,
menuptop: 0, menuptop: 0,
popHeight: 0 popHeight: 0
}; };
...@@ -51,7 +54,7 @@ export default { ...@@ -51,7 +54,7 @@ export default {
_this.popHeight = parm.statusBarHeight; _this.popHeight = parm.statusBarHeight;
} }
_this.ptop = _this.popHeight + "px"; _this.ptop = _this.popHeight + "px";
_this.bPtop = _this.popHeight + 2 + "px"
_this.menuptop = _this.popHeight + "px"; _this.menuptop = _this.popHeight + "px";
// alert(parm.statusBarHeight); // alert(parm.statusBarHeight);
}; };
...@@ -103,6 +106,11 @@ export default { ...@@ -103,6 +106,11 @@ export default {
modeCode: itemData.appModuleInfo.code, modeCode: itemData.appModuleInfo.code,
jsonString: itemData.appModuleInfo.paramList jsonString: itemData.appModuleInfo.paramList
}); });
},
// 返回到首页
goBackHome() {
rocNative.goBack()
} }
} }
}; };
...@@ -124,6 +132,7 @@ body { ...@@ -124,6 +132,7 @@ body {
border: 1px solid rgba(255, 255, 255, 1); border: 1px solid rgba(255, 255, 255, 1);
color: #fff; color: #fff;
margin: px2rem(8px) 0 0 0; margin: px2rem(8px) 0 0 0;
margin-left: px2rem(20px);
} }
.search-transparent::-webkit-input-placeholder { .search-transparent::-webkit-input-placeholder {
color: #fff; color: #fff;
...@@ -223,6 +232,12 @@ body { ...@@ -223,6 +232,12 @@ body {
margin: px2rem(8px) px2rem(10px) 0 0; margin: px2rem(8px) px2rem(10px) 0 0;
float: right; float: right;
} }
.search-img-left {
width: px2rem(13px);
height: px2rem(13px);
margin: px2rem(8px) px2rem(10px) 0 0;
float: left;
}
.info-count { .info-count {
position: absolute; position: absolute;
...@@ -299,4 +314,12 @@ body { ...@@ -299,4 +314,12 @@ body {
height: px2rem(325px); height: px2rem(325px);
margin-top: px2rem(35px); margin-top: px2rem(35px);
} }
.left-arror {
position: absolute;
left: px2rem(6px);
top: px2rem(3px);
width: px2rem(25px);
height: px2rem(25px);
margin: px2rem(8px) px2rem(12px);
}
</style> </style>
...@@ -158,9 +158,7 @@ export default { ...@@ -158,9 +158,7 @@ export default {
// 排序 // 排序
orderAction(orderName, isSortUp) { orderAction(orderName, isSortUp) {
let orderType = isSortUp ? 1 : -1 let orderType = isSortUp ? 1 : -1
// sortLecturerData()
let orderData = this.parmDataDoctList.slice() let orderData = this.parmDataDoctList.slice()
console.log('this.orderData', orderData)
orderData.sort((a, b)=> { orderData.sort((a, b)=> {
if (orderName === 'doctorFirstNameChar') { if (orderName === 'doctorFirstNameChar') {
return (a[orderName].charCodeAt(0) - b[orderName].charCodeAt(0)) * orderType return (a[orderName].charCodeAt(0) - b[orderName].charCodeAt(0)) * orderType
...@@ -184,27 +182,16 @@ export default { ...@@ -184,27 +182,16 @@ export default {
this.selectedLevelName = selectedLevelName this.selectedLevelName = selectedLevelName
this.selectedDepartName = selectedDepartName this.selectedDepartName = selectedDepartName
}, },
// ...mapActions({ // 选择标题组件
// 'setAdjustList': 'setAdjustList'
// }),
selectedTypeFromTitle(index) { selectedTypeFromTitle(index) {
this.selectedTypeIndex = index this.selectedTypeIndex = index
// commit
this.$refs.lecturerSelContRef.selectedType(index) this.$refs.lecturerSelContRef.selectedType(index)
this.$refs.lecturerSelContRef.show() this.$refs.lecturerSelContRef.show()
// this.showSelectedPage = true
}, },
selectedType(index) { // 请求数据
this.selectedTypeIndex = index
// this.$emit('selectedType', index)
},
initAll(){ initAll(){
this.getSwiper() this.getSwiper()
this.getYqDoctorDataByCD() this.getYqDoctorDataByCD()
// this.getAreas()
// this.getLevels()
// this.getDeparts()
}, },
//获取状态栏高度 //获取状态栏高度
...@@ -212,7 +199,6 @@ export default { ...@@ -212,7 +199,6 @@ export default {
rocNative.getStatusBarHeight({ rocNative.getStatusBarHeight({
__funcName: '__getStatusBarHeight' __funcName: '__getStatusBarHeight'
}) })
}, },
//获取用户信息及版本号等() //获取用户信息及版本号等()
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册