Commit c2b24063 by zhangxw

bug修复

1 parent 6e4d01bc
......@@ -132,8 +132,12 @@ Page({
},
doAfterWebViewReturn() {
let modal = this.selectComponent('#examPopup')
modal.open()
this.setData({
examSubmitText: ''
}, () => {
let modal = this.selectComponent('#examPopup')
modal.open()
})
},
// 北森考试结果查询
examHandleConfirm() {
......@@ -151,7 +155,6 @@ Page({
if (code == 0) {
if (data) {
this.examHandleCancel()
this.setData({examSubmitText: ''})
// 查询是否有下一个考试
this.getExamInfo()
this.getStaticData(true)
......
......@@ -183,6 +183,26 @@ page {
background: #FFFFFF;
border-radius: var(--fontSize40);
position: relative;
.placeholder-area {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: calc(100% - var(--fontSize72));
height: 100%;
pointer-events: none;
z-index: 1;
.placeholder-text {
color: #999EA8;
font-size: var(--fontSize28);
margin-right: var(--fontSize16);
}
.search-icon {
width: var(--fontSize40);
height: var(--fontSize40);
}
}
.input {
text-align: center;
width: calc(100% - var(--fontSize72));
......@@ -191,14 +211,6 @@ page {
.input-placeholder {
color: #999EA8;
}
.search-icon {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: var(--fontSize380);
width: var(--fontSize40);
height: var(--fontSize40);
}
.search-clear {
position: absolute;
top: 50%;
......
......@@ -81,15 +81,20 @@
<view class="title">全部课程</view>
<view class="search-box">
<view class="search-input">
<view class="placeholder-area" wx:if="{{!searchTitle}}">
<text class="placeholder-text">搜索课程</text>
<image
src="{{IMG_URL}}studyCenter/search-icon.png"
class="search-icon"
/>
</view>
<input
type="text"
placeholder="搜索课程"
class="input"
value="{{searchTitle}}"
placeholder-class="input-placeholder"
bindinput="searchInput"
bindconfirm="search" />
<image src="{{IMG_URL}}studyCenter/search-icon.png" wx:if="{{!searchTitle}}" class="search-icon" />
<block wx:if="{{ searchTitle }}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!