mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 18:46:43 +08:00
首页调用获取代理人项目列表接口
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user