12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
-
-
-
- //import * as WxJsApi from '@/utils/wxJsApi.js'
- import * as API from '@/apis/common.js'
- import TabbarHr from '@/components/TabbarHr.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/news5.png',
- '/static/img/news3.png',
- ],
- }
- },
- components: {
- TabbarHr
- },
- onLoad(op){
- //this.id=op.id;
- },
- methods: {
- gotoUrlNews(row){
- var url='pages/hr/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.messageClassifyHR().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();
- }
- },
- }
|