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

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