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

View File

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

View File

@ -72,34 +72,22 @@
</view> </view>
</view> </view>
</view> </view>
<!-- #ifdef MP -->
<!-- <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize> -->
<!-- #endif -->
<home></home> <home></home>
</view> </view>
</template> </template>
<script> <script>
import { import { getCommissionInfo, getRecordApi } from '@/api/user.js';
getCommissionInfo,
getRecordApi,
} from '@/api/user.js';
import { import {
toLogin toLogin
} from '@/libs/login.js'; } from '@/libs/login.js';
import { import {
mapGetters mapGetters
} from "vuex"; } from "vuex";
// #ifdef MP
import authorize from '@/components/Authorize';
// #endif
import emptyPage from '@/components/emptyPage.vue' import emptyPage from '@/components/emptyPage.vue'
import home from '@/components/home'; import home from '@/components/home';
export default { export default {
components: { components: {
// #ifdef MP
authorize,
// #endif
emptyPage, emptyPage,
home home
}, },
@ -177,13 +165,6 @@
}, },
methods: { methods: {
onLoadFun() {
this.getRecordList();
},
//
authColse: function(e) {
this.isShowAuth = e
},
getList: function() { getList: function() {
let that = this; let that = this;
let recordList = that.recordList; let recordList = that.recordList;
@ -206,7 +187,6 @@
let page = that.page; let page = that.page;
let limit = that.limit; let limit = that.limit;
let statuss = that.statuss; let statuss = that.statuss;
let recordType = that.recordType;
let recordList = that.recordList; let recordList = that.recordList;
let recordListNew = []; let recordListNew = [];
if (statuss == true) return; if (statuss == true) return;
@ -230,7 +210,6 @@
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.commission-details .promoterHeader .headerCon .money { .commission-details .promoterHeader .headerCon .money {
font-size: 36rpx; 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 url: url.indexOf('app-api') < 0 ? Url + '/api/front/' + url
// : 'http://yunai.natapp1.cc/' + url, // TODO 芋艿:搞个 url 的配置 // : 'http://yunai.natapp1.cc/' + url, // TODO 芋艿:搞个 url 的配置
: 'http://127.0.0.1:48080/' + url, // TODO 芋艿:搞个 url 的配置 : 'http://127.0.0.1:48080/' + url, // TODO 芋艿:搞个 url 的配置
// : 'http://api-dashboard.yudao.iocoder.cn/' + url, // TODO 芋艿:搞个 url 的配置
method: method || 'GET', method: method || 'GET',
header: header, header: header,
data: data || {}, data: data || {},