123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <template>
- <view class="all" >
- <view class="list" v-for="item in 12" :key="item">
- <view class="listO">
- <view class="li">第2022010223期</view>
- <view class="lis">
- <view class="liss">待開獎</view>
- </view>
- </view>
- <view class="listT">
- <view class="TT">
- <view class="lsT">k線類型:</view>
- <view class="lisT">5分線</view>
- </view>
- <view class="TT">
- <view class="lsT">互娛金額:</view>
- <view class="lisT">10.00U</view>
- </view>
- <view class="TT">
- <view class="lsT">開獎時間:</view>
- <view class="lisT">2023/3/18 12:00</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {getGame,test } from '@/api/game.js'
- export default {
- data() {
- return {
-
- };
- },
-
- onLoad() {
- // this.test()
- // this.getGame()
- this.request()
- },
-
- //下拉刷新
- onPullDownRefresh() {
- let obj = this;
- //监听下拉刷新动作的执行方法,每次手动下拉刷新都会执行一次
- setTimeout(function() {
- obj.loadCodeList();
- uni.stopPullDownRefresh(); //停止下拉刷新动画
- }, 1000);
- },
-
- methods: {
- async request() {
- try{
- const res1 = await test(); //第一个异步函数
- const res2 = await getGame(); //第二个异步函数
-
- console.log('11',res1);
- }catch(error) {
- console.log(error);
- }
- }
- // async test() {
- // try {
- // const res = await test();
- // console.log('312', res);
- // } catch (error) {
- // console.error('请求出错', error);
- // }
- // },
-
- // // 互娱记录
- // async getGame() {
- // try {
- // const res = await getGame();
- // console.log('12312', res);
- // } catch (error) {
- // console.error('请求出错', error);
- // }
- // }
- }
- };
- </script>
- <style lang="scss">
- .all {
- width: 750rpx;
- // height: 100%;
- min-height: 100vh;
- background-color: #000000;
- }
- .list {
- width: 710rpx;
- height: 300rpx;
- background: #191A1F;
- box-shadow: 0rpx 5rpx 24rpx 0rpx rgba(4,0,0,0.06);
- border-radius: 15rpx;
- margin-left: 20rpx;
- margin-top: 30rpx;
- }
- .listO {
- display: flex;
- justify-content: space-between;
- }
- .li {
- height: 31rpx;
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 47rpx;
- margin-left: 26rpx;
- margin-top: 35rpx;
- }
- .lis {
- width: 97rpx;
- height: 38rpx;
- background: #008001;
- border-radius: 5rpx;
- margin-top: 35rpx;
- margin-right: 30rpx;
- }
- .liss {
- height: 21rpx;
- font-size: 22rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- line-height: 37rpx;
- margin-left: 13rpx;
- }
- .TT {
- display: flex;
- justify-content: start;
- }
- .lsT {
- // height: 100rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 47rpx;
- margin-left: 28rpx;
- margin-top: 20rpx;
- }
- .lisT {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 47rpx;
- margin-top: 20rpx;
- }
- </style>
|