分佣:user_spread_user 迁移
parent
32e108ca2f
commit
9acaf3c27c
|
@ -0,0 +1,6 @@
|
|||
import request from "@/utils/request.js";
|
||||
|
||||
// 获得个人分销统计
|
||||
export function getBrokerageUserSummary() {
|
||||
return request.get('app-api/member/brokerage-user/get-summary');
|
||||
}
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
// 调回登录前页面
|
||||
|
|
|
@ -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
|
@ -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 || {},
|
||||
|
|
Loading…
Reference in New Issue