123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <template>
- <view class="all padding-v-30 padding-c-30">
- <view class="list padding-v-10 flex" v-for="(item,ind) in list" :key="ind">
- <view class="le">
- <view class="qs padding-b-10">第{{item.room.no}}期</view>
- <view class="dy padding-b-10" v-if="item.room.result_info">{{item.room.result_info.c*1}}</view>
- </view>
- <view class="ri">
- <view class="sx green" v-if="item.bet==1">{{ $t("enter.u6") }}</view>
- <view class="sx green" v-if="item.bet==3">{{ $t("enter.u5") }}</view>
- <view class="sx " v-if="item.bet==2">{{ $t("enter.u4") }}</view>
- <view class="sx" v-if="item.bet==4">{{ $t("enter.u7") }}</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- gameBetList
- } from "@/api/game.js";
- import empty from '@/components/empty';
- export default {
- components: {
- empty
- },
- data() {
- return {
- id: '',
- page: 1,
- limit: 10,
- loadingType: 'more',
- loaded: false,
- list: []
- }
- },
- onLoad(option) {
- this.id = option.id;
- this.gameBetList()
- },
- onReachBottom() {
- this.gameBetList()
- },
- methods: {
- gameBetList() {
- let that = this
- if (that.loadingType == 'loading' || that.loadingType == 'noMore') {
- return
- }
- gameBetList({
- page: that.page,
- limit: that.limit,
- id: that.id,
- }).then(res => {
- let list = res.data.bet_log
- that.list = that.list.concat(list)
- that.page++
- if (list.length == that.limit) {
- that.loadingType = 'more'
- } else {
- that.loadingType = 'noMore'
- }
- that.loaded = true
- })
- }
- },
- };
- </script>
- <style lang="scss">
- .list {
- line-height: 1;
- border-bottom: 1px solid $border-color-light;
- .le {
- font-weight: bold;
- .qs {
- font-size: 20rpx;
- color: #ffffff;
- }
- .dy {
- font-size: 46rpx;
- color: #fdb242;
- }
- }
- .ri {
- .sx {
- font-size: 30rpx;
- font-weight: bold;
- color: #df5660;
- &.green{
- color: $color-green;
- }
- }
- }
- }
-
- </style>
|