mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 19:06:46 +08:00
搜索问答
This commit is contained in:
@@ -4,21 +4,7 @@
|
|||||||
<u-toast ref="messager"></u-toast>
|
<u-toast ref="messager"></u-toast>
|
||||||
<view style="margin:30upx 30upx; display: flex;">
|
<view style="margin:30upx 30upx; display: flex;">
|
||||||
<u-icon @click="back()" name="arrow-left" color="#383838" size="22" style="margin-right: 10upx;"></u-icon>
|
<u-icon @click="back()" name="arrow-left" color="#383838" size="22" style="margin-right: 10upx;"></u-icon>
|
||||||
<!-- <u-search
|
|
||||||
maxlength="20"
|
|
||||||
:focus="true"
|
|
||||||
@clear="clearSearch"
|
|
||||||
placeholder="请输入关键字"
|
|
||||||
:clearabled="true"
|
|
||||||
:showAction="false"
|
|
||||||
shape="round"
|
|
||||||
v-model="keyword"
|
|
||||||
@focus="toSearch()"
|
|
||||||
bgColor="#ffffff"
|
|
||||||
@search="searchList"
|
|
||||||
search-icon="search"
|
|
||||||
>
|
|
||||||
</u-search> -->
|
|
||||||
<u-search
|
<u-search
|
||||||
bgColor="#F2F5F7"
|
bgColor="#F2F5F7"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
@@ -212,22 +198,17 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-scroll-list>
|
</u-scroll-list>
|
||||||
</view>
|
</view>
|
||||||
<view class="items">
|
<view class="items">
|
||||||
<view class="qa" v-for="(item,irs) in qa.list" :key="irs" @click="toQaPage(item)">
|
<view class="qa" v-for="(item,irs) in qa.list" :key="irs" @click="toQaPage(item)">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="content-list">
|
<view class="content-list">
|
||||||
<view class="content-title">
|
<view class="content-title" style="margin-left: -10upx;">
|
||||||
<text v-if="item.isResolve" class="qa-solve">[已解决]</text>
|
|
||||||
<text v-else class="qa-unSolve">[待解决]</text>
|
|
||||||
<text v-html="$keywordActiveShow(item.title,keyword)"></text>
|
|
||||||
<!-- {{ item.title }} -->
|
|
||||||
</view>
|
|
||||||
<!-- <view class="content-time">
|
|
||||||
<text style="line-height: 40upx; color: #999; font-size: 26rpx; ">
|
|
||||||
<text v-if="item.isResolve" class="qa-solve" >【已解决】</text>
|
<text v-if="item.isResolve" class="qa-solve" >【已解决】</text>
|
||||||
</text>
|
<text v-else class="qa-unSolve">【待解决】</text>
|
||||||
</view> -->
|
<text v-html="$keywordActiveShow(item.title,keyword)"></text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-author" style="display: flex;padding: 0 10upx;">
|
||||||
<view style="font-size: 28upx;color: #666666;">
|
<view style="font-size: 28upx;color: #666666;">
|
||||||
{{ item.sysCreateBy }}
|
{{ item.sysCreateBy }}
|
||||||
</view>
|
</view>
|
||||||
@@ -1036,14 +1017,11 @@
|
|||||||
|
|
||||||
// text {
|
// text {
|
||||||
// white-space: nowrap;
|
// white-space: nowrap;
|
||||||
// overflow: hidden;
|
// overflow: hidden;
|
||||||
// text-overflow: ellipsis;
|
// text-overflow: ellipsis;
|
||||||
// }
|
// }
|
||||||
.content-title{
|
|
||||||
.content-title{
|
.content-title{
|
||||||
color: #343434;
|
|
||||||
font-size: 36upx;
|
font-size: 36upx;
|
||||||
//line-height: 42px;
|
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
word-break:break-all;
|
word-break:break-all;
|
||||||
@@ -1066,10 +1044,10 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top: 10upx;
|
margin-top: 10upx;
|
||||||
//height: 60upx;
|
//height: 60upx;
|
||||||
// margin-left: 8upx;
|
// margin-left: 8upx;
|
||||||
margin-right: 8upx;
|
margin-right: 8upx;
|
||||||
.list-details{
|
.list-details{
|
||||||
padding-left: 10upx;
|
padding-left: 10upx;
|
||||||
.list-text{
|
.list-text{
|
||||||
font-size: 28upx;
|
font-size: 28upx;
|
||||||
|
|||||||
Reference in New Issue
Block a user