cmy 10 месяцев назад
Родитель
Сommit
5dc830825b
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      pages/users/user_payment/index.vue

+ 6 - 2
pages/users/user_payment/index.vue

@@ -34,8 +34,9 @@
 						<view class="text_left">
 							
 						<view class="pic-number">赠送请客金:{{ item.give_money }} 元</view>
-						<view class="pic-number">赠送股权:{{ item.reward_share }} 股</view>
+						<view class="pic-number">消费分红股:{{ item.reward_share }} 股</view>
 						<view class="pic-number">会员等级:{{ item.level_up }}</view>
+						<view class="pic-number">折扣:{{ item.zk }}折</view>
 						</view>
 					</view>
 					<view class="pic-box pic-box-color acea-row row-center-wrapper"
@@ -292,7 +293,10 @@
 			getRecharge() {
 				getRechargeApi()
 					.then(res => {
-						this.picList = res.data.recharge_quota;
+						this.picList = res.data.recharge_quota.map((re)=>{
+							re.zk = +(re.discount/10).toFixed(1)
+							return re
+						});
 						if (this.picList[0]) {
 							this.rechar_id = this.picList[0].id;
 							this.numberPic = this.picList[0].price;