| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <template>
- <view class="">
- <view class="cu-list menu-avatar" v-if="list">
- <view @click="goDetail(item)" hover-class="none"
- style="margin: 15rpx 10rpx 15rpx 15rpx;border-radius: 20rpx 0 0 20rpx;padding: 10rpx;" class=" cu-item"
- v-for="(item,index) in list" :key="index">
- <image class="cu-avatar xl" :src="item.poster" mode="aspectFill"></image>
- <view class="content">
- <view class="flex-direction flex">
- <text class="text-cut-1" style="width: 96%;font-size: 32rpx;">{{item.title}}</text>
- <view class="flex" style="width: 96%;" v-if="item.auditStatus.includes('WAITING')">
- <view class="center" style="margin-bottom: -4rpx;">
- <u-icon name="coupon" color="#ff7001" size="30"></u-icon>
- </view>
- <view class="">
- <text class="sub-title text-cut-1 margin-left-10">{{item.discount * 10}}折</text>
- </view>
- </view>
- <view v-else class="flex" style="width: 96%;">
- <text class="sub-title text-cut-1">{{item.intro}}</text>
- </view>
- </view>
- <view style="width: 90%;" class="margin-bottom-10 text-cut-1" v-if="item.labelKey">
- <u-tag color="#FF9447" style="margin-left: 10rpx;" :key="index1"
- v-for="(item1,index1) in item.labelKey.split(',')" :text="item1" size="mini"
- type="warning " mode="plain" />
- </view>
- </view>
- <view v-if="item.auditStatus.includes('WAITING')"
- style="position: absolute;right: 10rpx;bottom: 10rpx;font-size: 26rpx;">
- <view class="center" style="color: #EF9944;">
- <text>待审核</text>
- <text class="cuIcon-right"></text>
- </view>
- </view>
- <view v-else style="position: absolute;right: 10rpx;bottom: 10rpx;font-size: 26rpx;">
- <view class="center" style="color: #EF9944;">
- <u-icon name="coupon" color="#ff7001" size="30"></u-icon>
- <text style="margin-left: 6rpx;">{{item.discount * 10}}折</text>
- </view>
- </view>
- <view v-if="current==2&&index==0" style="position: absolute;right: 0rpx;top: 0rpx;">
- <image style="width: 80rpx;height: 80rpx;" src="@/static/icon/enable.png" mode=""></image>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- current:Number,
- list: Array,
- },
- data() {
- return {}
- },
- methods: {
- goDetail(item) {
- let joinRecordId=item.joinRecordId?item.joinRecordId:null
- let params={
- id:item.id,
- joinRecordId,
- current:this.current
- }
- uni.navigateTo({
- url: "/pages/activity/detail" + this.$u.queryParams(params)
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .cu-avatar {
- font-variant: small-caps;
- margin: 0;
- padding: 0;
- display: inline-flex;
- text-align: center;
- justify-content: center;
- align-items: center;
- background-color: #FFFFFF;
- color: #ffffff;
- white-space: nowrap;
- background-size: cover;
- background-position: center;
- vertical-align: middle;
- }
- .tag-bg {
- background-color: #FFA66D;
- color: #FFFFFF;
- }
- .cu-list>.cu-item .move {
- position: absolute;
- right: 0rpx;
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
- width: 170rpx;
- height: 100%;
- -webkit-transform: translateX(100%);
- transform: translateX(100%);
- }
- .cu-list.menu-avatar>.cu-item .content {
- position: absolute;
- left: 220rpx;
- height: 90%;
- width: calc(100% - 96rpx - 60rpx - 100rpx - 20rpx);
- display: flex;
- justify-content: space-between;
- flex-direction: column;
- }
- .cu-list.menu-avatar>.cu-item .action {
- width: 60rpx;
- text-align: center;
- }
- .cu-list.menu-avatar>.cu-item {
- position: relative;
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
- padding-right: 10rpx;
- height: 180rpx;
- background-color: #ffffff;
- -webkit-box-pack: end;
- -webkit-justify-content: flex-end;
- justify-content: flex-end;
- -webkit-box-align: center;
- -webkit-align-items: center;
- align-items: center;
- }
- .cu-list>.cu-item.move-cur {
- transform: translateX(-160upx)
- }
- .cu-list.menu-avatar>.cu-item>.cu-avatar {
- position: absolute;
- left: 10rpx;
- }
- .cu-avatar.xl {
- border-radius: 10rpx;
- width: 200rpx;
- height: 90%;
- }
- .sub-title {
- margin-top: 5rpx;
- color: #6C6C6C;
- font-size: 24rpx;
- }
- </style>
|