mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 02:46:45 +08:00
GBC页面样式调整功能联调
This commit is contained in:
@@ -30,8 +30,8 @@ export function gbcProjectConfirm(data) {
|
|||||||
// GBC获取首页轮播图和上头条内容
|
// GBC获取首页轮播图和上头条内容
|
||||||
export function homeConfigGBC(data) {
|
export function homeConfigGBC(data) {
|
||||||
return request({
|
return request({
|
||||||
url: getUrl('/customer/agent/homeConfigGBC', 1),
|
url: getUrl('/customer/agent/homeConfigGBC', 1,3),
|
||||||
method: 'post',
|
method: 'get',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,29 +1,34 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="own_content">
|
<div>
|
||||||
<ul class="index-bar">
|
<div class="own_content">
|
||||||
<li @click="changePage(item.pageNo)" v-for="(item, index) in pageTitle" :key="index" :class="item.tabClass" :id="item.tabClass" v-if="item.show">
|
<ul class="index-bar">
|
||||||
<!-- 选中 -->
|
<li @click="changePage(item.pageNo)" v-for="(item, index) in pageTitle" :key="index" :class="item.tabClass" :id="item.tabClass" v-if="item.show">
|
||||||
<div v-if="item.tabClass" class="flex justify-content-fs align-items-c">
|
<!-- 选中 -->
|
||||||
<div class="flex flex-direction-colunm align-items-c">
|
<div v-if="item.tabClass" class="flex justify-content-fs align-items-c">
|
||||||
<van-image :src="item.imgCheckedUrl" class="image_head" />
|
<div class="flex flex-direction-colunm align-items-c">
|
||||||
<span class="fs12 mt12">{{ item.pageItem }}</span>
|
<van-image :src="item.imgCheckedUrl" class="image_head" />
|
||||||
|
<span class="fs12 mt12">{{ item.pageItem }}</span>
|
||||||
|
</div>
|
||||||
|
<van-image :src="doneUrl" v-if="index !== 10" class="image_done" />
|
||||||
</div>
|
</div>
|
||||||
<van-image :src="doneUrl" v-if="index !== 10" class="image_done" />
|
<div v-if="!item.tabClass" class="flex justify-content-fs align-items-c">
|
||||||
</div>
|
<div class="flex flex-direction-colunm align-items-c">
|
||||||
<div v-if="!item.tabClass" class="flex justify-content-fs align-items-c">
|
<van-image :src="item.imgNoCheckedUrl" class="image_head" />
|
||||||
<div class="flex flex-direction-colunm align-items-c">
|
<span class="fs12 mt12" style="color: #999999">{{ item.pageItem }}</span>
|
||||||
<van-image :src="item.imgNoCheckedUrl" class="image_head" />
|
</div>
|
||||||
<span class="fs12 mt12" style="color: #999999">{{ item.pageItem }}</span>
|
<van-image :src="doneNurl" v-if="index !== 10" class="image_done" />
|
||||||
</div>
|
</div>
|
||||||
<van-image :src="doneNurl" v-if="index !== 10" class="image_done" />
|
</li>
|
||||||
</div>
|
</ul>
|
||||||
</li>
|
</div>
|
||||||
</ul>
|
<p v-if="isFrom == 'GBCsale'" style="margin-top: 10px;color: red;background-color: #ffdddc;padding: 5px 10px;">提示:您目前正在投保的项目为【{{projectName}}】</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { Icon, Image } from 'vant'
|
import { Icon, Image } from 'vant'
|
||||||
import { getOrderDetail1 } from '@/api/ebiz/sale/sale'
|
import { getOrderDetail1 } from '@/api/ebiz/sale/sale'
|
||||||
|
import { gbcProjectDetail } from '@/api/GBC/GBC'
|
||||||
export default {
|
export default {
|
||||||
name: 'IndexBar',
|
name: 'IndexBar',
|
||||||
props: {
|
props: {
|
||||||
@@ -51,6 +56,8 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isFrom:'',
|
||||||
|
projectName:'',
|
||||||
thisShow: false,
|
thisShow: false,
|
||||||
doneUrl: this.$assetsUrl + 'images/kmh/done.png',
|
doneUrl: this.$assetsUrl + 'images/kmh/done.png',
|
||||||
doneNurl: this.$assetsUrl + 'images/kmh/done_n.png',
|
doneNurl: this.$assetsUrl + 'images/kmh/done_n.png',
|
||||||
@@ -159,7 +166,7 @@ export default {
|
|||||||
salePageFlag: Number(localStorage.salePageFlag)
|
salePageFlag: Number(localStorage.salePageFlag)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
let that = this
|
let that = this
|
||||||
let data = {
|
let data = {
|
||||||
orderNo: that.$route.query.orderNo
|
orderNo: that.$route.query.orderNo
|
||||||
@@ -190,8 +197,24 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.selectTab()
|
this.selectTab()
|
||||||
|
if(window.sessionStorage.getItem('isFrom') == 'GBCsale') {
|
||||||
|
this.isFrom = 'GBCsale'
|
||||||
|
that.gbcProjectDetail()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
gbcProjectDetail(){
|
||||||
|
let params = {
|
||||||
|
|
||||||
|
}
|
||||||
|
gbcProjectDetail(params).then(res=>{
|
||||||
|
if(res.result == '0') {
|
||||||
|
this.projectName = res.content.projectName
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
changePage(pageIndex) {
|
changePage(pageIndex) {
|
||||||
let url = ''
|
let url = ''
|
||||||
//由 localStorage.salePageFlag 来控制是否可跳到指定页面
|
//由 localStorage.salePageFlag 来控制是否可跳到指定页面
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
// this.homeConfigGBC()
|
this.homeConfigGBC()
|
||||||
this.setMarginTop()
|
this.setMarginTop()
|
||||||
this.gbcProjectList()
|
this.gbcProjectList()
|
||||||
},
|
},
|
||||||
@@ -174,6 +174,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
goDetail(data){
|
goDetail(data){
|
||||||
|
if(data.route == '/sale/list') {
|
||||||
|
window.sessionStorage.setItem('isFrom','GBCsale')
|
||||||
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<!-- 基本信息 -->
|
<!-- 基本信息 -->
|
||||||
<index-bar :key="renovate"></index-bar>
|
<index-bar :key="renovate"></index-bar>
|
||||||
<!-- 项目信息 -->
|
<!-- 项目信息 -->
|
||||||
<van-cell-group :border="false" v-if="branchType == '13'">
|
<van-cell-group :border="false" v-if="isFrom == 'GBCsale'">
|
||||||
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 mt10 pv12">项目信息</p>
|
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 mt10 pv12">项目信息</p>
|
||||||
<van-field v-model="projectDTO.platformName" label="平台名称" name="平台名称" readonly placeholder="请输入"/>
|
<van-field v-model="projectDTO.platformName" label="平台名称" name="平台名称" readonly placeholder="请输入"/>
|
||||||
<van-field v-model="projectDTO.projectName" label="项目名称" name="项目名称" readonly placeholder="请输入"/>
|
<van-field v-model="projectDTO.projectName" label="项目名称" name="项目名称" readonly placeholder="请输入"/>
|
||||||
@@ -11,10 +11,11 @@
|
|||||||
<van-field v-model="projectDTO.endDate" label="服务截至日期" name="服务截至日期" readonly placeholder="请输入"/>
|
<van-field v-model="projectDTO.endDate" label="服务截至日期" name="服务截至日期" readonly placeholder="请输入"/>
|
||||||
<van-field v-model="projectDTO.personCode" label="录单人工号" name="录单人工号" readonly placeholder="请输入"/>
|
<van-field v-model="projectDTO.personCode" label="录单人工号" name="录单人工号" readonly placeholder="请输入"/>
|
||||||
<van-field v-model="projectDTO.leaderCode" label="出单人工号" name="出单人工号" readonly placeholder="请输入"/>
|
<van-field v-model="projectDTO.leaderCode" label="出单人工号" name="出单人工号" readonly placeholder="请输入"/>
|
||||||
|
<!-- <van-field :value="projectDTO.departmentName" @click="toSelect('GBCKS')" readonly required label="部门/科室" name="部门/科室" right-icon="arrow" placeholder="请选择"/>-->
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<van-cell-group class="mt10">
|
<van-cell-group class="mt10">
|
||||||
<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>
|
||||||
<van-field v-if="branchType == '13'" :value="projectDTO.departmentName" @click="toSelect('GBCKS')" readonly required label="部门/科室" name="部门/科室" right-icon="arrow" placeholder="请选择"/>
|
<van-field v-show="isFrom == 'GBCsale'" v-model="projectDTO.departmentName" @click="toSelect('GBCKS')" readonly required label="部门/科室" name="部门/科室" right-icon="arrow" placeholder="请选择"/>
|
||||||
<customer-picker
|
<customer-picker
|
||||||
@on-choose="chooseCustomer"
|
@on-choose="chooseCustomer"
|
||||||
v-validate="'required|salename'"
|
v-validate="'required|salename'"
|
||||||
@@ -487,7 +488,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
branchType: '',
|
isFrom: '',
|
||||||
projectDTO:{
|
projectDTO:{
|
||||||
platformName:'',
|
platformName:'',
|
||||||
projectName:'',
|
projectName:'',
|
||||||
@@ -704,8 +705,6 @@
|
|||||||
//获取代理人管理机构 52贵州 45广西
|
//获取代理人管理机构 52贵州 45广西
|
||||||
let dataReturn = await riskRules.getAgentInfoFunc(this)
|
let dataReturn = await riskRules.getAgentInfoFunc(this)
|
||||||
this.manageComCode = dataReturn.manageComCode
|
this.manageComCode = dataReturn.manageComCode
|
||||||
this.branchType = dataReturn.branchType
|
|
||||||
// this.
|
|
||||||
if(this.manageComCode == '45'){
|
if(this.manageComCode == '45'){
|
||||||
areaLists.province_list = {
|
areaLists.province_list = {
|
||||||
450000: '广西壮族自治区'
|
450000: '广西壮族自治区'
|
||||||
@@ -718,7 +717,8 @@
|
|||||||
this.areaValue = '520000'
|
this.areaValue = '520000'
|
||||||
}
|
}
|
||||||
this.areaLists = areaLists
|
this.areaLists = areaLists
|
||||||
if(this.branchType == '13') {
|
if(window.sessionStorage.getItem('isFrom') == 'GBCsale') {
|
||||||
|
this.isFrom = 'GBCsale'
|
||||||
this.gbcProjectDetail()
|
this.gbcProjectDetail()
|
||||||
this.getDepartmentByProjectNo()
|
this.getDepartmentByProjectNo()
|
||||||
}
|
}
|
||||||
@@ -730,7 +730,15 @@
|
|||||||
}
|
}
|
||||||
getDepartmentByProjectNo(params).then(res=>{
|
getDepartmentByProjectNo(params).then(res=>{
|
||||||
if(res.result == '0'){
|
if(res.result == '0'){
|
||||||
// this.departmentList = res.content
|
this.departmentList = []
|
||||||
|
if(res.content && res.content.length != 0) {
|
||||||
|
res.content.forEach(item=>{
|
||||||
|
this.departmentList.push({
|
||||||
|
id: item.departmentCode,
|
||||||
|
text: item.departmentName
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
@@ -1432,7 +1440,7 @@
|
|||||||
}
|
}
|
||||||
this.thismystr = ''
|
this.thismystr = ''
|
||||||
params.orderDTO.appntDTO = this.userInfo
|
params.orderDTO.appntDTO = this.userInfo
|
||||||
if(this.branchType == '13'){
|
if(this.isFrom == 'GBCsale'){
|
||||||
params.orderDTO.ebizOrderGbcRelDTO = {
|
params.orderDTO.ebizOrderGbcRelDTO = {
|
||||||
projectCode: this.projectDTO.projectCode,
|
projectCode: this.projectDTO.projectCode,
|
||||||
departmentCode: this.projectDTO.departmentCode
|
departmentCode: this.projectDTO.departmentCode
|
||||||
|
|||||||
@@ -882,17 +882,17 @@ export default {
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
.allFalse {
|
.allFalse {
|
||||||
position: fixed;
|
/*position: fixed;*/
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.content-all-info {
|
/*.content-all-info {*/
|
||||||
padding-top: 153px;
|
/* padding-top: 153px;*/
|
||||||
}
|
/*}*/
|
||||||
.content-all-info2 {
|
/*.content-all-info2 {*/
|
||||||
padding-top: 90px;
|
/* padding-top: 90px;*/
|
||||||
}
|
/*}*/
|
||||||
.pb5{
|
.pb5{
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user