123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <template>
- <view class="coupon-list">
- <view class="coupon-box">
- <view class="coupon-head">
- <view class="coupon-sel"></view>
- <view class="coupon-title">
- <view class="coupon-title-1">满100减50</view>
- </view>
- <view class="coupon-price">
- ¥<text>100</text>
- </view>
- </view>
- <view class="coupon-desc">
- <view><u-icon class="icon" size="30" name="clock"></u-icon> 有效期至:2020-05-12</view>
- <view><u-icon class="icon" size="30" name="info-circle"></u-icon> 优惠卷使用说明优惠卷使用说明优惠卷使用说明优惠卷使用说明</view>
- </view>
- </view>
- <u-button class="handleSubmit" type="error">确认领取</u-button>
- </view>
- </template>
- <script>
- export default{
- name: 'getCoupon',
- data () {
- return {
-
- }
- },
- methods: {
- // 选中优惠卷
- checked(item) {
- if(this.showCheck){
- let has = this.list.find(item=>item.checked)
- if(has){
- has.checked = false
- }
- item.checked = true
- this.$emit('checkOk',item)
- }
- },
- },
- }
- </script>
- <style lang="scss">
- .coupon-list{
- width: 100%;
- height: 100%;
- padding: 25rpx;
- .handleSubmit{
- width: 80%;
- margin-top: 40%;
- }
- }
- .coupon-box.diabled{
- background: #999;
- }
- .coupon-box{
- margin-bottom: 30rpx;
- border-radius: 15rpx;
- box-shadow: 2rpx 2rpx 10rpx #ddd;
- background: #ff0000;
- color: #FFFFFF;
- .coupon-head{
- display: flex;
- align-items: center;
- padding: 20rpx 30rpx;
- position: relative;
- border-bottom: 15rpx dotted #FFFFFF;
- margin-bottom: -8rpx;
- .coupon-sel{
- position: absolute;
- width: 56rpx;
- height: 46rpx;
- right: 0;
- top: 0;
- }
- .coupon-checked{
- background: url(/static/img/select.png) no-repeat center;
- background-size: 100% 100%;
- }
- .coupon-title{
- flex-grow: 1;
- font-size: 32rpx;
- }
- .coupon-price{
- padding: 0 15rpx;
- color: #FFFFFF;
- text{
- font-size: 60rpx;
- }
- }
- }
- .coupon-desc{
- padding: 10rpx 30rpx;
- color: #666;
- background: #FFFFFF;
- border-bottom-left-radius:10rpx;
- border-bottom-right-radius: 10rpx;
- >view{
- padding: 5rpx 0;
- }
- .icon{
- margin-right: 10rpx;
- }
- }
-
- }
- </style>
|