| | |
| | | <div style="text-align: left" v-show="false"> |
| | | <div class="tp"> |
| | | <span class="price_color">{{ |
| | | item.price | _toLocaleString(false) |
| | | item.price |
| | | }}</span> |
| | | </div> |
| | | <div class="bt"> |
| | |
| | | </div> |
| | | </van-col> |
| | | <div style="width: 100%;display: flex;justify-content: space-between;align-items: center;margin-top: 10px;font-size: 10px;;"> |
| | | <div>{{$t('hj59')}}:{{ |
| | | $moment(item.subscriptionTime).format( |
| | | "DD-MM-YYYY hh:mm:ss A" |
| | | ) |
| | | }}</div> |
| | | <div>{{$t('申购结束时间')}}:{{ |
| | | $moment(item.subscribeTime).format( |
| | | "DD-MM-YYYY hh:mm:ss A" |
| | | ) |
| | | }}</div> |
| | | <div>{{$t('hj59')}}:{{formatTimestamp(item.subscriptionTime)}}</div> |
| | | <div>{{$t('申购结束时间')}}:{{formatTimestamp(item.subscribeTime)}}</div> |
| | | </div> |
| | | <div style="width: 100%;display: flex;justify-content: space-between;align-items: center;margin-top: 10px;font-size: 10px;;"> |
| | | <div>{{$t('上市时间')}}:{{ |
| | | $moment(item.listDate).format( |
| | | "DD-MM-YYYY hh:mm:ss A" |
| | | ) |
| | | }}</div> |
| | | <div>{{$t('hj314')}}:{{item.price | _toLocaleString(false)}}</div> |
| | | <div>{{$t('上市时间')}}:{{formatTimestamp(item.listDate)}}</div> |
| | | <div>{{$t('hj314')}}:¥{{item.price}}</div> |
| | | </div> |
| | | </van-row> |
| | | |
| | |
| | | }}: |
| | | </div> |
| | | <div class="xgTime"> |
| | | {{ |
| | | $moment(shengouObj.subscriptionTime).format( |
| | | "DD-MM-YYYY hh:mm:ss A" |
| | | ) |
| | | }} |
| | | {{formatTimestamp(shengouObj.subscriptionTime)}} |
| | | </div> |
| | | </div> |
| | | <div class="xgsj"> |
| | |
| | | <!-- {{ $t("hj60") }}: --> |
| | | </div> |
| | | <div class="xgTime"> |
| | | {{ |
| | | $moment(shengouObj.subscribeTime).format( |
| | | "DD-MM-YYYY hh:mm:ss A" |
| | | ) |
| | | }} |
| | | {{formatTimestamp(shengouObj.subscribeTime)}} |
| | | </div> |
| | | </div> |
| | | <div class="xgsj"> |
| | | <div class="sjtlt">{{ $t("上市时间") }}:</div> |
| | | <div class="xgTime"> |
| | | {{ $moment(shengouObj.listDate).format("DD-MM-YYYY hh:mm:ss A") }} |
| | | {{formatTimestamp(shengouObj.listDate)}} |
| | | </div> |
| | | </div> |
| | | <div class="xgsj"> |
| | |
| | | <div class="xgsj"> |
| | | <div class="sjtlt">{{ $t("hj120") }}:</div> |
| | | <div class="xgTime"> |
| | | {{ shengouObj.price | _toLocaleString(false) }} |
| | | ¥{{ shengouObj.price }} |
| | | </div> |
| | | </div> |
| | | <!-- <div class="xgsj"> |
| | |
| | | this.getStock(this.active, this.zxactive); |
| | | }, |
| | | methods: { |
| | | formatTimestamp(timestamp) { |
| | | const date = new Date(timestamp); // 将时间戳转换为 Date 对象 |
| | | |
| | | const day = date.getDate(); // 日期 |
| | | const month = date.getMonth() + 1; // 月份(从 0 开始,所以下标要加 1) |
| | | const year = date.getFullYear(); // 年份 |
| | | const hours = date.getHours(); // 小时 |
| | | const minutes = date.getMinutes(); // 分钟 |
| | | const seconds = date.getSeconds(); // 秒钟 |
| | | |
| | | // 格式化为 "日月年/时分秒" 格式 |
| | | return `${year}${this.$t('年')}${month}${this.$t('月')}${day}${this.$t('日')}/${hours}:${minutes}:${seconds}`; |
| | | // return `${month}`; |
| | | }, |
| | | fromDatavalue(e) { |
| | | this.fromData.value = this.fromData.value.replace(/^(0+)|[^\d]+/g, '') |
| | | }, |