123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <template>
- <view>
- <u-navbar title="充值">
- </u-navbar>
- <view class="recharge">
- <view class="recharge-text">
- <p>账单余额(元)</p>
- <h1>0.00</h1>
- </view>
- <view class="recharge-btn">
- 账单
- </view>
- </view>
- <view class="charge">
- <view class="chargeTit">
- 选择充值金额
- </view>
- <view class="chargeMain">
- <view class="chargeMain-item active"><p>10元</p> <span>赠1元</span></view>
- <view class="chargeMain-item"><p>20元</p> <span>赠3元</span></view>
- <view class="chargeMain-item"><p>50元</p> <span>赠8元</span></view>
- <view class="chargeMain-item"><p>100元</p> <span>赠20元</span></view>
- </view>
- </view>
- <view class="charge">
- <view class="chargeRadio">
- <view class="u-flex">
- <u-icon name="weixinzhifu" custom-prefix="custom-icon" color="#22ac38" size="80"></u-icon>
- <view class="chargeRadio-text">
- <h4>微信支付</h4>
- <p>推荐微信支付</p>
- </view>
- </view>
- <u-radio-group>
- <u-radio></u-radio>
- </u-radio-group>
- </view>
- </view>
- <view class="foot-btn">
- <view class="foot-pirce">
- <u-icon name="tikuan" custom-prefix="custom-icon" color="#FF9502" size="48"></u-icon>
- <span>支付 ¥1.00</span>
- </view>
- <u-button type="primary" :custom-style="customStyle" shape="square">确定充值</u-button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- customStyle: {
- background: '#1677ff'
- }
- }
- },
- methods: {
- }
- }
- </script>
- <style>
- page{
- background-color: #f7f7f7;
- }
- </style>
- <style lang="scss" scoped>
- .recharge{
- padding: 15px;
- background-color: #1677FF;
- margin-bottom: 10px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .recharge-text{
- color:#fff;
- }
- .recharge-btn{
- width: 60px;
- height: 30px;
- text-align: center;
- line-height: 30px;
- background-color: #589EFF;
- color:#fff;
- border-radius: 15px;
- }
- }
- .charge{
- padding: 15px;
- background-color: #fff;
- margin-bottom: 10px;
- }
- .chargeRadio{
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- .chargeRadio-text{
- margin-left: 5px;
- h4{
- font-weight: normal;
- font-size: 15px;
- }
- p{
- font-size: 12px;
- color:#999;
- margin-top: 5px;
- }
- }
- }
- .chargeTit{
- border-bottom: 1px solid #f7f7f7;
- padding-bottom: 10px;
- font-size: 15px;
- }
- .chargeMain{
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- margin-top: 20px;
- .chargeMain-item{
- width: 48%;
- text-align: center;
- padding: 25px 10px;
- border: 2px solid #cacaca;
- margin-bottom: 10px;
- border-radius: 10px;
- color:#333;
- position: relative;
- p{
- font-size: 20px;
- }
- span{
- background-color: #ff8d00;
- color:#fff;
- padding: 2px 10px;
- border-radius:0 10px 0 10px;
- position: absolute;
- font-size: 12px;
- right: -2px;
- top: -2px;
- }
- }
- .active{
- border-color:#ff8d00;
- color:#ff8d00;
- }
- .fault{
- background-color:#e1e1e1;
- color:#666;
- border: 1px solid #ccc;
- }
- .occupy{
- color:#FF4F3F;
- border: 1px solid #FF4F3F;
- }
- }
- .foot-btn{
- padding: 10px;
- position: fixed;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: #fff;
- .foot-pirce{
- display: flex;
- align-items: center;
- span{
- margin-left: 5px;
- font-size: 16px;
- }
- padding-bottom: 10px;
- border-bottom: 1px solid #f7f7f7;
- margin-bottom: 10px;
- }
- }
- </style>
|