|
|
|
@ -40,7 +40,8 @@ |
|
|
|
<view class="u-calendar__content__item__inner" :style="{color: getColor(index,2)}"> |
|
|
|
<view class="lf-flex-column" style="justify-content: center;align-items: center;"> |
|
|
|
<text>{{ index + 1 }}</text> |
|
|
|
<text class="lf-font-24" v-if="!openDisAbled(year,month,index+1)">¥788</text> |
|
|
|
<text class="lf-font-24" v-if="(year+'-'+formatNum(month)+'-'+formatNum((index + 1))) == item2.date && !openDisAbled(year,month,index+1)" v-for="(item2,index2) of monthPrice" :key="index2">¥{{item2.price | filterFloat}}</text> |
|
|
|
<!-- <text class="lf-font-24" v-if="(year+'-'+formatNum(month)+'-'+formatNum((index + 1))) == item2.date && !openDisAbled(year,month,index+1)" v-for="(item2,index2) of monthPrice" :key="index2">库:{{item2.stock}}</text> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="u-calendar__content__item__tips" :style="{color:activeColor}" v-if="mode== 'range' && startDate==`${year}-${month}-${index+1}` && startDate!=endDate">{{startText}}</view> |
|
|
|
@ -277,6 +278,11 @@ |
|
|
|
this.init() |
|
|
|
} |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
filterFloat(val) { |
|
|
|
return parseFloat(val).toString(); // 过滤价格出现.00的情况 |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.init() |
|
|
|
console.log('当前规格的价格',this.monthPrice) |
|
|
|
|