+
+
{{ item.name }}
+
{{ item.created_at }}
-
-
-
-
![]()
-
-
-
{{ goodsItem.title }}
-
× {{ goodsItem.total }}
+
+
+ {{ item.commission_money }}
+
+
+
+
+
+
+
+
{{ item.team_level_name }}
+
{{ item.created_at }}
+
+
+
+
+
+
+
+
+
{{ item.type_name }}
+
{{ item.created_at }}
+
+
+
+ {{ item.dividend_amount }}
+
+
+
+
+
+
+
+
{{ item.remark }}
+
{{ item.created_at }}
+
+
+
+ {{ item.change_quantity }}
+
- {{ item.change_quantity }}
+
+
+
+
+
+
+
+
+
{{ item.order_sn }}
+
{{ item.status_name }}
+
+
+
+
+
![]()
+
+
+
{{ goodsItem.title }}
+
× {{ goodsItem.total }}
+
-
-
-
+
+
+
+
+
+
+
+
+
{{ item.order_sn }}
+
{{ item.created_at }}
+
+
+
+
+
+
+
+
+
{{ item.start_time }} ~ {{ item.end_time }}
+
{{ item.created_at }}
+
+
+
+
+
+
+
+
+
{{ item.remark }}
+
{{ item.created_at }}
+
+
+
+ {{ item.change_quantity }}
+
- {{ item.change_quantity }}
+
+
+
+
+
+
+
+
{{ item.order_sn }}
+
{{ item.created_at }}
+
+
+
+
+
+
+
+
+
+
{{ item.created_at }}
+
+
+
+
+
+
+
+
+
{{ item.good_name }}
+
{{ item.created_at }}
+
+
+
- {{ item.voucher_number }}
+
+ {{ item.voucher_number }}
+
+
+
@@ -109,15 +189,31 @@ export default {
setPageTitle(){
let titleKey = this.page_params.key_name || '';
let title = '变更明细';
- console.log(titleKey);
- switch (titleKey) {
- case 'direct_push_give':title = '直推奖励明细';break;
- case 'weight_income':title = '权重收益明细';break;
- case 'team_income':title = '团队收益明细';break;
- case 'recommend_agent':title = '推荐代理明细';break;
- case 'peer_level_reward':title = '平级奖励明细';break;
- case 'weight_value':title = '权重值明细';break;
- case 'order_money':case 'order_num':title = '订单明细';break;
+ if(this.page_params.content_type === "cultural_space"){
+ // 文创空间相关明细
+ switch (titleKey) {
+ case 'service_income':title = '服务收益明细';break;
+ case 'contribution_income':title = '贡献收益明细';break;
+ case 'contribution_bonus':title = '贡献值分红明细';break;
+ case 'legumes':title = '文创豆明细';break;
+ case 'legumes_income':title = '文创豆收益明细';break;
+ case 'contribution_value':title = '贡献值明细';break;
+ case 'area_performance':title = '小区业绩明细';break;
+ case 'team_performance':title = '团队总业绩明细';break;
+ case 'weight_income':title = '加权收益明细';break;
+ case 'shareholding_income':title = '股权收益明细';break;
+ }
+ }else{
+ // 代理中心相关明细
+ switch (titleKey) {
+ case 'direct_push_give':title = '直推奖励明细';break;
+ case 'weight_income':title = '权重收益明细';break;
+ case 'team_income':title = '团队收益明细';break;
+ case 'recommend_agent':title = '推荐代理明细';break;
+ case 'peer_level_reward':title = '平级奖励明细';break;
+ case 'weight_value':title = '权重值明细';break;
+ case 'order_money':case 'order_num':title = '订单明细';break;
+ }
}
document.title = this.page_title = title;
@@ -128,9 +224,12 @@ export default {
let params = {
team_level_id: _this.page_params.team_level_id,
key_name: _this.page_params.key_name,
+ content_type: _this.page_params.content_type,
page: _this.page
};
- $http.post("plugin.weight-value.api.index.get-details", params, "加载中...")
+ let link = "plugin.weight-value.api.index.get-details";
+ if(_this.page_params.content_type === 'cultural_space') link = 'plugin.cultural-space.api.index.get-details';
+ $http.post(link, params, "加载中...")
.then(response => {
if (response.result === 1) {
_this.isLoadMore = true;
@@ -163,7 +262,6 @@ export default {
}
},
-
}
};
diff --git a/src/views/member/weight_value/home.vue b/src/views/member/weight_value/home.vue
index 5280893..71bcf5d 100644
--- a/src/views/member/weight_value/home.vue
+++ b/src/views/member/weight_value/home.vue
@@ -84,13 +84,19 @@ export default {
total_income: 0,
team_total: 0,
// 常用工具列表
- tool_list:[
+ cultural_space_tool_list: [
+ { title: '我的客户', sub_title: '团队客户明细', icon: '003.png', path_name: 'myRelationship' },
+ { title: '分享二维码', sub_title: '生成分享码', icon: '004.png', path_name: 'qrcode' },
+ { title: '团队业绩', sub_title: '团队累计业绩', icon: '005.png', path_name: 'incomedetails' },
+ ],
+ broker_tool_list:[
{ title: '我的权重值', sub_title: '查看权重值', icon: '001.png', path_name: 'weight_value' },
{ title: '我的典藏', sub_title: '我的画作', icon: '002.png', path_name: 'collection_room' },
{ title: '我的客户', sub_title: '团队客户明细', icon: '003.png', path_name: 'myRelationship' },
{ title: '分享二维码', sub_title: '生成分享码', icon: '004.png', path_name: 'qrcode' },
{ title: '团队业绩', sub_title: '团队累计业绩', icon: '005.png', path_name: 'incomedetails' },
],
+ tool_list: [],
// 海报
posterShow: false,
poster: "",
@@ -98,22 +104,42 @@ export default {
poster_data: null,
background: {}
},
-
+ // 请求link
+ request_link: '',
};
},
activated() {
let _this = this;
_this.page_params = Object.assign(_this.$route.params, _this.$route.query);
- _this.getData();
+ if(!_this.page_params.content_type || _this.page_params.content_type == undefined){
+ _this.$dialog.alert({message:`非法请求,不明确的查看类型?`}).then(()=>{
+ _this.$router.push(_this.fun.getUrl('member'));
+ });
+ }else{
+ // 获取使用的工具列表
+ if(_this.page_params.content_type == 'cultural_space') {
+ // 文创空间管理中心
+ _this.tool_list = _this.cultural_space_tool_list;
+ _this.request_link = "plugin.cultural-space.api.index.get-center-data";
+ }
+ else {
+ // 经纪人中心
+ _this.request_link = "plugin.weight-value.api.index.get-center-data";
+ _this.tool_list = _this.broker_tool_list;
+ }
+ // 请求统计信息
+ _this.getData();
+ }
},
methods: {
// 数据获取
getData() {
let _this = this;
let params = {
- team_level_id: _this.page_params.team_level_id
+ team_level_id: _this.page_params.team_level_id,
+ content_type: _this.page_params.content_type
};
- $http.get("plugin.weight-value.api.index.get-center-data", params, "加载中...").then((res) => {
+ $http.get(_this.request_link, params, "加载中...").then((res) => {
if (parseInt(res.result) === 1) {
let data = res.data;
let title = data.level_name || '经纪人';
@@ -135,12 +161,20 @@ export default {
// 统计明细跳转处理
detailsGoToPage(info){
let _this = this;
+ // 跳转到指定页面
if(info.key_name === 'give_limit'){
this.goToPage('use_upgrade_quota',{},{ team_level_id: _this.page_params.team_level_id });
- }else{
+ }
+ else if(info.key_name === 'legumes_income'){
+
+
+
+ }
+ else{
let query = {
key_name: info.key_name || '',
- team_level_id: _this.page_params.team_level_id
+ team_level_id: _this.page_params.team_level_id,
+ content_type: _this.page_params.content_type
};
this.goToPage('weight_value_detailed',{},query);
}