| | |
| | | <div style="text-align: right"> |
| | | <div class="tp"> |
| | | <span class="price_color"> |
| | | {{ item.nowPrice }} |
| | | {{ item.nowPrice }} |
| | | </span> |
| | | </div> |
| | | <div class="bt" v-if="active != 'DZ'"> |
| | |
| | | </div> |
| | | </div> |
| | | </van-col> |
| | | <van-col span="6" v-if="!['DZ',].includes(active)"> |
| | | <van-col span="6" v-if="!['DZ'].includes(active)"> |
| | | <div style="text-align: right"> |
| | | <div |
| | | class="tp right_bs" |
| | |
| | | |
| | | data.data.list = Object.entries(data.data).map(([name, nowPrice]) => { |
| | | let nowPriceArr = Object.entries(nowPrice); |
| | | let nowPriceObj = {}; |
| | | nowPriceArr.map(item => { |
| | | if (name === item[0]) { |
| | | nowPriceObj.st_name = item[0]; |
| | | nowPriceObj.nowPrice = item[1]; |
| | | } |
| | | nowPriceObj = { |
| | | ...nowPriceObj, |
| | | [item[0]]: item[1] |
| | | }; |
| | | }); |
| | | return { |
| | | name, |
| | | st_name: nowPriceArr[0][0], |
| | | nowPrice: nowPriceArr[0][1], |
| | | stock_type: "HJ" |
| | | stock_type: "HJ", |
| | | ...nowPriceObj |
| | | }; |
| | | }); |
| | | } else { |