main
fanfan 10 months ago
parent e4cc85e5eb
commit 6cd34f6e06
  1. 4
      pages/goods/detail.vue
  2. 12
      pages/member/index.vue

@ -54,12 +54,12 @@
<view class="pro" v-if="isLogin || userInfo.user_type==10"> <view class="pro" v-if="isLogin || userInfo.user_type==10">
<view class="proMem"> <view class="proMem">
<text v-if="userInfo.user_type==10">Plus</text> <text v-if="userInfo.user_type==10">Plus</text>
<text v-if="userInfo.user_type==20">分销</text> <text v-if="userInfo.user_type==30">分销</text>
PRO会员 PRO会员
</view> </view>
<view class="proInfo"> <view class="proInfo">
开通<text v-if="userInfo.user_type==10">Plus</text> 开通<text v-if="userInfo.user_type==10">Plus</text>
<text v-if="userInfo.user_type==20">分销</text>会员预计再省<text style="color: #FF1D1D;">30</text> <text v-if="userInfo.user_type==30">分销</text>会员预计再省<text style="color: #FF1D1D;">30</text>
</view> </view>
<view class="proBtn" @click="goMember()"> <view class="proBtn" @click="goMember()">
立即开通 立即开通

@ -107,10 +107,10 @@
{{Number(item.month)}}个月 {{Number(item.month)}}个月
</view> </view>
<view class="firPrice"> <view class="firPrice">
{{Number(item.price)}} {{item.price?Number(item.price):0}}
</view> </view>
<view class="avePrice"> <view class="avePrice">
{{(Number(item.price)/Number(item.month)).toFixed(2)}}/ {{item.price&&item.month?(Number(item.price)/Number(item.month)).toFixed(2):0}}/
</view> </view>
</view> </view>
</view> </view>
@ -138,18 +138,18 @@
<view class="footer"> <view class="footer">
<view class="fLeft"> <view class="fLeft">
<view class="ys" v-if="choseItem.cheap_price!=0"> <view class="ys" v-if="choseItem">
已省 <text>{{Number((choseItem.cheap_price).toFixed(2))}}</text> 已省 <text>{{choseItem.cheap_price?Number((choseItem.cheap_price).toFixed(2)):0}}</text>
</view> </view>
<!-- <view class="yj"> <!-- <view class="yj">
原价 {{choseItem.price}} 原价 {{choseItem.price}}
</view> --> </view> -->
</view> </view>
<view class="btn" style="background: gray;opacity: 0.5;" v-if="user.user_type == 40"> <view class="btn" style="background: gray;opacity: 0.5;" v-if="user.user_type == 40">
<text>{{Number(choseItem.price)}}</text>开卡{{Number(choseItem.month)}}个月 <text>{{choseItem.price?Number(choseItem.price):0}}</text>开卡{{choseItem.month?Number(choseItem.month):0}}个月
</view> </view>
<view class="btn" @click="gotoPay" v-else> <view class="btn" @click="gotoPay" v-else>
<text>{{Number(choseItem.price)}}</text>开卡{{Number(choseItem.month)}}个月 <text>{{choseItem.price?Number(choseItem.price):0}}</text>开卡{{choseItem.month?Number(choseItem.month):0}}个月
</view> </view>
</view> </view>
</view> </view>

Loading…
Cancel
Save