fixing bug

This commit is contained in:
ghusermoon 2020-09-01 18:07:52 +08:00
parent 8259883119
commit 0f55428656
2 changed files with 23 additions and 2 deletions

View File

@ -124,6 +124,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-bottom: 52rpx; margin-bottom: 52rpx;
// font-weight: bold;
> image { > image {
width: 22rpx; width: 22rpx;
height: 22rpx; height: 22rpx;

View File

@ -24,7 +24,14 @@
</view> </view>
</view> </view>
<scroll-view scroll-y class="integral-botom" :style="{ height: richHeight }"> <scroll-view scroll-y class="integral-botom" :style="{ height: richHeight }">
<rich-text :nodes="nodes"></rich-text> <view class="rich-container">
<view class="title">{{ memberInfo.points_rule.document_title }}</view>
<rich-text :nodes="pointsNodes"></rich-text>
</view>
<view class="rich-container">
<view class="title" >{{ memberInfo.xunzhang_rule.document_title }}</view>
<rich-text :nodes="nodes"></rich-text>
</view>
</scroll-view> </scroll-view>
</view> </view>
</swiper-item> </swiper-item>
@ -69,6 +76,7 @@ export default {
swiperCurrent: 0, swiperCurrent: 0,
pointslogList: [], pointslogList: [],
memberInfo: {}, memberInfo: {},
pointsNodes: '',
nodes: '', nodes: '',
} }
}, },
@ -103,7 +111,9 @@ export default {
this.$u.api.getMemberPointsStat().then((res)=>{ this.$u.api.getMemberPointsStat().then((res)=>{
if(res.errCode == 0) { if(res.errCode == 0) {
this.memberInfo = res.data; this.memberInfo = res.data;
this.nodes = common.unescapeHTML(this.memberInfo.points_rule.document_content); this.nodes = common.unescapeHTML(this.memberInfo.xunzhang_rule.document_content);
this.pointsNodes = common.unescapeHTML(this.memberInfo.points_rule.document_content);
console.log(this.memberInfo.xunzhang_rule);
} }
}) })
}, },
@ -180,6 +190,16 @@ export default {
border-radius: 20rpx 20rpx 0rpx 0rpx; border-radius: 20rpx 20rpx 0rpx 0rpx;
top: 250rpx; top: 250rpx;
z-index: 9; z-index: 9;
.rich-container {
margin-bottom: 20rpx;
.title {
text-align: center;
font-size: 32rpx;
color: #333333;
margin-bottom: 10rpx;
// font-weight: bold;
}
}
} }
} }
.coupon { .coupon {