subscribeinfo.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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_cloumn" 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="subscribe_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="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
  53. <view class="subscribe_view_title">畅享成绩进阶分析</view>
  54. <view class="subscribe_view_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="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
  60. <view class="subscribe_view_title">测验作业内容早知道</view>
  61. <view class="subscribe_view_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="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
  67. <view class="subscribe_view_title">家校互动零距离</view>
  68. <view class="subscribe_view_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="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
  80. <view class="subscribe_view_title">敬请期待</view>
  81. <view class="subscribe_view_subtitle">敬请期待</view>
  82. </view>
  83. </view>
  84. <view class="privilege_card">
  85. <view class="t-icon t-icon-erweima"></view>
  86. <view class="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
  87. <view class="subscribe_view_title">敬请期待</view>
  88. <view class="subscribe_view_subtitle">敬请期待</view>
  89. </view>
  90. </view>
  91. <view class="privilege_card">
  92. <view class="t-icon t-icon-dianzan"></view>
  93. <view class="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
  94. <view class="subscribe_view_title">敬请期待</view>
  95. <view class="subscribe_view_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="flex_baseline" style="margin: 50rpx 50rpx 20rpx 50rpx;">
  104. <view class="top_background_title">会员</view>
  105. <view class="top_background_title" style="font-size: 40rpx;">套餐</view>
  106. </view>
  107. <view class="_tag">
  108. <view class="tag_text">更多优惠活动</view>
  109. <u-icon name="arrow-right" color="#31343d"></u-icon>
  110. </view>
  111. </view>
  112. <view style="margin: 20rpx;display: flex;justify-content: space-between;">
  113. <view v-for="(item,index) in priceBlock" :key="index"
  114. :class="isactive == index ? 'price_block_select' : 'price_block' " @click='choosePrice(index)'>
  115. <view class="_title">{{item.title}}</view>
  116. <view class="flex_baseline">
  117. <view class="price" style="font-size: 30rpx;margin-left: -15rpx;">¥</view>
  118. <view class="price">{{item.price}}</view>
  119. </view>
  120. <view class="_subtitle">{{item.subtitle}}</view>
  121. </view>
  122. </view>
  123. <view class="deal_subtitle">订阅即同意连续订阅服务协议、醍摩豆家长端会员服务协议</view>
  124. <view class="deal_subtitle">购买前请仔细阅读上述相关协议</view>
  125. <button class="btn">立即开通</button>
  126. <view class="flex_row" style="padding:10rpx 180rpx;justify-content:space-between;margin:20rpx 0;">
  127. <view class="deal_subtitle">使用条款</view>
  128. <view class="deal_subtitle">|</view>
  129. <view class="deal_subtitle">隐私政策</view>
  130. <view class="deal_subtitle">|</view>
  131. <view class="deal_subtitle">疑难解答</view>
  132. </view>
  133. </u-action-sheet>
  134. </view>
  135. </template>
  136. <script>
  137. import {
  138. mapState
  139. } from 'vuex'
  140. export default {
  141. computed: {
  142. ...mapState('m_parent', ['userData', 'parentInfo', 'phoneNumber'])
  143. },
  144. data() {
  145. return {
  146. subscribeShow: false,
  147. priceBlock: [{
  148. title: '连续包月',
  149. price: 15,
  150. subtitle: '次月¥15续费可随时取消'
  151. }, {
  152. title: '连续包年',
  153. price: 150,
  154. subtitle: '次年¥150续费可随时取消'
  155. }, {
  156. title: '连续包季',
  157. price: 40,
  158. subtitle: '次季¥40续费可随时取消'
  159. }],
  160. isactive: 1,
  161. image: 'https://image.meiye.art/pic_1632705853492qQO3MFUSDC-SNRS4re5uL'
  162. };
  163. },
  164. onLoad() {
  165. },
  166. methods: {
  167. choosePrice(index) {
  168. this.isactive = index
  169. }
  170. }
  171. }
  172. </script>
  173. <style lang="scss">
  174. .bg1 {
  175. position: fixed;
  176. left: 50%;
  177. right: 50%;
  178. transform: translate(-50%, -50%);
  179. width: 2300rpx;
  180. height: 950rpx;
  181. border-radius: 50%;
  182. background-color: #797572;
  183. background-image:
  184. linear-gradient(-173deg, rgba(255,255,255,0.20) 0%, #000000 100%),
  185. linear-gradient(72deg, rgba(255,255,255,0.25) 25%, rgba(0,0,0,0.25) 100%),
  186. radial-gradient(47% 102%, rgba(255,255,255,0.50) 0%, rgba(21,24,32,0.60) 120%);
  187. background-blend-mode: multiply;
  188. z-index: -1;
  189. overflow: hidden;
  190. }
  191. .bg2 {
  192. position: fixed;
  193. left: 50%;
  194. right: 50%;
  195. transform: translate(-50%, -50%);
  196. width: 2000rpx;
  197. height: 1000rpx;
  198. border-radius: 50%;
  199. background-image: linear-gradient(90deg, #636667, #919394, #c2c4c4, #f6f6f6);
  200. z-index: -2;
  201. }
  202. .card {
  203. position: fixed;
  204. left: 50%;
  205. right: 50%;
  206. transform: translate(-50%, -15%);
  207. display: flex;
  208. flex-direction: column;
  209. padding: 50rpx;
  210. margin-top: 700rpx;
  211. height: 250rpx;
  212. width: 580rpx;
  213. border-radius: 30rpx;
  214. background-image: linear-gradient(90deg, #ffc87e, #ffd192, #ffddae, #f5c592);
  215. opacity: 0.95;
  216. border: 2rpx solid #FFFFFF;
  217. box-shadow: 4px -4px 10px #2b2b2b;
  218. overflow: hidden;
  219. z-index: 99;
  220. .card-title {
  221. font-size: 40rpx;
  222. font-weight: bold;
  223. color: #714c1b;
  224. z-index: 99;
  225. }
  226. .card_subtitle {
  227. font-size: 30rpx;
  228. color: #714c1b;
  229. z-index: 99;
  230. }
  231. .icon_box {
  232. position: absolute;
  233. display: flex;
  234. flex-direction: column;
  235. margin: -90rpx 0 0 320rpx;
  236. .t-icon {
  237. width: 350rpx;
  238. height: 350rpx;
  239. }
  240. }
  241. }
  242. .avatar {
  243. width: 92rpx;
  244. height: 92rpx;
  245. border-radius: 100%;
  246. border: 2px solid #FFFFFF;
  247. }
  248. .subscribe-tag {
  249. display: flex;
  250. align-items: center;
  251. border-radius: 6rpx;
  252. padding: 4rpx 10rpx;
  253. transform: skew(-5deg);
  254. background: #2f3137;
  255. z-index: 99;
  256. .subscribe-tag-text {
  257. font-size: 30rpx;
  258. font-family: YSfont;
  259. color: #d0a97e;
  260. z-index: 99;
  261. }
  262. .t-icon {
  263. width: 28rpx;
  264. height: 28rpx;
  265. margin-top: -2rpx;
  266. }
  267. }
  268. .subscribe_view {
  269. display: flex;
  270. flex-direction: column;
  271. margin: 120rpx 35rpx 20rpx 35rpx;
  272. &_title {
  273. line-height: 30rpx;
  274. font-size: 30rpx;
  275. color: $title;
  276. }
  277. &_subtitle {
  278. line-height: 24rpx;
  279. font-size: 24rpx;
  280. color: $subtitle;
  281. }
  282. .t-icon {
  283. width: 80rpx;
  284. height: 80rpx;
  285. }
  286. .privilege_card {
  287. display: flex;
  288. align-items: center;
  289. height: 100rpx;
  290. width: 100%;
  291. border-radius: $border-radius;
  292. background-color: #FFF;
  293. margin: 20rpx 0 20rpx -20rpx;
  294. padding: 10rpx 20rpx;
  295. }
  296. }
  297. .subscribe-front-tag {
  298. margin-right: 20rpx;
  299. height: 35rpx;
  300. width: 10rpx;
  301. background-image: linear-gradient(#ffc87e, #ffddae);
  302. z-index: 99;
  303. }
  304. //弹出层
  305. .top_background {
  306. display: flex;
  307. flex-direction: column;
  308. width: 100%;
  309. height: 300rpx;
  310. border-top-left-radius: 20rpx;
  311. border-top-right-radius: 20rpx;
  312. background-size: 100%;
  313. background-repeat: no-repeat;
  314. &_title {
  315. font-size: 70rpx;
  316. font-family: YSfont;
  317. color: #FFF;
  318. text-shadow: 1px -1px 0px #c0c0c0,
  319. 2px -2px 0px #b0b0b0,
  320. 1px -1px 0px #a0a0a0,
  321. 2px -2px 0px #909090;
  322. }
  323. ._tag {
  324. display: flex;
  325. align-items: center;
  326. justify-content: space-around;
  327. margin: 20rpx 50rpx 50rpx 50rpx;
  328. width: 200rpx;
  329. border-radius: 6rpx;
  330. border: 2px solid #31343d;
  331. padding: 8rpx 16rpx;
  332. .tag_text {
  333. font-size: 28rpx;
  334. font-weight: bold;
  335. transform: skew(-10deg);
  336. color: #31343d;
  337. }
  338. }
  339. }
  340. .price_block_select {
  341. display: flex;
  342. flex-direction: column;
  343. align-items: center;
  344. justify-content: space-around;
  345. padding: 30rpx;
  346. width: 150rpx;
  347. height: 200rpx;
  348. border: 3px solid #d0a97e;
  349. border-radius: $border-radius;
  350. ._title {
  351. font-size: 30rpx;
  352. color: #d0a97e;
  353. }
  354. ._subtitle {
  355. font-size: 24rpx;
  356. color: $subtitle;
  357. }
  358. .price {
  359. font-size: 50rpx;
  360. font-weight: bold;
  361. color: #d0a97e;
  362. }
  363. }
  364. .price_block {
  365. display: flex;
  366. flex-direction: column;
  367. align-items: center;
  368. justify-content: space-around;
  369. padding: 30rpx;
  370. width: 150rpx;
  371. height: 200rpx;
  372. border: 3px solid #31343d;
  373. border-radius: $border-radius;
  374. ._title {
  375. font-size: 30rpx;
  376. color: #31343d;
  377. }
  378. ._subtitle {
  379. font-size: 24rpx;
  380. color: $subtitle;
  381. }
  382. .price {
  383. font-size: 50rpx;
  384. font-weight: bold;
  385. color: #31343d;
  386. }
  387. }
  388. .deal_subtitle {
  389. font-size: 24rpx;
  390. color: $subtitle;
  391. }
  392. .btn {
  393. margin-top: 20rpx;
  394. line-height: 100rpx;
  395. border-radius: $border-radius;
  396. height: 100rpx;
  397. width: 710rpx;
  398. font-weight: bold;
  399. font-size: 36rpx;
  400. color: #d0a97e;
  401. background-color: #31343d;
  402. z-index: 99;
  403. }
  404. </style>