subInfo.vue 11 KB

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