yuminge-app/yun-min-program-plugin-master/packageC/redPacket/daily_red/daily_red.wxml

162 lines
6.2 KiB
Plaintext

<view class="view_two" style="background-color:{{bjcolor}}">
<image src="{{redData.thumb}}" wx:if="{{redData.thumb}}" mode='widthFix' style="width:100%" catchtap="golink"></image>
<!-- 今日红包 -->
<view class="view_two_1">
<view class="right_top" catchtap="golingqu" data-tag="old">领取记录</view>
<view class="right_buttom" catchtap="goedu">我的额度</view>
<view class="redName">今日红包</view>
<view class="redMoney" wx:if="{{type_status.value == -3}}">
<view>{{type_status.receive_amounts}}
<text>{{language['元']}}</text>
</view>
</view>
<view class="{{type_status.value == 2 ? 'getPacket_c' : 'getPacket' }}" catchtap="gettap" data-id="{{amount.id}}"
style="background-color:{{type_status.color}}" wx:if="{{type_status.value != -3}}">
<text wx:if="{{ type_status.value != 3 && type_status.value != 2}}">{{ type_status.tilte
}}</text>
<text wx:if="{{type_status.value == 2}}">领取倒计时</text>
<van-count-down wx:if="{{type_status.value == 2}}" time="{{ Difference }}" bind:finish="finished" />
<text wx:if="{{type_status.value == 3}}">立即领取</text>
</view>
<view class="redList">
<view class="redlis">
<view>今日红包总额</view>
<view class="redisw">{{link.is_red_packet_all_amount == 1?'****':(amount?amount.amount : 0.00)}}</view>
</view>
<view class="redlis">
<view>今日红包总量</view>
<view>{{link.is_red_packet_all_total == 1?'****':(amount?amount.number_sum : 0.00)}}</view>
</view>
<view class="redlis">
<view>剩余红包</view>
<view>{{redData.surplus_num}}</view>
</view>
</view>
<view style="text-align: center;margin-top:15rpx;font-size:14px">个人额度</view>
<view class="line">
<view class="noneLine" style="width:{{bfbMum+'%'}}"></view>
</view>
<view class="lineTxt">
<view>
<view class="text_co">已领取</view>
<view class="text_mun">{{language['money']}}{{receive_log.receive_amount}}</view>
</view>
<view class="text_le">
<view class="text_co">剩余</view>
<view class="text_mun">{{language['money']}}{{syMun}}</view>
</view>
</view>
</view>
<view class="other-reward" wx:if="{{bonus.is_show == 1}}">
<view class="other-red-box">
<view class="text" wx:if="{{bonus.receive_amount != 0}}">
额外奖励:{{language['money']}}{{ bonus.receive_amount }}
</view>
<block wx:else>
<text class="text">额外奖励</text>
<view class="btn-receive">
<image
wx:if="{{bonus.is_receive == 1}}"
bindtap="receiveBonus"
src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/dailyRed/btn-receive-act.png" alt="可领取"
></image>
<image wx:else src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/dailyRed/btn-receive.png" alt="不可领取"></image>
</view>
</block>
</view>
<view class="other-reward-record" catchtap="golingqu" data-tag="other">额外奖励记录</view>
</view>
<!-- 今日领取记录 -->
<view class="view_two_2">
<view class="getRecord">
<view class="getTitle t_one">今日领取记录</view>
<view class="getTitle t_two">有{{receive_log.receive_num}}人已领取</view>
<view style="width:100%" wx:if="{{receive_log.receive_list.length <= 5}}">
<view class="detail" wx:for="{{receive_log.receive_list}}" wx:key='index'>
<view class="detailList">
<view class="txtw">
<view class="detaimg">
<image src="{{item.belongs_to_member.avatar_image}}"></image>
</view>
<view>
<view class="tname">{{item.belongs_to_member.realname}}</view>
<view class="ttime">{{item.created_at}}</view>
</view>
</view>
<view>
<view class="tmoney">{{item.receive_amount}}{{language['元']}}</view>
<view class="ttime">已领取</view>
</view>
</view>
</view>
</view>
<view style="width:100%" wx:if="{{receive_log.receive_list.length > 5}}">
<swiper autoplay="{{true}}" duration="2000" interval='2000' vertical='true' circular='true'
display-multiple-items='5' style="height:500rpx">
<swiper-item wx:for="{{receive_log.receive_list}}" wx:key='index'>
<view class="detail">
<view class="detailList">
<view class="txtw">
<view class="detaimg">
<image src="{{item.belongs_to_member.avatar_image}}"></image>
</view>
<view>
<view class="tname">{{item.belongs_to_member.realname}}</view>
<view class="ttime">{{item.created_at}}</view>
</view>
</view>
<view>
<view class="tmoney">{{item.receive_amount}}{{language['元']}}</view>
<view class="ttime">已领取</view>
</view>
</view>
</view>
</swiper-item>
<!-- </block> -->
</swiper>
</view>
</view>
</view>
<!-- 活动介绍 -->
<view class="view_two_3">
<view class="introduceBox">
<view class="introduceTitle">活动介绍</view>
<view class='intcenten'>
<!-- <rich-text nodes="{{content}}"></rich-text> -->
<mp-html content="{{content}}"></mp-html>
</view>
</view>
</view>
<!-- 活动商品 -->
<view class="view_two_3">
<view class="introduceBox">
<view class="introduceTitle">红包商品</view>
<view class="intList">
<view class="intlis" wx:for="{{goods_list}}" wx:key="index" data-id="{{item.id}}" catchtap="tapGo">
<view class="imgaint">
<image src="{{item.thumb}}"></image>
</view>
<view class="textint">
<view class="onetext">{{item.title}}</view>
<view class="ed" wx:if='{{item.quota_proportion}}'>红包额度:{{item.quota_proportion}}%</view>
<view class="lasted">
<view>{{language['money']}}{{item.price}}</view>
<view catchtap="goqg" data-id="{{item.id}}">立即抢购</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<van-popup bind:click-overlay="trggleCart" show="{{showCart}}" overlay="{{true}}">
<view class="popupBox">
<view class="pop-text">
<view class="money">{{language['money']}}{{linMoney}}</view>
<text class="tip">恭喜您成功领取到红包!</text>
<view class="sure-btn" catchtap="trggleCart">确定</view>
</view>
</view>
</van-popup>