|
@@ -23,13 +23,22 @@
|
|
|
<view class="num-item">
|
|
|
<view class="txt flex">
|
|
|
<image class="userIcon" src="../../static/images/user02.png" mode="scaleToFill"></image>
|
|
|
- <text>分红额度</text>
|
|
|
+ <text>提货额度</text>
|
|
|
</view>
|
|
|
- <text class="num">{{userFhed}}%</text>
|
|
|
+ <text class="num">{{userInfo.award_range}}</text>
|
|
|
</view>
|
|
|
- <view class="payGreenIn" @click="goMenuPage('/pages/users/user_integral/itemuser')">
|
|
|
- 购买绿积分
|
|
|
+ <view class="num-item">
|
|
|
+ <view class="txt flex">
|
|
|
+ <image class="userIcon" src="../../static/images/user04.png" mode="scaleToFill"></image>
|
|
|
+ <text>冻结金</text>
|
|
|
+ </view>
|
|
|
+ <text class="num">{{userInfo.freeze_award}}</text>
|
|
|
</view>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <view class="payGreenIn" @click="goMenuPage('/pages/users/user_integral/itemuser')">
|
|
|
+ 购买绿积分
|
|
|
+ </view> -->
|
|
|
<!-- <view class="num-item" @click="goMenuPage('/pages/users/user_integral/integral')">
|
|
|
<text class="num">{{userInfo.static_integral || 0}}</text>
|
|
|
<view class="txt">消费分</view>
|
|
@@ -45,6 +54,13 @@
|
|
|
</view>
|
|
|
<text class="num">{{userInfo.red_integral || 0}}</text>
|
|
|
</view>
|
|
|
+ <view class="num-item" style="flex-grow: 0;" @click="goMenuPage('/pages/users/user_integral/red')">
|
|
|
+ <view class="txt flex" >
|
|
|
+ <image class="userIcon" src="../../static/images/user05.png" mode="scaleToFill"></image>
|
|
|
+ <text>价格</text>
|
|
|
+ </view>
|
|
|
+ <text class="num">{{indexData.price*1}}</text>
|
|
|
+ </view>
|
|
|
<view class="payRedIn ">
|
|
|
<view class="targetMoney" @click="goMenuPage('/pages/users/user_integral/redTarget')">
|
|
|
转佣金
|
|
@@ -117,7 +133,8 @@
|
|
|
updateUserInfo,
|
|
|
getRandCode,
|
|
|
updateWechatInfo,
|
|
|
- getMenuData
|
|
|
+ getMenuData,
|
|
|
+ loadIndexs
|
|
|
} from '@/api/user.js';
|
|
|
import {
|
|
|
wechatAuthV2,
|
|
@@ -173,14 +190,14 @@
|
|
|
cartNum: 'cartNum',
|
|
|
isLogin: 'isLogin'
|
|
|
}),
|
|
|
- userFhed() {
|
|
|
- const userInfo = this.userInfo;
|
|
|
- if (userInfo.award_range) {
|
|
|
- return +(userInfo.award_range / (userInfo.award_range + userInfo.send_award_range) * 100).toFixed(2);
|
|
|
- } else {
|
|
|
- return 0
|
|
|
- }
|
|
|
- },
|
|
|
+ // userFhed() {
|
|
|
+ // const userInfo = this.userInfo;
|
|
|
+ // if (userInfo.award_range) {
|
|
|
+ // return +(userInfo.award_range / (userInfo.award_range + userInfo.send_award_range) * 100).toFixed(2);
|
|
|
+ // } else {
|
|
|
+ // return 0
|
|
|
+ // }
|
|
|
+ // },
|
|
|
},
|
|
|
filters: {},
|
|
|
mixins: [colors],
|
|
@@ -282,7 +299,8 @@
|
|
|
'icon-ic_daituikuan'
|
|
|
]
|
|
|
},
|
|
|
- codeImg: ''
|
|
|
+ codeImg: '',
|
|
|
+ indexData:''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -323,7 +341,14 @@
|
|
|
// #endif
|
|
|
this.colorData();
|
|
|
},
|
|
|
- onReady() {},
|
|
|
+ onReady() {
|
|
|
+ loadIndexs().then(({data})=>{
|
|
|
+ this.indexData = data;
|
|
|
+ console.log(data,'data')
|
|
|
+ }).catch((err)=>{
|
|
|
+ console.log(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
onShow() {
|
|
|
if (!this.isLogin) {
|
|
|
this.userInfo = '';
|
|
@@ -713,6 +738,7 @@
|
|
|
justify-content: flex-end;
|
|
|
padding: 0 30rpx;
|
|
|
line-height: 1;
|
|
|
+ flex-shrink: 0;
|
|
|
.targetMoney.openDetail{
|
|
|
padding: 10rpx 0rpx 10rpx 10rpx;
|
|
|
}
|