subscribeinfo.vue 11 KB

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