Browse Source

refactor(home): 移除硬编码的富文本内容并初始化为空字符串

main
主管理员 1 month ago
parent
commit
a919b1deb9
1 changed files with 19 additions and 18 deletions
  1. +19
    -18
      subPages/home/plan.vue

+ 19
- 18
subPages/home/plan.vue View File

@ -41,24 +41,25 @@
export default { export default {
data() { data() {
return { return {
richTextContent: `
<div style="padding: 0;">
<div style="margin-bottom: 40rpx; padding: 40rpx; background: #f8f9fa; ">
<h3 style="font-size: 36rpx; font-weight: bold; color: #333; margin: 0 0 20rpx 0;">灵活设置</h3>
<p style="font-size: 28rpx; color: #666; line-height: 1.6; margin: 0 0 30rpx 0;">语音合成支持中文英文粤语四川话也可以合成中英混读语音</p>
<div style="width: 100%; height: 300rpx; overflow: hidden; background: #eee;">
<img src="/static/default-image.png" style="width: 100%; height: 100%; object-fit: cover; " />
</div>
</div>
<div style="padding: 40rpx; background: #f8f9fa; ">
<h3 style="font-size: 36rpx; font-weight: bold; color: #333; margin: 0 0 20rpx 0;">高拟真度</h3>
<p style="font-size: 28rpx; color: #666; line-height: 1.6; margin: 0 0 30rpx 0;">基于业界领先技术构建的语音合成系统具备合成速度快合成语音自然流畅等特点合成语音拟真度高能够符合多样化的应用场景让设备和应用轻松发声人机语音交互效果更加逼真</p>
<div style="width: 100%; height: 300rpx; overflow: hidden; background: #eee;">
<img src="/static/default-image.png" style="width: 100%; height: 100%; object-fit: cover; " />
</div>
</div>
</div>
`,
richTextContent: '',
// richTextContent: `
// <div style="padding: 0;">
// <div style="margin-bottom: 40rpx; padding: 40rpx; background: #f8f9fa; ">
// <h3 style="font-size: 36rpx; font-weight: bold; color: #333; margin: 0 0 20rpx 0;"></h3>
// <p style="font-size: 28rpx; color: #666; line-height: 1.6; margin: 0 0 30rpx 0;"></p>
// <div style="width: 100%; height: 300rpx; overflow: hidden; background: #eee;">
// <img src="/static/default-image.png" style="width: 100%; height: 100%; object-fit: cover; " />
// </div>
// </div>
// <div style="padding: 40rpx; background: #f8f9fa; ">
// <h3 style="font-size: 36rpx; font-weight: bold; color: #333; margin: 0 0 20rpx 0;"></h3>
// <p style="font-size: 28rpx; color: #666; line-height: 1.6; margin: 0 0 30rpx 0;"></p>
// <div style="width: 100%; height: 300rpx; overflow: hidden; background: #eee;">
// <img src="/static/default-image.png" style="width: 100%; height: 100%; object-fit: cover; " />
// </div>
// </div>
// </div>
// `,
style: { style: {
img: 'borderRadius: 24rpx' img: 'borderRadius: 24rpx'
}, },


Loading…
Cancel
Save