<template>
  <div class="productDetails">
    <img src="https://cdn.cunwuyun.cn/dvcp/h5/watermark/8.png" alt="">
    <div class="type type0">免费兑</div>
    <div class="product-info">
      <p>无染(wuro)本色抽纸无染(wuro)本色抽纸无染(wuro)本色抽纸无染(wuro)本色抽纸</p>
      <h3>50积分<span>+￥2.00<span>（兑换后再付）</span></span></h3>
      <div>零售单价¥10.00</div>
      <span class="tips">免费兑换商品，可到固定的兑换点进行「核销兑换」</span>
    </div>
    <div class="product-content">
      <p>商品描述：</p>
      <p>“本色”最早起源于南朝刘勰《文心雕龙》_
        “李”蟹悬架于栗龍登花《文温襞垄总理”寿事集色一
        做过解释，“本色”就是求真，特别较真，有时候有点犟。泉林本色对“本色”的解释是对于生活是一种健康、环保的生活观念。
        泉林本色是公司在长期的发展过程中逐渐打造的高端产品产品主要是涉岌泉秣本色生活角箱浆纸。产品种美包括软箱面巾纸、
        盒抽面巾纸、卷纸、空心卷纸、实心卷纸、扁卷纸、手帕纸、饕币纸、珍宝纸、擦手纸、礼品套装等，种类齐全，在各个生活
        的细微之处全面呵护消费者的健康。
      </p>
    </div>
    <div class="btn" @click="toPlaceOrder()">
      <div class="status0">立即兑换</div>
    </div>
  </div>
</template>

<script>
import {mapState} from "vuex";

export default {
  name: 'productDetails',
  appName: '兑换商品',
  data() {
    return {
      
    }
  },
  computed: {
    ...mapState(['user']),
  },
  onLoad() {

  },
  methods: {
    toPlaceOrder() {
      uni.navigateTo({url: './placeOrder'})
    }
  },
  onReachBottom() {
    // this.current = this.current + 1
    // this.getList()
  },
}
</script>

<style lang="scss" scoped>
.productDetails {
  background-color: #f3f6f9;
  position: relative;
  img {
    width: 100%;
    height: 750px;
  }
  .type {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 42px;
    font-family: PingFangSC-SNaNpxibold;
    font-weight: 600;
    font-size: 30px;
    color: #FFF;
    padding: 16px 16px 16px 36px;
    border-bottom-left-radius: 40px;
  }
  .type0 {
    background-color: #E64E39;
  }
  .type1 {
    background-color: #FF6900;
  }
  .product-info {
    padding: 32px;
    background-color: #fff;
    margin-bottom: 24px;
    p {
      word-break: break-all;
      font-family: PingFangSC-SNaNpxibold;
      font-weight: 600;
      font-size: 48px;
      color: #222;
      letter-spacing: 0;
      line-height: 76px;
      margin-bottom: 8px;
    }
    h3 {
      font-family: PingFangSC-SNaNpxibold;
      font-weight: 600;
      font-size: 44px;
      color: #FF6900;
      margin-bottom: 8px;
      span {
        font-size: 44px;
        color: #4181FF;
        margin-left: 8px;
        span {
          font-weight: 400;
          font-family: PingFangSC-Regular;
          font-size: 32px;
        }
      }
    }
    div {
      font-family: PingFangSC-Regular;
      font-weight: 400;
      font-size: 24px;
      color: #999;
      line-height: 34px;
      margin-bottom: 24px;
      text-decoration: line-through;
    }
    .tips {
      display: inline-block;
      padding: 12px;
      line-height: 36px;
      background: #F5FCF5;
      border-radius: 16px;
      font-family: PingFangSC-Regular;
      font-size: 24px;
      color: #3BBC37;
    }
  }
  .product-content {
    padding: 34px 64px 162px;
    background-color: #fff;
    p {
      font-family: PingFangSC-Regular;
      font-size: 32px;
      color: #666;
      line-height: 60px;
    }
  }
  .btn {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 32px;
    box-sizing: border-box;
    div {
      width: 100%;
      height: 88px;
      line-height: 88px;
      text-align: center;
      border-radius: 44px;
      font-family: PingFangSC-Medium;
      font-weight: 500;
      font-size: 34px;
    }
    .status0 {
      color: #FFF;
      background: #4181FF;
    }
    .status1 {
      color: #666;
      background: #E2E2E2;
    }
  }
}
</style>
