123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <template>
- <view :style="'padding-top:' + mbConfig +'rpx;'" v-if="explosiveMoney.length">
- <view :style="'background-color:' + boxColor+';'">
- <view class="hot-img">
-
- <block v-if="tabConfig == 0">
- <view class="item skeleton-rect" v-for="(item, index) in explosiveMoney" :key="index" @click="goDetail(item)">
- <view class="title area-row">{{ item.info[0].value }}</view>
- <view class="msg area-row line1">{{ item.info[1].value }}</view>
- <view class="img">
- <easy-loadimage mode="widthFix" :image-src="item.img"></easy-loadimage>
- </view>
- </view>
- </block>
-
- <block v-if="tabConfig == 1">
- <view class="bd">
- <view class="item skeleton-rect" v-for="(item, index) in explosiveMoney" :key="index" @click="goDetail(item)">
- <view class="left">
- <view class="title area-row">{{ item.info[0].value }}</view>
- <view class="msg area-row line1">{{ item.info[1].value }}</view>
- </view>
- <view class="img">
- <easy-loadimage mode="widthFix" :image-src="item.img"></easy-loadimage>
- </view>
- </view>
- </view>
- </block>
- </view>
-
- </view>
- </view>
-
- </template>
- <script>
-
-
-
-
-
-
-
-
-
- import {merPath} from "@/utils/index"
- export default {
- name: 'activeParty',
- props: {
- dataConfig: {
- type: Object,
- default: () => {}
- },
- merId: {
- type: String || Number,
- default: ''
- }
- },
- data() {
- return {
- explosiveMoney: this.dataConfig.menuConfig.list,
- themeColor: this.dataConfig.themeColor.color[0].item,
- bgColor: this.dataConfig.bgColor.color,
- mbConfig: this.dataConfig.mbConfig.val*2,
- boxColor: this.dataConfig.boxColor.color[0].item,
- tabConfig: this.dataConfig.tabConfig.tabVal, //展示样式
- };
- },
- created() {},
- methods: {
- goDetail(url){
- let urls = url.info[2].value
- urls = merPath(urls, this.merId)
- this.$util.JumpPath(urls);
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .hot-img {
- margin: 0 20rpx 0;
- padding: 20rpx 0;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .item {
- display: block;
- width: 23.5%;
- background-color: #fefeff;
- padding: 20rpx 0 10rpx;
- border-radius: 8rpx;
- text-align: center;
- box-shadow: 2px 1px 6px 1px rgba(0, 0, 0, 0.03);
- box-sizing: border-box;
- .title {
- font-weight: bold;
- color: #282828;
- height: 40rpx;
- }
- .msg {
- margin: 5rpx auto 0;
- font-size: 20rpx;
- max-width: 150rpx;
- height: 40rpx;
- }
- .img {
- margin: 10rpx auto 0;
- width: 130rpx;
- height: 130rpx;
- /deep/image,/deep/.easy-loadimage,/deep/uni-image,/deep/.loadfail-img {
- width: 130rpx!important;
- height: 130rpx!important;
- }
- }
- &:first-child .msg {
- color: #8fbbe8;
- }
- &:nth-child(2) .msg {
- color: #d797b7;
- }
- &:nth-child(3) .msg {
- color: #c49bd1;
- }
- &:nth-child(4) .msg {
- color: #a3bf95;
- }
- }
- }
- .bd{
- display: flex;
- flex-wrap: wrap;
- width: 100%;
- .item{
- display: flex;
- align-items: center;
- width: 49%;
- margin-right: 2%;
- background: #fff;
- border-radius: 16rpx;
- padding: 20rpx;
- justify-content: space-between;
- &:nth-child(3),&:nth-child(4){
- margin-top: 20rpx;
- }
- &:nth-child(2n){
- margin-right: 0;
- }
- .left{
- width: 150rpx;
- align-items: center;
- }
- .img{
- margin: 0;
- }
- /deep/image,/deep/.easy-loadimage,/deep/uni-image,/deep/.loadfail-img {
- width: 120rpx!important;
- height: 120rpx!important;
- }
- }
- }
- </style>
|