| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <template>
- <view class="member">
- <search></search>
- <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="lower">
- <view class="li" v-for="item in 6">
- <h2>张三</h2>
- <p>手机号码:13602712680</p>
- <p>会员卡号:287777798315649815984</p>
- <view class="footer">
- <view>总消费:<text class="money">¥3214.59</text></view>
- <view>剩余积分:<text class="integer">343545</text></view>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- import search from "@/pagesA/components/search/index.vue"
- export default {
- components: {
- search
- },
- data() {
- return {
- scrollTop: 0,
- };
- },
- methods: {
- //触底
- lower: function(e) {
- console.log(e)
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .scroll-Y {
- height: calc(100vh - 100rpx);
- .li {
- border-bottom: 2rpx solid #e9e9e9;
- padding: 40rpx 32rpx;
- h2 {
- font-size: 32rpx;
- font-weight: 500;
- color: #222222;
- margin-bottom: 24rpx;
- }
- 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;
- &>view {
- width:48%;
- 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>
|