<template>
  <div class="app-container">
    <div class="app-info">
      <img class="icon" src="../../assets/images/evue-logo.png" />
      <div class="text">
        <h2>EVUE</h2>
        <p>广告检测-病毒检测-人工复检</p>
        <p>
          <span>3.7</span>
          <span>⭐⭐⭐⭐⭐</span>
          <span>6.7亿此安装</span>
          <span>年满三周岁</span>
        </p>
      </div>
      <button>安装</button>
    </div>
    <div class="app-screenshot">
      <div style="width: 100%; margin: 20px auto; height: 410px">
        <!-- Using the slider component -->
        <slider ref="slider" :options="options" @tap="onTap">
          <!-- slideritem wrapped package with the components you need -->
          <slideritem
            v-for="(item, index) in someList"
            :key="index"
            style="width: 230px; height: 410px; margin-right: 20px"
          >
            <img style="width: 230px; height: 410px" :src="item.html" />
          </slideritem>
          <!-- Customizable loading -->
          <div slot="loading">loading...</div>
        </slider>
      </div>
    </div>
    <div class="app-slogan">生活好，支付宝</div>
    <div class="comment-wrap">
      <div class="top">
        <h3>评论</h3>
        <p>查看全部<i class="iconfont icon-jiantouyou"></i></p>
      </div>
      <div class="content">
        <div class="score">
          <h1>3.3</h1>
          <p>6102人评分</p>
        </div>
        <ul class="score-summary">
          <li>
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
            <progress value="30" max="100"></progress>
          </li>
          <li>
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
            <progress value="30" max="100"></progress>
          </li>
          <li>
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
            <progress value="30" max="100"></progress>
          </li>
          <li>
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
            <progress value="30" max="100"></progress>
          </li>
          <li>
            <star-rating
              v-bind:rating="3.5"
              v-bind:increment="0.1"
              v-bind:max-rating="5"
              v-bind:star-size="15"
              v-bind:read-only="true"
              inactive-color="#9E9E9E"
              active-color="#FFC83D"
            >
            </star-rating>
            <progress value="30" max="100"></progress>
          </li>
        </ul>
      </div>
      <div class="comment-text">
        <textarea maxlength="500" placeholder="请输入评论内容"></textarea>
        <p>
          <button>发表评论</button>
        </p>
      </div>
      <ul class="comment-list">
        <li>
          <div>
            <label>EVUE</label>
            <span>2020-02-02 02:02:02</span>
          </div>
          <p>
            八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉
          </p>
        </li>
        <li>
          <div>
            <label>EVUE</label>
            <span>2020-02-02 02:02:02</span>
          </div>
          <p>
            八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉
          </p>
        </li>
        <li>
          <div>
            <label>EVUE</label>
            <span>2020-02-02 02:02:02</span>
          </div>
          <p>
            八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉八零芭芭拉
          </p>
        </li>
        <li>
          <a href="#">加载更多</a>
        </li>
      </ul>
    </div>
    <div class="app-update">
      <div><h3>更新</h3></div>
      <div>
        <p>
          【点评】发布后可以“补充点评”，针对性地补充完善<br />
          【车型】车款列表新增款间差异配置<br />
          【首页】本地频道增加联系销售，优惠活动随时聊
        </p>
      </div>
    </div>
    <div class="app-description">
      <div><h3>应用介绍</h3></div>
      <div>
        <p>
          易车手机客户端<br />
          集汽车新闻、汽车报价、车友社区、汽车服务于一体的综合汽车服务平台。<br />
          每天新增600多条汽车新闻和视频，共有1800多位自媒体人和机构签约。专为你推荐的个性化新闻，帮你全方位了解汽车。
        </p>
      </div>
    </div>
    <div class="app-basic">
      <div><h3>应用信息</h3></div>
      <div>
        <div>
          <p><label>资费</label><span>免费</span></p>
          <p><label>大小</label><span>63.17MB</span></p>
          <p><label>版本</label><span>10.48.0</span></p>
          <p><label>更新时间</label><span>2021/3/17</span></p>
        </div>
        <div>
          <p><label>应用分级</label><span>年满12周岁</span></p>
          <p><label>开发者</label><span>北京字节跳动科技有限公司</span></p>
          <p>
            <label>隐私政策</label
            ><span>查看详情<i class="iconfont icon-jiantouyou"></i></span>
          </p>
          <p>
            <label>应用权限</label
            ><span>权限<i class="iconfont icon-jiantouyou"></i></span>
          </p>
        </div>
      </div>
    </div>
    <div class="app-recommend">
      <div class="top">
        <h3>相关推荐</h3>
        <p @click="seeMore">查看全部<i class="iconfont icon-jiantouyou"></i></p>
      </div>
      <div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
      </div>
    </div>
    <div class="app-related">
      <div class="top">
        <h3>开发者的其他应用</h3>
        <p @click="seeMore">查看全部<i class="iconfont icon-jiantouyou"></i></p>
      </div>
      <div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
        <div>
          <img src="../../assets/images/evue-logo.png" />
          <h3>EVUE</h3>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import StarRating from "vue-star-rating";
