| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224 |
- <template>
- <view class="destroy">
- <search></search>
- <view class="allComputer">
- <h2>核销统计</h2>
- <view class="all_box">
- <view>
- <h2 class="price">¥1234.99</h2>
- <p>订单金额</p>
- </view>
- <view>
- <h2 class="price">¥2356.99</h2>
- <p>商品金额</p>
- </view>
- <view>
- <h2 class="price">¥5467.99</h2>
- <p>已付金额</p>
- </view>
- <view>
- <h2 class="price">¥3451.99</h2>
- <p>抵扣金额</p>
- </view>
- <view>
- <h2 class="price">¥12.99</h2>
- <p>抵扣积分</p>
- </view>
- <view>
- <h2 class="price">¥783.99</h2>
- <p>退款金额</p>
- </view>
- </view>
- </view>
- <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="lower">
- <view class="li" v-for="(item,index) in list">
- <view class="h2_box">
- <h2>13602712680</h2><img src="@/static/images/moreHorizontal@2x.png" alt=""
- @click="activeId = item.id">
- </view>
- <p>核销时间:2023-12-23 12:23</p>
- <p>退款金额:¥90.00</p>
- <view class="footer">
- <view>订单金额:<text class="money">¥3214.59</text></view>
- <view>抵扣金额:<text class="integer">343545</text></view>
- <text>详情</text>
- </view>
- <u-transition :show="item.id == activeId">
- <moreShow @moreShowActive="moreShowActive"></moreShow>
- </u-transition>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- import moreShow from "@/pagesA/components/more_show/index.vue"
- import search from "@/pagesA/components/search/index.vue"
- export default {
- components: {
- search,
- moreShow
- },
- data() {
- return {
- list: [{
- id: 1
- }, {
- id: 2
- }, {
- id: 3
- }, {
- id: 4
- }, {
- id: 5
- }, {
- id: 6
- }, {
- id: 7
- }],
- scrollTop: 0,
- activeId: 0, //当前展开ID
- };
- },
- methods: {
- moreShowActive(int) {
- console.log(this.activeId, int)
- this.activeId = 0 //完成操作置空
- },
- //触底
- lower: function(e) {
- console.log(e)
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .destroy {
- background-color: #f7f7f7;
- }
- .allComputer {
- background-color: #fff;
- height: 384rpx;
- padding: 40rpx 32rpx;
- margin-bottom: 16rpx;
- display: flex;
- flex-direction: column;
- &>h2 {
- margin-bottom: 24rpx;
- }
- &>.all_box {
- flex: 1;
- background: #F9F9F9;
- border-radius: 24rpx;
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- &>view {
- width: 33%;
- flex-shrink: 0;
- border-right: 1rpx solid #e9e9e9;
- display: flex;
- flex-direction: column;
- align-items: center;
- &>.price {
- font-size: 28rpx;
- font-weight: bold;
- color: #333333;
- margin-bottom: 12rpx;
- }
- &>p {
- font-size: 24rpx;
- font-weight: 400;
- color: #767A80;
- }
- &:nth-of-type(3) {
- border-right: none;
- }
- &:last-child {
- border-right: none;
- }
- }
- }
- }
- .scroll-Y {
- background-color: #fff;
- height: calc(100vh - 500rpx);
- .li {
- border-bottom: 2rpx solid #e9e9e9;
- padding: 40rpx 32rpx;
- position: relative;
- .h2_box {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 24rpx;
- h2 {
- font-size: 32rpx;
- font-weight: 500;
- color: #222222;
- }
- img {
- width: 40rpx;
- height: 40rpx;
- }
- }
- p {
- font-size: 24rpx;
- font-weight: 400;
- color: #767A80;
- padding-bottom: 12rpx;
- }
- .footer {
- margin-top: 20rpx;
- display: flex;
- align-items: center;
- // justify-content: space-between;
- &>text {
- color: #0098ED;
- font-size: 22rpx;
- }
- &>view {
- flex: 1;
- flex-shrink: 0;
- margin-right: 20rpx;
- background: #F9F9F9;
- border-radius: 8rpx;
- padding: 20rpx;
- font-size: 24rpx;
- font-weight: 400;
- color: #767A80;
- &>.money {
- font-size: 28rpx;
- font-weight: bold;
- color: #EB5757;
- }
- &>.integer {
- font-size: 28rpx;
- font-weight: bold;
- color: #F57737;
- }
- }
- }
- }
- }
- </style>
|