123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <template>
- <view class="page" :style="{'min-height':(h-th)+'px','padding-top':mt+'px'}">
- <c-nav-bar title="交易账单"></c-nav-bar>
- <view class="query">
- <u-icon @click="" name="calendar" label="自定义查询" labelPos="right" labelColor="#666" color="#666"
- space="10px"></u-icon>
- </view>
- <view class="list" v-for="(item2,index2) in data" :key="index2" >
- <view class="time">
- <text>今日</text>
- <text>{{new Date().Format('yyyy-MM-dd')}}</text>
- </view>
- <view class="money">
- <view>
- <text>收入金额</text>
- <text class="in">+879.00</text>
- <text>2笔</text>
- </view>
- <view>
- <text>退款金额</text>
- <text>879.00</text>
- <text>2笔</text>
- </view>
- </view>
- <view class="li" v-for="(item,index) in data" :key="index">
- <view class="left">
- <text>黄沙村渔家乐12客位</text>
- <text>2024-02-23 09:12:34</text>
- </view>
- <view class="right">+12</text>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- h: uni.getSystemInfoSync().windowHeight - 87,
- mt: uni.getSystemInfoSync().statusBarHeight + 44,
- data: [4, 5],
- name: '黄沙村渔家乐',
- emg: 'https://i.ringzle.com/file/20240224/91173dde1cb44b139129e12ad4971f1d.png',
- icons: ['https://i.ringzle.com/file/20240224/70ab9f9d1a144c95927dedc6e84bcce7.png',
- 'https://i.ringzle.com/file/20240224/3f990c250f444ac9a5d9f334f322c98e.png',
- 'https://i.ringzle.com/file/20240224/7ca1bfa6e348438e83edc5af0589f847.png'
- ]
- }
- }
- }
- </script>
- <style lang="less" scoped>
- .page {
- background: #F3F4F4;
- padding-bottom: 40rpx;
- box-sizing: border-box;
- .query {
- height: 100rpx;
- display: flex;
- align-items: center;
- padding-left: 30rpx;
- background-color: #fff;
- }
- .list {
- width: calc(100% - 36rpx);
- margin: 20rpx auto;
- padding: 36rpx 24rpx;
- background-color: #fff;
- border-radius: 24rpx;
- .time {
- text {
- &:first-child {
- font-size: 40rpx;
- font-weight: bold;
- color: #666;
- margin-right: 10rpx;
- }
- }
- margin-bottom: 30rpx;
- }
- .money {
- display: flex;
- align-items: center;
- &>view {
- width: 50%;
- text {
- display: block;
- font-weight: bold;
- &:first-child {
- color: #111;
- font-size: 28rpx;
- }
- &:nth-child(2) {
- font-size: 40rpx;
- margin: 14rpx 0 16rpx;
- color: ;
- }
- &:last-child {
- color: #999;
- font-size: 26rpx;
- font-weight: inherit;
- }
- }
- .in {
- color: #FEA400;
- }
- }
- }
- .li {
- display: flex;
- justify-content: space-between;
- padding: 30rpx 0;
- .left {
- text {
- &:first-child {
- font-size: 28rpx;
- color: #111;
- margin-bottom: 15rpx;
- }
- display: block;
- color: #999;
- font-size: 26rpx;
- }
- }
- .right {
- color: #FEA400;
- font-size: 36rpx;
- font-weight: bold;
- }
- }
- }
- }
- </style>
|