You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.0 KiB
Vue
92 lines
2.0 KiB
Vue
<template>
|
|
<div class="quotation-container">
|
|
<div class="quotation-holding">
|
|
<holding></holding>
|
|
</div>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="grid-content">
|
|
<img src="../../assets/images/sina.png" style="height: 110px;" alt="" @click="oepnWindow(1)">
|
|
<img src="../../assets/images/dongfang.png" style="height: 110px;" alt="" @click="oepnWindow(2)">
|
|
<img src="../../assets/images/csrc.png" style="height: 110px;" alt="" @click="oepnWindow(3)">
|
|
<img src="../../assets/images/u2008.png" style="height: 110px;" alt="" @click="oepnWindow(4)">
|
|
</div>
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
// import holding from '@views/trade/holding.vue'
|
|
// 引入views/trade/holding.vue
|
|
import holding from '../trade/holding.vue'
|
|
export default {
|
|
components: {
|
|
holding
|
|
},
|
|
name: '',
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
computed: {
|
|
},
|
|
created() {
|
|
},
|
|
methods: {
|
|
oepnWindow(type){
|
|
//判断type全等于1 打开新浪财经
|
|
if(type==1){
|
|
window.open("https://vip.stock.finance.sina.com.cn/mkt/");
|
|
} else if(type==2){
|
|
window.open("http://quote.eastmoney.com/center/");
|
|
} else if(type==3){
|
|
window.open("http://www.csrc.gov.cn/");
|
|
} else if(type==4){
|
|
window.open("https://mt4-mt5.com/mt4Download");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style lang='scss' scoped>
|
|
.quotation-holding{
|
|
padding: 20px;
|
|
background: #ffff;
|
|
}
|
|
.grid-content {
|
|
border-radius: 4px;
|
|
margin-bottom: 30px;
|
|
background: #ffff;
|
|
background-size: cover;
|
|
min-height: 170px;
|
|
padding: 30px 20px;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-content: center;
|
|
.center{
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 24px;
|
|
font-family: Microsoft YaHei;
|
|
font-weight: 400;
|
|
color: #333333;
|
|
}
|
|
.right{
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
}
|
|
img{
|
|
width: 160px;
|
|
height: 110px;
|
|
border: 1px solid #EAEAEA;
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
|
|
</style>
|