分佣:调整分销状态的读取

pull/1/MERGE
YunaiV 2023-09-09 19:35:08 +08:00
parent 50fcef07ee
commit 81c8285016
1 changed files with 10 additions and 3 deletions

View File

@ -95,7 +95,7 @@
<block v-for="(item,index) in menus" :key="index">
<navigator class="item" :url="item.url" hover-class="none"
v-if="!(item.url ==='/pages/service/index'
|| (item.url === '/pages/users/user_spread_user/index' && !userInfo.brokerageEnabled))">
|| (item.url === '/pages/users/user_spread_user/index' && brokerageUser && brokerageUser.enabled))">
<image :src="item.picUrl"></image>
<text>{{ item.name }}</text>
</navigator>
@ -123,6 +123,8 @@
</view>
</template>
<script>
import {getBrokerageUser} from "../../api/trade/brokerage";
let sysHeight = uni.getSystemInfoSync().statusBarHeight + 'px';
import Cache from '@/utils/cache';
import { BACK_URL } from '@/config/cache';
@ -133,10 +135,9 @@
import * as DecorateApi from '@/api/promotion/decorate.js';
import * as ProductFavoriteApi from '@/api/product/favorite.js';
import * as CouponApi from '@/api/promotion/coupon.js';
import * as BrokerageAPI from '@/api/trade/brokerage.js'
const app = getApp();
export default {
components: {
},
computed: mapGetters(['isLogin', 'chatUrl', 'userInfo']),
data() {
return {
@ -172,6 +173,8 @@
},
],
brokerageUser: {}, //
slideShows: [], //
circular: true,
interval: 3000,
@ -237,6 +240,10 @@
CouponApi.getUnusedCouponCount().then(res => {
this.couponCount = res.data;
})
//
BrokerageAPI.getBrokerageUser().then(res => {
this.brokerageUser = res.data;
})
},
getOrderData() {
TradeOrderApi.getOrderCount().then(res => {