12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <template>
- <view class="historyList">
- <view class="historyListItem" v-for="(item, index) in dataList" :key="item.rechargeOrderSn">
- <image class="itemImages" src="@/static/images/user/chon.png"></image>
- <view class="texts">
- <text class="names">余额充值</text>
- <text class="timers">{{ item.createTime }}</text>
- </view>
- <view class="addNumber">
- + {{ item.rechargeBalance * 2 }} 元
- </view>
- </view>
- </view>
- </template>
- <script>
- import { getByRechargeApi } from '@/api/anotherTFInterface'
- export default {
- name: 'historyRecord',
- data() {
- return {
- dataList: []
- }
- },
- created() {
- getByRechargeApi({
- page: 1,
- pageSize: 100
- }).then(res => [
- this.dataList = res.data.records
- ])
- }
- }
- </script>
- <style lang="scss" scoped>
- .historyListItem {
- margin: 6rpx 0;
- position: relative;
- box-sizing: border-box;
- padding: 16rpx 32rpx;
- width: 100%;
- display: flex;
- align-items: center;
- .itemImages {
- width: 80rpx;
- height: 80rpx;
- border-radius: 50%;
- }
- .texts {
- margin-left: 20rpx;
- display: flex;
- flex-direction: column;
- /* justify-content: space-between; */
- /* gap: 10rpx; */
- .names {
- font-family: Source Han Sans;
- font-size: 34rpx;
- font-weight: 600;
- line-height: 40rpx;
- color: #222229;
- }
- .timers {
- margin-top: 8rpx;
- font-family: Source Han Sans;
- font-size: 30rpx;
- font-weight: normal;
- line-height: 32rpx;
- color: #888889;
- }
- }
- .addNumber {
- position: absolute;
- right: 20rpx;
- font-family: Source Han Sans;
- font-size: 40rpx;
- font-weight: 500;
- line-height: 40rpx;
- color: #222229;
- }
- }
- </style>
|