123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <template>
- <view>
- <u-navbar title="充电"></u-navbar>
- <view class="recharge">
- <view class="title">请选择充电金额</view>
- <p>当前余额¥10.00</p>
- <view class="rechargeMain">
- <view class="recharge-item" v-for="(item,index) in moneyList" :key="item.id">{{item.name}}</view>
- </view>
- <p>其他充电模式</p>
- <view class="self-stop">
- 充满自停
- </view>
-
- </view>
- <view class="but-box">
- <u-button shape="circle">开始充电</u-button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
-
- moneyList: [{
- id: '1',
- name: '5'
- },
- {
- id: '2',
- name: '10'
- },
- {
- id: '3',
- name: '20'
- },
- {
- id: '4',
- name: '50'
- },
- {
- id: '5',
- name: '100'
- },
- {
- id: '6',
- name: '其他充值金额'
- },
- ],
- }
- },
- }
- </script>
- <style>
- page {
- background-color: #fff;
- }
- </style>
- <style lang="scss" scoped>
- /deep/.u-radio-group {
- width: 100%;
- }
- /deep/.u-radio {
- position: relative;
- }
- /deep/.u-radio__icon-wrap {
- position: absolute;
- right: 0;
- }
- .recharge-item:last-child {
- font-size: 14px !important;
- color: #999999;
- }
- .recharge {
- padding: 16px;
- .title {
- font-size: 16px;
- }
- p {
- color: #666;
- margin-top: 4px;
- }
- .rechargeMain {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- margin-top: 12px;
- margin-bottom: 20px;
- .recharge-item {
- width: 31%;
- border: 1px solid #e3e3e3;
- padding: 15px 0;
- border-radius: 4px;
- text-align: center;
- margin-bottom: 10px;
- font-size: 16px;
- }
- .active {
- background-color: #EFFFF7;
- border-color: #00B962;
- color: #00B962;
- }
- }
- .self-stop {
- width: 105px;
- height: 48px;
- line-height: 48px;
- border-radius: 4px;
- color: #101010;
- font-size: 16px;
- text-align: center;
- font-family: Arial;
- border: 1px solid rgba(227, 227, 227, 100);
- margin-top: 12px;
- }
- }
- .recharge-input {
- margin-top: 8px;
- margin-bottom: 32px;
- }
- .recharge-radio {
- margin-top: 10px;
- .recharge-radio-item {
- display: flex;
- align-items: center;
- }
- .recharge-radio-name {
- margin-left: 8px;
- }
- }
- .but-box{
- width: 335px;
- height: 44px;
- margin: 0 auto;
- .u-size-default[data-v-3bf2dba7]{
- background-color: rgba(0, 185, 98, 100);
- color: rgba(255, 255, 255, 100);
- font-size: 16px;
- text-align: center;
- }
- }
-
- </style>
|