123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- //import * as WxJsApi from '@/utils/wxJsApi.js'
- import * as API from '@/apis/common.js'
- import TabbarJob from '@/components/TabbarJob.vue'
- export default {
- data() {
- return {
- list:[],
- isReady:false,
- background: {
- backgroundColor: '#2295ff',
- },
-
- src:['',
- '/static/img/news1.png',
- '/static/img/news2.png',
- '/static/img/news4.png',
- '/static/img/news3.png',
-
- ],
-
- }
- },
- components: {
- TabbarJob
- },
- onLoad(op){
- //this.id=op.id;
- },
- methods: {
- gotoUrlNews(row){
- var url='pages/job/newsIndex/newsList/newsList?id='+row.classifyId;
- if(row.classifyId=="5"){
- url="pages/hr/newsIndex/servicesList/servicesList"
- }
-
- if(row.classifyId=="4"){
- url="pages/job/newsIndex/newsRecommend/newsRecommend"
- }
-
- if(row.classifyId=="6"){
- url="pages/hr/newsIndex/newsRecommend/newsRecommend"
- }
- this.gotoUrl(url)
- },
- getList(){
- uni.showLoading({
- title:"加载中",mask:true,
- })
- API.messageClassify().then((response) => {
- this.list=response.data;
- uni.hideLoading()
- }).catch(error => {
- uni.showToast({
-
- title:error
- })
- })
- },
- getInfo(){
-
- API.readMessageNum().then((response) => {
- var a =response.data;
-
- this.carhelp.set("tabbar_show_num",a);
-
- }).catch(error => {
- uni.showToast({
-
- title:error
- })
- })
- },
- },onReady(){
- this.getInfo();
- this.getList();
- this.isReady=true;
- },onShow(){
- if(this.isReady){
- this.getInfo();
- this.getList();
- }
- },
- }
|