<script>
import $req from "@/service/serviceConfig";
export default {
    onLaunch: function () {
        // // 隐藏tabbar
        // uni.hideTabBar({
        //     animation: true, // 是否需要动画效果
        // });
        this.login();
        console.log("App Launch");
    },
    onShow: function () {
        console.log("App Show");
    },
    onHide: function () {
        console.log("App Hide");
    },
    methods: {
        // 根据钱包地址获取token登录
        login() {
            let query = {
                address: "111", //钱包链接
            };
            $req.request({ alias: "login-token", query }).then((res) => {
                if (res.code == 0) {
                    uni.setStorageSync("token", res.data);
                }
            });
        },
    },
};
</script>

<style>
/*每个页面公共css */
/* #ifndef APP-NVUE */
html,
body {
    background-color: #eef4fc;
}
/* #endif */

html,
body {
    font-size: 16px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body {
    margin: 0;
    font-family: PingFang SC, PingFang SC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, #e9fed5 0%, #ffffff 30%);
}

/* 隐藏滚动条 */
.hideScrollbar ::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
    -webkit-appearance: none;
    background: transparent;
}
.nT {
    box-shadow: 2px 1px 1px 1px #deeaf7;
}
.mPd {
    padding: 0 15rpx;
}
.line_1 {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.line_2 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.line_3 {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

view,
image,
text {
    box-sizing: border-box;
    flex-shrink: 0;
}

.statusBar {
    background-color: #1b242d;
}

#app {
    width: 100vw;
    height: 100vh;
}

.flex {
    display: flex;
}

.flex-left {
    display: flex;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

.self-start {
    align-self: flex-start;
}

.self-end {
    align-self: flex-end;
}

.self-center {
    align-self: center;
}

.self-baseline {
    align-self: baseline;
}

.self-stretch {
    align-self: stretch;
}

.flex-1 {
    flex: 1;
}

.flex-auto {
    flex: 1 1 auto;
}

.grow {
    flex-grow: 1;
}

.grow-0 {
    flex-grow: 0;
}

.shrink {
    flex-shrink: 1;
}

.shrink-0 {
    flex-shrink: 0;
}

.relative {
    position: relative;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
</style>


<style lang="scss">
.content-page-wrap {
    flex: 1;
    .head-title {
        font-weight: bold;
        font-size: 32rpx;
        text-align: center;
        margin-bottom: 32rpx;
        // height: 80rpx;
    }
}

.tabMain {
    width: 750rpx;
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}
.tab {
    width: 750rpx;
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}

/* 隐藏滚动条 */
.tab ::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
    -webkit-appearance: none;
    background: transparent;
}

.tabItemTitle {
    color: #717171;
    font-size: 30rpx;
    height: 50rpx;
    line-height: 50rpx;
    display: flex;
    flex-wrap: nowrap;
    align-children: center;
    justify-content: center;
}

.tabItemTitleActive {
    color: $BLBL;
    font-size: 40rpx;
    font-weight: bold;
}

.videoCardMain {
    width: 33.33%;
    padding: 10rpx 16rpx 40rpx 0;
    .videoCardImgBox {
        text-align: center;
        position: relative;
        .videoCardImg {
            width: 100%;
            height: 308rpx;
            border-radius: 16rpx;
        }
        .video-state {
            position: absolute;
            bottom: 16rpx;
            left: 0;
            right: 0;
            color: #fff;
            font-size: 26rpx;
        }
    }
    .videoCardName {
        font-size: 28rpx;
        padding: 10rpx 0 0;
        color: #464646;
        font-weight: 600;
    }
    .videoCardRate {
        padding: 3rpx 15rpx;
    }
}
.videoCardMain:nth-child(3n) {
    padding-right: 0;
}

.childPageView {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.childPageViewItem {
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
}

.childPageViewItem::-webkit-scrollbar {
    display: none;
    -webkit-appearance: none;
    background: transparent;
}
</style>

<style lang="less" scoped>
/deep/.search-box {
    // margin-top: 40rpx;
    display: flex;
    align-items: center;
    .u-input {
        border-radius: 24rpx !important;
        background-color: #f3f6f6 !important;
        height: 80rpx;
        line-height: 80rpx;
        padding: 16rpx 24rpx !important;

        .u-input__content__prefix-icon {
            display: flex;
        }
    }
    .input-right {
        margin-left: 20rpx;
        image {
            width: 68rpx;
            height: 68rpx;
        }
    }
}

/deep/.zp-paging-touch-view {
    padding: 0 30rpx;
}
</style>
