首页调用获取代理人项目列表接口

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-12-18 16:20:45 +08:00
parent 04c1a9f7b7
commit 09d4326ee4
2 changed files with 26 additions and 11 deletions

View File

@@ -73,6 +73,7 @@
<script>
import { homeConfigYB } from '@/api/YB_APP/index'
import { gbcProjectList } from '@/api/GBC/GBC'
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';
@@ -155,8 +156,22 @@ export default {
mounted(){
this.getHomeConfigYB()
this.setMarginTop()
this.gbcProjectList()
},
methods:{
gbcProjectList(){
let params = {
}
gbcProjectList(params).then(res=>{
if(res.result == '0') {
} else {
this.$toast(res.resultMessage)
}
})
},
chooseProductList(){
if(!this.chooseProductRadio) {
this.$toast('请选择项目')
@@ -288,17 +303,17 @@ export default {
}, 1000);
},
},
beforeRouteEnter(to, from, next) {
next(vm => {
if(from && from.path){
console.log(from)
// eslint-disable-next-line no-undef
if(form.path == '/login') {
window.sessionStorage.setItem('GBCFrom','GBCLogin')
}
}
});
},
// beforeRouteEnter(to, from, next) {
// next(vm => {
// if(from && from.path){
// console.log(from)
// // eslint-disable-next-line no-undef
// if(form.path == '/login') {
// window.sessionStorage.setItem('GBCFrom','GBCLogin')
// }
// }
// });
// },
}
</script>
<style lang="scss" scoped>