|
@@ -25,7 +25,7 @@
|
|
|
:class="{ current: tabCurrent === index }"
|
|
|
@click="handleCheckedPay(index, pay)"
|
|
|
>
|
|
|
- <view class="hot" v-if="index == 0">推荐</view> <view class="text-1">{{ pay.month }}</view>
|
|
|
+ <view class="hot" v-if="index == 0">推荐</view> <view class="text-1">{{ pay.duration }}个月</view>
|
|
|
<view class="text-2"> <text>¥</text>{{ pay.price }}</view>
|
|
|
<view class="text-3" v-if="index == 0 || index == 1">{{ pay.price / pay.duration }}/月</view>
|
|
|
</view>
|
|
@@ -124,8 +124,6 @@ export default {
|
|
|
.then(response => {
|
|
|
let data = response.data
|
|
|
data.forEach(el => {
|
|
|
- let index = el.name.lastIndexOf('-')
|
|
|
- el.month = el.name.substring(index + 1, el.name.length)
|
|
|
el.beans = el.price * el.proportion
|
|
|
el.packageId = el.id
|
|
|
})
|