fix:修复我的卷页面展示不正常

This commit is contained in:
wangsongsole 2022-10-09 14:51:05 +08:00
parent 2dcbb569f6
commit c28b7d614f
1 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,7 @@
<p class="right-box-time">{{item.begin_time}} - {{item.end_time}}</p> <p class="right-box-time">{{item.begin_time}} - {{item.end_time}}</p>
<div class="right-box-bottom" <div class="right-box-bottom"
:style="{borderBottom:(more===item.id?'0.01rem solid #D7D7D7':'0')}"> :style="{borderBottom:(more===item.id?'0.01rem solid #D7D7D7':'0')}">
<span class="right-box-id">券编号 <span>{{String((item.id)).padStart(8,0)+index}}</span></span> <span class="right-box-id">券编号 <span>{{item.id}}</span></span>
<p class="right-box-more" @click="moreHandle(item.id)"> <p class="right-box-more" @click="moreHandle(item.id)">
{{more===item.id?'收起':'查看更多'}} {{more===item.id?'收起':'查看更多'}}
<img :class="more===item.id?'imgArrow':''" <img :class="more===item.id?'imgArrow':''"
@ -173,9 +173,10 @@
} }
if (code === 200) { if (code === 200) {
const productArray = [] const productArray = []
data.map(item => { data.map((item, index) => {
item.full = Number(item.full).toFixed(0) item.full = Number(item.full).toFixed(0)
item.reduce = Number(item.reduce).toFixed(0) item.reduce = Number(item.reduce).toFixed(0)
item.id = String((item.id)).padStart(8, 0) + index
item.product.legal.map(items => { item.product.legal.map(items => {
productArray.push({ productArray.push({
name: items.product_name, name: items.product_name,