diff --git a/api/model/contact.js b/api/model/contact.js index d034542..4c5b3b9 100644 --- a/api/model/contact.js +++ b/api/model/contact.js @@ -26,6 +26,21 @@ const api = { method: 'GET', auth: true, }, + + //电子合同-获取电子合同列表 + queryContractList: { + url: '/employ/contract/queryContractList', + method: 'GET', + auth: true, + }, + + //电子合同-根据id查询电子合同详情 + queryContracById: { + url: '/employ/contract/queryContracById', + method: 'GET', + auth: true, + }, + } export default api \ No newline at end of file diff --git a/components/screen/screenWork.vue b/components/screen/screenWork.vue index db2fd45..2a65b3e 100644 --- a/components/screen/screenWork.vue +++ b/components/screen/screenWork.vue @@ -90,16 +90,16 @@ result: [], activeName: 'areaId', areaId: { - label: '全国', + label: '全部', value: 0, activeIndex: 0, color: '#333', activeColor: '#3796F8', child: [ - // { - // label: '全国', - // value: 0, - // }, + { + label: '全部', + value: 0, + }, ] }, typeId: { @@ -207,13 +207,13 @@ }) this.list[1].tag = this.natureId.child - if(this.addressList[0]){ - this.areaId.value = this.addressList[0].id - this.areaId.label = this.addressList[0].adress + // if(this.addressList[0]){ + // this.areaId.value = this.addressList[0].id + // this.areaId.label = this.addressList[0].adress - this.defaultValue.slice(0, 1, this.addressList[0].id) - this.$forceUpdate() - } + // this.defaultValue.slice(0, 1, this.addressList[0].id) + // this.$forceUpdate() + // } // 地址 this.addressList.forEach(n => { diff --git a/pages.json b/pages.json index acb7805..371555a 100644 --- a/pages.json +++ b/pages.json @@ -186,6 +186,12 @@ }, { "path": "mine/updateUser" + }, + { + "path": "work/workTypeList" + }, + { + "path": "mine/contractDetail" } ] }], diff --git a/pages/index/center.vue b/pages/index/center.vue index 44c21c5..27d0963 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -64,7 +64,7 @@ + @click="$utils.navigateTo('/pages_order/mine/InvitationCredit')"> {{UserExtensionInfo.integerNum || 0}} diff --git a/pages/index/index.vue b/pages/index/index.vue index 2f16c82..4101d4e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -30,10 +30,18 @@ {{item.name}} + + + 其他招工 + diff --git a/pages_order/mine/InvitationCredit.vue b/pages_order/mine/InvitationCredit.vue index 2c27e7e..6853202 100644 --- a/pages_order/mine/InvitationCredit.vue +++ b/pages_order/mine/InvitationCredit.vue @@ -9,7 +9,7 @@ 您当前的正式积分 - 100 + {{UserExtensionInfo.integerNum || 0}} 积分明细 @@ -17,18 +17,16 @@ - + - - - - @@ -61,26 +56,21 @@ - - - - - @@ -88,9 +78,20 @@ + --> + + + + - 如有疑问请联系客服:4008-678-918 + 如有疑问请联系客服:{{ configList.config_service_phone }} + + diff --git a/pages_order/mine/contract.vue b/pages_order/mine/contract.vue index b4b395e..eae3856 100644 --- a/pages_order/mine/contract.vue +++ b/pages_order/mine/contract.vue @@ -17,6 +17,7 @@ @@ -66,22 +67,19 @@ }, ], type : 0, - mixinsListApi : 'bossQueryContractList', + mixinsListApi : 'queryContractList', } }, computed : { - ...mapState([ - 'role', - ]), }, onLoad() { - this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryContractList' + this.queryParams.role = this.role ? 1 : 0 }, methods: { clickTabs({index}) { this.type = index + this.getData() }, - } } diff --git a/pages_order/mine/contractDetail.vue b/pages_order/mine/contractDetail.vue new file mode 100644 index 0000000..01b3b5d --- /dev/null +++ b/pages_order/mine/contractDetail.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/pages_order/work/workDetail.vue b/pages_order/work/workDetail.vue index 68246cc..bdf0b25 100644 --- a/pages_order/work/workDetail.vue +++ b/pages_order/work/workDetail.vue @@ -139,7 +139,7 @@ hanHaiMember: {}, total: 0, collectionFlag: false, - mixinsListApi: 'employeeQueryJobList', + mixinsListApi: '', } }, onLoad({ @@ -166,6 +166,13 @@ this.personInfo = res.result.personInfo this.companyInfo = res.result.companyInfo this.hanHaiMember = res.result.hanHaiMember + + this.mixinsListApi = 'employeeQueryJobList' + + this.queryParams.typeId = this.detail.typeId + this.queryParams.areaId = this.detail.areaId + + this.getData() } }) }, diff --git a/pages_order/work/workTypeList.vue b/pages_order/work/workTypeList.vue new file mode 100644 index 0000000..0bb941e --- /dev/null +++ b/pages_order/work/workTypeList.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/store/store.js b/store/store.js index 90406b4..ee1a5b4 100644 --- a/store/store.js +++ b/store/store.js @@ -10,7 +10,7 @@ const store = new Vuex.Store({ state: { configList: {}, //配置列表 // 角色 true为老板 false为工人 - role : false, + role : true, userInfo : {}, //用户信息 banner : [],//轮播图 jobTypeList : [],//工种