mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 09:26:45 +08:00
提交
This commit is contained in:
@@ -67,8 +67,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="articl-box">
|
<view class="articl-box">
|
||||||
<view class="articl-box-index" v-for="ar in arlDataList" @click="toArticleDetail(ar)">
|
<view class="articl-box-index" v-for="ar in arlDataList" @click="toArticleDetail(ar)">
|
||||||
<image v-if="ar.coverurl == ''" style="width: 560upx;height: 314upx;border-radius: 24upx 24upx 0 0;" src="../../static/images/course.png" mode=""></image>
|
<image style="width: 560upx;height: 314upx;border-radius: 24upx 24upx 0 0;" :src="fileUrl+ar.coverurl" mode=""></image>
|
||||||
<image v-else style="width: 560upx;height: 314upx;border-radius: 24upx 24upx 0 0;" :src="fileUrl+ar.coverurl" mode=""></image>
|
|
||||||
<view class="box-index">
|
<view class="box-index">
|
||||||
<view class="box-index-title" style="height:90upx">
|
<view class="box-index-title" style="height:90upx">
|
||||||
{{ar.title}}
|
{{ar.title}}
|
||||||
|
|||||||
2
main.js
2
main.js
@@ -13,7 +13,7 @@ Vue.prototype.$keywordActiveShow=function(str,keyword){
|
|||||||
if(!str||str.indexOf(keyword)===-1||keyword==''){
|
if(!str||str.indexOf(keyword)===-1||keyword==''){
|
||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
return str.replace(keyword,`<span style="color:#FF8E00">${keyword}</span>`)
|
return str.replace(keyword,`<span style="color:#387DF7 ">${keyword}</span>`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user