合并前
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
<!-- <view class="helpTitle">{{ resultData.helpWordTitle }}</view> -->
|
||||
<view class="helpCon" v-html="content"></view>
|
||||
|
||||
<view class="helpConczg" v-html="content"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -12,8 +9,8 @@
|
||||
data() {
|
||||
return {
|
||||
helpWordId: '',
|
||||
resultData:[],
|
||||
content:''
|
||||
resultData: [],
|
||||
content: ''
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
@@ -33,7 +30,8 @@
|
||||
this.$u.api.helpDet(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.resultData = res.data
|
||||
this.content = res.data.helpWordContent.replace(new RegExp("img","g"),'img style="width:100%;height:auto;"')
|
||||
this.content = res.data.helpWordContent.replace(new RegExp("img", "g"),
|
||||
'img style="width:100%;height:auto;"')
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@@ -41,7 +39,7 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -52,17 +50,17 @@
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.helpTitle {
|
||||
.helpTitleczg {
|
||||
font-size: 40rpx;
|
||||
font-weight: bold;
|
||||
margin: 50rpx 30rpx 30rpx;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.helpCon {
|
||||
.helpConczg {
|
||||
font-size: 30rpx;
|
||||
margin: 30rpx 30rpx 50rpx;
|
||||
color: #000;
|
||||
line-height: 2em;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user