|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
- <div class="uc_recharge_container">
|
|
|
+ <div class="uc_recharge_container margin-bottom-xl">
|
|
|
<!-- 头部卡片-->
|
|
|
<div class="mine padding">
|
|
|
<div class="flex justify-between">
|
|
|
<view>
|
|
|
- <text class="text-gray">当前剩余时长(分钟)</text>
|
|
|
+ <text class="gray">当前剩余时长(分钟)</text>
|
|
|
</view>
|
|
|
<view @click="to_orderlist">
|
|
|
<text class="cuIcon-calendar"></text>
|
|
@@ -12,20 +12,21 @@
|
|
|
</view>
|
|
|
</div>
|
|
|
<view>
|
|
|
- <text class="text-bold mine_min">{{ userinfo.play_time }}</text>
|
|
|
+ <text class="mine_min">{{ userinfo.play_time }}</text>
|
|
|
</view>
|
|
|
</div>
|
|
|
|
|
|
<!-- 标题-->
|
|
|
- <div class="title flex padding align-center">
|
|
|
- <div class="line margin-right"></div>
|
|
|
- <text>会员升级</text>
|
|
|
+ <div class="title flex padding-left align-center margin-top-xl margin-bottom-xs">
|
|
|
+ <div class="line margin-right-xs "></div>
|
|
|
+ <text class="titles">会员升级</text>
|
|
|
</div>
|
|
|
|
|
|
<!-- 黄金会员-->
|
|
|
<div
|
|
|
v-for="(item,index) in time_cards"
|
|
|
:key="index"
|
|
|
+ class="margin-bottom-df"
|
|
|
>
|
|
|
<div
|
|
|
class="vip"
|
|
@@ -43,26 +44,28 @@
|
|
|
>
|
|
|
<view>
|
|
|
<text class="mine_min text-white">{{ item.play_time }}</text>
|
|
|
- <text class="text-white">分钟</text>
|
|
|
+ <text class="text-white"> 分钟</text>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <text class="text-white text-sm">{{ item.title1 }}</text>
|
|
|
+ <text class="text-white text-sm subGrey">{{ item.title1 }}</text>
|
|
|
</view>
|
|
|
|
|
|
</div>
|
|
|
</van-col>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
<van-col
|
|
|
span="6"
|
|
|
offset="1"
|
|
|
>
|
|
|
<div class="card_body">
|
|
|
|
|
|
- <view>
|
|
|
+ <view class="price">
|
|
|
<text class="text-white text-sm">价格</text>
|
|
|
</view>
|
|
|
<view class="text-center">
|
|
|
- <text class="text-white mine_min">{{ item.price }} <text class="text-white text-sm">¥</text> </text>
|
|
|
+ <text class="text-white mine_min_litt">{{ item.price }} <text class="text-white text-sm"></text> </text>
|
|
|
</view>
|
|
|
<view class="text-center">
|
|
|
<img
|
|
@@ -88,35 +91,40 @@
|
|
|
<view v-if="card_action_show == item.goods_id">
|
|
|
|
|
|
<!-- 描述-->
|
|
|
+ <view class="flex justify-center">
|
|
|
<view
|
|
|
class="desc"
|
|
|
v-html="item.content"
|
|
|
>
|
|
|
|
|
|
</view>
|
|
|
+ </view>
|
|
|
|
|
|
<!-- 购买按钮-->
|
|
|
<div class="buy_button">
|
|
|
<button
|
|
|
- class="cu-btn lg bg-orange text-center margin "
|
|
|
+ class="cu-btn lg bg-orange text-center margin yellowButt"
|
|
|
@click="open_order_confirm(item)"
|
|
|
>购买{{item.goods_name}}</button>
|
|
|
</div>
|
|
|
</view>
|
|
|
</div>
|
|
|
|
|
|
- <div class="title flex padding align-center">
|
|
|
- <div class="line margin-right"></div>
|
|
|
- <text>体验次卡</text>
|
|
|
+
|
|
|
+ <div class="title flex padding-left align-center margin-top-lg margin-bottom-xs">
|
|
|
+ <div class="line margin-right-xs"></div>
|
|
|
+ <text class="titles">体验次卡</text>
|
|
|
</div>
|
|
|
<!-- 体验次卡-->
|
|
|
<div
|
|
|
v-for="(item,index) in frequency_card"
|
|
|
:key="index"
|
|
|
+ class="margin-bottom-df"
|
|
|
>
|
|
|
|
|
|
<div
|
|
|
- class="normal vip"
|
|
|
+ class="vip"
|
|
|
+ :class="item.bgBott"
|
|
|
@click="changeCardShow(item.goods_id)"
|
|
|
>
|
|
|
<van-row>
|
|
@@ -129,11 +137,11 @@
|
|
|
style="padding-top:14px;"
|
|
|
>
|
|
|
<view>
|
|
|
- <text class="mine_min text-white">{{ item.play_time }}</text>
|
|
|
- <text class="text-white">次</text>
|
|
|
+ <text class="mine_min text-white">{{ item.title2 }}</text>
|
|
|
+ <text class="text-white"> {{ item.date }}</text>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <text class="text-white text-sm">{{ item.title1 }}</text>
|
|
|
+ <text class="text-white text-sm subGrey">{{ item.title1 }}</text>
|
|
|
</view>
|
|
|
|
|
|
</div>
|
|
@@ -145,12 +153,13 @@
|
|
|
>
|
|
|
<div class="card_body">
|
|
|
|
|
|
- <view>
|
|
|
+ <view class="price">
|
|
|
<text class="text-white text-sm">价格</text>
|
|
|
</view>
|
|
|
<view class="text-center">
|
|
|
- <text class="text-white mine_min">{{ item.price }} <text class="text-white text-sm">¥</text> </text>
|
|
|
+ <text class="text-white mine_min_litt">{{ item.price }}</text>
|
|
|
</view>
|
|
|
+ <view class="text-center">
|
|
|
<img
|
|
|
src="https://img.shuimuai.com/web/btn_seedetil_1%402x.png"
|
|
|
class="check_detail"
|
|
@@ -163,6 +172,7 @@
|
|
|
alt=""
|
|
|
v-else
|
|
|
>
|
|
|
+ </view>
|
|
|
|
|
|
</div>
|
|
|
</van-col>
|
|
@@ -172,17 +182,19 @@
|
|
|
<view v-if="card_action_show == item.goods_id">
|
|
|
|
|
|
<!-- 描述-->
|
|
|
+ <view class="flex justify-center">
|
|
|
<view
|
|
|
class="desc"
|
|
|
v-html="item.content"
|
|
|
>
|
|
|
|
|
|
</view>
|
|
|
+ </view>
|
|
|
|
|
|
<!-- 购买按钮-->
|
|
|
<div class="buy_button">
|
|
|
<button
|
|
|
- class="cu-btn lg bg-orange text-center margin "
|
|
|
+ class="cu-btn lg bg-orange text-center margin yellowButt"
|
|
|
@click="open_order_confirm(item)"
|
|
|
>购买{{
|
|
|
item.goods_name
|
|
@@ -337,7 +349,7 @@ export default {
|
|
|
//弹出确认订单
|
|
|
open_order_confirm($item) {
|
|
|
$this.order_confirm = true;
|
|
|
- $item['total_price'] = ($item.price * $item.discount).toFixed(2);
|
|
|
+ $item["total_price"] = ($item.price * $item.discount).toFixed(2);
|
|
|
$this.selection_card = $item;
|
|
|
},
|
|
|
//关闭确认订单
|
|
@@ -473,13 +485,14 @@ export default {
|
|
|
let $data = res.data.data;
|
|
|
$this.time_cards = $data.time_card;
|
|
|
let $bg = ["gold", "platina", "diamond"];
|
|
|
+ let $bgBott = ["normal", "oneMonth"];
|
|
|
$this.time_cards.forEach(($val, $index) => {
|
|
|
$this.time_cards[$index]["bg"] = $bg[$index];
|
|
|
$this.time_cards[$index]["price"] = Math.ceil($val["price"]);
|
|
|
});
|
|
|
$this.frequency_card = $data.frequency_card;
|
|
|
$this.frequency_card.forEach(($val, $index) => {
|
|
|
- $this.frequency_card[$index]["bg"] = "normal";
|
|
|
+ $this.frequency_card[$index]["bgBott"] = $bgBott[$index];
|
|
|
$this.frequency_card[$index]["price"] = Math.round($val["price"]);
|
|
|
});
|
|
|
});
|
|
@@ -516,12 +529,11 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
.uc_recharge_container {
|
|
|
- padding: 0px 10px;
|
|
|
+ /* padding: 0px 10px; */
|
|
|
}
|
|
|
-
|
|
|
.mine {
|
|
|
- width: 354px;
|
|
|
- height: 93px;
|
|
|
+ width: 330px;
|
|
|
+ height: 84px;
|
|
|
background: rgba(242, 243, 255, 0.6);
|
|
|
box-shadow: 0px 3px 7px 0px rgba(159, 159, 159, 0.84);
|
|
|
border-radius: 0px 0px 11px 11px;
|
|
@@ -529,7 +541,15 @@ export default {
|
|
|
}
|
|
|
|
|
|
.mine_min {
|
|
|
- font-size: 40px;
|
|
|
+ font-size: 36px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+}
|
|
|
+
|
|
|
+.mine_min_litt {
|
|
|
+ font-size: 30px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
}
|
|
|
|
|
|
.line {
|
|
@@ -562,9 +582,12 @@ export default {
|
|
|
.normal {
|
|
|
background-image: url("https://img.shuimuai.com/web/frame_cika.png");
|
|
|
}
|
|
|
+.oneMonth {
|
|
|
+ background-image: url("https://img.shuimuai.com/frame_oneMonth.png");
|
|
|
+}
|
|
|
|
|
|
.card_body {
|
|
|
- padding: 5px 0px;
|
|
|
+ padding: 3px 0px;
|
|
|
}
|
|
|
|
|
|
.check_detail {
|
|
@@ -574,12 +597,18 @@ export default {
|
|
|
|
|
|
.desc {
|
|
|
width: 324px;
|
|
|
- /*height: 128px;*/
|
|
|
+ /* height: 128px; */
|
|
|
margin: 10px auto;
|
|
|
font-size: 10px;
|
|
|
color: #6b6b6b;
|
|
|
+ line-height: 18px;
|
|
|
+}
|
|
|
+.titles {
|
|
|
+ font-size: 15px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #010101;
|
|
|
}
|
|
|
-
|
|
|
.buy_button {
|
|
|
text-align: center;
|
|
|
}
|
|
@@ -639,4 +668,43 @@ export default {
|
|
|
/*background-position: center;*/
|
|
|
background-color: rgba(255, 255, 255, 0);
|
|
|
}
|
|
|
+.under_line {
|
|
|
+ margin-left: 5px;
|
|
|
+ font-size: 12px;
|
|
|
+ font-family: PingFang;
|
|
|
+ font-weight: 400;
|
|
|
+ text-decoration: underline;
|
|
|
+ color: #000000;
|
|
|
+}
|
|
|
+.gray {
|
|
|
+ font-size: 12px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #6d6d6d;
|
|
|
+}
|
|
|
+.title {
|
|
|
+ margin-left: -8px;
|
|
|
+}
|
|
|
+.subGrey {
|
|
|
+ font-size: 10px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #ffffff;
|
|
|
+ opacity: 0.8;
|
|
|
+}
|
|
|
+.price {
|
|
|
+ margin: 3px 0 0 3px;
|
|
|
+ font-size: 10px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #ffffff;
|
|
|
+}
|
|
|
+.yellowButt {
|
|
|
+ width: 208px;
|
|
|
+ height: 44px;
|
|
|
+ background: #ffb400;
|
|
|
+ box-shadow: 0px 3px 7px 0px #ff9306;
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-bottom: 27px;
|
|
|
+}
|
|
|
</style>
|