From d2ae467f3c5dc31ecd6183b554735afc33ad90db Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Mon, 22 Apr 2024 17:39:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20-=20=E6=94=AF=E6=8C=81=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E7=9B=B4=E6=8E=A8=E5=AE=A2=E6=88=B7=E8=AE=A2=E5=8D=95&?= =?UTF-8?q?=E5=9B=A2=E9=98=9F=E5=AE=A2=E6=88=B7=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yunshop-front-master/src/router/index.js | 10 + .../member/tool/my_relationship_order.vue | 196 ++++++++++++++++++ .../views/member/tool/my_relationship_v2.vue | 8 +- .../tool/my_relationship_v2_controller.js | 14 +- 4 files changed, 218 insertions(+), 10 deletions(-) create mode 100644 yunshop-front-master/src/views/member/tool/my_relationship_order.vue diff --git a/yunshop-front-master/src/router/index.js b/yunshop-front-master/src/router/index.js index 9e20c6b..635832e 100644 --- a/yunshop-front-master/src/router/index.js +++ b/yunshop-front-master/src/router/index.js @@ -408,6 +408,7 @@ const MyRelationship = r => require(["../views/member/tool/my_relationship_v2"], const MyRelationshipAmount = r => require(["../views/member/tool/my_relationship_amount"], r); const MyRelationshipDetail = r => require(["../views/member/tool/my_relationship_detail"], r); const MyRelationshipDetailV2 = r => require(["../views/member/tool/my_relationship_detail_v2"], r); +const MyRelationshipOrder = r => require(["../views/member/tool/my_relationship_order"], r); const OfflineSearch = r => require(["../views/member/tool/search"], r); const MyEvaluation = r => require(["../views/comment/myEvaluation"], r); const Comment = r => require(["../views/member/tool/comment"], r); @@ -2595,6 +2596,15 @@ const routes = [ foot: true } }, + { + path: "/member/myrelationship_v2/order", + component: MyRelationshipOrder, + name: "MyRelationshipOrder", + meta: { + title: "会员概况", + foot: true + } + }, { path: "/member/offlineSearch", component: OfflineSearch, diff --git a/yunshop-front-master/src/views/member/tool/my_relationship_order.vue b/yunshop-front-master/src/views/member/tool/my_relationship_order.vue new file mode 100644 index 0000000..b5cb3cd --- /dev/null +++ b/yunshop-front-master/src/views/member/tool/my_relationship_order.vue @@ -0,0 +1,196 @@ + + + + + diff --git a/yunshop-front-master/src/views/member/tool/my_relationship_v2.vue b/yunshop-front-master/src/views/member/tool/my_relationship_v2.vue index 3460478..efb4a3c 100644 --- a/yunshop-front-master/src/views/member/tool/my_relationship_v2.vue +++ b/yunshop-front-master/src/views/member/tool/my_relationship_v2.vue @@ -94,11 +94,11 @@

{{agent.agent_count?agent.agent_count:"总客户数"}}(人)

{{ myReferral.team_total }}

-
+

{{agent.agent_order?agent.agent_order:"客户订单"}}({{ $i18n.t("元") }})

{{ myReferral.child_order_money }}

-
+

{{agent.agent_order_count?agent.agent_order_count:"客户总订单"}}({{ $i18n.t("元") }})

{{ myReferral.team_order_money }}

@@ -115,10 +115,10 @@
+ - @@ -212,7 +212,7 @@
-
+
diff --git a/yunshop-front-master/src/views/member/tool/my_relationship_v2_controller.js b/yunshop-front-master/src/views/member/tool/my_relationship_v2_controller.js index f3f1c80..ca2e5a0 100644 --- a/yunshop-front-master/src/views/member/tool/my_relationship_v2_controller.js +++ b/yunshop-front-master/src/views/member/tool/my_relationship_v2_controller.js @@ -246,6 +246,14 @@ export default { that.level2 = data.level2; that.level3 = data.level3; + + if (!that.fun.isTextEmpty(that.level0) && that.level0.is_show) { + that.activeName = "all"; + currentTabIndex = "-1"; + that.setDataByTabIndex();//获取数据 + return; + } + if (!that.fun.isTextEmpty(that.level1) && that.level1.is_show) { that.activeName = "first"; currentTabIndex = "0"; @@ -267,12 +275,6 @@ export default { return; } - if (!that.fun.isTextEmpty(that.level0) && that.level0.is_show) { - that.activeName = "all"; - currentTabIndex = "-1"; - that.setDataByTabIndex();//获取数据 - return; - } }, openPop() {