2 files modified
5 files added
| | |
| | | }, |
| | | |
| | | // Various Dev Server settings |
| | | host: 'localhost', // can be overwritten by process.env.HOST |
| | | host: '0.0.0.0', // can be overwritten by process.env.HOST |
| | | port: 80, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined |
| | | autoOpenBrowser: true, |
| | | errorOverlay: true, |
| | |
| | | <div class="tr_list_page"> |
| | | <div class="content"> |
| | | <div class="tabs"> |
| | | <div class="top_title"> |
| | | <div class="tabs_title"> |
| | | <div |
| | | class="tb" |
| | | v-for="(item, index) in tabsArr" |
| | | :key="index" |
| | | @click="handleTabsClick(item, index)" |
| | | > |
| | | <span :class="index === tabsIndex ? 'active' : ''">{{ item }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="right_money"></div> |
| | | </div> |
| | | <div class="bottom_content" v-if="tabsIndex === 1"> |
| | | <!-- 搜索框 --> |
| | | <div class="search"> |
| | | <div class="search_content"> |
| | | <div class="left_search"> |
| | | <div class="search_img"> |
| | | <img src="../../assets/img/search2.png" alt /> |
| | | <img src="../../assets/img/searchs.png" alt /> |
| | | </div> |
| | | <div class="search_input"> |
| | | <input type="text" class="searchs" placeholder="输入品种名称/代码搜索" /> |
| | | </div> |
| | | </div> |
| | | <div class="right_search_class"> |
| | | <img src="../../assets/img/fenlei2.png" alt /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="kai_mess"> |
| | | <div class="left_identity_img"> |
| | | <img src="../../assets/img/shenfen.png" alt /> |
| | | <img src="../../assets/img/shenfen2.png" alt /> |
| | | </div> |
| | | <div class="text"> |
| | | <span>{{ '开户即可入金交易' }}</span> |
| | |
| | | <div class="item" v-for="(item, index) in listArr" :key="index"> |
| | | <div class="left_title"> |
| | | <div class="tp"> |
| | | <span class="collection" @click="handleCollectionClick(item)"> |
| | | <span class="shu"></span> |
| | | </span> |
| | | <span class="title_color">{{ item.name }}</span> |
| | | </div> |
| | | <div class="bt"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="shai" v-if="dialogFlag" @click="openDialog()"></div> |
| | | <div class="top_title" @click="openDialog()" ref="topTitle"> |
| | | <div> |
| | | <div class="tabs_title"> |
| | | <div |
| | | class="tb" |
| | | v-for="(item, index) in tabsArr" |
| | | :key="index" |
| | | @click="handleTabsClick(item, index)" |
| | | > |
| | | <span :class="index === tabsIndex ? 'active' : ''">{{ item }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="right_money"> |
| | | <div class="content_money" v-if="tabsIndex === 1"> |
| | | <div class="top_price"> |
| | | <div class="left"> |
| | | <span>{{ '余额' }}</span> |
| | | </div> |
| | | <div class="right"> |
| | | <span>{{ '¥ 49,656.79' }}</span> |
| | | </div> |
| | | <div class="sanjiao"> |
| | | <img src="../../assets/img/xiala.png" alt /> |
| | | </div> |
| | | </div> |
| | | <div class="bottom_balance"> |
| | | <div> |
| | | <span>{{ '可用余额' }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | name: "trading", |
| | | data() { |
| | | return { |
| | | tabsIndex: 0, |
| | | tabsIndex: 1, |
| | | tabsArr: ["自选", "市场"], |
| | | tabClassActive: 1, |
| | | dialogFlag: false, |
| | | tabsClassArr: [ |
| | | { |
| | | name: "热门", |
| | |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93, |
| | | collection: true |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: true |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: true |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: true |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: false |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: false |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: true |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: false |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: false |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: false |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: false |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: false |
| | | }, |
| | | { |
| | | name: "香港50指数", |
| | | referred: "HK50", |
| | | price: 16445.5, |
| | | time: "02:59:58", |
| | | applies: 5.93 |
| | | applies: 5.93, |
| | | collection: false |
| | | } |
| | | ] |
| | | }; |
| | |
| | | }, |
| | | handleTabsItem(item, index) { |
| | | this.tabsItemIndex = index; |
| | | }, |
| | | handleCollectionClick(item) { |
| | | item.collection = !item.collection; |
| | | }, |
| | | openDialog() { |
| | | if (!this.dialogFlag) { |
| | | this.$refs['topTitle'].style.height = '7rem' |
| | | }else { |
| | | this.$refs['topTitle'].style.height = '1.2821rem' |
| | | } |
| | | this.dialogFlag = !this.dialogFlag; |
| | | } |
| | | } |
| | | }; |
| | |
| | | > .content { |
| | | width: 100%; |
| | | height: 100%; |
| | | padding: 0 0.3rem; |
| | | } |
| | | } |
| | | .tabs { |
| | | width: 100%; |
| | | height: 100%; |
| | | margin-top: 1.1282rem; |
| | | .top_title { |
| | | width: 100%; |
| | | height: 1.2821rem; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | > div { |
| | | width: 40%; |
| | | height: 100%; |
| | | display: flex; |
| | | } |
| | | .tb { |
| | | width: 50%; |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 0.4103rem; |
| | | } |
| | | .active { |
| | | font-size: 0.5003rem; |
| | | font-weight: 800; |
| | | } |
| | | } |
| | | position: relative; |
| | | .search { |
| | | width: 100%; |
| | | height: 1.3333rem; |
| | | height: 1rem; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | padding: 0 0.3rem; |
| | | .search_content { |
| | | width: 100%; |
| | | height: 90%; |
| | |
| | | align-items: center; |
| | | } |
| | | .left_search { |
| | | width: 87%; |
| | | width: 100%; |
| | | height: 100%; |
| | | background: rgb(246, 246, 246); |
| | | border-radius: 0.2rem; |
| | | background: #f6f6f6; |
| | | border-radius: 0.15rem; |
| | | display: flex; |
| | | .search_img { |
| | | width: 1rem; |
| | |
| | | justify-content: center; |
| | | align-items: center; |
| | | img { |
| | | width: 0.6rem; |
| | | height: 0.6rem; |
| | | width: 0.5rem; |
| | | height: 0.5rem; |
| | | } |
| | | } |
| | | .search_input { |
| | | width: calc(100% - 1rem); |
| | | width: 100%; |
| | | overflow: hidden; |
| | | height: 100%; |
| | | display: flex; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | .top_title { |
| | | width: 100%; |
| | | height: 1.2821rem; |
| | | padding: 0 0.3rem; |
| | | position: fixed; |
| | | background: #fff; |
| | | top: 0; |
| | | z-index: 9999999; |
| | | transition: all 1s; |
| | | >div { |
| | | width: 100%; |
| | | height: 1.2821rem; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | .tabs_title { |
| | | width: 23%; |
| | | height: 100%; |
| | | display: flex; |
| | | } |
| | | .tb { |
| | | width: 50%; |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | font-size: 0.4103rem; |
| | | } |
| | | .active { |
| | | font-size: 0.5003rem; |
| | | font-weight: 800; |
| | | } |
| | | } |
| | | .bottom_content { |
| | | width: 100%; |
| | | height: calc(100% - 1.2821rem); |
| | | position: relative; |
| | | top: 7%; |
| | | } |
| | | .scroll_tab { |
| | | width: 100%; |
| | | height: 1.1538rem; |
| | | height: 1rem; |
| | | overflow-x: scroll; |
| | | -webkit-overflow-scrolling: touch; |
| | | display: -webkit-box; |
| | |
| | | |
| | | > div { |
| | | display: inline-block; |
| | | width: 25%; |
| | | width: 15%; |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | font-size: 0.4rem; |
| | | align-items: center; |
| | | span { |
| | | display: inline-block; |
| | |
| | | } |
| | | } |
| | | span.active { |
| | | color: rgb(43, 132, 247); |
| | | border-bottom: 1px solid rgb(43, 132, 247); |
| | | color: rgb(2, 99, 226); |
| | | border-bottom: 0.07rem solid rgb(2, 99, 226); |
| | | font-weight: 800; |
| | | transition: all 0.5s; |
| | | } |
| | |
| | | .kai_mess { |
| | | width: 100%; |
| | | height: 1.2821rem; |
| | | background: rgb(245, 249, 254); |
| | | background: #f5f9fe; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | position: absolute; |
| | | .left_identity_img { |
| | | width: 0.9744rem; |
| | | height: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | margin-left: 0.2rem; |
| | | img { |
| | | width: 0.6rem; |
| | | height: 0.6rem; |
| | |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | color: #2883f7; |
| | | color: rgb(2, 99, 226); |
| | | font-weight: 800; |
| | | font-size: 0.35rem; |
| | | padding-left: 0.4128rem; |
| | | padding-left: 0.35rem; |
| | | } |
| | | .right_go { |
| | | width: 10%; |
| | |
| | | } |
| | | .list { |
| | | width: 100%; |
| | | height: calc(100% - 1.2821rem - 1rem - 1.1538rem - 1.3333rem); |
| | | height: calc(100% - 1.2821rem - 1rem - 1.1538rem - 1.3333rem); |
| | | overflow-x: auto; |
| | | padding-bottom: 1.2821rem; |
| | | padding: 0 0.3rem; |
| | | .list_items { |
| | | width: 100%; |
| | | > div { |
| | |
| | | } |
| | | } |
| | | .list_title { |
| | | width: 100%; |
| | | height: 1rem; |
| | | color: #ccc; |
| | | width: 100%; |
| | | height: 1rem; |
| | | margin-top: 1.29rem; |
| | | padding: 0 0.3rem; |
| | | color: #a1a2a4; |
| | | display: flex; |
| | | > div { |
| | | display: flex; |
| | | >div { |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .varieties{ |
| | | width: 45%; |
| | | } |
| | | .latest_price { |
| | | width: 35%; |
| | | } |
| | | .applies { |
| | | width: 20%; |
| | | } |
| | | align-items: center; |
| | | } |
| | | .varieties { |
| | | width: 45%; |
| | | } |
| | | .latest_price { |
| | | width: 35%; |
| | | } |
| | | .applies { |
| | | width: 20%; |
| | | } |
| | | } |
| | | .price_color { |
| | | color: rgb(39, 171, 99); |
| | |
| | | font-size: 0.4rem; |
| | | font-weight: 600; |
| | | } |
| | | .tab_items { |
| | | font-size: 0.2rem; |
| | | } |
| | | .tab_class { |
| | | padding: 0 0.3rem; |
| | | } |
| | | .searchs::placeholder { |
| | | color: #8e8f92; |
| | | } |
| | | .searchs { |
| | | width: 100%; |
| | | } |
| | | .collection { |
| | | display: inline-block; |
| | | width: 0.1rem; |
| | | height: 50%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-right: 0.1rem; |
| | | .shu { |
| | | width: 60%; |
| | | height: 100%; |
| | | background: #919191; |
| | | } |
| | | } |
| | | .right_money { |
| | | width: 44%; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: flex-end; |
| | | .content_money { |
| | | width: 80%; |
| | | height: 80%; |
| | | } |
| | | .top_price { |
| | | width: 100%; |
| | | height: 70%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | .left { |
| | | width: 0.8rem; |
| | | height: 0.4103rem; |
| | | border-radius: 0.1rem; |
| | | background: #4d73b1; |
| | | color: #fff; |
| | | font-size: 0.3077rem; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-left: 0.3rem; |
| | | span { |
| | | display: inline-block; |
| | | transform: scale(0.8); |
| | | font-weight: 600; |
| | | } |
| | | } |
| | | .right { |
| | | width: calc(100% - 1.2rem); |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: flex-end; |
| | | span { |
| | | font-weight: 600; |
| | | } |
| | | } |
| | | } |
| | | .bottom_balance { |
| | | width: 100%; |
| | | height: 30%; |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | font-size: 0.3077rem; |
| | | color: #acaeaf; |
| | | transform: scale(0.9); |
| | | margin-left: 0.2rem; |
| | | padding-right: 0.48rem; |
| | | } |
| | | } |
| | | .sanjiao { |
| | | width: 0.4rem; |
| | | height: 0.4rem; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | img { |
| | | width: 0.4rem; |
| | | height: 0.4rem; |
| | | } |
| | | } |
| | | .dialog { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background: rgba(0, 0, 0, 0.4); |
| | | top: 7%; |
| | | z-index: 9; |
| | | transition: all 0.5s; |
| | | } |
| | | .dialog.open { |
| | | top: 7%; |
| | | } |
| | | .shai { |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | background: rgba(0, 0, 0, 0.4); |
| | | top: 0%; |
| | | z-index: 10; |
| | | transition: all 0.5s; |
| | | } |
| | | .shai.open { |
| | | top: 4%; |
| | | } |
| | | </style> |