Commit 6a5bc4ab authored by jiaoyahui's avatar jiaoyahui

record文件更改

parent ae6505ad
...@@ -106,18 +106,19 @@ ...@@ -106,18 +106,19 @@
</div> </div>
<div>股票代码</div> <div>股票代码</div>
<div>股票名称</div> <div>股票名称</div>
<div>盈亏金额</div>
<div>盈亏比例</div> <div>盈亏比例</div>
<div>持仓天数</div> <div>持仓天数</div>
</div> </div>
<div> <div>
<ul class="user_ul"> <ul class="user_ul">
<li class="name" v-for="(item, index) in pageStockPro" :key="index"> <li class="name" v-for="(item, index) in pageStockPro" :key="index">
<div class="se_data">{{ item.buyingTime }}</div> <div class="se_data">{{handleDateTime(item.buyingTime)}}</div>
<div class="se_data">{{ item.sellingTime }}</div> <div class="se_data">{{handleDateTime(item.sellingTime)}}</div>
<div class="se_data">{{ item.code }}</div> <div class="se_data">{{ item.code }}</div>
<div class="se_data">{{ item.name }}</div> <div class="se_data">{{ item.name }}</div>
<div class="se_data_p">{{ item.profitPrice / 100 }}%</div>
<div class="se_data_p">{{ item.profitRatio }}</div> <div class="se_data_p">{{ item.profitRatio }}</div>
<div class="se_data_p">{{ item.profitPrice / 100 }}%</div>
<div class="se_data_t">{{ item.holdingDays }}</div> <div class="se_data_t">{{ item.holdingDays }}</div>
</li> </li>
</ul> </ul>
...@@ -169,8 +170,26 @@ export default { ...@@ -169,8 +170,26 @@ export default {
} else { } else {
this.get_Pro(); //已购买 this.get_Pro(); //已购买
} }
}, },
methods: { methods: {
handleDateTime(timestamp) {
// const timestamp = Date.now();
const date = new Date(timestamp);
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, '0');
const day = date.getDate().toString().padStart(2, '0');
const hours = date.getHours().toString().padStart(2, '0');
const minutes = date.getMinutes().toString().padStart(2, '0');
const seconds = date.getSeconds().toString().padStart(2, '0');
return `${year}-${month}-${day}${hours}:${minutes}:${seconds}`;
},
//未购买---------------开始 //未购买---------------开始
get_elected() { get_elected() {
let params = { let params = {
...@@ -260,6 +279,7 @@ export default { ...@@ -260,6 +279,7 @@ export default {
this.yimai_orderBy = orderBy; this.yimai_orderBy = orderBy;
this.get_Pro(); this.get_Pro();
}, },
//已购买---------------结束 //已购买---------------结束
onClickLeft() { onClickLeft() {
...@@ -285,22 +305,15 @@ export default { ...@@ -285,22 +305,15 @@ export default {
/* padding-left: 10px; */ /* padding-left: 10px; */
padding-left: 6px; padding-left: 6px;
margin-right: 6px; margin-right: 6px;
border: 1px solid red;
/* width: 436px; */ /* width: 436px; */
background: rgb(241, 238, 238); background: rgb(241, 238, 238);
position: fixed; position: fixed;
top: 46px; top: 46px;
left: 0%; left: 0%;
/* line-height: 28px; */
/* height: 40px;
}
.scrop{
/* width: 435px; */
overflow-x: scroll;
white-space: nowrap;
border: 1px solid red;
/* height: 200px; */
} }
.contain { .contain {
position: relative; position: relative;
width: 100%; width: 100%;
...@@ -354,7 +367,7 @@ export default { ...@@ -354,7 +367,7 @@ export default {
border-bottom: 1px solid #d5d8db; border-bottom: 1px solid #d5d8db;
display: flex; display: flex;
line-height: 27px; line-height: 27px;
width:165%;
margin-top: 7px; margin-top: 7px;
} }
.user_ul { .user_ul {
...@@ -374,7 +387,7 @@ export default { ...@@ -374,7 +387,7 @@ export default {
margin-left: 1px; margin-left: 1px;
} }
.se_data { .se_data {
width: 18%; width: 26%;
line-height: 41px; line-height: 41px;
text-align: center; text-align: center;
} }
...@@ -401,6 +414,15 @@ export default { ...@@ -401,6 +414,15 @@ export default {
color: white !important; color: white !important;
} }
.sent{ .sent{
margin-top: 10px; margin-top: 10px;
}
::v-deep .van-nav-bar[data-v-341046a4] {
position: relative;
z-index: 1;
background-color: #e03939;
-webkit-user-select: none;
color: white;
user-select: none;
width: 165%;
} }
</style> </style>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<div>{{ item.name }}</div> <div>{{ item.name }}</div>
<div>{{ item.code }}</div> <div>{{ item.code }}</div>
</div> </div>
<div class="odiv">{{ item.createdTime }}</div> <div class="odiv">{{ handleDateTime(item.createdTime) }}</div>
<div class="odiv_p">{{ item.cost }}</div> <div class="odiv_p">{{ item.cost }}</div>
<div class="odiv">{{ item.profitLossRatio }}</div> <div class="odiv">{{ item.profitLossRatio }}</div>
</div> </div>
...@@ -239,6 +239,17 @@ export default { ...@@ -239,6 +239,17 @@ export default {
this.getselected(); this.getselected();
}, },
methods: { methods: {
handleDateTime(timestamp) {
// const timestamp = Date.now();
const date = new Date(timestamp);
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, '0');
const day = date.getDate().toString().padStart(2, '0');
const hours = date.getHours().toString().padStart(2, '0');
const minutes = date.getMinutes().toString().padStart(2, '0');
const seconds = date.getSeconds().toString().padStart(2, '0');
return `${year}-${month}-${day}${hours}:${minutes}:${seconds}`;
},
getselected() { getselected() {
let params = { let params = {
productId: this.detInfo.id, productId: this.detInfo.id,
......
...@@ -354,6 +354,7 @@ export default { ...@@ -354,6 +354,7 @@ export default {
this.server.newcrmqueryproduct(params).then((res) => { this.server.newcrmqueryproduct(params).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
alert("兑换成功"); alert("兑换成功");
window.location.reload()
} else if (res.data.code == 500) { } else if (res.data.code == 500) {
alert("网络错误,请稍后重试"); alert("网络错误,请稍后重试");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment