头像转换
This commit is contained in:
@@ -56,7 +56,8 @@
|
||||
<div class="cardss-left">
|
||||
<div class="card-img">
|
||||
<!-- <div v-html="transTxt(item.systemExplain)"/> -->
|
||||
<AiOpenData v-if="item.openId" type="userName" :openid="item.systemExplain" style="display: inline-block; font-size:12px;"/>
|
||||
<!-- <AiOpenData v-if="item.openId" type="userName" :openid="item.openId" style="display: inline-block; font-size:12px;"/> -->
|
||||
<div v-html="transAvatar(item.systemExplain)"/>
|
||||
<img src="./components/1.png" class="avatarIcon" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -137,6 +138,9 @@ export default {
|
||||
transTxt(str){
|
||||
return str.replace(/\$(.+)\$/g,'<AiOpenData type="userName" openid="$1"/>')
|
||||
},
|
||||
transAvatar(str){
|
||||
return str.replace(/\$(.+)\$.+/g,'<AiOpenData type="userName" openid="$1"/>')
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appclapeventinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
|
||||
Reference in New Issue
Block a user