Commit c2b24063 by zhangxw

bug修复

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