uniapp九宫格概率抽奖功能

这篇文章描述了一个包含抽奖功能的移动应用界面,使用了Vue.js进行开发,包括导航栏、按钮交互、图片显示以及定时抽奖逻辑。内容涉及UV-Overlay、Modal、导航条、轮播图和数据请求等技术。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<template>
	<view class="">
		<uv-overlay :show="show" @click="show = false">
			<uv-modal ref="modal" title="抽奖活动" :content='draw[0].active.content' @confirm="confirm"></uv-modal>
		</uv-overlay>
		<view style="margin-top: 40px;">
			<uv-navbar title="抽奖">
				<template v-slot:left>
					<view class="uv-nav-slot">
						<uv-icon name="arrow-left" size="19" @tap="leftClick"></uv-icon>
						<uv-line direction="column" :hairline="false" length="16" margin="0 8px"></uv-line>
						<uv-icon name="home" size="20" @tap="home"></uv-icon>
					</view>
				</template>
			</uv-navbar>
		</view>
		<view class="draw">
			<image src="https://7up.pics/images/2023/12/26/img17704218ad045b198.png" mode="" class="draw_one"
				@tap="click">
			</image>
			<view class="last">
				<view class="draws_one" :style="'background-color:' +(back==1?'#F9DE23':'')" v-if="type==false">
				</view>
				<view class="draws_two" :style="'background-color:' +(back==2?'#F9DE23':'')" v-if="type==false">
				</view>
				<view class="draws_three" :style="'background-color:'+ (back==3?'#F9DE23':'')" v-if="type==false">
				</view>
				<view class="draws_four" :style="'background-color:'+ (back==4?'#F9DE23':'')" v-if="type==false">
				</view>
				<view class="draws_five" :style="'background-color:'+ (back==5?'#F9DE23':'')" v-if="type==false">
				</view>
				<view class="draws_six" :style="'background-color:'+ (back==6?'#F9DE23':'')" v-if="type==false">
				</view>
				<view class="draws_seven" :style="'background-color:'+ (back==7?'#F9DE23':'')" v-if="type==false">
				</view>
				<view class="draws_eight" :style="&
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值