123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <template>
- <view class="content">
- <custom-layout ref="layout" :showBottom="true" title="充值" v-model="dataList"
- @layoutquery="onQueryList">
- <template #content>
- <view class=" card_record">
- <view class="card_record_name">余额</view>
- <view class="card_record_num">
- <uni-icons custom-prefix="iconfont" type="icon-jifen" size="20"></uni-icons>
- <text>9</text>
- </view>
- <view class="card_record_bottom flx-justify-between">
- <view class="flx-center">
- <view class="">充值记录</view>
- <view class="ml10 mr10">|</view>
- <view class="">消费明细</view>
- </view>
- <view class="">
- 白赚积分
- </view>
- </view>
- </view>
- <view class="record_list">
- <view class="record_list_title">充值</view>
- <view class="demo-uni-row">
- <view class="demo-uni-col" v-for="(item,index) in 10" :key="index">
- <view class="record_item_num">99</view>
- <view class="record_item_pay">¥29元</view>
- </view>
- </view>
- </view>
- <view class="checkbox_box mt20 pl20 pr20">
- <checkbox-group>
- <label>
- <checkbox value="agreement" checked="true" />
- <text class="checkbox_box_text">已阅读并同意</text>
- </label>
- </checkbox-group>
- <text class="checkbox_box_supplementary">《充值协议》</text>和<text
- class="checkbox_box_supplementary">《充值安全提示》</text>
- </view>
- <view class="pl20 pr20 mt20">
- <button class="but_bottom" type="primary">立即充值</button>
- </view>
- </template>
- </custom-layout>
- </view>
- </template>
- <script setup>
- import {
- ref,
- onMounted
- } from 'vue';
- import {
- onShow
- } from "@dcloudio/uni-app";
- // 引入组件
- // 定义查询字典
- // 定义变量内容
- const agreement = ref(false)
- const checkboxList = ref([{
- text: '已阅读并同意',
- value: 0
- }])
- // 生命中期
- onMounted(() => {
- console.log('onMounted生命周期')
- })
- </script>
- <style lang="scss" scoped>
- @import '@/static/css/common.scss';
- .card_record {
- margin: 30rpx;
- padding: 30rpx;
- border-radius: 20rpx;
- background: linear-gradient(118.57deg, rgba(176, 242, 255, 1) 0%, rgba(144, 252, 205, 1) 100%);
- box-shadow: 0rpx 8rpx 12rpx rgba(24, 105, 255, 0.3);
- .card_record_name {
- font-size: 30rpx;
- font-weight: 600;
- letter-spacing: 0rpx;
- color: rgba(56, 56, 56, 1);
- }
- .card_record_num {
- display: flex;
- align-items: flex-end;
- .uni-icons {
- margin-bottom: 10rpx;
- position: relative;
- left: -10rpx;
- }
- text {
- font-size: 70rpx;
- font-weight: 700;
- letter-spacing: 0rpx;
- color: rgba(56, 56, 56, 1);
- margin-left: 10rpx;
- }
- }
- .card_record_bottom {
- margin-top: 60rpx;
- font-size: 28rpx;
- font-weight: 600;
- letter-spacing: 0rpx;
- line-height: 32.82rpx;
- color: rgba(56, 56, 56, 1);
- }
- }
- // ======liet样式=======
- .record_list {
- padding: 0 30rpx;
- box-sizing: border-box;
- .record_list_title {
- font-size: 32rpx;
- font-weight: 700;
- letter-spacing: 0rpx;
- line-height: 37.5rpx;
- color: rgba(0, 0, 0, 1);
- }
- .demo-uni-row {
- width: 100%;
- margin-top: 20rpx;
- box-sizing: border-box;
- display: flex;
- flex-wrap: wrap;
- .demo-uni-col {
- width: calc((100% - 40rpx) / 3);
- height: 120rpx;
- background-color: #fff;
- border-radius: 13px;
- margin-bottom: 20rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- &:nth-child(3n - 1) {
- margin-right: 20rpx;
- margin-left: 20rpx;
- }
- .record_item_num {
- font-size: 36rpx;
- font-weight: 500;
- letter-spacing: 0rpx;
- line-height: 42.2rpx;
- color: $primary-color;
- }
- .record_item_pay {
- font-size: 20rpx;
- font-weight: 500;
- letter-spacing: 0rpx;
- line-height: 23.44rpx;
- color: $text-color-sub;
- margin-top: 10rpx;
- }
- }
- }
- }
- .but_bottom {
- border-radius: 50rpx;
- background-color: $primary-color;
- color: $text-one;
- }
- </style>
|