import { slider, slideritem } from "vue-concise-slider";
export default {
  name: "Application",
  components: {
    slider,
    slideritem,
    StarRating,
  },
  data() {
    return {
      //data list [array]
      someList: [
        {
          html:
            "https://appimg.dbankcdn.com/application/screenshut1/9f81c6a01fec445a930fccb829b7f53a.jpg",
        },
        {
          html:
            "https://appimg.dbankcdn.com/application/screenshut2/9f81c6a01fec445a930fccb829b7f53a.jpg",
        },
        {
          html:
            "https://appimg.dbankcdn.com/application/screenshut3/9f81c6a01fec445a930fccb829b7f53a.jpg",
        },
        {
          html:
            "https://appimg.dbankcdn.com/application/screenshut4/9f81c6a01fec445a930fccb829b7f53a.jpg",
        },
        {
          html:
            "https://appimg.dbankcdn.com/application/screenshut5/9f81c6a01fec445a930fccb829b7f53a.jpg",
        },
      ],
      //Slider configuration [obj]
      options: {
        currentPage: 0,
      },
    };
  },
  computed: {},
  methods: {
    seeMore() {
      this.$router.push({ path: "/app-list" });
    },
    onTap(data) {
      console.log(data);
    },
  },
  beforeMount() {},
};
</script>
<style lang="scss" scoped>
@import "../../styles/iconfont/iconfont.css";
.app-container {
  display: block;
  margin: 20px 0px;
  & > div.app-info {
    display: flex;
    align-items: center;
    flex-direction: row;
    & > img {
      width: 112px;
      height: 112px;
      display: block;
    }
    & > div.text {
      flex: 1;
      margin-left: 20px;
      & > h2 {
        margin: 0px;
      }
      & > p {
        margin: 0px;
      }
      & > p:nth-child(2) {
        color: grey;
        line-height: 30px;
        font-size: 12px;
      }
      & > p:nth-child(3) {
        font-size: 14px;
      }
    }
    & > button {
      min-width: 112px;
      max-width: 112px;
      width: 112px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      height: 36px;
      line-height: 36px;
      border-radius: 18px;
      background-color: #007dff;
      font-size: 14px;
      font-weight: 500;
      color: #fff;
      text-align: center;
      display: block;
      padding: 0 12px;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      border: none;
    }
  }
  & > div.app-slogan {
    padding: 20px 0px;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
  }
  & > div.comment-wrap {
    & > div.top {
      display: flex;
      margin: 20px 0px;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      & > h3 {
        margin: 0px;
        font-size: 20px;
        color: #000;
      }
      & > p {
        cursor: pointer;
        margin: 0px;
        & > img {
          vertical-align: top;
          width: 20px;
          height: 20px;
        }
      }
    }
    & > div.content {
      display: flex;
      flex-direction: row;
      margin-bottom: 20px;
      & > div.score {
        margin-right: 40px;
        & > h1 {
          font-size: 60px;
          margin: 0px;
          text-align: center;
        }
        & > p {
          margin: 0px 10px;
        }
      }
      & > ul.score-summary {
        & > li {
          display: flex;
          flex-direction: row;
          & > progress {
            margin-left: 15px;
            &::-webkit-progress-bar {
              background-color: #d7d7d7;
            }
            &::-webkit-progress-value {
              background-color: #27c3c5;
            }
          }
        }
      }
    }
    & > div.comment-text {
      & > textarea {
        width: 100%;
        height: 100px;
        font-size: 14px;
        resize: none;
      }
      & > p {
        margin: 0px;
        text-align: right;
        & > button {
          font-size: 13px;
        }
      }
    }
    & > ul.comment-list {
      margin-top: 20px;
      & > li {
        margin-bottom: 15px;
        border-bottom: 1px solid #f2f2f2;
        & > div {
          & > label {
            margin-right: 15px;
          }
        }
        & > p {
          font-size: 14px;
          text-indent: 2em;
        }
        & > a {
          display: block;
          text-align: center;
          font-size: 14px;
          padding: 10px 0px;
          color: #27c3c5;
          border: 1px solid #27c3c5;
          &:link {
            color: #ffffff;
            text-decoration: none;
            background-color: none;
          }
          &:visited {
            color: #27c3c5;
            text-decoration: none;
            background-color: none;
          }
          &:hover {
            color: #ffffff;
            text-decoration: underline;
            background-color: #27c3c5;
          }
          &:active {
            color: #ffffff;
            text-decoration: underline;
            background-color: #27c3c5;
          }
        }
        &:last-child {
          border-bottom: none;
        }
      }
    }
  }
  & > div.app-basic {
    font-size: 14px;
    & > div {
      display: flex;
      flex-direction: row;
      & > div {
        width: 50%;
        min-width: 50%;
        max-width: 50%;
        padding: 0px 20px;
        box-sizing: border-box;
        & > p {
          display: flex;
          margin: 0px;
          padding: 10px 0px;
          flex-direction: row;
          justify-content: space-between;
          border-bottom: 1px solid #f2f2f2;
        }
        & > p:hover {
          background: #efefef;
        }
      }
    }
  }
  & > div.app-description {
    & > div {
      & > p {
        font-size: 14px;
      }
    }
  }
  & > div.app-recommend,
  div.app-related {
    & > div.top {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }
    & > div {
      display: flex;
      flex-wrap: wrap;
      flex-direction: row;
      & > div {
        width: 12.5%;
        max-width: 12.5%;
        min-width: 12.5%;
        & > img {
          width: 72px;
          height: 72px;
          display: block;
          margin: 10px auto;
        }
        & > h3 {
          text-align: center;
        }
      }
    }
  }
}
</style>