mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 18:16:44 +08:00
首页增加方法判断当前是否是GBC渠道
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
|
||||
<script>
|
||||
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 config from '@/config'
|
||||
import png8 from '@/assets/YB_APP/images/8.png';
|
||||
@@ -121,8 +122,23 @@ export default {
|
||||
this.homeConfigGBC()
|
||||
this.setMarginTop()
|
||||
this.gbcProjectList()
|
||||
this.getAgentInfo()
|
||||
},
|
||||
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(){
|
||||
let params = {
|
||||
|
||||
@@ -174,9 +190,6 @@ export default {
|
||||
})
|
||||
},
|
||||
goDetail(data){
|
||||
if(data.route == '/sale/list') {
|
||||
window.localStorage.setItem('isFrom','GBCsale')
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
|
||||
Reference in New Issue
Block a user