MrShi
2024-04-07 9a819fa35464df79a1a8a56e132b3463fac520a7
wx/pages/addition_subtraction/addition_subtraction.vue
@@ -21,9 +21,15 @@
                  <view class="label">投保年龄:</view>
                  <view class="value">{{info.minAge}}至{{info.maxAge}}周岁</view>
               </view>
               <view class="box_head_info_list_item">
               <view class="box_head_info_list_item" v-if="info.solutionType !== 1">
                  <view class="label">费用:</view>
                  <view class="value">{{info.price}}元</view>
                  <view class="value">
                     {{info.price}}元
                     <text v-if="info.timeUnit === 0">/天</text>
                     <text v-if="info.timeUnit === 1">/半月</text>
                     <text v-if="info.timeUnit === 2">/月</text>
                     <text v-if="info.timeUnit === 3">/年</text>
                  </view>
               </view>
            </view>
         </view>
@@ -130,7 +136,8 @@
      computed: {
         // 总金额
         totalPrice() {
            return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2)
            // return (this.cyclePrice * (this.add.length + this.del.length)).toFixed(2)
            return ((this.cyclePrice * this.add.length) - (this.cyclePrice * this.del.length)).toFixed(2)
         }
      },
      methods: {