123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <template>
- <view class="content">
- <view class="task-list" v-for="(item,index) in 4" :key="index">
- <view class="task-l">
- <u-image width="80rpx" height="80rpx" :src="`/static/taskIcon${index+1}.png`"></u-image>
- <view class="task-l-info">
- <view class="task-l-title">新用户登录</view>
- <view class="task-l-desc">赚<text>1</text>次抽奖 <u-image width="22rpx" height="22rpx" src="/static/zpIcon.png"></u-image></view>
- </view>
- </view>
- <view class="task-r">
- <u-button size="medium" v-if="index==0" :custom-style="{padding:'6px 10px',width:'100%',background:'#989898',color:'#ffffff'}">已完成</u-button>
- <u-button size="medium" v-else-if="index==1" open-type="share" :custom-style="{padding:'6px 10px',width:'100%',background:'#02c9b2',color:'#ffffff'}">立即分享</u-button>
- <u-button size="medium" v-else @click="showYdao" :custom-style="{padding:'6px 10px',width:'100%',background:'#02c9b2',color:'#ffffff'}">立即前往</u-button>
- </view>
- </view>
-
- <u-popup v-model="showYd" mode="center" close-icon-color="#ffffff" closeable :border-radius="30" width="500rpx" height="550rpx">
- <view class="lottery-content">
- <view class="lottery-title">
- <image src="/static/tdsm.jpg"></image>
- </view>
- <view @click="toViewZn" class="lottery-confrim-btn">
- 查看使用指南
- </view>
- </view>
- </u-popup>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- showYd: false
- }
- },
- methods: {
- showYdao(){
- this.showYd = true
- },
- toViewZn(){
- uni.redirectTo({
- url: '/pages/userCenter/zhinan'
- })
- }
- },
- onShareAppMessage() {
- return {
- title: '[乐色管家]年末活动来袭,幸福大转盘, 精彩好礼等你来抽!',
- path: '/pagesA/luckDraw/luckDraw',
- imageUrl:'/static/zp1.png'
- }
- },
- onShareTimeline() {
- return {
- title: '[乐色管家]年末活动来袭,幸福大转盘, 精彩好礼等你来抽!',
- imageUrl:'/static/zp1.png'
- }
- }
- }
- </script>
- <style lang="less">
- .content{
- width: 100%;
- padding: 0;
- // 弹框提示
- .lottery-content{
- display: flex;
- justify-content: center;
- height: 100%;
- position: relative;
- background: url(../../static/lottery_winbg1.png) no-repeat center top;
- background-size: 100% auto;
- .lottery-confrim-btn{
- width: 100%;
- display: flex;
- justify-content: center;
- position: absolute;
- bottom: 0;
- left: 0;
- color: #21d5c0;
- font-size: 32rpx;
- border-top: 1px solid #eee;
- padding: 30rpx 0;
- }
- .lottery-title{
- padding: 100rpx 50rpx;
- display: flex;
- text-align: center;
- image{
- width: 450rpx;
- height: 320rpx;
- }
- }
- }
- }
- .task-list{
- display: flex;
- align-items: center;
- padding: 20rpx 40rpx;
- border-bottom: 1px solid #eee;
- background-color: #FFFFFF;
- .task-l{
- width: 80%;
- display: flex;
- align-items: center;
- .task-l-info{
- flex-grow: 1;
- padding: 0 15rpx;
- .task-l-title{
- font-weight: bold;
- }
- .task-l-desc{
- display: flex;
- align-items: center;
- font-size: 24rpx;
- color: #666;
- margin-top: 5rpx;
- }
- }
- }
- .task-r{
- width: 20%;
- }
- }
- </style>
|