subInfo.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. <!-- 订阅页面 -->
  2. <template>
  3. <view>
  4. <top-return text="订阅中心" color="#FFF"></top-return>
  5. <view class="bg1">
  6. <view class="card">
  7. <view class="flex-row">
  8. <image class="avatar" :src="parentInfo.avatarUrl"></image>
  9. <view class="flex-column" style="margin-left: 30rpx;justify-content: space-between;height: 100rpx;">
  10. <view class="flex-row">
  11. <view class="card-title">{{parentInfo.nickName}}</view>
  12. <view class="subscribe-tag" style="margin-left: 30rpx;">
  13. <view class="t-icon t-icon-huangguan1" style="margin-right: 2rpx;"></view>
  14. <view class="subscribe-tag-text" style="margin-left: 2rpx;font-size: 28rpx;">
  15. {{userData.subscribeLevel}}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="card-subtitle">{{userData.subscribeTime}} 到期</view>
  20. </view>
  21. </view>
  22. <view class="icon-box">
  23. <view class="t-icon t-icon-huangguan1-copy"></view>
  24. <view class="t-icon t-icon-huangguan1-copy"
  25. style="margin-top: -132px;margin-left: -30rpx;width: 300rpx;height: 300rpx;opacity: 0.75;">
  26. </view>
  27. <view class="t-icon t-icon-huangguan1-copy"
  28. style="margin-top: -107px;margin-left: 30rpx;width: 250rpx;height: 250rpx;opacity: 0.5;">
  29. </view>
  30. <view class="t-icon t-icon-huangguan1-copy"
  31. style="margin-top: -82px;margin-left: 80rpx;width: 200rpx;height: 200rpx;opacity: 0.5;">
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="bg2"></view>
  37. <view class="flex-row" style="margin: 370rpx 100rpx 0 100rpx;">
  38. <view class="subscribe-tag" style="padding: 6rpx 12rpx;" @click="subscribeShow = true">
  39. <view class="subscribe-tag-text" @click="subscribeShow = true">续费会员</view>
  40. </view>
  41. <view class="subscribe-tag" style="padding: 6rpx 12rpx;margin-left: 50rpx;" @click="subscribeShow = true">
  42. <view class="subscribe-tag-text" @click="subscribeShow = true">升级会员</view>
  43. </view>
  44. </view>
  45. <view class="sub-view">
  46. <view class="flex-row">
  47. <view class="subscribe-front-tag"></view>
  48. <view class="title">基础版会员特权</view>
  49. </view>
  50. <view style="margin: 20rpx;">
  51. <view class="flex-row" style="margin: 40rpx 0;">
  52. <view class="t-icon t-icon-jiance"></view>
  53. <view class="sub-detail-box">
  54. <view class="sub-title">畅享成绩进阶分析</view>
  55. <view class="sub-subtitle">全方位掌握孩子考试能力</view>
  56. </view>
  57. </view>
  58. <view class="flex-row" style="margin: 40rpx 0;">
  59. <view class="t-icon t-icon-renwu"></view>
  60. <view class="sub-detail-box">
  61. <view class="sub-title">测验作业内容早知道</view>
  62. <view class="sub-subtitle">随时随地了解孩子学习表现</view>
  63. </view>
  64. </view>
  65. <view class="flex-row" style="margin: 40rpx 0;">
  66. <view class="t-icon t-icon-tishi"></view>
  67. <view class="sub-detail-box">
  68. <view class="sub-title">家校互动零距离</view>
  69. <view class="sub-subtitle">记录孩子在校在家点点滴滴</view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="flex-row">
  74. <view class="subscribe-front-tag"></view>
  75. <view class="title">专业版会员特权</view>
  76. </view>
  77. <view style="margin: 20rpx;">
  78. <view class="privilege-card">
  79. <view class="t-icon t-icon-renzheng"></view>
  80. <view class="sub-detail-box">
  81. <view class="sub-title">敬请期待</view>
  82. <view class="sub-subtitle">敬请期待</view>
  83. </view>
  84. </view>
  85. <view class="privilege-card">
  86. <view class="t-icon t-icon-erweima"></view>
  87. <view class="sub-detail-box">
  88. <view class="sub-title">敬请期待</view>
  89. <view class="sub-subtitle">敬请期待</view>
  90. </view>
  91. </view>
  92. <view class="privilege-card">
  93. <view class="t-icon t-icon-dianzan"></view>
  94. <view class="sub-detail-box">
  95. <view class="sub-title">敬请期待</view>
  96. <view class="sub-subtitle">敬请期待</view>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <u-action-sheet :show="subscribeShow" @close="subscribeShow = false" :round="10">
  102. <view class="top-background"
  103. :style="{backgroundImage:`linear-gradient(to top, #FFF, rgba(255, 255, 255, 0)),url(${image})`}">
  104. <view class="background-title">会员套餐</view>
  105. <view class="tag">
  106. <view class="tag-text">更多优惠活动</view>
  107. <u-icon name="arrow-right" color="#31343d"></u-icon>
  108. </view>
  109. </view>
  110. <view class="pri-box">
  111. <view v-for="(item,index) in priceBlock" :key="index"
  112. :class="isactive == index ? 'price-select' : 'price-block' " @click='choosePrice(index)'>
  113. <view class="pri-title">{{item.title}}</view>
  114. <view class="flex-baseline">
  115. <view class="price" style="font-size: 30rpx;margin-left: -15rpx;">¥</view>
  116. <view class="price">{{item.price}}</view>
  117. </view>
  118. <view class="pri-subtitle">{{item.subtitle}}</view>
  119. </view>
  120. </view>
  121. <view class="detail-subtitle">订阅即同意连续订阅服务协议、醍摩豆家长端会员服务协议</view>
  122. <view class="detail-subtitle">购买前请仔细阅读上述相关协议</view>
  123. <button class="btn">立即开通</button>
  124. <view class="item-box">
  125. <view class="detail-subtitle">使用条款</view>
  126. <view class="detail-subtitle">|</view>
  127. <view class="detail-subtitle">隐私政策</view>
  128. <view class="detail-subtitle">|</view>
  129. <view class="detail-subtitle">疑难解答</view>
  130. </view>
  131. </u-action-sheet>
  132. </view>
  133. </template>
  134. <script>
  135. import {
  136. mapState
  137. } from 'vuex'
  138. export default {
  139. computed: {
  140. ...mapState('m_parent', ['userData', 'parentInfo', 'phoneNumber'])
  141. },
  142. data() {
  143. return {
  144. subscribeShow: false,
  145. priceBlock: [{
  146. title: '连续包月',
  147. price: 15,
  148. subtitle: '次月¥15续费可随时取消'
  149. }, {
  150. title: '连续包年',
  151. price: 150,
  152. subtitle: '次年¥150续费可随时取消'
  153. }, {
  154. title: '连续包季',
  155. price: 40,
  156. subtitle: '次季¥40续费可随时取消'
  157. }],
  158. isactive: 1,
  159. image: 'https://image.meiye.art/pic_1632705853492qQO3MFUSDC-SNRS4re5uL'
  160. };
  161. },
  162. onLoad() {
  163. },
  164. methods: {
  165. choosePrice(index) {
  166. this.isactive = index
  167. }
  168. }
  169. }
  170. </script>
  171. <style lang="scss">
  172. .bg1 {
  173. position: fixed;
  174. left: 50%;
  175. right: 50%;
  176. transform: translate(-50%, -50%);
  177. width: 2300rpx;
  178. height: 950rpx;
  179. border-radius: 50%;
  180. background-color: #797572;
  181. background-image:
  182. linear-gradient(-173deg, rgba(255, 255, 255, 0.20) 0%, #000000 100%),
  183. linear-gradient(72deg, rgba(255, 255, 255, 0.25) 25%, rgba(0, 0, 0, 0.25) 100%),
  184. radial-gradient(47% 102%, rgba(255, 255, 255, 0.50) 0%, rgba(21, 24, 32, 0.60) 120%);
  185. background-blend-mode: multiply;
  186. z-index: -1;
  187. overflow: hidden;
  188. }
  189. .bg2 {
  190. position: fixed;
  191. left: 50%;
  192. right: 50%;
  193. transform: translate(-50%, -50%);
  194. width: 2000rpx;
  195. height: 1000rpx;
  196. border-radius: 50%;
  197. background-image: linear-gradient(90deg, #636667, #919394, #c2c4c4, #f6f6f6);
  198. z-index: -2;
  199. }
  200. .card {
  201. position: fixed;
  202. left: 50%;
  203. right: 50%;
  204. transform: translate(-50%, -15%);
  205. display: flex;
  206. flex-direction: column;
  207. padding: 50rpx;
  208. margin-top: 700rpx;
  209. height: 250rpx;
  210. width: 580rpx;
  211. border-radius: 30rpx;
  212. background-image: linear-gradient(90deg, #ffc87e, #ffd192, #ffddae, #f5c592);
  213. opacity: 0.95;
  214. border: 2rpx solid #FFFFFF;
  215. box-shadow: 4px -4px 10px #2b2b2b;
  216. overflow: hidden;
  217. z-index: 99;
  218. .card-title {
  219. font-size: 40rpx;
  220. font-weight: bold;
  221. color: #714c1b;
  222. z-index: 99;
  223. }
  224. .card-subtitle {
  225. font-size: 30rpx;
  226. color: #714c1b;
  227. z-index: 99;
  228. }
  229. .icon-box {
  230. position: absolute;
  231. display: flex;
  232. flex-direction: column;
  233. margin: -90rpx 0 0 320rpx;
  234. .t-icon {
  235. width: 350rpx;
  236. height: 350rpx;
  237. }
  238. }
  239. }
  240. .avatar {
  241. width: 92rpx;
  242. height: 92rpx;
  243. border-radius: 100%;
  244. border: 2px solid #FFFFFF;
  245. }
  246. .subscribe-tag {
  247. display: flex;
  248. align-items: center;
  249. border-radius: 6rpx;
  250. padding: 4rpx 10rpx;
  251. transform: skew(-5deg);
  252. background: #2f3137;
  253. z-index: 99;
  254. .subscribe-tag-text {
  255. font-size: 30rpx;
  256. font-family: YSfont;
  257. color: #d0a97e;
  258. z-index: 99;
  259. }
  260. .t-icon {
  261. width: 28rpx;
  262. height: 28rpx;
  263. margin-top: -2rpx;
  264. }
  265. }
  266. .sub-view {
  267. display: flex;
  268. flex-direction: column;
  269. margin: 120rpx 35rpx 20rpx 35rpx;
  270. .sub-title {
  271. line-height: 30rpx;
  272. font-size: 30rpx;
  273. color: $title;
  274. }
  275. .sub-subtitle {
  276. line-height: 24rpx;
  277. font-size: 24rpx;
  278. color: $subtitle;
  279. }
  280. .sub-detail-box {
  281. display: flex;
  282. flex-direction: column;
  283. margin-left: 30rpx;
  284. height: 80rpx;
  285. justify-content: space-around;
  286. }
  287. .t-icon {
  288. width: 80rpx;
  289. height: 80rpx;
  290. }
  291. .privilege-card {
  292. display: flex;
  293. align-items: center;
  294. height: 100rpx;
  295. width: 100%;
  296. border-radius: $border-radius;
  297. background-color: #FFF;
  298. margin: 20rpx 0 20rpx -20rpx;
  299. padding: 10rpx 20rpx;
  300. }
  301. }
  302. .subscribe-front-tag {
  303. margin-right: 20rpx;
  304. height: 35rpx;
  305. width: 10rpx;
  306. background-image: linear-gradient(#ffc87e, #ffddae);
  307. z-index: 99;
  308. }
  309. //弹出层
  310. .top-background {
  311. display: flex;
  312. flex-direction: column;
  313. width: 100%;
  314. height: 300rpx;
  315. border-top-left-radius: 20rpx;
  316. border-top-right-radius: 20rpx;
  317. background-size: 100%;
  318. background-repeat: no-repeat;
  319. .background-title {
  320. font-size: 70rpx;
  321. font-family: YSfont;
  322. color: #FFF;
  323. text-shadow: 1px -1px 0px #c0c0c0,
  324. 2px -2px 0px #b0b0b0,
  325. 1px -1px 0px #a0a0a0,
  326. 2px -2px 0px #909090;
  327. margin: 50rpx auto 20rpx 50rpx;
  328. }
  329. .tag {
  330. display: flex;
  331. align-items: center;
  332. justify-content: space-around;
  333. margin: 20rpx 50rpx 50rpx 50rpx;
  334. width: 200rpx;
  335. border-radius: 6rpx;
  336. border: 2px solid #31343d;
  337. padding: 8rpx 16rpx;
  338. .tag-text {
  339. font-size: 28rpx;
  340. font-weight: bold;
  341. transform: skew(-10deg);
  342. color: #31343d;
  343. }
  344. }
  345. }
  346. .price-select {
  347. display: flex;
  348. flex-direction: column;
  349. align-items: center;
  350. justify-content: space-around;
  351. padding: 30rpx;
  352. width: 150rpx;
  353. height: 200rpx;
  354. border: 3px solid #d0a97e;
  355. border-radius: $border-radius;
  356. .pri-title {
  357. font-size: 30rpx;
  358. color: #d0a97e;
  359. }
  360. .pri-subtitle {
  361. font-size: 24rpx;
  362. color: $subtitle;
  363. }
  364. .price {
  365. font-size: 50rpx;
  366. font-weight: bold;
  367. color: #d0a97e;
  368. }
  369. }
  370. .price-block {
  371. display: flex;
  372. flex-direction: column;
  373. align-items: center;
  374. justify-content: space-around;
  375. padding: 30rpx;
  376. width: 150rpx;
  377. height: 200rpx;
  378. border: 3px solid #31343d;
  379. border-radius: $border-radius;
  380. .pri-title {
  381. font-size: 30rpx;
  382. color: #31343d;
  383. }
  384. .pri-subtitle {
  385. font-size: 24rpx;
  386. color: $subtitle;
  387. }
  388. .price {
  389. font-size: 50rpx;
  390. font-weight: bold;
  391. color: #31343d;
  392. }
  393. }
  394. .detail-subtitle {
  395. font-size: 24rpx;
  396. color: $subtitle;
  397. }
  398. .btn {
  399. margin-top: 20rpx;
  400. line-height: 100rpx;
  401. border-radius: $border-radius;
  402. height: 100rpx;
  403. width: 710rpx;
  404. font-weight: bold;
  405. font-size: 36rpx;
  406. color: #d0a97e;
  407. background-color: #31343d;
  408. z-index: 99;
  409. }
  410. .pri-box{
  411. margin: 20rpx;
  412. display: flex;
  413. justify-content: space-between;
  414. }
  415. .item-box{
  416. display: flex;
  417. align-items: center;
  418. padding:10rpx 180rpx;
  419. justify-content:space-between;
  420. margin:20rpx 0;
  421. }
  422. </style>