新增账户管理和委托管理模块
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<image class="free-img" src="@/static/index/index_banner_free.png" mode="widthFix" />
|
||||
</view>
|
||||
<!-- 协商调解类 -->
|
||||
<view class="block">
|
||||
<view class="block" v-if="false">
|
||||
<view class="block-title">
|
||||
<view class="title">协商调解咨询类</view>
|
||||
</view>
|
||||
@@ -66,6 +66,50 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 账户管理咨询类 -->
|
||||
<view class="block" v-if="accountData.length > 0">
|
||||
<view class="block-title">
|
||||
<view class="title">账户管理咨询类</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
style="padding-top: 0;"
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
>
|
||||
<block v-for="(item, index) in accountData" :key="index">
|
||||
<view class="the-flex-item"
|
||||
@click="onMagInfo('Account', item.id)"
|
||||
>
|
||||
<view class="cover" :style="'background-image: url(' + item.cover + ');'"></view>
|
||||
<view class="title nowrap">{{item.title}}</view>
|
||||
<view class="price nowrap"><text>¥</text>{{item.price}} <text v-if="item.limit != null">/{{item.limit}}</text></view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 委托管理类 -->
|
||||
<view class="block" v-if="delegation.length > 0">
|
||||
<view class="block-title">
|
||||
<view class="title">委托管理类</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
class="the-flex"
|
||||
style="padding-top: 0;"
|
||||
scroll-x="true"
|
||||
scroll-with-animation="true"
|
||||
>
|
||||
<block v-for="(item, index) in delegation" :key="index">
|
||||
<view class="the-flex-item"
|
||||
@click="onMagInfo('Delegation', item.id)"
|
||||
>
|
||||
<view class="cover" :style="'background-image: url(' + item.cover + ');'"></view>
|
||||
<view class="title nowrap">{{item.title}}</view>
|
||||
<view class="price nowrap"><text>¥</text>{{item.price}} <text v-if="item.limit != null">/{{item.limit}}</text></view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<!-- 法律咨询类 -->
|
||||
<view class="block">
|
||||
<view class="block-title">
|
||||
@@ -157,7 +201,7 @@
|
||||
|
||||
<script>
|
||||
import { region } from '@/apis/interfaces/address.js'
|
||||
import { categories, jf, index } from '@/apis/interfaces/index.js'
|
||||
import { categories, jf, index, accountManagement, delegation } from '@/apis/interfaces/index.js'
|
||||
import { lists } from '@/apis/interfaces/empower.js'
|
||||
export default {
|
||||
data() {
|
||||
@@ -185,7 +229,11 @@
|
||||
service : []
|
||||
},
|
||||
// 增收赋能列表
|
||||
empowerArr : []
|
||||
empowerArr : [],
|
||||
// 账户管理类
|
||||
accountData : [],
|
||||
// 委托管理类
|
||||
delegation : []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
@@ -194,8 +242,26 @@
|
||||
this.getIndex()
|
||||
// 增收赋能
|
||||
this.getEmpower()
|
||||
// 管理类业务
|
||||
this.getManagement()
|
||||
},
|
||||
methods: {
|
||||
// 获取管理类业务
|
||||
getManagement(){
|
||||
Promise.all([accountManagement(), delegation()]).then(res => {
|
||||
let accountData = res[0]
|
||||
let delegationData = res[1]
|
||||
this.accountData = accountData
|
||||
this.delegation = delegationData
|
||||
})
|
||||
},
|
||||
// 查看管理类业务
|
||||
onMagInfo(type, id){
|
||||
this.$Router.push({
|
||||
name : 'Mag' + type,
|
||||
params : { id }
|
||||
})
|
||||
},
|
||||
// 查看增收赋能详情
|
||||
onEmpower(id){
|
||||
this.$Router.push({
|
||||
|
||||
Reference in New Issue
Block a user