<template>
  <view class="pintuanshops" @click="todetail">
    <view class="pic">
      <img :src="shoppic" alt class="pic" />
    </view>
    <view class="shopname">
    {{shopname}}
    </view>
    <view class="price">
        <view class="nowmoney">
            <text class="nowmoneyicon">￥</text>
            <text>{{pri}}</text>
            <text class="huaxian">￥{{huaxian}}</text>
             <view class="num">已拼{{yipin}}件</view>
        </view>
        <view class="btn">去开团</view>
    </view>
  </view>
</template>

<script>
export default {
  name: "pintuanshops",
  props:{
    shoppic:{
      type:String
    },
    shopname:{
      type:String
    },
    pri:{
      type:Number
    },
    huaxian:{
      type:Number
    },
    yipin:{
      type:Number
    },
    shopid:{
      type:Number
    }
  },
  methods:{
    todetail(e){
      console.log(this.shopid)
      uni.navigateTo({
        url:"/pages/pintuanshopdetail/pintuanshopdetail?shopid="+this.shopid
      })
    }
  }
};
</script>

<style lang="scss">
.pintuanshops {
  width: 369upx;
  height: 553upx;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .pic {
    width: 283upx;
    height: 327upx;
    margin: 0 auto;
    margin-top:5upx;
  }
  .shopname {
    width: 259upx;
    font-size: 22upx;
    color: #333333;
    margin: 0 auto;
  }
  .price {
    display: flex;
    width: 326upx;
    height: 52upx;
    justify-content: space-between;
    color: #888888;
    font-size: 22upx;
    margin: 0 auto;
    margin-bottom: 30upx;
    // line-height: 52upx;
    .nowmoney {
      color: #e32e10;
      font-size: 27upx;
      .nowmoneyicon {
        font-size: 24upx;
      }
      .huaxian {
        font-size: 18upx;
        color:#888888;
        text-decoration: line-through
      }
      .num{
          color: #888888;
          font-size: 22upx;
      }
    }
    .btn {
      width: 118upx;
      height: 42upx;
      background: linear-gradient(
        0deg,
        rgba(230, 56, 83, 1) 0%,
        rgba(228, 61, 84, 1) 100%
      );
      border-radius: 21upx;
      color: white;
      line-height: 42upx;
      text-align: center;
      font-size: 20upx;
      margin: auto 0;
      margin-top: 21upx;
    }
  }
}
</style>