抽奖增加领取

This commit is contained in:
2024-12-05 17:22:05 +08:00
parent 9156891770
commit bf17bb3a5d
3 changed files with 111 additions and 79 deletions

View File

@@ -4,7 +4,7 @@
<view class="gift-bg">
</view>
<view class="list">
<view class="item" v-for="(item,index) in 10" :key="index">
<view class="item" v-for="(item,index) in list" :key="index">
<view class="color-666 u-font-24">中奖时间 2024-09-11 10:20:11</view>
<view class="u-m-t-24 u-flex u-row-between">
<view class="u-flex-1 u-flex u-col-top">
@@ -20,10 +20,13 @@
</view>
</view>
</view>
<view class="u-p-t-30 u-p-b-30" v-if="hasAjax&&!list.length">
<u-empty text="暂无奖品"></u-empty>
</view>
</view>
<view class="u-p-30">
<u-loadmore :font-size="24" color="#999" :status="status" />
</view>
<!-- <view class="u-p-30">
<u-loadmore font-size="24" color="#999" :status="status" />
</view> -->
</view>
</template>
@@ -34,7 +37,9 @@
background: {
backgroundColor: 'transparent'
},
status: 'nomore'
status: 'nomore',
hasAjax:true,
list:[]
}
},
methods: {
@@ -42,7 +47,14 @@
uni.navigateTo({
url:'/me/gift/duihuan'
})
},
init(){
this.$Request.getT('app/discSpinningRecord/selectDiscSpinningRecord')
}
},
onShow() {
console.log('onShow');
this.init()
}
}
</script>