对比dev修改代码

This commit is contained in:
mengxiaolong
2020-10-29 13:21:40 +08:00
parent 6d77abd189
commit a2b78d6866
2 changed files with 4 additions and 15 deletions

View File

@@ -7,7 +7,7 @@
</van-tabs> </van-tabs>
<div class="basicInfo" v-show="active === 0"> <div class="basicInfo" v-show="active === 0">
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">基本信息</p> <p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">基本信息</p>
<div class="pb80"> <div class="pb50">
<van-cell-group> <van-cell-group>
<van-cell title="姓名" :value="basicInfoDTO.name" /> <van-cell title="姓名" :value="basicInfoDTO.name" />
<van-cell title="性别" :value="basicInfoDTO.sex == 0 ? '男' : '女'" /> <van-cell title="性别" :value="basicInfoDTO.sex == 0 ? '男' : '女'" />

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="record-list-container pb50"> <div class="record-list-container pb20 bg-white">
<van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText" @load="loadMore"> <van-list v-model="loading" :immediate-check="false" :finished="finished" :finished-text="finishedText" @load="loadMore">
<div v-if="isSuccess"> <div v-if="isSuccess">
<div v-if="approveList.length > 0"> <div v-if="approveList.length > 0">
@@ -49,7 +49,6 @@
<script> <script>
import { List, Tag, Sticky, Dialog } from 'vant' import { List, Tag, Sticky, Dialog } from 'vant'
import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js' import { agentAddApproval } from '@/api/ebiz/agentEenter/agentEenter.js'
import { getAgentInfo } from '@/api/ebiz/my/my.js'
export default { export default {
name: 'approveList', name: 'approveList',
@@ -72,16 +71,7 @@ export default {
} }
}, },
async mounted() { async mounted() {
document.getElementsByTagName('body')[0].classList.add('bg-white') this.loadMore()
const res = await getAgentInfo({})
if (res.result == 0) {
this.branchType = /^N{1}/.test(res.branchType) ? '1' : '0' //res.branchType 以N打头的是内勤 其他是外勤
if (this.branchType == '0') {
this.loadMore()
}
} else {
return this.$toast(res.resultMessage)
}
}, },
destroyed() { destroyed() {
document.getElementsByTagName('body')[0].classList.remove('bg-white') document.getElementsByTagName('body')[0].classList.remove('bg-white')
@@ -90,7 +80,6 @@ export default {
loadMore() { loadMore() {
let pageInfo = { let pageInfo = {
pageNum: this.currentPage pageNum: this.currentPage
// pageSize: this.pageSize
} }
this.getOrderList(pageInfo) this.getOrderList(pageInfo)
}, },
@@ -140,7 +129,7 @@ export default {
.record-list { .record-list {
border-bottom: 1px solid #ebedf0; border-bottom: 1px solid #ebedf0;
border-top: 1px solid #ebedf0; border-top: 1px solid #ebedf0;
margin: 15px 0; margin-bottom: 15px;
.justify-content-fe { .justify-content-fe {
border-top: 1px solid #ebedf0; border-top: 1px solid #ebedf0;
} }