mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 00:56:43 +08:00
首页增加方法判断当前是否是GBC渠道
This commit is contained in:
@@ -76,6 +76,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { gbcProjectList, gbcProjectConfirm, homeConfigGBC } from '@/api/GBC/GBC'
|
import { gbcProjectList, gbcProjectConfirm, homeConfigGBC } from '@/api/GBC/GBC'
|
||||||
|
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||||
import { Swipe, SwipeItem, NoticeBar, Icon, Popup, PullRefresh ,Toast, RadioGroup, Radio } from 'vant'
|
import { Swipe, SwipeItem, NoticeBar, Icon, Popup, PullRefresh ,Toast, RadioGroup, Radio } from 'vant'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
import png8 from '@/assets/YB_APP/images/8.png';
|
import png8 from '@/assets/YB_APP/images/8.png';
|
||||||
@@ -121,8 +122,23 @@ export default {
|
|||||||
this.homeConfigGBC()
|
this.homeConfigGBC()
|
||||||
this.setMarginTop()
|
this.setMarginTop()
|
||||||
this.gbcProjectList()
|
this.gbcProjectList()
|
||||||
|
this.getAgentInfo()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
getAgentInfo(){
|
||||||
|
let params = {
|
||||||
|
|
||||||
|
}
|
||||||
|
getAgentInfo(params).then(res => {
|
||||||
|
if(res.result == '0') {
|
||||||
|
if(res.branchType == '13') {
|
||||||
|
window.localStorage.setItem('isFrom','GBCsale')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
gbcProjectList(){
|
gbcProjectList(){
|
||||||
let params = {
|
let params = {
|
||||||
|
|
||||||
@@ -174,9 +190,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
goDetail(data){
|
goDetail(data){
|
||||||
if(data.route == '/sale/list') {
|
|
||||||
window.localStorage.setItem('isFrom','GBCsale')
|
|
||||||
}
|
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
|
|||||||
Reference in New Issue
Block a user