增加签到,修改0元支付问题

This commit is contained in:
GaoHao
2024-12-19 10:00:04 +08:00
parent c401d2695d
commit 8e7d038dba
9 changed files with 151 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view style="padding-bottom: 100rpx;">
<view class="title flex align-center justify-center">
<!-- <view class="title flex align-center justify-center">
<view class="title-box">
<view class="title-box-title flex align-center justify-between">
<view class="title-box-title-l">
@@ -45,7 +45,7 @@
</view>
</view>
</view>
</view>
</view> -->
<view v-if="list.length>0" class="itemTitle flex align-center justify-center">
<view class="itemTitle-box flex align-center justify-between">
<view class="itemTitle-box-l">

View File

@@ -10,26 +10,33 @@
<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>
</view>
<view class="content margin-lr padding bg-white u-relative" v-if="list.length" style="margin-bottom: 32rpx;">
<u-steps :list="numList" :current="1" active-color="#EA9EA8" un-active-color="#D8D5D5"></u-steps>
<view class="cell flex justify-between" v-for="(item,index) in list" :key="index">
<view class="cell_left flex">
<view class="cell_title flex">
<view class="u-font-28 text-bold title" :style="{alignSelf: item.rewardImg?'center':'flex-start'}">{{ item.title}}</view>
<u-image v-if="item.rewardImg" class="cell_icon" :src="item.rewardImg "></u-image>
<view class="u-font-24 tip">{{ item.rewardDetail }}</view>
</view>
<view class="subhead u-font-24">{{ item.detail }}</view>
</view>
<view class="cell_right flex">
<view v-if=" item.disabled " class="btn u-font-24 text-bold" :style="{backgroundColor: item.buttonBgColor,color: item.buttonFontColor }" @click="goNav(item)">{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}`) }}</view>
<view v-else class="btn u-font-24 text-bold disabled">{{ item.type == 1 ? item.buttonTitle : item.number ? `${item.discNumber}/${item.number}` : ( item.discNumber <= 0 ? item.buttonTitle : `剩余${item.discNumber}`) }}</view>
<!-- <view v-else class="btn u-font-24 text-bold" @click="goNav(item)">{{ item.buttonTitle }}</view> -->
<!-- <view v-if=" item.type ==4 " class="u-font-20 tip" @click="goNav('/me/gift/gift', item.type)">查看奖品列表</view> -->
<view class="content signIn margin-lr padding bg-white u-relative" v-if="list.length" style="margin-bottom: 32rpx;">
<view class="title flex justify-between">
<view>已连续签到 <text class="num">3</text> </view>
<view class="dk flex">
<text style="margin-right: 20rpx;">打卡提醒</text>
<u-switch v-model="checked" size="35" active-color="#EA9EA8 "></u-switch>
</view>
</view>
<view class="signInList flex justify-between">
<text class="line"></text>
<view class="signIn-Item" v-for="(item,index) in signInList" :key="index">
<image class="signIn_icon" src="../../static/images/signIn_icon1.png" mode="">
<view class="radius"></view>
<view class="_label">{{item.name}}</view>
</view>
</view>
<viwe>连续签到7天即可享受惊喜大礼包</viwe>
<view class="signInBtn">
<view>点击签到</view>
<view class="signInBtnBg"></view>
</view>
</view>
<view class="content margin-lr padding bg-white u-relative" v-if="list.length">
<view class="cell flex justify-between" v-for="(item,index) in list" :key="index">
@@ -64,7 +71,8 @@
backgroundImage: 'linear-gradient(to right, #FFE5EA 0%, #E4F5FB 49%, #FFF0EE 100%)'
},
list: [],
numList: [
checked:false,
signInList: [
{ name: '第一天' },
{ name: '第二天' },
{ name: '第三天' },
@@ -184,6 +192,8 @@
border-radius: 16rpx;
top: -115rpx;
padding: 28rpx;
.cell{
align-items: center;
padding: 32rpx 0;
@@ -245,6 +255,92 @@
border-bottom: none;
}
}
.signIn{
>.title{
font-weight: 400;
font-size: 32rpx;
color: #666666;
.num{
font-weight: bold;
color: #EC6F48;
margin: 0 10rpx;
}
.dk{
font-weight: 400;
font-size: 24rpx;
color: #333333;
align-items: center;
}
}
.signInList{
margin-top: 24rpx;
margin-bottom: 26rpx;
position: relative;
.line{
width: 92%;
height: 0rpx;
border-radius: 0rpx 0rpx 0rpx 0rpx;
border: 2rpx solid #D8D5D5;
position: absolute;
left: 0;
right: 0;
bottom: 57rpx;
margin: auto;
}
.signIn-Item{
display: flex;
flex-direction: column;
align-items: center;
position: relative;
z-index: 5;
.signIn_icon{
width: 52.33rpx;
height: 51.68rpx;
margin-bottom: 32rpx;
}
.radius{
width: 26rpx;
height: 26rpx;
border-radius: 10rpx;
background-color: #D8D5D5;
}
._label{
font-weight: 400;
font-size: 18rpx;
color: #333333;
margin-top: 24rpx;
}
}
}
.signInBtn{
width: 355rpx;
height: 64rpx;
line-height: 64rpx;
font-weight: 400;
font-size: 32rpx;
color: #FFFFFF;
text-align: center;
background: #EA9EA8;
border-radius: 14rpx 14rpx 14rpx 14rpx;
margin: 32rpx auto;
box-shadow: 0 0 0 rgba(234,158,168,0.75);
position: relative;
}
.signInBtnBg{
width: 327rpx;
height: 52rpx;
background: rgba(234,158,168,0.75);
border-radius: 14rpx 14rpx 14rpx 14rpx;
opacity: 0.31;
position: absolute;
bottom: -10rpx;
left: 0;
right: 0;
margin: auto;
}
}
}