分佣:user_spread_user 迁移

pull/1/MERGE
YunaiV 2023-09-03 21:21:54 +08:00
parent 32e108ca2f
commit 9acaf3c27c
6 changed files with 32 additions and 73 deletions

6
api/member/brokerage.js Normal file
View File

@ -0,0 +1,6 @@
import request from "@/utils/request.js";
// 获得个人分销统计
export function getBrokerageUserSummary() {
return request.get('app-api/member/brokerage-user/get-summary');
}

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.isPromoter))">
|| (item.url === '/pages/users/user_spread_user/index' && !userInfo.brokerageEnabled))">
<image :src="item.picUrl"></image>
<text>{{ item.name }}</text>
</navigator>

View File

@ -316,7 +316,7 @@
getUserInfo(data) {
this.$store.commit("SETUID", data.userId);
// TODO
if (true) {
if (false) {
UserApi.getUserInfo().then(res => {
this.$store.commit("UPDATE_USERINFO", res.data);
//

View File

@ -72,34 +72,22 @@
</view>
</view>
</view>
<!-- #ifdef MP -->
<!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
<!-- #endif -->
<home></home>
</view>
</template>
<script>
import {
getCommissionInfo,
getRecordApi,
} from '@/api/user.js';
import { getCommissionInfo, getRecordApi } from '@/api/user.js';
import {
toLogin
} from '@/libs/login.js';
import {
mapGetters
} from "vuex";
// #ifdef MP
import authorize from '@/components/Authorize';
// #endif
import emptyPage from '@/components/emptyPage.vue'
import home from '@/components/home';
export default {
components: {
// #ifdef MP
authorize,
// #endif
emptyPage,
home
},
@ -177,13 +165,6 @@
},
methods: {
onLoadFun() {
this.getRecordList();
},
//
authColse: function(e) {
this.isShowAuth = e
},
getList: function() {
let that = this;
let recordList = that.recordList;
@ -206,7 +187,6 @@
let page = that.page;
let limit = that.limit;
let statuss = that.statuss;
let recordType = that.recordType;
let recordList = that.recordList;
let recordListNew = [];
if (statuss == true) return;
@ -230,7 +210,6 @@
}
}
</script>
<style scoped lang="scss">
.commission-details .promoterHeader .headerCon .money {
font-size: 36rpx;

File diff suppressed because one or more lines are too long

View File

@ -62,6 +62,7 @@ function baseRequest(url, method, data, {
url: url.indexOf('app-api') < 0 ? Url + '/api/front/' + url
// : 'http://yunai.natapp1.cc/' + url, // TODO 芋艿:搞个 url 的配置
: 'http://127.0.0.1:48080/' + url, // TODO 芋艿:搞个 url 的配置
// : 'http://api-dashboard.yudao.iocoder.cn/' + url, // TODO 芋艿:搞个 url 的配置
method: method || 'GET',
header: header,
data: data || {},