|
@@ -8,7 +8,7 @@
|
|
:loadingType="5"
|
|
:loadingType="5"
|
|
></tui-skeleton>
|
|
></tui-skeleton>
|
|
<template v-else>
|
|
<template v-else>
|
|
-<!-- <view class="charts-navbar" id="topBar">
|
|
|
|
|
|
+ <!-- <view class="charts-navbar" id="topBar">
|
|
<view
|
|
<view
|
|
class="nav-item tui-skeleton-fillet"
|
|
class="nav-item tui-skeleton-fillet"
|
|
v-for="(nav, index) in navBarList"
|
|
v-for="(nav, index) in navBarList"
|
|
@@ -26,15 +26,31 @@
|
|
</view>
|
|
</view>
|
|
<!-- 订单 -->
|
|
<!-- 订单 -->
|
|
<view class="charts-box charts-box1" id="charts-box1">
|
|
<view class="charts-box charts-box1" id="charts-box1">
|
|
- <echartOrder ref="echartOrder" :clubId="clubInfo.clubId" v-if="isRequest" />
|
|
|
|
|
|
+ <echartOrder
|
|
|
|
+ ref="echartOrder"
|
|
|
|
+ :clubId="clubInfo.clubId"
|
|
|
|
+ :totalAmount="totalData.orderTotalAmount"
|
|
|
|
+ :totalNum="totalData.orderTotal"
|
|
|
|
+ v-if="isRequest"
|
|
|
|
+ />
|
|
</view>
|
|
</view>
|
|
<!-- 关键词 -->
|
|
<!-- 关键词 -->
|
|
<view class="charts-box charts-box2" id="charts-box2">
|
|
<view class="charts-box charts-box2" id="charts-box2">
|
|
- <echartKeyword ref="echartKeyword" :clubId="clubInfo.clubId" v-if="isRequest" />
|
|
|
|
|
|
+ <echartKeyword
|
|
|
|
+ ref="echartKeyword"
|
|
|
|
+ :clubId="clubInfo.clubId"
|
|
|
|
+ :totalNum="totalData.totalKeywords"
|
|
|
|
+ v-if="isRequest"
|
|
|
|
+ />
|
|
</view>
|
|
</view>
|
|
<!-- 咨询记录 -->
|
|
<!-- 咨询记录 -->
|
|
<view class="charts-box charts-box3" id="charts-box3">
|
|
<view class="charts-box charts-box3" id="charts-box3">
|
|
- <echartContact ref="echartContact" :clubId="clubInfo.clubId" v-if="isRequest" />
|
|
|
|
|
|
+ <echartContact
|
|
|
|
+ ref="echartContact"
|
|
|
|
+ :clubId="clubInfo.clubId"
|
|
|
|
+ :totalNum="totalData.remarksTotal"
|
|
|
|
+ v-if="isRequest"
|
|
|
|
+ />
|
|
</view>
|
|
</view>
|
|
<!-- 访问记录 -->
|
|
<!-- 访问记录 -->
|
|
<view class="charts-box charts-box4" id="charts-box4">
|
|
<view class="charts-box charts-box4" id="charts-box4">
|
|
@@ -78,7 +94,13 @@ export default {
|
|
],
|
|
],
|
|
tabCurrentIndex: 0,
|
|
tabCurrentIndex: 0,
|
|
anchorList: [], // 锚点元素节点信息
|
|
anchorList: [], // 锚点元素节点信息
|
|
- anchorStatus: [0, 0, 0, 0, 0] // 分别代表5个锚点区域的开关 0:关 1:开
|
|
|
|
|
|
+ anchorStatus: [0, 0, 0, 0, 0], // 分别代表5个锚点区域的开关 0:关 1:开
|
|
|
|
+ totalData: {
|
|
|
|
+ orderTotalAmount: 0, // 订单总金额
|
|
|
|
+ orderTotal: 0, // 订单总量
|
|
|
|
+ remarksTotal: 0, // 所有咨询记录条数
|
|
|
|
+ totalKeywords: 0 // 所有关键词条数
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
@@ -91,19 +113,23 @@ export default {
|
|
}, 2000)
|
|
}, 2000)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- getClubInfo(userId) {
|
|
|
|
|
|
+ async getClubInfo(userId) {
|
|
//获取机构信息
|
|
//获取机构信息
|
|
- this.UserService.OrganizationUpdateModifyInfo({ userId: userId })
|
|
|
|
- .then(response => {
|
|
|
|
- this.clubInfo = response.data.club
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.skeletonShow = false
|
|
|
|
- this.isRequest = true
|
|
|
|
- }, 1000)
|
|
|
|
- })
|
|
|
|
- .catch(error => {
|
|
|
|
- console.log(error)
|
|
|
|
- })
|
|
|
|
|
|
+ try {
|
|
|
|
+ const clubRes = await this.UserService.OrganizationUpdateModifyInfo({ userId: userId })
|
|
|
|
+ this.clubInfo = clubRes.data.club
|
|
|
|
+ const tialRes = await this.UserService.userClubInitial({ clubId: this.clubInfo.clubId })
|
|
|
|
+ this.totalData.orderTotal = tialRes.data.orderTotal
|
|
|
|
+ this.totalData.orderTotalAmount = tialRes.data.orderTotalAmount
|
|
|
|
+ this.totalData.remarksTotal = tialRes.data.remarksTotal
|
|
|
|
+ this.totalData.totalKeywords = tialRes.data.totalKeywords
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.skeletonShow = false
|
|
|
|
+ this.isRequest = true
|
|
|
|
+ }, 1000)
|
|
|
|
+ } catch (error) {
|
|
|
|
+ console.log(error)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
tabChange(index) {
|
|
tabChange(index) {
|
|
this.tabCurrentIndex = index
|
|
this.tabCurrentIndex = index
|
|
@@ -182,7 +208,6 @@ page {
|
|
height: auto;
|
|
height: auto;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 24rpx;
|
|
padding: 24rpx;
|
|
- // padding-top: 122rpx;
|
|
|
|
}
|
|
}
|
|
.charts-navbar {
|
|
.charts-navbar {
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -195,7 +220,6 @@ page {
|
|
top: 0;
|
|
top: 0;
|
|
left: 0;
|
|
left: 0;
|
|
z-index: 9999999;
|
|
z-index: 9999999;
|
|
- display: none;
|
|
|
|
.nav-item {
|
|
.nav-item {
|
|
display: flex;
|
|
display: flex;
|
|
flex: 1;
|
|
flex: 1;
|
|
@@ -360,7 +384,7 @@ page {
|
|
.input-text {
|
|
.input-text {
|
|
display: block;
|
|
display: block;
|
|
height: 56rpx;
|
|
height: 56rpx;
|
|
- font-size: 26rpx;
|
|
|
|
|
|
+ font-size: 24rpx;
|
|
color: #666666;
|
|
color: #666666;
|
|
}
|
|
}
|
|
.icon-riqi {
|
|
.icon-riqi {
|