分佣:调整分销状态的读取
parent
50fcef07ee
commit
81c8285016
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue