|
@@ -0,0 +1,214 @@
|
|
|
|
+<template>
|
|
|
|
+ <view class="app-container">
|
|
|
|
+ <!-- 背景 -->
|
|
|
|
+ <view class="bg" />
|
|
|
|
+ <!-- 跳转App -->
|
|
|
|
+ <open-app />
|
|
|
|
+ <!-- 详情 -->
|
|
|
|
+ <view class="detail">
|
|
|
|
+ <img class="logo" src="@/static/logo.png" />
|
|
|
|
+ <view class="content">
|
|
|
|
+ <text style="font-weight: 600;">我的声色犬马</text>
|
|
|
|
+ <view class="tips">
|
|
|
|
+ <img class="avatar" src="@/static/logo.png" />
|
|
|
|
+ <text>一个没有梦想的咸鱼</text>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="play_number">
|
|
|
|
+ <img src="@/static/playnumber.png" />
|
|
|
|
+ <text>132万</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <text class="info">
|
|
|
|
+ <text>频道简介频道简介频道简介频道简介频道简介频道简介频道简介频道简介介频道简介介频道简介</text>
|
|
|
|
+ <uni-icons />
|
|
|
|
+ </text>
|
|
|
|
+ <!-- 列表 -->
|
|
|
|
+ <uni-segmented-control :current="current" styleType="text" :values="items" activeColor="#fff" />
|
|
|
|
+ <view v-show="current === 0" class="list_content">
|
|
|
|
+ <uni-row class="item" v-for="item in 12" :key="item" @click.native="getNav">
|
|
|
|
+ <uni-col :span="2" style="color:#FFFFFF66; fontSize: 28rpx; fontWeight:bold">
|
|
|
|
+ 1
|
|
|
|
+ </uni-col>
|
|
|
|
+ <uni-col :span="20">
|
|
|
|
+ <view style="fontSize: 32rpx; margin-bottom: 10rpx;">001 梦想天空分外蓝</view>
|
|
|
|
+ <view style="display:flex; fontSize:22rpx; color:#FFFFFF66;">
|
|
|
|
+ <text class="time">02:53</text>
|
|
|
|
+ <text class="play">123</text>
|
|
|
|
+ <text class="date">2021-02-18</text>
|
|
|
|
+ </view>
|
|
|
|
+ </uni-col>
|
|
|
|
+ <uni-col :span="2">
|
|
|
|
+ <img src="@/static/playbtn.png" style="width: 48rpx;height: 48rpx" @click.stop="open" />
|
|
|
|
+ </uni-col>
|
|
|
|
+ </uni-row>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-show="current === 1">
|
|
|
|
+ 选项卡2的内容
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+export default {
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ current: 0,
|
|
|
|
+ items: ['节目', '推荐']
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ getNav() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/share/controls`
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 打开app
|
|
|
|
+ open(){
|
|
|
|
+ this.openApp()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+.bg {
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 450rpx;
|
|
|
|
+ background: linear-gradient(#3b5735, #181818);
|
|
|
|
+ z-index: -1;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.detail {
|
|
|
|
+ display: flex;
|
|
|
|
+ margin-top: 48rpx;
|
|
|
|
+
|
|
|
|
+ .logo {
|
|
|
|
+ width: 240rpx;
|
|
|
|
+ height: 240rpx;
|
|
|
|
+ border-radius: 16rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .content {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ margin-left: 32rpx;
|
|
|
|
+
|
|
|
|
+ .tips {
|
|
|
|
+ color: rgba(255, 255, 255, 0.7);
|
|
|
|
+ font-size: 22rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-top: -32rpx;
|
|
|
|
+
|
|
|
|
+ .avatar {
|
|
|
|
+ width: 56rpx;
|
|
|
|
+ height: 56rpx;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ margin-right: 20rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .play_number {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-content: center;
|
|
|
|
+ img {
|
|
|
|
+ width: 32rpx;
|
|
|
|
+ height: 32rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ text {
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ color: rgba(255, 255, 255, 0.4);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.info {
|
|
|
|
+ width: 100%;
|
|
|
|
+ color: rgba(255, 255, 255, 0.7);
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ position: relative;
|
|
|
|
+ display: block;
|
|
|
|
+ margin: 32rpx 0 40rpx 0;
|
|
|
|
+
|
|
|
|
+ text {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ width: 96%;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.info::after {
|
|
|
|
+ content: '\e6b5';
|
|
|
|
+ font-family: uniicons;
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 0;
|
|
|
|
+ top: 5%;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+::v-deep .segmented-control__item {
|
|
|
|
+ flex: none;
|
|
|
|
+ margin-right: 64rpx;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+::v-deep .segmented-control__item--text::after {
|
|
|
|
+ content: '';
|
|
|
|
+ width: 32rpx;
|
|
|
|
+ height: 8rpx;
|
|
|
|
+ background: #a4d099;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 50%;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ transform: translate(-50%);
|
|
|
|
+ border-radius: 20rpx;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.list_content {
|
|
|
|
+ margin-top: 32rpx;
|
|
|
|
+ .item {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-bottom: 50rpx;
|
|
|
|
+ }
|
|
|
|
+ .item:last-child {
|
|
|
|
+ margin: 0;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.time,
|
|
|
|
+.play,
|
|
|
|
+.date {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-right: 32rpx;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.time::before,
|
|
|
|
+.play::before,
|
|
|
|
+.date::before {
|
|
|
|
+ content: '';
|
|
|
|
+ width: 28rpx;
|
|
|
|
+ height: 28rpx;
|
|
|
|
+ margin-right: 8rpx;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.time::before {
|
|
|
|
+ background: url('@/static/time.png') no-repeat 100% / cover;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.play::before {
|
|
|
|
+ background: url('@/static/playnumber.png') no-repeat 100% / cover;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.date::before {
|
|
|
|
+ background: url('@/static/date.png') no-repeat 100% / cover;
|
|
|
|
+}
|
|
|
|
+</style>
|