知识付费微信小程序
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.

275 lines
5.3 KiB

9 months ago
  1. <template>
  2. <view class="index">
  3. <view class="top">
  4. <view class="content">
  5. <image class="content-img" src="../../static/top.png" />
  6. <view class="content-left">
  7. <u-row style="margin: 10rpx;">
  8. <u-col>
  9. AI头条3.0半AI写作简单易操作
  10. </u-col>
  11. </u-row>
  12. <u-row justify="space-between" style="margin: 20rpx; font-size: 12px;">
  13. <u-col span="4">
  14. 级别:初级
  15. </u-col>
  16. <u-col span="4">
  17. 18人学习
  18. </u-col>
  19. </u-row>
  20. <u-row justify="space-between" style="margin: 10rpx; font-size: 16px;">
  21. <u-col span="4" style="color: #ff7800;">
  22. 4.00
  23. </u-col>
  24. <!-- <u-col span="4" style="text-decoration:line-through">
  25. 29.90
  26. </u-col> -->
  27. </u-row>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="cell">
  32. <view class="cell-box">
  33. <view>
  34. 无法查看资源内容请购买!
  35. </view>
  36. </view>
  37. </view>
  38. <view class="book">
  39. <view class="book-text">
  40. <view style="padding-top: 20rpx;font-size: 14px;">资源介绍</view>
  41. <image class="book-img" src="../../static/top.png" />
  42. <view>
  43. AI头条3.0--半A1写作变现新玩法
  44. </view>
  45. <view>
  46. 在当今 AI 飞速发展的时代今日头条这个存在已久的平台也焕发出了新的活力A1头条
  47. 3.0项目为你带来全新的变现机遇门槛极低无需粉丝基础新号即可直接上手操作仅需一部手机让你随时随地开启赚钱之旅
  48. <view></view>
  49. 这个项目的粉丝和收益转化率极为可观经过实测众多账号在发布文章后的短短两三天内粉丝量就能轻松破千无论你是新手小白还是有经验的创作者都能在这个项目中找到属于自己的机会
  50. </view>
  51. </view>
  52. </view>
  53. <view class="bottom-flex">
  54. <view class="icon">
  55. <u-icon name="server-man"
  56. size="40rpx"
  57. ></u-icon>
  58. 客服
  59. </view>
  60. <view class="icon">
  61. <u-number-box
  62. style="margin: 0 auto;"
  63. v-model="registerForm.num"
  64. :min="1">
  65. <view slot="minus" class="minus">
  66. <u-icon name="minus" size="12"></u-icon>
  67. </view>
  68. <view slot="plus" class="plus">
  69. <u-icon name="plus" color="#FFFFFF" size="12"></u-icon>
  70. </view>
  71. </u-number-box>
  72. </view>
  73. <view class="button">
  74. <view class="button-right">
  75. <view>
  76. 立即购买 ({{ price * registerForm.num }})
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </template>
  83. <script>
  84. // wxf173d7bec0f1bbe0
  85. export default {
  86. data() {
  87. return {
  88. registerForm: {
  89. num: 1
  90. },
  91. price : 4,
  92. }
  93. },
  94. onLoad() {
  95. },
  96. methods: {
  97. }
  98. }
  99. </script>
  100. <style scoped lang="scss">
  101. .index {
  102. background-color: #ccc;
  103. .bottom-flex{
  104. position: fixed;
  105. left: 0;
  106. bottom: 0;
  107. width: 100%;
  108. display: flex;
  109. height: 100rpx;
  110. padding: 10rpx 0;
  111. background-color: #fff;
  112. justify-content: space-around;
  113. .icon{
  114. font-size: 26rpx;
  115. display: flex;
  116. flex-direction: column;
  117. justify-content: center;
  118. align-items: center;
  119. }
  120. }
  121. }
  122. .top {
  123. padding-top: var(--status-bar-height);
  124. position: relative;
  125. height: 230rpx;
  126. background-color: #000;
  127. }
  128. .content {
  129. position: absolute;
  130. top: 20rpx;
  131. width: 100%;
  132. height: 250rpx;
  133. }
  134. .content-img {
  135. position: absolute;
  136. top: 20rpx;
  137. left: 20rpx;
  138. width: 220rpx;
  139. height: 160rpx;
  140. border-radius: 10rpx;
  141. }
  142. .content-left {
  143. position: absolute;
  144. color: #fff;
  145. font-size: 14px;
  146. left: 35%;
  147. top: 20rpx;
  148. line-height: 50rpx;
  149. }
  150. .cell {
  151. display: flex;
  152. justify-content: center;
  153. align-items: center;
  154. height: 140rpx;
  155. background-color: #fff;
  156. width: 100%;
  157. }
  158. .cell-box {
  159. display: flex;
  160. width: 90%;
  161. background-color: rgb(253, 194, 4);
  162. height: 70rpx;
  163. border-radius: 10rpx;
  164. font-size: 12px;
  165. justify-content: center;
  166. align-items: center;
  167. }
  168. .book {
  169. margin-top: 20rpx;
  170. min-height: 600rpx;
  171. background-color: #fff;
  172. }
  173. .book-text {
  174. width: 94%;
  175. margin-left: 3%;
  176. min-height: 700rpx;
  177. font-size: 13px;
  178. line-height: 40rpx;
  179. padding-bottom: 100rpx;
  180. }
  181. .book-img {
  182. padding-top: 20rpx;
  183. width: 100%;
  184. height: 300rpx;
  185. }
  186. .button {
  187. position: relative;
  188. display: flex;
  189. top: 10rpx;
  190. width: 350rpx;
  191. height: 80%;
  192. font-size: 12px;
  193. }
  194. .button-left {
  195. display: flex;
  196. justify-content: center;
  197. align-items: center;
  198. flex: 1;
  199. height: 100%;
  200. background-color: rgb(253, 194, 5);
  201. // border-top-left-radius: 50rpx;
  202. // border-bottom-left-radius: 50rpx;
  203. }
  204. .button-right {
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. flex: 1;
  209. height: 100%;
  210. background-color: rgb(51, 51, 51);
  211. // border-top-right-radius: 50rpx;
  212. // border-bottom-right-radius: 50rpx;
  213. border-radius: 50rpx;
  214. color: #fff;
  215. }
  216. // 步进器
  217. .minus {
  218. width: 22px;
  219. height: 22px;
  220. border-width: 1px;
  221. border-color: #E6E6E6;
  222. border-style: solid;
  223. border-top-left-radius: 100px;
  224. border-top-right-radius: 100px;
  225. border-bottom-left-radius: 100px;
  226. border-bottom-right-radius: 100px;
  227. @include flex;
  228. justify-content: center;
  229. align-items: center;
  230. }
  231. .input {
  232. padding: 0 10px;
  233. margin: 0 10rpx;
  234. }
  235. .plus {
  236. width: 22px;
  237. height: 22px;
  238. background-color: rgb(253, 194, 5);
  239. border-radius: 50%;
  240. /* #ifndef APP-NVUE */
  241. display: flex;
  242. /* #endif */
  243. justify-content: center;
  244. align-items: center;
  245. }
  246. </style>