样式优化

feature/v-xuexi
wangdong 8 months ago
parent ae0118a9ce
commit f8ce62bb55
  1. 2
      components/Course/lineStyleCourse.vue
  2. 6
      pages/merchant/teacher_detail.vue
  3. 12
      pages/special/search.vue
  4. 7
      pages/special/task_info.vue

@ -12,7 +12,7 @@
<text v-for="(label, index) in item.label" :key="index">{{ label }}</text>
</view>
<view class="study-progress">
上次学到{{ item.progress }}
上次学到{{ item.progress || '' }}
</view>
</view>
</view>

@ -73,8 +73,10 @@
{{ item.name }}
</view>
</view>
<mp-html v-if="navActive === 1" class="panel1" container-style="padding: 30rpx;background: #ffffff;"
:content="lecturer.introduction"></mp-html>
<view style="background: #fff;">
<mp-html v-if="navActive === 1" class="panel1" container-style="padding: 0 30rpx;background: #ffffff;"
:content="lecturer.introduction"></mp-html>
</view>
<view v-if="navActive === 2 && list.length" class="panel2">
<navigator v-for="item in list" :key="item.id" :url="
item.is_light

@ -5,7 +5,7 @@
<view class="left flex-center-x">
<i class="iconfont2 iconsousuo"></i>
<input v-model.trim="search" confirm-type="search" @input="onSearch(search)" placeholder="搜索课程讲师" />
<i v-show="search" class="iconfont iconguanbi2" @click="search = ''"></i>
<i v-show="search" class="iconfont iconguanbi2" @click.stop="search = '';onSearch(search)"></i>
</view>
</view>
<view v-if="specialList.length" class="special-section">
@ -87,7 +87,7 @@ export default {
onSearch: debounce(function () {
this.page = 1;
this.finished = false;
this.specialList = false;
this.specialList = [];
this.getSpecialList();
}, 500),
async getSpecialList() {
@ -131,6 +131,14 @@ export default {
margin: 0 auto;
.left {
background: #fff;
padding-right: 100rpx;
position: relative;
.iconfont {
position: absolute;
top: 50%;
right: 31rpx;
transform: translateY(-50%);
}
}
}
.search-page .special-section uni-navigator {

@ -74,8 +74,10 @@
</view>
</view>
</view>
<mp-html v-else-if="tabIndex == 1" class="content" container-style="padding: 30rpx; background: #ffffff;"
:content="taskInfo.content"></mp-html>
<view v-else-if="tabIndex == 1" style="background: #fff;">
<mp-html class="content" container-style="padding: 30rpx; background: #ffffff;"
:content="taskInfo.content"></mp-html>
</view>
</BaseContainer>
</template>
@ -505,7 +507,6 @@ page{
}
.task-info .content {
padding: 30rpx;
background-color: #ffffff;
font-size: 30rpx;
line-height: 44rpx;

Loading…
Cancel
Save