政策列表添加图标
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<view class="newPeojectList">
|
<view class="newPeojectList">
|
||||||
<view style="background-color: #fff;padding: 20rpx 30rpx;">
|
<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)">
|
<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 style="font-size: 32rpx;">{{ item.name }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
console.log('1111111111')
|
|
||||||
getPolicyDetail (option.id).then(res => {
|
getPolicyDetail (option.id).then(res => {
|
||||||
let htmlString = res.data.data.guidelineContent
|
let htmlString = res.data.data.guidelineContent
|
||||||
this.strings = htmlString.replace(/width=\"\d+\" height=\"\d+\"/g, 'width="100%" height="auto"');
|
this.strings = htmlString.replace(/width=\"\d+\" height=\"\d+\"/g, 'width="100%" height="auto"');
|
||||||
|
|||||||
BIN
static/img/policy_icon.png
Normal file
BIN
static/img/policy_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Reference in New Issue
Block a user