feat(mine): 添加盒数接口
This commit is contained in:
parent
4ca69f368a
commit
87ccf55b39
|
@ -31,3 +31,8 @@ export const setRegion = data =>
|
||||||
// 获取可选择区域
|
// 获取可选择区域
|
||||||
export const getRegionAreaTree = params =>
|
export const getRegionAreaTree = params =>
|
||||||
http.get('/retail-member/api/retail-member/region-tree', { params })
|
http.get('/retail-member/api/retail-member/region-tree', { params })
|
||||||
|
|
||||||
|
// 获取用户盒数
|
||||||
|
|
||||||
|
export const getMemberBoxCount = () =>
|
||||||
|
http.get('/retail-member/api/retail-member/member-box')
|
||||||
|
|
|
@ -148,12 +148,12 @@
|
||||||
</view>
|
</view>
|
||||||
<template v-if="userInfo.memberSign === 0">
|
<template v-if="userInfo.memberSign === 0">
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<text class="info-value">{{ userInfo.totalBox || '0' }}</text>
|
<text class="info-value">{{ totalBox || '0' }}</text>
|
||||||
<text class="info-label">总盒数</text>
|
<text class="info-label">总盒数</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
<view class="info-item">
|
||||||
<text class="info-value">
|
<text class="info-value">
|
||||||
{{ userInfo.smallAreaBox || '0' }}
|
{{ smallAreaBox || '0' }}
|
||||||
</text>
|
</text>
|
||||||
<text class="info-label">小区盒数</text>
|
<text class="info-label">小区盒数</text>
|
||||||
</view>
|
</view>
|
||||||
|
@ -344,7 +344,7 @@ import clTabbar from '@/components/cl-tabbar.vue'
|
||||||
import * as min from '@/config/balance.js'
|
import * as min from '@/config/balance.js'
|
||||||
import * as api from '@/config/login.js'
|
import * as api from '@/config/login.js'
|
||||||
import { MEMBER_SIGN } from '@/util/common.js'
|
import { MEMBER_SIGN } from '@/util/common.js'
|
||||||
import { getRegionSelect } from '@/config/mine.js'
|
import { getRegionSelect, getMemberBoxCount } from '@/config/mine.js'
|
||||||
// import talentList from "@/components/talentList.vue";
|
// import talentList from "@/components/talentList.vue";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -479,12 +479,15 @@ export default {
|
||||||
ifSpecial: false,
|
ifSpecial: false,
|
||||||
awardsList: '',
|
awardsList: '',
|
||||||
regionInfo: {},
|
regionInfo: {},
|
||||||
|
smallAreaBox: 0,
|
||||||
|
totalBox: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
this.orderNum()
|
this.orderNum()
|
||||||
this.getRegionSelect()
|
this.getRegionSelect()
|
||||||
|
this.getMemberBoxCount()
|
||||||
// this.getUserAwardss()
|
// this.getUserAwardss()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -772,6 +775,14 @@ export default {
|
||||||
url: '/pages/login/index',
|
url: '/pages/login/index',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getMemberBoxCount() {
|
||||||
|
getMemberBoxCount().then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.totalBox = res.data?.totalBox || 0
|
||||||
|
this.smallAreaBox = res.data?.smallAreaBox || 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
surePsw() {
|
surePsw() {
|
||||||
min
|
min
|
||||||
.checkPwd({
|
.checkPwd({
|
||||||
|
|
Loading…
Reference in New Issue