结构调整、任务中心调整
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
<!-- 任务中心 -->
|
||||
<template>
|
||||
<view class="container">
|
||||
<u-navbar :background="background" :is-back="false" :title="title" :border-bottom="false"></u-navbar>
|
||||
<!-- <u-navbar :background="background" :is-back="false" :title="title" :border-bottom="false"></u-navbar> -->
|
||||
<view class="task_bg u-absolute">
|
||||
<u-image class="task_bg" src="../../static/images/me/task_bg.png" ></u-image>
|
||||
<image class="task_bg" src="../../static/images/me/task_bg.png" ></image>
|
||||
</view>
|
||||
<view class="navTitle">
|
||||
<view></view>
|
||||
<view class="title">任务大厅</view>
|
||||
<image @click="goNav({jumpType:1,buttonUrl:'/pages/me/index'})" class="navTitleIcon" src="../../static/images/my.png" ></image>
|
||||
</view>
|
||||
<view class="icon u-relative padding">
|
||||
<u-image class="task_icon1 u-relative" src="../../static/images/me/task_icon1.png"></u-image>
|
||||
<image class="task_icon1 u-relative" src="../../static/images/me/task_icon1.png"></image>
|
||||
<view class="icon_title u-font-32 text-bold u-relative">新人好礼送不停</view>
|
||||
<u-image class="task_icon2 u-relative" src="../../static/images/me/task_icon2.png"></u-image>
|
||||
<image class="task_icon2 u-relative" src="../../static/images/me/task_icon2.png"></image>
|
||||
</view>
|
||||
|
||||
<view class="content signIn margin-lr padding bg-white u-relative" v-if="isShowMoneyPay" style="margin-bottom: 32rpx;">
|
||||
@@ -35,11 +40,7 @@
|
||||
|
||||
<view class="tishi">连续签到7天即可获得7元奖励</view>
|
||||
|
||||
<view class="signInBtn" v-if="signInBtn=='已签到'">
|
||||
<view>{{signInBtn}}</view>
|
||||
<view class="signInBtnBg"></view>
|
||||
</view>
|
||||
<view class="signInBtn" v-else @click="taskReceive(15)">
|
||||
<view class="signInBtn" @click="goNav({jumpType: 0, id:15, buttonTitle: '去领取'})">
|
||||
<view>{{signInBtn}}</view>
|
||||
<view class="signInBtnBg"></view>
|
||||
</view>
|
||||
@@ -119,7 +120,7 @@
|
||||
this.signInBtn = this.signInList[index-1].status == 0 ? '重新签到' : '点击签到'
|
||||
}
|
||||
let someDate = new Date(item.signDay); // 假设这是需要判断的日期
|
||||
if (item.signDay && this.isToday(someDate)) {
|
||||
if (item.signDate && this.isToday(someDate)) {
|
||||
this.signInBtn = '已签到'
|
||||
}
|
||||
})
|
||||
@@ -145,8 +146,15 @@
|
||||
// jumpType (integer, optional): 跳转类型 1 内部路径 2 外部路径 ,
|
||||
// type (integer, optional): 任务类型 1 普通任务 2 打卡任务 9 其它 ,
|
||||
// buttonUrl
|
||||
|
||||
if ( item.jumpType == 0) {
|
||||
this.taskReceive(item.id)
|
||||
if ( item.buttonTitle == '去领取') {
|
||||
this.taskReceive(item.id)
|
||||
} else {
|
||||
uni.switchTab({
|
||||
url: "/pages/index/index"
|
||||
})
|
||||
}
|
||||
} else if ( item.jumpType == 1) {
|
||||
uni.navigateTo({
|
||||
url: item.buttonUrl
|
||||
@@ -159,8 +167,6 @@
|
||||
plus.runtime.openURL(item.buttonUrl)
|
||||
}
|
||||
|
||||
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -238,6 +244,25 @@
|
||||
top: -40rpx;
|
||||
}
|
||||
}
|
||||
.navTitle{
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 106rpx 28rpx 0 28rpx;
|
||||
.title{
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.navTitleIcon{
|
||||
width: 40.48rpx!important;
|
||||
height: 46rpx!important;
|
||||
align-self: flex-end;
|
||||
}
|
||||
}
|
||||
.content{
|
||||
border-radius: 16rpx;
|
||||
top: -115rpx;
|
||||
|
||||
Reference in New Issue
Block a user