四零语境前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
4.2 KiB

  1. <template>
  2. <view class="plan-container">
  3. <!-- 主体内容 -->
  4. <view class="main-content">
  5. <!-- 内容卡片 -->
  6. <view class="content-card">
  7. <!-- 富文本内容 -->
  8. <view class="rich-text-container">
  9. <!-- <rich-text :nodes="richTextContent"></rich-text> -->
  10. <uv-parse :content="richTextContent" :tagStyle="style" :lazyLoad="true" ></uv-parse>
  11. </view>
  12. </view>
  13. </view>
  14. <!-- 底部固定报名栏 -->
  15. <view class="bottom-bar">
  16. <uv-button
  17. type="primary"
  18. text="报名"
  19. :custom-style="{
  20. width: '100%',
  21. height: '82rpx',
  22. borderRadius: '44rpx',
  23. backgroundColor: '#06DADC',
  24. fontSize: '36rpx',
  25. fontWeight: '500',
  26. border: '1px solid #06DADC'
  27. }"
  28. @click="handleSignUp"
  29. ></uv-button>
  30. <uv-safe-bottom></uv-safe-bottom>
  31. </view>
  32. <!-- 底部安全区域 -->
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. richTextContent: `
  40. <div style="padding: 0;">
  41. <div style="margin-bottom: 40rpx; padding: 40rpx; background: #f8f9fa; ">
  42. <h3 style="font-size: 36rpx; font-weight: bold; color: #333; margin: 0 0 20rpx 0;">灵活设置</h3>
  43. <p style="font-size: 28rpx; color: #666; line-height: 1.6; margin: 0 0 30rpx 0;">语音合成支持中文英文粤语四川话也可以合成中英混读语音</p>
  44. <div style="width: 100%; height: 300rpx; overflow: hidden; background: #eee;">
  45. <img src="/static/默认图片.png" style="width: 100%; height: 100%; object-fit: cover; " />
  46. </div>
  47. </div>
  48. <div style="padding: 40rpx; background: #f8f9fa; ">
  49. <h3 style="font-size: 36rpx; font-weight: bold; color: #333; margin: 0 0 20rpx 0;">高拟真度</h3>
  50. <p style="font-size: 28rpx; color: #666; line-height: 1.6; margin: 0 0 30rpx 0;">基于业界领先技术构建的语音合成系统具备合成速度快合成语音自然流畅等特点合成语音拟真度高能够符合多样化的应用场景让设备和应用轻松发声人机语音交互效果更加逼真</p>
  51. <div style="width: 100%; height: 300rpx; overflow: hidden; background: #eee;">
  52. <img src="/static/默认图片.png" style="width: 100%; height: 100%; object-fit: cover; " />
  53. </div>
  54. </div>
  55. </div>
  56. `,
  57. style: {
  58. img: 'borderRadius: 24rpx'
  59. }
  60. }
  61. },
  62. methods: {
  63. handleSignUp() {
  64. console.log('点击报名')
  65. // 这里添加报名逻辑
  66. uni.navigateTo({
  67. url: '/subPages/home/submit'
  68. })
  69. }
  70. }
  71. }
  72. </script>
  73. <style scoped lang="scss">
  74. .plan-container {
  75. background: #fff;
  76. min-height: 100vh;
  77. display: flex;
  78. flex-direction: column;
  79. }
  80. .main-content {
  81. flex: 1;
  82. padding: 40rpx 32rpx 120rpx;
  83. }
  84. .title-section {
  85. margin-bottom: 40rpx;
  86. .main-title {
  87. font-size: 48rpx;
  88. font-weight: 700;
  89. color: $primary-text-color;
  90. line-height: 1.3;
  91. }
  92. }
  93. .content-card {
  94. background: #F8F8F8;
  95. border-radius: 32rpx;
  96. // padding: 48rpx 32rpx;
  97. // .feature-section {
  98. // margin-bottom: 60rpx;
  99. // &:last-child {
  100. // margin-bottom: 0;
  101. // }
  102. // .feature-title {
  103. // display: block;
  104. // font-size: 36rpx;
  105. // font-weight: 700;
  106. // color: $primary-text-color;
  107. // margin-bottom: 24rpx;
  108. // }
  109. // .feature-desc {
  110. // display: block;
  111. // font-size: 28rpx;
  112. // color: $secondary-text-color;
  113. // line-height: 1.6;
  114. // margin-bottom: 32rpx;
  115. // }
  116. // .feature-image {
  117. // width: 100%;
  118. // height: 320rpx;
  119. // border-radius: 24rpx;
  120. // overflow: hidden;
  121. // image {
  122. // width: 100%;
  123. // height: 100%;
  124. // }
  125. // }
  126. // }
  127. }
  128. .bottom-bar {
  129. position: fixed;
  130. bottom: 0;
  131. left: 0;
  132. right: 0;
  133. background: #fff;
  134. padding: 24rpx 50rpx;
  135. // border-top: 1rpx solid #f0f0f0;
  136. z-index: 999;
  137. }
  138. // 富文本容器样式
  139. .rich-text-container {
  140. width: 100%;
  141. border-radius: 36rpx;
  142. // img {
  143. // border-radius: 24rpx;
  144. // }
  145. }
  146. </style>