抖火综法
This commit is contained in:
@@ -162,22 +162,22 @@
|
||||
<view class="tool-flex">
|
||||
<view class="tool-flex-item" @click="onNav('SynthesizeOrder', { type: 'service' })">
|
||||
<image class="icon" src="@/static/synthesize/icon_00.png"></image>
|
||||
<view class="number" v-if="orderCount.transfer_out > 0">{{orderCount.transfer_out}}</view>
|
||||
<view class="number" v-if="synthesisData.service.all > 0">{{synthesisData.service.all}}</view>
|
||||
<view class="text">年费订单</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('SynthesizeOrder', { type: 'synthesis' })">
|
||||
<image class="icon" src="@/static/synthesize/icon_01.png"></image>
|
||||
<view class="number" v-if="orderCount.transfer_in > 0">{{orderCount.transfer_in}}</view>
|
||||
<view class="number" v-if="synthesisData.synthesis.all > 0">{{synthesisData.synthesis.all}}</view>
|
||||
<view class="text">咨询订单</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('SynthesizeOrder', { type: 'entrust' })">
|
||||
<image class="icon" src="@/static/synthesize/icon_02.png"></image>
|
||||
<view class="number" v-if="orderCount.transfer_out > 0">{{orderCount.transfer_out}}</view>
|
||||
<view class="number" v-if="synthesisData.entrust.all > 0">{{synthesisData.entrust.all}}</view>
|
||||
<view class="text">委托订单</view>
|
||||
</view>
|
||||
<view class="tool-flex-item" @click="onNav('SynthesizeOrder', { type: 'expand' })">
|
||||
<image class="icon" src="@/static/synthesize/icon_03.png"></image>
|
||||
<view class="number" v-if="orderCount.transfer_in > 0">{{orderCount.transfer_in}}</view>
|
||||
<view class="number" v-if="synthesisData.expand.all > 0">{{synthesisData.expand.all}}</view>
|
||||
<view class="text">拓展订单</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -233,7 +233,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { index, rights, sign } from '@/apis/interfaces/work.js'
|
||||
import { index, rights, sign, synthesisCount } from '@/apis/interfaces/work.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -256,7 +256,9 @@
|
||||
sign : {
|
||||
isSign : false,
|
||||
address : ""
|
||||
}
|
||||
},
|
||||
// 综法订单管理
|
||||
synthesisData : {}
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
@@ -313,9 +315,10 @@
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
Promise.all([rights(), index()]).then(res => {
|
||||
let rightsData = res[0],
|
||||
indexData = res[1]
|
||||
Promise.all([rights(), index(), synthesisCount()]).then(res => {
|
||||
let rightsData = res[0],
|
||||
indexData = res[1],
|
||||
synthesisData = res[2]
|
||||
|
||||
let { nickname, avatar, business_orders_count, isCertification, certification, isManager, isAnswer, identity, sign } = indexData
|
||||
this.rightsArr = rightsData
|
||||
@@ -331,6 +334,8 @@
|
||||
this.identity = identity
|
||||
this.sign = sign
|
||||
|
||||
this.synthesisData = synthesisData
|
||||
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user