| | |
| | | import popupCertificate from '../components/certificate/certificate.vue' |
| | | import { |
| | | getBanner, |
| | | getMessagelist |
| | | getMessagelist, |
| | | getappletcinfo |
| | | } from './service.js' |
| | | export default { |
| | | components: { |
| | |
| | | bannerlist: [], |
| | | msgList: [], |
| | | msgListTotal: [], |
| | | member:1, |
| | | userInfo:{}, |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getBanner() |
| | | this.getMessagelist() |
| | | this.getappletcinfo() |
| | | }, |
| | | methods: { |
| | | getBanner() { |
| | |
| | | this.bannerlist = resp.data |
| | | }) |
| | | }, |
| | | getappletcinfo(){ |
| | | getappletcinfo().then(resp=>{ |
| | | console.log(resp,'-----判断角色'); |
| | | this.userInfo =resp.data |
| | | this.member =resp.data?2:1 |
| | | uni.setStorageSync('userInfo',resp.data) |
| | | uni.setStorageSync('member',this.member) |
| | | }) |
| | | }, |
| | | getMessagelist() { |
| | | const data = { |
| | | pageNum: this.pageNum, |
| | |
| | | export const getMessagelist =(params)=>{ |
| | | return request.post(`/api/huacheng-sangeshenbian/applet/home/message`,params) |
| | | } |
| | | export const getappletcinfo =(params)=>{ |
| | | return request.get(`/api/huacheng-sangeshenbian/applet/home/current-user-info`,params) |
| | | } |