You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
191 lines
3.4 KiB
191 lines
3.4 KiB
<template>
|
|
<view class="main">
|
|
<view class="topCard flex jcsb">
|
|
<view class="leftBox flex">
|
|
<view class="txt">
|
|
<view class="txtItem">畅聊卡</view>
|
|
<view style="color: #999999;font-size: 28upx;">每日免费沟通5人</view>
|
|
<view style="color: #999999;font-size: 28upx;">购买后无限制并立即生效</view>
|
|
</view>
|
|
</view>
|
|
<view class="rightBox">
|
|
<image src="../../../../static/clk.png"></image>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="buyBox">
|
|
<view class="flex jcsb mb40">
|
|
<view class="title">购买月数</view>
|
|
<view style="color: #BBBBBB;font-size: 30upx;">剩余: 0天</view>
|
|
</view>
|
|
|
|
<view style="margin-bottom: 40upx;align-items: center;" class="flex">
|
|
<view style="margin-right: 20upx;font-size: 28upx;">自定义月数:</view>
|
|
<input style="text-align: left;padding-left: 18upx;width: 72%;" class="inputNum" type="number" placeholder-style="color: #CACACA" placeholder="请输入购买月数" />
|
|
</view>
|
|
|
|
<view class="selectDay flex jcsb">
|
|
<view class="dayItem" :class="item.id == selectType1 ? 'sType' : 'dType'" v-for="(item, index) in list2" :key="index" @click="clickItem1(item.id)">
|
|
{{ item.txt }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="submitBtn">
|
|
立即支付 ¥100.00/10次
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
list2: [
|
|
{
|
|
id: 1,
|
|
txt: '一个月'
|
|
},
|
|
{
|
|
id: 2,
|
|
txt: '三个月'
|
|
},
|
|
{
|
|
id: 3,
|
|
txt: '六个月'
|
|
},
|
|
{
|
|
id: 4,
|
|
txt: '一年'
|
|
}
|
|
],
|
|
selectType: 1,
|
|
selectType1: 1,
|
|
dayNum: ''
|
|
};
|
|
},
|
|
methods: {
|
|
clickItem(val){
|
|
this.selectType = val
|
|
},
|
|
clickItem1(val){
|
|
this.selectType1 = val
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less">
|
|
.main{
|
|
padding-top: 40upx;
|
|
}
|
|
page{
|
|
background-color: white;
|
|
}
|
|
.flex{
|
|
display: flex;
|
|
}
|
|
.jcsb{
|
|
justify-content: space-between;
|
|
}
|
|
.mb40{
|
|
margin-bottom: 40upx;
|
|
}
|
|
.topCard{
|
|
width: 94%;
|
|
height: 300upx;
|
|
// border: 1px solid red;
|
|
margin: 0 auto;
|
|
border-radius: 20upx;
|
|
box-shadow:#C9E4FF 0px 0px 5px;
|
|
background-color: white;
|
|
.leftBox{
|
|
width: 50%;
|
|
height: 300upx;
|
|
// border: 1px solid red;
|
|
align-items: center;
|
|
.txt{
|
|
width: 100%;
|
|
// padding: 0% ;
|
|
padding-left: 40upx;
|
|
line-height: 55upx;
|
|
}
|
|
.txtItem{
|
|
font-weight: bold;
|
|
font-size: 40upx;
|
|
font-family: 'PingFangSC-semiBold';
|
|
color: #444444;
|
|
margin-bottom: 10upx;
|
|
}
|
|
}
|
|
.rightBox{
|
|
width: 42%;
|
|
height: 300upx;
|
|
// border: 1px solid blue;
|
|
display: flex;
|
|
align-items: center;
|
|
image{
|
|
width: 230upx;
|
|
height: 200upx;
|
|
// margin-top: -30upx;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.inputNum{
|
|
background-color: #FAFAFA;
|
|
font-size: 26upx;
|
|
height: 80upx;
|
|
text-align: center;
|
|
border-radius: 10upx;
|
|
width: 80%;
|
|
}
|
|
.sType{
|
|
color: #6DADFD;
|
|
background-color: #F2F8FF;
|
|
}
|
|
.dType{
|
|
background-color: #FAFAFA;
|
|
color: #CACACA;
|
|
}
|
|
.buyBox{
|
|
width: 94%;
|
|
margin: 0 auto;
|
|
margin-top: 9%;
|
|
// border: 1px solid red;
|
|
.title{
|
|
color: #484848;
|
|
font-size: 32upx;
|
|
|
|
}
|
|
.selectDay{
|
|
.dayItem{
|
|
width: 22%;
|
|
height: 70upx;
|
|
border-radius: 10upx;
|
|
text-align: center;
|
|
line-height: 70upx;
|
|
font-size: 30upx;
|
|
}
|
|
}
|
|
}
|
|
|
|
.submitBtn{
|
|
width: 94%;
|
|
height: 90upx;
|
|
border: 1px solid #65A9FD;
|
|
margin: 0 auto;
|
|
margin-top: 40upx;
|
|
border-radius: 50upx;
|
|
margin-bottom: 50upx;
|
|
text-align: center;
|
|
line-height: 90upx;
|
|
color: #64A8FD;
|
|
position: fixed;
|
|
bottom: 20upx;
|
|
left: 3%;
|
|
font-size: 30upx;
|
|
}
|
|
</style>
|
|
|