123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053 |
- <template>
- <view class="vip-container">
- <view class="heard-box" :class="`active${selectedPrice}`">
- <!-- 自定义头部 -->
- <PageHeader title="" class="PageHeader">
- <template slot="right">
- <view class="more-options" @tap="toggleDropdown">
- <text class="fa fa-ellipsis-h"></text>
- <view class="dropdown-menu" v-if="showDropdown">
- <view class="dropdown-item" @tap="handleOption('vipRecord')">VIP记录</view>
- <view class="dropdown-item" @tap="handleOption('contact')">联系客服</view>
- </view>
- </view>
- </template>
- </PageHeader>
- <view class="reserveASeat"></view>
- <view class="vip-card-box">
- <!-- 顶部会员信息 -->
- <view class="vip-header">
- <view class="vip-info">
- <CircleAvatar class="vip-info-left" v-if="userInfo.avator" :src="userInfo.avator">
- </CircleAvatar>
- <view class="vip-info-right">
- <view class="vip-nickname">{{ userInfo.nickname }}</view>
- <view class="vip-expire" v-if="userInfo.is_vip">VIP到期时间: {{ userInfo.vip_date }}</view>
- <view class="vip-expire" v-else>暂未开通</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="vip-content">
- <!-- 会员价格选择 -->
- <view class="vip-price-options">
- <view class="price-option" v-for="(item, index) in priceOptions" :key="index"
- :class="{ active: selectedPrice === index }" @tap="selectPrice(index)">
- <view class="price-left-img" v-if="item.limitedTimeGift">
- 限时优惠M币{{ item.limitedTimeGift }}
- </view>
- <view class="price-tag" v-if="item.tag">{{ item.tag }}</view>
- <view class="duration">{{ item.name }}</view>
- <view class="price"><text style="font-size: 40rpx;">¥</text>{{ item.price }}</view>
- <view class="originalPrice">¥{{ item.originalPrice }}</view>
- </view>
- </view>
- <uv-notice-bar speed="250" color="#333"
- :text="'uv-ui众多组件覆盖开发过程的各个需求,组件功能丰富,多端兼容。让您快速集成,开箱即用'"></uv-notice-bar>
- <!-- 会员特权列表 -->
- <view class="vip-privileges">
- <view class="privileges-title">尊享特权</view>
- <view class="privileges-list">
- <view class="privilege-item" v-for="(item, index) in privileges" :key="index">
- <image class="privilege-icon" v-if="item.icon" :src="item.icon" mode="aspectFit"></image>
- <view class="privilege-info">
- <view class="privilege-name">{{ item.name }}</view>
- <view class="privilege-desc">{{ item.desc }}</view>
- </view>
- </view>
- </view>
- </view>
- <view class="agree">
- <view class="agree2" @click="agreeChk()">
- <image mode="widthFix" src="../../static/icon/wd_icon_gouxuan04.png" v-if="is_agree == 0"></image>
- <image mode="widthFix" src="../../static/icon/wd_icon_gouxuan05.png" v-if="is_agree == 1"></image>
- </view>
- <view>
- 同意
- <text class="xy" @click="goPage('/pages/AboutUs/pay_xy')">
- 《充值服务协议》
- </text>,充值M币仅【萌创星球】使用点击查看
- <text class="xy" @click="goPage('yszc')">
- 充值记录
- </text>
- </view>
- </view>
- <view class="bottom-pay-btn-bottom"
- v-if="priceOptions && priceOptions[selectedPrice] && priceOptions[selectedPrice].price"
- @tap="showPaymentOptions">
- <text>¥{{ priceOptions[selectedPrice].price }}</text> 立即购买
- </view>
- </view>
- <!-- 支付方式选择弹窗 -->
- <uni-popup ref="paymentPopup" type="bottom">
- <view class="payment-popup">
- <view class="popup-header">
- <view class="popup-title">选择支付方式</view>
- <!-- <view class="popup-close" @tap="closePaymentPopup">×</view> -->
- </view>
- <view class="payment-options">
- <view class="payment-option" @tap="selectPayment('alipay')">
- <image class="payment-icon" src="../../static/icon/pay_ali.png" mode="aspectFit"></image>
- <view class="payment-name">支付宝支付</view>
- <image class="payment-select"
- :src="paymentMethod === 'alipay' ? '../../static/icon/wd_icon_gouxuan05.png' : '../../static/icon/wd_icon_gouxuan04.png'"
- mode="aspectFit"></image>
- </view>
- <view v-if="false" class="payment-option" @tap="selectPayment('wechat')">
- <image class="payment-icon" src="../../static/icon/pay_wx.png" mode="aspectFit"></image>
- <view class="payment-name">微信支付</view>
- <image class="payment-select"
- :src="paymentMethod === 'wechat' ? '../../static/icon/wd_icon_gouxuan05.png' : '../../static/icon/wd_icon_gouxuan04.png'"
- mode="aspectFit"></image>
- </view>
- </view>
- <view class="confirm-payment" @tap="confirmPayment">立即支付</view>
- </view>
- </uni-popup>
- <CustomerServicePopup ref="customerServicePopup"></CustomerServicePopup>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- userInfo: {
- is_vip: false,
- vip_date: '2023-10-23'
- },
- priceOptions: [
- ],
- selectedPrice: 1, // 默认选中的价格选项索引
- privileges: [{
- name: 'VIP专属通道',
- icon: '../../static/vip/hy_icon_quanyi01.png',
- desc: '创作加速,更快生成'
- },
- {
- name: '专属星源礼包',
- icon: '../../static/vip/hy_icon_quanyi02.png',
- desc: '每日登录领更多星源'
- },
- {
- name: '记忆增强',
- icon: '../../static/vip/hy_icon_quanyi03.png',
- desc: '创作加速,更快生成'
- },
- {
- name: '升级语言模型',
- icon: '../../static/vip/hy_icon_quanyi04.png',
- desc: '深度思考,提升50%'
- },
- {
- name: 'VIP专属通道',
- icon: '../../static/vip/hy_icon_quanyi05.png',
- desc: '创作加速,更快生成'
- },
- {
- name: '免广告',
- icon: '../../static/vip/hy_icon_quanyi06.png',
- desc: '无广告免费体验'
- }
- ],
- paymentMethod: 'alipay', // 默认支付方式
- privilegesHeight: 0, // 添加存储特权区域高度的变量
- showDropdown: false, // 控制下拉菜单显示状态
- is_agree: 0,
- linkid: '',
- }
- },
- onLoad() {
- // 获取用户信息,检查是否为VIP
- this.getUserInfo();
- },
- onReady() {
- // 页面渲染完成后获取vip-privileges的高度
- this.getPrivilegesHeight();
- },
- methods: {
- // 获取用户信息
- getUserInfo() {
- // 这里添加获取用户信息的API调用
- uni.request({
- url: this.$apiHost + "/User/getinfo",
- data: {
- uuid: getApp().globalData.uuid,
- skey: getApp().globalData.skey,
- },
- header: {
- "content-type": "application/json",
- sign: getApp().globalData.headerSign,
- },
- success: (res) => {
- if (res) {
- console.log("获取到用户信息", res.data);
- this.userInfo = res.data
- }
- },
- complete: (com) => {
- },
- fail: (e) => {
- console.log("----e:", e);
- },
- });
- uni.request({
- url: this.$apiHost + "/Member/vipList",
- data: {
- uuid: getApp().globalData.uuid,
- skey: getApp().globalData.skey,
- },
- header: {
- "content-type": "application/json",
- sign: getApp().globalData.headerSign,
- },
- success: (res) => {
- console.log("作品列表数据:", res.data);
- // 确保在任何情况下都完成加载
- if (
- res.data.success == "yes" &&
- res.data.list &&
- res.data.list.length > 0
- ) {
- console.log(res.data.list, "会员列表数据");
- res.data.list.reverse()
- res.data.list.forEach(v => {
- this.priceOptions.push({
- id: v.id,
- limitedTimeGift: v.price_market - v.price,
- name: v.name,
- price: v.price,
- originalPrice: v.price_market,
- tag: v.tag,
- numDay: v.num_day,
- numSong: v.num_song,
- })
- });
- this.priceOptions[1].tag = "推荐"
- console.log(this.priceOptions, "会员列表数据");
- } else {
- // priceOptions: [{
- // name: '月度VIP',
- // price: '98',
- // originalPrice: '168',
- // tag: '',
- // limitedTimeGift: ""
- // },
- // {
- // name: '季度VIP',
- // price: '198',
- // originalPrice: '268',
- // tag: '推荐',
- // limitedTimeGift: "100"
- // },
- // {
- // name: '年度VIP',
- // price: '398',
- // originalPrice: '498',
- // tag: '',
- // limitedTimeGift: "1500"
- // }
- // ],
- }
- },
- complete: () => {
- },
- fail: (e) => {
- console.log("请求关注列表失败:", e);
- },
- });
- },
- // 选择价格选项
- selectPrice(index) {
- this.selectedPrice = index;
- },
- // 显示支付方式选择弹窗
- showPaymentOptions() {
- if (this.is_agree == 0) {
- uni.showToast({
- title: "请确认并选择协议",
- icon: "none",
- });
- return;
- }
- this.$refs.paymentPopup.open();
- },
- // 关闭支付方式选择弹窗
- closePaymentPopup() {
- this.$refs.paymentPopup.close();
- },
- // 选择支付方式
- selectPayment(method) {
- this.paymentMethod = method;
- },
- // 确认支付
- confirmPayment() {
- if (!this.priceOptions || !this.priceOptions[this.selectedPrice]) {
- uni.showToast({
- title: '请选择会员套餐',
- icon: 'none'
- });
- return;
- }
- if (this.is_agree == 0) {
- uni.showToast({
- title: "请确认并选择协议",
- icon: "none",
- });
- return;
- }
- this.submitPayment();
- },
- // 提交支付
- submitPayment() {
- let that = this;
- uni.showLoading({
- title: '创建订单中...'
- });
- uni.request({
- url: this.$apiHost + '/Order/submit',
- data: {
- uuid: getApp().globalData.uuid,
- skey: getApp().globalData.skey,
- product_id: this.priceOptions[this.selectedPrice].id,
- type: 'buyVip',
- payType: this.paymentMethod
- },
- header: {
- 'content-type': 'application/json',
- sign: getApp().globalData.headerSign
- },
- success: (res) => {
- console.log("支付订单创建结果:", res.data);
- if (res.data.success == 'yes') {
- this.linkid = res.data.linkid;
- this.$refs.paymentPopup.close();
- // 根据支付方式调用不同的支付接口
- if (this.paymentMethod === 'wechat') {
- uni.requestPayment({
- provider: "wxpay",
- orderInfo: {
- appid: res.data.wepay.appid,
- partnerid: res.data.wepay.partnerid,
- prepayid: res.data.wepay.prepayid,
- package: "Sign=WXPay",
- noncestr: res.data.wepay.noncestr,
- timestamp: res.data.wepay.timestamp,
- sign: res.data.wepay.sign
- },
- success: (payRes) => {
- console.log("微信支付成功:", payRes);
- that.checkPayStatus();
- },
- fail: (err) => {
- console.log("微信支付失败:", err);
- uni.hideLoading();
- uni.showToast({
- title: '支付取消',
- icon: 'none'
- });
- }
- });
- } else if (this.paymentMethod === 'alipay') {
- uni.requestPayment({
- provider: "alipay",
- orderInfo: res.data.ali_pay,
- success: (payRes) => {
- console.log("支付宝支付成功:", payRes);
- that.checkPayStatus();
- },
- fail: (err) => {
- console.log("支付宝支付失败:", err);
- uni.hideLoading();
- uni.showToast({
- title: '支付取消',
- icon: 'none'
- });
- }
- });
- }
- } else {
- uni.hideLoading();
- uni.showToast({
- title: res.data.msg || '创建订单失败',
- icon: "error"
- });
- }
- },
- fail: (err) => {
- console.log("创建订单失败:", err);
- uni.hideLoading();
- uni.showToast({
- title: '网络错误,请稍后重试',
- icon: "error"
- });
- }
- });
- },
- // 检查支付状态
- checkPayStatus() {
- let that = this;
- uni.request({
- url: this.$apiHost + "/Order/getstatus",
- data: {
- uuid: getApp().globalData.uuid,
- linkid: this.linkid,
- },
- header: {
- "content-type": "application/json",
- 'sign': getApp().globalData.headerSign
- },
- success: (res) => {
- if (res.data.success == "yes") {
- uni.hideLoading();
- uni.showToast({
- title: "充值成功",
- icon: "none",
- });
- // 支付成功后刷新用户信息
- this.getUserInfo();
- } else {
- setTimeout(function () {
- that.checkPayStatus();
- }, 1000);
- }
- },
- fail: (err) => {
- console.log("检查支付状态失败:", err);
- uni.hideLoading();
- uni.showToast({
- title: "网络错误,请重试",
- icon: "none"
- });
- }
- });
- },
- // 获取特权列表区域的高度
- getPrivilegesHeight() {
- const query = uni.createSelectorQuery().in(this);
- query.select('.vip-privileges').boundingClientRect(data => {
- if (data) {
- this.privilegesHeight = data.height;
- console.log('特权区域高度:', this.privilegesHeight);
- } else {
- console.log('未能获取到特权区域元素');
- // 如果首次获取失败,可以添加延迟重试
- setTimeout(() => {
- this.getPrivilegesHeight();
- }, 100);
- }
- }).exec();
- },
- // 如果需要在某些数据变化后重新获取高度
- updatePrivilegesHeight() {
- this.$nextTick(() => {
- this.getPrivilegesHeight();
- });
- },
- // 切换下拉菜单显示状态
- toggleDropdown() {
- this.showDropdown = !this.showDropdown;
- },
- // 处理下拉菜单选项点击
- handleOption(type) {
- this.showDropdown = false;
- switch (type) {
- case 'vipRecord':
- uni.navigateTo({
- url: '/pages/vip/record?type=vip'
- });
- break;
- case 'help':
- uni.navigateTo({
- url: '/pages/help/index'
- });
- break;
- case 'contact':
-
- this.openCustomPopup();
- break;
- }
- },
- openCustomPopup() {
- this.$refs.customerServicePopup.open();
- },
- goPage(page) {
- uni.navigateTo({
- url: page,
- })
- }, agreeChk() {
- if (this.is_agree == 0) {
- this.is_agree = 1;
- } else {
- this.is_agree = 0;
- }
- },
- }
- }
- </script>
- <style lang="scss">
- // 导入FontAwesome
- @import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
- .vip-container {
- min-height: 100vh;
- padding-bottom: 100rpx;
- .heard-box {
- .PageHeader {
- background-image: url("@/static/vip/hy_bg_01.png");
- background-size: 100% auto;
- background-repeat: no-repeat;
- background-position-y: -var(--status-bar-height);
- ::v-deep .uni-icons {
- color: #fff !important;
- }
- .fa {
- color: #fff;
- }
- }
- .vip-card-box {
- width: 100%;
- padding: 0 36rpx;
- height: 300rpx;
- padding-top: 50rpx;
- .vip-header {
- width: 100%;
- height: 210rpx;
- padding-left: 28rpx;
- padding-top: 110rpx;
- .vip-info {
- display: flex;
- .vip-info-left {
- width: 60rpx;
- height: 60rpx;
- border: #fff solid 2rpx;
- margin-right: 10rpx;
- }
- .vip-info-right {
- .vip-nickname {
- font-size: 24rpx;
- font-weight: 400;
- font-family: 'PingFang SC-Bold';
- }
- .vip-expire {
- font-size: 20rpx;
- font-family: 'PingFang SC-Medium';
- }
- }
- }
- }
- }
- &.active0 {
- background: url("@/static/vip/hy_bg_01.png") center/100% 100% no-repeat;
- .PageHeader {
- background-image: url("@/static/vip/hy_bg_01.png");
- }
- .vip-card-box {
- .vip-header {
- background: url("@/static/vip/hy_card_01.png") top center/100% auto no-repeat;
- .vip-info {
- .vip-nickname {
- color: #1f1f1f;
- }
- .vip-expire {
- color: rgba(31, 31, 31, 0.7);
- }
- }
- }
- }
- }
- &.active1 {
- background: url("@/static/vip/hy_bg_02.png") center/100% 100% no-repeat;
- .PageHeader {
- background-image: url("@/static/vip/hy_bg_02.png");
- }
- .vip-card-box {
- .vip-header {
- background: url("@/static/vip/hy_card_02.png") top center/100% auto no-repeat;
- .vip-info {
- .vip-nickname {
- color: #FFE590;
- }
- .vip-expire {
- color: rgba(255, 229, 144, 0.35);
- }
- }
- }
- }
- }
- &.active2 {
- background: url("@/static/vip/hy_bg_03.png") center/100% 100% no-repeat;
- .PageHeader {
- background-image: url("@/static/vip/hy_bg_03.png");
- }
- .vip-card-box {
- .vip-header {
- background: url("@/static/vip/hy_card_03.png") top center/100% auto no-repeat;
- .vip-info {
- .vip-nickname {
- color: #FFFFFF;
- }
- .vip-expire {
- color: rgba(255, 255, 255, 0.35);
- }
- }
- }
- }
- }
- .reserveASeat {
- width: 100%;
- background: transparent;
- height: calc(var(--status-bar-height) + 90rpx);
- }
- }
- .vip-content {
- background: #fff;
- border-top-left-radius: 32rpx;
- border-top-right-radius: 32rpx;
- .vip-price-options {
- display: flex;
- justify-content: space-between;
- padding: 32rpx;
- margin-top: -60rpx;
- .price-option {
- width: 218rpx;
- height: 250rpx;
- background-color: #fff;
- border-radius: 20rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- position: relative;
- transition: all 0.3s;
- border-radius: 20rpx;
- border: 4rpx solid #E9E9E9;
- padding-top: 48rpx;
- padding-bottom: 34rpx;
- .price-left-img {
- min-width: 160rpx;
- height: 48rpx;
- padding: 6rpx 12rpx 14rpx 12rpx;
- position: absolute;
- left: -6rpx;
- top: -4rpx;
- background: url("../../static/vip/hy_biaoqian_02.png") center/100% 100% no-repeat;
- font-weight: 400;
- font-size: 10px;
- color: #898888;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .price-tag {
- position: absolute;
- bottom: -4rpx;
- right: -4rpx;
- font-family: 'PingFang SC-Bold';
- font-weight: 400;
- background-color: #4A4A4A;
- color: #ffffff;
- font-size: 24rpx;
- width: 86rpx;
- height: 36rpx;
- border-top-left-radius: 20rpx;
- border-bottom-right-radius: 20rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .duration {
- font-family: 'PingFang SC-Bold';
- font-weight: 400;
- font-size: 32rpx;
- color: #1F1F1F;
- }
- .price {
- font-size: 68rpx;
- font-weight: bold;
- color: #4A4A4A;
- padding-top: 10rpx;
- padding-bottom: 5rpx;
- }
- .originalPrice {
- font-size: 28rpx;
- color: #999999;
- text-decoration: line-through;
- }
- &.active {
- background: linear-gradient(to bottom, #F0FFD9, rgba(0, 0, 0, 0));
- border-color: #1f1f1f;
- transform: scale(1.05);
- .price-left-img {
- background: url("../../static/vip/hy_biaoqian_01.png") center/100% no-repeat;
- color: #ACF934;
- }
- .price {
- color: #7CCB00;
- }
- }
- }
- }
- .vip-privileges {
- padding: 0 30rpx;
- .privileges-title {
- font-family: 'PingFang SC-Bold';
- font-weight: 400;
- font-size: 16px;
- color: #1F1F1F;
- padding-top: 36rpx;
- padding-bottom: 22rpx;
- }
- .privileges-list {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- }
- .privilege-item {
- width: 330rpx;
- height: 136rpx;
- flex-grow: 0;
- background-color: #F7F7F7;
- border-radius: 16rpx;
- padding: 26rpx;
- padding-right: 0;
- // padding-left: 20rpx;
- margin-bottom: 26rpx;
- display: flex;
- align-items: center;
- }
- .privilege-icon {
- width: 84rpx;
- height: 84rpx;
- margin-right: 20rpx;
- }
- .privilege-name {
- font-size: 28rpx;
- font-weight: 400;
- color: #1C2C00;
- margin-bottom: 10rpx;
- }
- .privilege-desc {
- font-size: 20rpx;
- color: #999999;
- }
- }
- .bottom-pay-btn-bottom {
- width: 626rpx;
- height: 88rpx;
- background: linear-gradient(90deg, #1F1F1F 0%, #444444 100%);
- border-radius: 76rpx;
- margin: 0 auto;
- margin-top: 70rpx;
- color: #ACF934;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 32rpx;
- line-height: 0;
- text {
- font-size: 44rpx;
- display: inline-block;
- margin-right: 10rpx;
- }
- }
- }
- .uv-notice-bar {
- background-color: #F2F6F2 !important;
- border-radius: 108rpx;
- width: calc(100% - 64rpx);
- margin: 0 auto;
- ::v-deep.uvicon-volume {
- color: #333 !important;
- }
- }
- .bottom-pay-btn {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background-color: #242424;
- padding: 30rpx 40rpx;
- box-sizing: border-box;
- .total-price {
- color: #cccccc;
- font-size: 28rpx;
- }
- .price-value {
- color: #ffffff;
- font-size: 40rpx;
- font-weight: bold;
- }
- .pay-button {
- background: linear-gradient(to right, #9758DE, #5F17DD);
- color: #ffffff;
- padding: 20rpx 60rpx;
- border-radius: 50rpx;
- font-size: 32rpx;
- }
- }
- /* 支付方式选择弹窗样式 */
- .payment-popup {
- background-color: #ffffff;
- border-radius: 24rpx 24rpx 0 0;
- padding: 40rpx;
- .popup-header {
- display: flex;
- justify-content: center;
- align-items: center;
- margin-bottom: 40rpx;
- position: relative;
- }
- .popup-title {
- font-size: 32rpx;
- color: #333;
- font-weight: 500;
- text-align: center;
- }
- .popup-close {
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- font-size: 48rpx;
- color: #999999;
- line-height: 1;
- }
- .payment-options {
- margin-bottom: 40rpx;
- }
- .payment-option {
- display: flex;
- align-items: center;
- padding: 32rpx 0;
- border-bottom: 1rpx solid #EEEEEE;
- &:last-child {
- border-bottom: none;
- }
- }
- .payment-icon {
- width: 72rpx;
- height: 72rpx;
- margin-right: 24rpx;
- }
- .payment-name {
- flex: 1;
- color: #333;
- font-size: 32rpx;
- }
- .payment-select {
- width: 40rpx;
- height: 40rpx;
- }
- .confirm-payment {
- background: #333333;
- color: #ACF934;
- text-align: center;
- padding: 28rpx 0;
- border-radius: 76rpx;
- font-size: 32rpx;
- margin-top: 60rpx;
- font-weight: 500;
- }
- }
- ::v-deep .uni-popup .uni-popup__wrapper {
- border-radius: 24rpx 24rpx 0 0;
- }
- ::v-deep .uni-popup .uni-popup__wrapper-box {
- border-radius: 24rpx 24rpx 0 0;
- }
- .more-options {
- position: relative;
- display: inline-block;
- .fa {
- font-size: 40rpx;
- padding: 0 20rpx;
- }
- .dropdown-menu {
- position: absolute;
- top: calc(100% + 10rpx);
- right: 20rpx;
- background-color: #ffffff;
- border-radius: 20rpx;
- padding: 0;
- width: 200rpx;
- box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
- z-index: 100;
- transform-origin: top right;
- animation: dropdownAnimation 0.2s ease-out;
- .dropdown-item {
- padding: 24rpx 0;
- color: #333333;
- font-size: 28rpx;
- position: relative;
- text-align: center;
- &:not(:last-child)::after {
- content: '';
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- height: 1rpx;
- background-color: #EEEEEE;
- }
- &:active {
- background-color: #f8f8f8;
- }
- }
- }
- }
- @keyframes dropdownAnimation {
- 0% {
- opacity: 0;
- transform: scale(0.95) translateY(-5rpx);
- }
- 100% {
- opacity: 1;
- transform: scale(1) translateY(0);
- }
- }
- }
- .agree {
- width: 90%;
- margin: 0 auto;
- color: #666666;
- font-size: 24rpx;
- margin-top: 40rpx;
- display: flex;
- align-items: center;
- text-align: left;
- line-height: 32rpx;
- .agree2 {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- padding-right: 8rpx;
- flex-shrink: 0;
- }
- .xy {
- color: #0084FF;
- display: inline;
- }
- image {
- width: 32rpx;
- height: 32rpx;
- }
- }
- </style>
|