123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446 |
- <template>
- <view>
- <top-return text="订阅中心" color="#FFF"></top-return>
- <view class="bg1">
- <view class="card">
- <view class="flex_row">
- <image class="avatar" :src="parentInfo.avatarUrl"></image>
- <view class="flex_cloumn" style="margin-left: 30rpx;justify-content: space-between;height: 100rpx;">
- <view class="flex_row">
- <view class="card_title">{{parentInfo.nickName}}</view>
- <view class="subscribe_tag" style="margin-left: 30rpx;">
- <view class="t-icon t-icon-huangguan1" style="margin-right: 2rpx;"></view>
- <view class="subscribe_tag_text" style="margin-left: 2rpx;font-size: 28rpx;">
- {{userData.subscribeLevel}}
- </view>
- </view>
- </view>
- <view class="card_subtitle">{{userData.subscribeTime}} 到期</view>
- </view>
- </view>
- <view class="icon_box">
- <view class="t-icon t-icon-huangguan1-copy"></view>
- <view class="t-icon t-icon-huangguan1-copy"
- style="margin-top: -132px;margin-left: -30rpx;width: 300rpx;height: 300rpx;opacity: 0.75;">
- </view>
- <view class="t-icon t-icon-huangguan1-copy"
- style="margin-top: -107px;margin-left: 30rpx;width: 250rpx;height: 250rpx;opacity: 0.5;">
- </view>
- <view class="t-icon t-icon-huangguan1-copy"
- style="margin-top: -82px;margin-left: 80rpx;width: 200rpx;height: 200rpx;opacity: 0.5;">
- </view>
- </view>
- </view>
- </view>
- <view class="bg2"></view>
- <view class="flex_row" style="margin: 370rpx 100rpx 0 100rpx;">
- <view class="subscribe_tag" style="padding: 6rpx 12rpx;" @click="subscribeShow = true">
- <view class="subscribe_tag_text" @click="subscribeShow = true">续费会员</view>
- </view>
- <view class="subscribe_tag" style="padding: 6rpx 12rpx;margin-left: 50rpx;" @click="subscribeShow = true">
- <view class="subscribe_tag_text" @click="subscribeShow = true">升级会员</view>
- </view>
- </view>
- <view class="subscribe_view">
- <view class="flex_row">
- <view class="subscribe_front_tag"></view>
- <view class="title">基础版会员特权</view>
- </view>
- <view style="margin: 20rpx;">
- <view class="flex_row" style="margin: 40rpx 0;">
- <view class="t-icon t-icon-jiance"></view>
- <view class="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
- <view class="subscribe_view_title">畅享成绩进阶分析</view>
- <view class="subscribe_view_subtitle">全方位掌握孩子考试能力</view>
- </view>
- </view>
- <view class="flex_row" style="margin: 40rpx 0;">
- <view class="t-icon t-icon-renwu"></view>
- <view class="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
- <view class="subscribe_view_title">测验作业内容早知道</view>
- <view class="subscribe_view_subtitle">随时随地了解孩子学习表现</view>
- </view>
- </view>
- <view class="flex_row" style="margin: 40rpx 0;">
- <view class="t-icon t-icon-tishi"></view>
- <view class="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
- <view class="subscribe_view_title">家校互动零距离</view>
- <view class="subscribe_view_subtitle">记录孩子在校在家点点滴滴</view>
- </view>
- </view>
- </view>
- <view class="flex_row">
- <view class="subscribe_front_tag"></view>
- <view class="title">专业版会员特权</view>
- </view>
- <view style="margin: 20rpx;">
- <view class="privilege_card">
- <view class="t-icon t-icon-renzheng"></view>
- <view class="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
- <view class="subscribe_view_title">敬请期待</view>
- <view class="subscribe_view_subtitle">敬请期待</view>
- </view>
- </view>
- <view class="privilege_card">
- <view class="t-icon t-icon-erweima"></view>
- <view class="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
- <view class="subscribe_view_title">敬请期待</view>
- <view class="subscribe_view_subtitle">敬请期待</view>
- </view>
- </view>
- <view class="privilege_card">
- <view class="t-icon t-icon-dianzan"></view>
- <view class="flex_cloumn" style="margin-left: 30rpx;height: 80rpx;justify-content: space-around;">
- <view class="subscribe_view_title">敬请期待</view>
- <view class="subscribe_view_subtitle">敬请期待</view>
- </view>
- </view>
- </view>
- </view>
- <u-action-sheet :show="subscribeShow" @close="subscribeShow = false" :round="10">
- <view class="top_background"
- :style="{backgroundImage:`linear-gradient(to top, #FFF, rgba(255, 255, 255, 0)),url(${image})`}">
- <view class="flex_baseline" style="margin: 50rpx 50rpx 20rpx 50rpx;">
- <view class="top_background_title">会员</view>
- <view class="top_background_title" style="font-size: 40rpx;">套餐</view>
- </view>
- <view class="_tag">
- <view class="tag_text">更多优惠活动</view>
- <u-icon name="arrow-right" color="#31343d"></u-icon>
- </view>
- </view>
- <view style="margin: 20rpx;display: flex;justify-content: space-between;">
- <view v-for="(item,index) in priceBlock" :key="index"
- :class="isactive == index ? 'price_block_select' : 'price_block' " @click='choosePrice(index)'>
- <view class="_title">{{item.title}}</view>
- <view class="flex_baseline">
- <view class="price" style="font-size: 30rpx;margin-left: -15rpx;">¥</view>
- <view class="price">{{item.price}}</view>
- </view>
- <view class="_subtitle">{{item.subtitle}}</view>
- </view>
- </view>
- <view class="deal_subtitle">订阅即同意连续订阅服务协议、醍摩豆家长端会员服务协议</view>
- <view class="deal_subtitle">购买前请仔细阅读上述相关协议</view>
- <button class="btn">立即开通</button>
- <view class="flex_row" style="padding:10rpx 180rpx;justify-content:space-between;margin:20rpx 0;">
- <view class="deal_subtitle">使用条款</view>
- <view class="deal_subtitle">|</view>
- <view class="deal_subtitle">隐私政策</view>
- <view class="deal_subtitle">|</view>
- <view class="deal_subtitle">疑难解答</view>
- </view>
- </u-action-sheet>
- </view>
- </template>
- <script>
- import {
- mapState
- } from 'vuex'
- export default {
- computed: {
- ...mapState('m_parent', ['userData', 'parentInfo', 'phoneNumber'])
- },
- data() {
- return {
- subscribeShow: false,
- priceBlock: [{
- title: '连续包月',
- price: 15,
- subtitle: '次月¥15续费可随时取消'
- }, {
- title: '连续包年',
- price: 150,
- subtitle: '次年¥150续费可随时取消'
- }, {
- title: '连续包季',
- price: 40,
- subtitle: '次季¥40续费可随时取消'
- }],
- isactive: 1,
- image: 'https://image.meiye.art/pic_1632705853492qQO3MFUSDC-SNRS4re5uL'
- };
- },
- onLoad() {
- },
- methods: {
- choosePrice(index) {
- this.isactive = index
- }
- }
- }
- </script>
- <style lang="scss">
- .bg1 {
- position: fixed;
- left: 50%;
- right: 50%;
- transform: translate(-50%, -50%);
- width: 2300rpx;
- height: 950rpx;
- border-radius: 50%;
- background-color: #797572;
- background-image:
- linear-gradient(-173deg, rgba(255,255,255,0.20) 0%, #000000 100%),
- linear-gradient(72deg, rgba(255,255,255,0.25) 25%, rgba(0,0,0,0.25) 100%),
- radial-gradient(47% 102%, rgba(255,255,255,0.50) 0%, rgba(21,24,32,0.60) 120%);
- background-blend-mode: multiply;
- z-index: -1;
- overflow: hidden;
- }
- .bg2 {
- position: fixed;
- left: 50%;
- right: 50%;
- transform: translate(-50%, -50%);
- width: 2000rpx;
- height: 1000rpx;
- border-radius: 50%;
- background-image: linear-gradient(90deg, #636667, #919394, #c2c4c4, #f6f6f6);
- z-index: -2;
- }
- .card {
- position: fixed;
- left: 50%;
- right: 50%;
- transform: translate(-50%, -15%);
- display: flex;
- flex-direction: column;
- padding: 50rpx;
- margin-top: 700rpx;
- height: 250rpx;
- width: 580rpx;
- border-radius: 30rpx;
- background-image: linear-gradient(90deg, #ffc87e, #ffd192, #ffddae, #f5c592);
- opacity: 0.95;
- border: 2rpx solid #FFFFFF;
- box-shadow: 4px -4px 10px #2b2b2b;
- overflow: hidden;
- z-index: 99;
- .card_title {
- font-size: 40rpx;
- font-weight: bold;
- color: #714c1b;
- z-index: 99;
- }
- .card_subtitle {
- font-size: 30rpx;
- color: #714c1b;
- z-index: 99;
- }
- .icon_box {
- position: absolute;
- display: flex;
- flex-direction: column;
- margin: -90rpx 0 0 320rpx;
- .t-icon {
- width: 350rpx;
- height: 350rpx;
- }
- }
- }
- .avatar {
- width: 92rpx;
- height: 92rpx;
- border-radius: 100%;
- border: 2px solid #FFFFFF;
- }
- .subscribe_tag {
- display: flex;
- align-items: center;
- border-radius: 6rpx;
- padding: 4rpx 10rpx;
- transform: skew(-5deg);
- background: #2f3137;
- z-index: 99;
- .subscribe_tag_text {
- font-size: 30rpx;
- font-family: YSfont;
- color: #d0a97e;
- z-index: 99;
- }
- .t-icon {
- width: 28rpx;
- height: 28rpx;
- margin-top: -2rpx;
- }
- }
- .subscribe_view {
- display: flex;
- flex-direction: column;
- margin: 120rpx 35rpx 20rpx 35rpx;
- &_title {
- line-height: 30rpx;
- font-size: 30rpx;
- color: $title;
- }
- &_subtitle {
- line-height: 24rpx;
- font-size: 24rpx;
- color: $subtitle;
- }
- .t-icon {
- width: 80rpx;
- height: 80rpx;
- }
- .privilege_card {
- display: flex;
- align-items: center;
- height: 100rpx;
- width: 100%;
- border-radius: $border-radius;
- background-color: #FFF;
- margin: 20rpx 0 20rpx -20rpx;
- padding: 10rpx 20rpx;
- }
- }
- .subscribe_front_tag {
- margin-right: 20rpx;
- height: 35rpx;
- width: 10rpx;
- background-image: linear-gradient(#ffc87e, #ffddae);
- z-index: 99;
- }
- //弹出层
- .top_background {
- display: flex;
- flex-direction: column;
- width: 100%;
- height: 300rpx;
- border-top-left-radius: 20rpx;
- border-top-right-radius: 20rpx;
- background-size: 100%;
- background-repeat: no-repeat;
- &_title {
- font-size: 70rpx;
- font-family: YSfont;
- color: #FFF;
- text-shadow: 1px -1px 0px #c0c0c0,
- 2px -2px 0px #b0b0b0,
- 1px -1px 0px #a0a0a0,
- 2px -2px 0px #909090;
- }
- ._tag {
- display: flex;
- align-items: center;
- justify-content: space-around;
- margin: 20rpx 50rpx 50rpx 50rpx;
- width: 200rpx;
- border-radius: 6rpx;
- border: 2px solid #31343d;
- padding: 8rpx 16rpx;
- .tag_text {
- font-size: 28rpx;
- font-weight: bold;
- transform: skew(-10deg);
- color: #31343d;
- }
- }
- }
- .price_block_select {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-around;
- padding: 30rpx;
- width: 150rpx;
- height: 200rpx;
- border: 3px solid #d0a97e;
- border-radius: $border-radius;
- ._title {
- font-size: 30rpx;
- color: #d0a97e;
- }
- ._subtitle {
- font-size: 24rpx;
- color: $subtitle;
- }
- .price {
- font-size: 50rpx;
- font-weight: bold;
- color: #d0a97e;
- }
- }
- .price_block {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-around;
- padding: 30rpx;
- width: 150rpx;
- height: 200rpx;
- border: 3px solid #31343d;
- border-radius: $border-radius;
- ._title {
- font-size: 30rpx;
- color: #31343d;
- }
- ._subtitle {
- font-size: 24rpx;
- color: $subtitle;
- }
- .price {
- font-size: 50rpx;
- font-weight: bold;
- color: #31343d;
- }
- }
- .deal_subtitle {
- font-size: 24rpx;
- color: $subtitle;
- }
- .btn {
- margin-top: 20rpx;
- line-height: 100rpx;
- border-radius: $border-radius;
- height: 100rpx;
- width: 710rpx;
- font-weight: bold;
- font-size: 36rpx;
- color: #d0a97e;
- background-color: #31343d;
- z-index: 99;
- }
- </style>
|