政策列表添加图标

This commit is contained in:
zxy
2024-03-13 10:15:08 +08:00
parent b17d44c99b
commit d9847a0544
3 changed files with 1 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
<view class="newPeojectList">
<view style="background-color: #fff;padding: 20rpx 30rpx;">
<view v-for="(item,index) in policyContentList" :key="index" style="display: flex;align-items: center;padding: 20rpx 0;border-bottom:1rpx solid #ddd;" @click="toArticleDetail(item.id)">
<!-- <image :src="item.headPic" style="width: 80rpx;height: 80rpx;margin-right: 20rpx;border-radius: 10rpx;" mode=""></image> -->
<image src="../../static/img/policy_icon.png" style="width: 60rpx;height:60rpx;margin-right: 20rpx;border-radius: 10rpx;" mode=""></image>
<view style="font-size: 32rpx;">{{ item.name }}</view>
</view>
</view>

View File

@@ -14,7 +14,6 @@
}
},
onLoad(option) {
console.log('1111111111')
getPolicyDetail (option.id).then(res => {
let htmlString = res.data.data.guidelineContent
this.strings = htmlString.replace(/width=\"\d+\" height=\"\d+\"/g, 'width="100%" height="auto"');

BIN
static/img/policy_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB