|
@@ -11,7 +11,7 @@
|
|
|
<view class="name">{{ userInfo.nickname }}</view>
|
|
|
<view class="phone">{{ userInfo.phone }}</view>
|
|
|
<view class="vip-box">
|
|
|
- <view class="vip">会员等级LV.5</view>
|
|
|
+ <view class="vip">会员等级LV.{{ userInfo.level }}</view>
|
|
|
<view class="pintuan">拼团等级LV.2</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -20,22 +20,22 @@
|
|
|
<view class="box">
|
|
|
<view class="sweets-box">
|
|
|
<view class="sweets" @click="nav('/pages/money/award')">
|
|
|
- <view class="limit">111</view>
|
|
|
+ <view class="limit">{{ candy || 0 }}</view>
|
|
|
<view class="sweets-name">糖果</view>
|
|
|
</view>
|
|
|
<view class="jiange"></view>
|
|
|
<view class="sweets" @click="nav('/pages/money/integralP')">
|
|
|
- <view class="limit">111</view>
|
|
|
+ <view class="limit">{{ jf || 0 }}</view>
|
|
|
<view class="sweets-name">拼团积分</view>
|
|
|
</view>
|
|
|
<view class="jiange"></view>
|
|
|
<view class="sweets" @click="nav('/pages/money/integralShopping')">
|
|
|
- <view class="limit">111</view>
|
|
|
- <view class="sweets-name">购物积分</view>
|
|
|
+ <view class="limit">{{ userInfo.now_money*1 }}</view>
|
|
|
+ <view class="sweets-name">货款</view>
|
|
|
</view>
|
|
|
<view class="jiange"></view>
|
|
|
<view class="sweets" @click="nav('/pages/money/wallet')">
|
|
|
- <view class="limit">111</view>
|
|
|
+ <view class="limit">{{userInfo.brokerage_price * 1}}</view>
|
|
|
<view class="sweets-name">佣金</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -46,21 +46,15 @@
|
|
|
</view>
|
|
|
<view class="order-section">
|
|
|
<view class="order-item" @click="nav('/pages/order/order?state=0')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
- <view class=" icon1 position-relative">
|
|
|
- <image class="icon-img" src="/static/user/user01.png" mode="aspectFit"></image>
|
|
|
- </view>
|
|
|
+ <view class=" icon1 position-relative"><image class="icon-img" src="/static/user/user01.png" mode="aspectFit"></image></view>
|
|
|
<text>待付款</text>
|
|
|
</view>
|
|
|
<view class="order-item" @click="nav('/pages/order/order?state=1')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
- <view class="icon1 position-relative">
|
|
|
- <image class="icon-img" src="/static/user/user02.png" mode="aspectFit"></image>
|
|
|
- </view>
|
|
|
+ <view class="icon1 position-relative"><image class="icon-img" src="/static/user/user02.png" mode="aspectFit"></image></view>
|
|
|
<text>待发货</text>
|
|
|
</view>
|
|
|
<view class="order-item" @click="nav('/pages/order/order?state=2')" hover-class="common-hover" :hover-stay-time="50">
|
|
|
- <view class="icon1 position-relative">
|
|
|
- <image class="icon-img" src="/static/user/user03.png" mode="aspectFit"></image>
|
|
|
- </view>
|
|
|
+ <view class="icon1 position-relative"><image class="icon-img" src="/static/user/user03.png" mode="aspectFit"></image></view>
|
|
|
<text>待收货</text>
|
|
|
</view>
|
|
|
<view class="order-item" @click="nav('/pages/order/order?state=4')" hover-class="common-hover" :hover-stay-time="50">
|
|
@@ -157,6 +151,7 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { wallet } from '@/api/finance.js';
|
|
|
import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
|
|
|
import { mapState, mapMutations } from 'vuex';
|
|
|
import uniList from '@/components/uni-list/uni-list.vue';
|
|
@@ -173,7 +168,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
erweima: '',
|
|
|
- weixin: ''
|
|
|
+ weixin: '',
|
|
|
+ wallet: '',
|
|
|
+ candy:'',//糖果数量
|
|
|
+ jf:'',//拼团积分
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
@@ -209,6 +207,22 @@ export default {
|
|
|
this.erweima = data.service_qr;
|
|
|
this.weixin = data.service_wechat;
|
|
|
});
|
|
|
+ wallet({}).then(({ data }) => {
|
|
|
+ const obj = this
|
|
|
+ const arr = Object.keys(data.back);
|
|
|
+ console.log(arr);
|
|
|
+ let ar = [];
|
|
|
+ arr.forEach(e => {
|
|
|
+ console.log(e,'11111')
|
|
|
+ if(e == 'LALA'){
|
|
|
+ obj.candy = (data.back[e].money.money*1).toFixed(0)
|
|
|
+ }
|
|
|
+ if(e == 'USDC'){
|
|
|
+ obj.jf = (data.back[e].money.money*1)
|
|
|
+ }
|
|
|
+ ar.push(data.back[e]);
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
server() {
|
|
|
this.$refs.popup.open();
|
|
@@ -290,7 +304,7 @@ page,
|
|
|
.content {
|
|
|
height: auto;
|
|
|
min-height: 100%;
|
|
|
- background-color: #FFFFFF;
|
|
|
+ background-color: #ffffff;
|
|
|
padding-bottom: 44rpx;
|
|
|
}
|
|
|
.top {
|
|
@@ -434,7 +448,7 @@ page,
|
|
|
font-weight: bold;
|
|
|
color: #666666;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.sweets-name {
|
|
|
font-size: 28rpx;
|
|
|
font-family: PingFang SC;
|
|
@@ -461,7 +475,7 @@ page,
|
|
|
background-color: #ffffff;
|
|
|
line-height: 1;
|
|
|
padding: 26rpx 34rpx 20rpx;
|
|
|
- border-bottom: 1px solid #F5F5F5;;
|
|
|
+ border-bottom: 1px solid #f5f5f5;
|
|
|
|
|
|
.title1 {
|
|
|
font-size: 30rpx;
|