2023-11-07 10:24:08 +08:00
|
|
|
<template>
|
|
|
|
<view class="page">
|
|
|
|
<view class="status_bar">
|
|
|
|
<view class="top_view"></view>
|
|
|
|
</view>
|
|
|
|
<view class="wui_banner">
|
|
|
|
<view class="banner_img">
|
|
|
|
<image src="../../static/home-bg.png" mode=""></image>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="home-apps">
|
2024-10-28 14:08:34 +08:00
|
|
|
<view class="home-apps-item" @click="fnScan">
|
|
|
|
<view class="home-apps-item-img">
|
|
|
|
<image src="../../static/icon-apps/app_icons6.png" mode=""></image>
|
2023-11-07 10:24:08 +08:00
|
|
|
</view>
|
2024-10-28 14:08:34 +08:00
|
|
|
<view class="text">
|
|
|
|
<text>扫码</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="home-apps-item" v-for="(item,index) in baseList" :key="index" @click="fnNavigator(index)">
|
|
|
|
<view class="home-apps-item-img">
|
|
|
|
<image :src="item.img" mode=""></image>
|
|
|
|
</view>
|
|
|
|
<view class="text">
|
|
|
|
<text>{{ item.title }}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
2023-11-07 10:24:08 +08:00
|
|
|
</view>
|
|
|
|
<u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton"
|
2024-09-30 09:40:54 +08:00
|
|
|
:showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText"
|
|
|
|
:cancelText="updateVersion.cancelText"
|
2023-11-07 10:24:08 +08:00
|
|
|
@cancel="modalCancel" @confirm="modalConfirm">
|
|
|
|
<view style="text-align: center;color:#606266">
|
|
|
|
<rich-text :nodes="updateVersion.modalContent"></rich-text>
|
|
|
|
</view>
|
|
|
|
</u-modal>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import updateVersion from "../../utils/updateVersion";
|
|
|
|
import {setRelatedPartyScanning} from "../../api";
|
|
|
|
|
|
|
|
export default {
|
2024-09-30 09:40:54 +08:00
|
|
|
mixins: [updateVersion],
|
2023-11-07 10:24:08 +08:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
baseList: [
|
|
|
|
{
|
|
|
|
img: require('../../static/icon-apps/app_icons.png'),
|
|
|
|
title: '电子工牌',
|
|
|
|
url: '/pages/electronic_work_card/index'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
img: require('../../static/icon-apps/app_icons2.png'),
|
|
|
|
title: '服务单位 管理',
|
|
|
|
url: '/pages/service_unit_management/index'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
img: require('../../static/icon-apps/app_icons3.png'),
|
|
|
|
title: '我的信息',
|
|
|
|
url: '/pages/mine/information/index'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
img: require('../../static/icon-apps/app_icons4.png'),
|
|
|
|
title: '证书信息',
|
|
|
|
url: '/pages/certificate_information/index'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
img: require('../../static/icon-apps/app_icons5.png'),
|
|
|
|
title: '就职单位',
|
|
|
|
url: '/pages/employed_by/index'
|
|
|
|
},
|
2024-06-25 18:01:18 +08:00
|
|
|
{
|
2024-07-04 17:57:31 +08:00
|
|
|
img: require('../../static/icon-apps/app_icons6.png'),
|
2024-06-25 18:01:18 +08:00
|
|
|
title: '高危作业',
|
|
|
|
url: '/pages/eight_assignments/index'
|
|
|
|
},
|
2023-11-07 10:24:08 +08:00
|
|
|
],
|
|
|
|
}
|
|
|
|
},
|
2024-07-04 17:57:31 +08:00
|
|
|
computed: {
|
|
|
|
userInfo() {
|
|
|
|
return this.$store.getters.getUserInfo
|
|
|
|
}
|
|
|
|
},
|
2023-11-07 10:24:08 +08:00
|
|
|
onLoad() {
|
|
|
|
this.fnUpdateVersion(false)
|
|
|
|
},
|
|
|
|
methods: {
|
2024-09-30 09:40:54 +08:00
|
|
|
fnScan() {
|
2023-11-07 10:24:08 +08:00
|
|
|
uni.scanCode({
|
|
|
|
success: async (res) => {
|
2024-09-30 09:40:54 +08:00
|
|
|
let obj = JSON.parse(res.result)
|
2023-11-07 10:24:08 +08:00
|
|
|
let type = obj[0].CODE_TYPE
|
|
|
|
if (type === '0') {
|
|
|
|
// type=0时跳转注册相关方企业页面
|
2024-09-30 09:40:54 +08:00
|
|
|
await setRelatedPartyScanning({CORPINFO_ID: obj[0].CORPINFO_ID})
|
2023-11-07 10:24:08 +08:00
|
|
|
uni.$u.route({
|
|
|
|
url: '/pages/related_party_units/add',
|
2024-09-30 09:40:54 +08:00
|
|
|
params: {
|
|
|
|
CORPINFO_ID: obj[0].CORPINFO_ID,
|
2023-11-07 10:24:08 +08:00
|
|
|
RELEVANT_UNIT_NAME: obj[0].RELEVANT_UNIT_NAME
|
|
|
|
}
|
|
|
|
})
|
|
|
|
} else if (type === '1') {
|
|
|
|
// type=1时跳转电子工牌页面
|
|
|
|
uni.$u.route({
|
|
|
|
url: '/pages/electronic_work_card/index',
|
2024-09-30 09:40:54 +08:00
|
|
|
params: {
|
|
|
|
USER_ID: obj[0].USER_ID,
|
|
|
|
CODE_TYPE: obj[0].CODE_TYPE
|
2023-11-07 10:24:08 +08:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
2024-07-04 17:57:31 +08:00
|
|
|
fnIsShow(index){
|
|
|
|
if(index === 5) return !!this.userInfo.CORPINFO_ID
|
|
|
|
return true
|
|
|
|
},
|
2023-11-07 10:24:08 +08:00
|
|
|
fnNavigator(e) {
|
|
|
|
uni.$u.route({
|
|
|
|
url: this.baseList[e].url
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.page {
|
|
|
|
background-color: #f7f9ff;
|
|
|
|
min-height: 100vh;
|
|
|
|
}
|
|
|
|
</style>
|