mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 10:56:44 +08:00
首页调用获取代理人项目列表接口
This commit is contained in:
@@ -73,6 +73,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { homeConfigYB } from '@/api/YB_APP/index'
|
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 { 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';
|
||||||
@@ -155,8 +156,22 @@ export default {
|
|||||||
mounted(){
|
mounted(){
|
||||||
this.getHomeConfigYB()
|
this.getHomeConfigYB()
|
||||||
this.setMarginTop()
|
this.setMarginTop()
|
||||||
|
this.gbcProjectList()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
gbcProjectList(){
|
||||||
|
let params = {
|
||||||
|
|
||||||
|
}
|
||||||
|
gbcProjectList(params).then(res=>{
|
||||||
|
if(res.result == '0') {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
chooseProductList(){
|
chooseProductList(){
|
||||||
if(!this.chooseProductRadio) {
|
if(!this.chooseProductRadio) {
|
||||||
this.$toast('请选择项目')
|
this.$toast('请选择项目')
|
||||||
@@ -288,17 +303,17 @@ export default {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
beforeRouteEnter(to, from, next) {
|
// beforeRouteEnter(to, from, next) {
|
||||||
next(vm => {
|
// next(vm => {
|
||||||
if(from && from.path){
|
// if(from && from.path){
|
||||||
console.log(from)
|
// console.log(from)
|
||||||
// eslint-disable-next-line no-undef
|
// // eslint-disable-next-line no-undef
|
||||||
if(form.path == '/login') {
|
// if(form.path == '/login') {
|
||||||
window.sessionStorage.setItem('GBCFrom','GBCLogin')
|
// window.sessionStorage.setItem('GBCFrom','GBCLogin')
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user