|
@@ -25,16 +25,14 @@
|
|
<div class="flex pt-3 px-3">
|
|
<div class="flex pt-3 px-3">
|
|
<image :src="detail.icon" style="width: 168rpx; height: 169rpx; border-radius: 16rpx" mode="aspectFill" />
|
|
<image :src="detail.icon" style="width: 168rpx; height: 169rpx; border-radius: 16rpx" mode="aspectFill" />
|
|
<div class="flex-1 pl-2">
|
|
<div class="flex-1 pl-2">
|
|
- <div class="" style="font-weight: 900">{{ detail.name }}</div>
|
|
|
|
|
|
+ <div class="" style="font-weight: 900; height: 42rpx">{{ detail.name || '' }}</div>
|
|
<div class="flex justify-between">
|
|
<div class="flex justify-between">
|
|
<div>
|
|
<div>
|
|
<span class="bold" style="color: #ff2c43; font-size: 24rpx">¥</span>
|
|
<span class="bold" style="color: #ff2c43; font-size: 24rpx">¥</span>
|
|
<span class="bold" style="color: #ff2c43; font-size: 38rpx">
|
|
<span class="bold" style="color: #ff2c43; font-size: 38rpx">
|
|
- {{ ('' + detail.price).split('.')[0] }}
|
|
|
|
- </span>
|
|
|
|
- <span class="bold" style="color: #ff2c43; font-size: 28rpx">
|
|
|
|
- .{{ ('' + detail.price).split('.')[1] }}
|
|
|
|
|
|
+ {{ priceLeft }}
|
|
</span>
|
|
</span>
|
|
|
|
+ <span class="bold" style="color: #ff2c43; font-size: 28rpx">.{{ priceRight }}</span>
|
|
<span style="color: #4e504f; font-size: 28rpx">/张明信片</span>
|
|
<span style="color: #4e504f; font-size: 28rpx">/张明信片</span>
|
|
</div>
|
|
</div>
|
|
<div class="pt-2">
|
|
<div class="pt-2">
|
|
@@ -108,7 +106,7 @@
|
|
class="relative right-2"
|
|
class="relative right-2"
|
|
style="width: 32rpx; height: 32rpx; display: inline-block"
|
|
style="width: 32rpx; height: 32rpx; display: inline-block"
|
|
/>
|
|
/>
|
|
- <span style="color: #fc5b20" class="fs11">{{ detail.hotNum }}</span>
|
|
|
|
|
|
+ <span style="color: #fc5b20" class="fs11">{{ detail.hotNum || '' }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -356,7 +354,9 @@ export default {
|
|
limit: 999,
|
|
limit: 999,
|
|
page: 1,
|
|
page: 1,
|
|
},
|
|
},
|
|
- detail: {},
|
|
|
|
|
|
+ detail: {
|
|
|
|
+ price: 0.0,
|
|
|
|
+ },
|
|
cardList: [],
|
|
cardList: [],
|
|
selectIndex: [],
|
|
selectIndex: [],
|
|
prizeList: [],
|
|
prizeList: [],
|
|
@@ -381,6 +381,22 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
this.getSafeAreaTop()
|
|
this.getSafeAreaTop()
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ priceLeft() {
|
|
|
|
+ let num = 0
|
|
|
|
+ if (this.detail.price) {
|
|
|
|
+ num = ('' + this.detail.price).split('.')[0]
|
|
|
|
+ }
|
|
|
|
+ return num
|
|
|
|
+ },
|
|
|
|
+ priceRight() {
|
|
|
|
+ let num = 0
|
|
|
|
+ if (this.detail.price) {
|
|
|
|
+ num = ('' + this.detail.price).split('.')[1]
|
|
|
|
+ }
|
|
|
|
+ return num
|
|
|
|
+ },
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
init() {
|
|
init() {
|
|
// 获取卡牌商品列表
|
|
// 获取卡牌商品列表
|