| | |
| | | <div class="trading_card" v-for="i in list" :key="i.id"> |
| | | <div class="card_label1 flex-between-start"> |
| | | <div> |
| | | <p class="flex-start gp"> |
| | | <span>{{ i.code }}</span> |
| | | </p> |
| | | <p class="flex-start"> |
| | | <span class="label_icon">{{ i.stockType }}</span> |
| | | <span class="label_name line-one">{{ i.name }}</span> |
| | | </p> |
| | | <p class="flex-start gp"> |
| | | <span>{{ i.code }}</span> |
| | | </p> |
| | | </div> |
| | | |
| | |
| | | </p> |
| | | |
| | | <p class="card_buy flex-center" @click="buyOpen(i)"> |
| | | <van-icon name="add-square" size=".4em" /> |
| | | <span>{{ $t("申购") }}</span> |
| | | <van-icon name="add-square" size=".4em" v-show="i.isBuy == 0" /> |
| | | <span v-if="i.isBuy == 0">{{ $t("申购") }}</span> |
| | | <span v-else-if="i.isBuy == 1" class="ygm">{{ $t("已申购") }}</span> |
| | | </p> |
| | | </div> |
| | | |
| | |
| | | methods: { |
| | | // 购买弹窗 |
| | | buyOpen(i) { |
| | | if (i.isBuy != 0) return; |
| | | this.popupData = i; |
| | | this.buyShow = true; |
| | | }, |
| | |
| | | applyNums: this.popupData.orderNumber, |
| | | password: this.popupData.password, |
| | | newlistId: this.popupData.newlistId, |
| | | type: this.popupData.type, |
| | | } |
| | | type: this.popupData.type |
| | | }; |
| | | let data = await api.getNewAdd(opt); |
| | | console.log(data.status); |
| | | |
| | | |
| | | if (data.status == 0) { |
| | | Toast.success(); |
| | | setTimeout(() => { |
| | |
| | | font-size: 0.45em; |
| | | font-weight: 600; |
| | | margin-left: 0.2em; |
| | | } |
| | | .ygm { |
| | | color: #ddd; |
| | | } |
| | | } |
| | | .card_label2, |
| | |
| | | font-size: 0.3em; |
| | | } |
| | | .gp { |
| | | margin-bottom: 0.2em; |
| | | margin-top: 0.2em; |
| | | } |
| | | } |
| | | } |