| | |
| | | |
| | | <div v-if="showType == 0 || showType == 2" class="flex justify-between pt-6 font-26" v-for="(item, index) in redData" |
| | | :key="item + index" @click="onPrice(item.price)" :style="{ |
| | | 'background': `linear-gradient(to right,${THEME == 'dark' ? '#131A2E' : '#fff'} 0%` + |
| | | 'background': `linear-gradient(to right,${THEME == 'dark' ? '#131A2E' : '#555'} 0%` + |
| | | (item.amount / greenData[greenData.length - 1].amount) * 100 + '%,rgba(246,70,93,.1) ' + |
| | | (item.amount / greenData[greenData.length - 1].amount) * 100 + '%,rgba(246,70,93,.1) 100%)' |
| | | }"> |
| | |
| | | </div> |
| | | <div v-if="showType == 0 || showType == 1" class="flex justify-between pt-6 font-26" |
| | | v-for="(item, index) in greenData" :key="index" @click="onPrice(item.price)" :style="{ |
| | | 'background': `linear-gradient(to right,${THEME == 'dark' ? '#131A2E' : '#fff'} 0%` + |
| | | 'background': `linear-gradient(to right,${THEME == 'dark' ? '#131A2E' : '#555'} 0%` + |
| | | (item.amount / greenData[greenData.length - 1].amount) * 100 + '%,rgba(94,186,137,.1) ' + |
| | | (item.amount / greenData[greenData.length - 1].amount) * 100 + '%,rgba(94,186,137,.1) 100%)' |
| | | }"> |