| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <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>
|