|
@@ -6,7 +6,7 @@
|
|
<view class="top-max-box-two" v-if="userType==1&&certification.auditStatus">
|
|
<view class="top-max-box-two" v-if="userType==1&&certification.auditStatus">
|
|
<view class="user-img-box" @click="selectImage">
|
|
<view class="user-img-box" @click="selectImage">
|
|
<img v-if="userData.avatar" :src="userData.avatarUrl">
|
|
<img v-if="userData.avatar" :src="userData.avatarUrl">
|
|
- <img v-else src="@/images/icon_01.png">
|
|
|
|
|
|
+ <img v-else src="@/images/basicsModules/icon_01.png">
|
|
<view>{{userData.avatar?'编辑':'未上传'}}</view>
|
|
<view>{{userData.avatar?'编辑':'未上传'}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="name-box">
|
|
<view class="name-box">
|
|
@@ -20,7 +20,7 @@
|
|
<view class="top-max-box-one">
|
|
<view class="top-max-box-one">
|
|
<view class="user-img-box" @click="selectImage">
|
|
<view class="user-img-box" @click="selectImage">
|
|
<img v-if="userData.avatar" :src="userData.avatarUrl">
|
|
<img v-if="userData.avatar" :src="userData.avatarUrl">
|
|
- <img v-else src="@/images/icon_01.png">
|
|
|
|
|
|
+ <img v-else src="@/images/basicsModules/icon_01.png">
|
|
<view>{{userData.avatar?'编辑':'未上传'}}</view>
|
|
<view>{{userData.avatar?'编辑':'未上传'}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="name-box">
|
|
<view class="name-box">
|
|
@@ -35,7 +35,7 @@
|
|
<view class="min-num-box" @click="goUserPage('none')">
|
|
<view class="min-num-box" @click="goUserPage('none')">
|
|
<view class="min-num-view color-one">{{creditScore}}</view>
|
|
<view class="min-num-view color-one">{{creditScore}}</view>
|
|
<view class="bottom-min-num-view">
|
|
<view class="bottom-min-num-view">
|
|
- <img class="img-one" src="@/images/icon_wd_xyf.png">
|
|
|
|
|
|
+ <img class="img-one" src="@/images/basicsModules/icon_wd_xyf.png">
|
|
<view>信用分</view>
|
|
<view>信用分</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -43,7 +43,7 @@
|
|
<view class="min-num-box" @click="goUserPage('none')">
|
|
<view class="min-num-box" @click="goUserPage('none')">
|
|
<view class="min-num-view color-two">{{bonusPoints}}</view>
|
|
<view class="min-num-view color-two">{{bonusPoints}}</view>
|
|
<view class="bottom-min-num-view">
|
|
<view class="bottom-min-num-view">
|
|
- <img class="img-two" src="@/images/icon_wd_jlf.png">
|
|
|
|
|
|
+ <img class="img-two" src="@/images/basicsModules/icon_wd_jlf.png">
|
|
<view>奖励分</view>
|
|
<view>奖励分</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -51,66 +51,38 @@
|
|
<view class="min-num-box" @click="goUserPage(3)">
|
|
<view class="min-num-box" @click="goUserPage(3)">
|
|
<view class="min-num-view">扫一扫</view>
|
|
<view class="min-num-view">扫一扫</view>
|
|
<view class="bottom-min-num-view">
|
|
<view class="bottom-min-num-view">
|
|
- <img class="img-two" src="@/images/icon_wd_dh.png">
|
|
|
|
|
|
+ <img class="img-two" src="@/images/basicsModules/icon_wd_dh.png">
|
|
<view>兑换礼品</view>
|
|
<view>兑换礼品</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="button-max-big-box">
|
|
|
|
- <view class="button-max-box" @click="goPage('alarm')" v-if="userType==1">
|
|
|
|
- <img class="left-img" src="@/images/icon_003.png">
|
|
|
|
- <view>预警记录</view>
|
|
|
|
- <view class="view-three-one" v-if="securityAlertNum>0">{{securityAlertNum}}</view>
|
|
|
|
- <img class="right-img" src="@/images/icon_04.png">
|
|
|
|
- </view>
|
|
|
|
- <view class="button-max-box" @click="goPage('laboratory')" v-if="userType==1">
|
|
|
|
- <img class="left-img" src="@/images/icon_002.png">
|
|
|
|
- <view>我的实验室</view>
|
|
|
|
- <view class="view-three-two" v-if="adminSubCount>0">{{adminSubCount}}</view>
|
|
|
|
- <img class="right-img" src="@/images/icon_04.png">
|
|
|
|
- </view>
|
|
|
|
- <view class="button-max-box" @click="goPage('record')" v-if="userType==1">
|
|
|
|
- <img class="left-img" src="@/images/icon_004.png">
|
|
|
|
- <view>预案执行记录</view>
|
|
|
|
- <view class="view-three-two" v-if="wranDoCount>0">{{wranDoCount}}</view>
|
|
|
|
- <img class="right-img" src="@/images/icon_04.png">
|
|
|
|
- </view>
|
|
|
|
- <view class="button-max-box" @click="goPage('faceImage')">
|
|
|
|
- <img class="left-img" src="@/images/icon_001.png">
|
|
|
|
- <view>身份验证</view>
|
|
|
|
- <view class="view-three-type" :class="!ifFaceFeature?'colorA':'marginType'">{{!ifFaceFeature?'去认证':'已认证'}}</view>
|
|
|
|
- <img class="right-img" src="@/images/icon_04.png">
|
|
|
|
- </view>
|
|
|
|
- <view class="button-max-box" @click="goPage('signature')">
|
|
|
|
- <img class="left-img" src="@/images/icon_wd_dzqm.png">
|
|
|
|
- <view>电子签名</view>
|
|
|
|
- <view class="view-three-type" :class="!isUpload?'colorA':'marginType'">{{!isUpload?'未上传':'已上传'}}</view>
|
|
|
|
- <img class="right-img" src="@/images/icon_04.png">
|
|
|
|
- </view>
|
|
|
|
- <view class="button-max-box" @click="fingerprintClick()">
|
|
|
|
- <img class="left-img" src="@/images/icon_wd_zw.png">
|
|
|
|
- <view>指纹</view>
|
|
|
|
- <view class="view-three-type" :class="Quantity>0?'marginType':'colorA'">{{Quantity>0?'已配置'+Quantity+'个':''}}</view>
|
|
|
|
- <img class="right-img" src="@/images/icon_04.png">
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
- <view class="out-button" @click="clickOut">退出登录</view>
|
|
|
|
|
|
+
|
|
|
|
+ <mineConfigurationSlot v-for="(item,index) in mineConfigData" :key="index" :mineConfig="item"></mineConfigurationSlot>
|
|
|
|
+ <view class="out-button" @click="clickOut">退出登录</view>
|
|
<tab-bar></tab-bar>
|
|
<tab-bar></tab-bar>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { config } from '@/api/request/config.js'
|
|
import { config } from '@/api/request/config.js'
|
|
-import { logout,studentinfoFacemy,simpleInfo,getSafeWarnList,getMyPointsLogInfo,querySignature,fingerprintQuantity,fingerprintQueryList} from '@/api/index.js'
|
|
|
|
|
|
+import { logout,studentinfoFacemy,simpleInfo,getSafeWarnList,getMyPointsLogInfo,
|
|
|
|
+ querySignature,fingerprintQuantity,fingerprintQueryList,systemAppletLayoutSelect} from '@/api/basicsModules/index.js'
|
|
import { tabBar } from '@/component/tabBar.vue'
|
|
import { tabBar } from '@/component/tabBar.vue'
|
|
|
|
+
|
|
|
|
+ import { mineConfigurationSlot } from '@/component/mineConfigurationSlot'
|
|
|
|
+ import { getMineConfig } from '@/utils/mineConfig'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- tabBar
|
|
|
|
|
|
+ tabBar,
|
|
|
|
+ mineConfigurationSlot,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ mineConfigData: [],
|
|
//页面状态
|
|
//页面状态
|
|
pageType:false,
|
|
pageType:false,
|
|
//认证数据
|
|
//认证数据
|
|
@@ -145,6 +117,7 @@ export default {
|
|
},
|
|
},
|
|
onShow(){
|
|
onShow(){
|
|
|
|
|
|
|
|
+ this.systemAppletLayoutSelect();
|
|
if(uni.getStorageSync('token')&&uni.getStorageSync('userId')&&uni.getStorageSync('userType')){
|
|
if(uni.getStorageSync('token')&&uni.getStorageSync('userId')&&uni.getStorageSync('userType')){
|
|
this.userType = uni.getStorageSync('userType')
|
|
this.userType = uni.getStorageSync('userType')
|
|
this.studentinfoFacemy();
|
|
this.studentinfoFacemy();
|
|
@@ -161,6 +134,18 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //获取菜单配置
|
|
|
|
+ async systemAppletLayoutSelect() {
|
|
|
|
+ const {data} = await systemAppletLayoutSelect({module:'mine'})
|
|
|
|
+ if(data.code == 200){
|
|
|
|
+ let list = JSON.parse(JSON.stringify(data.data))
|
|
|
|
+ for(let i=0;i<list.length;i++){
|
|
|
|
+ list[i].layout = JSON.parse(list[i].layout);
|
|
|
|
+ }
|
|
|
|
+ this.$set(this,'mineConfigData',getMineConfig(list));
|
|
|
|
+ console.log('mineConfigData',this.mineConfigData)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//学生端-信用分/奖励分/扫一扫按钮
|
|
//学生端-信用分/奖励分/扫一扫按钮
|
|
goUserPage(type){
|
|
goUserPage(type){
|
|
let self = this;
|
|
let self = this;
|
|
@@ -399,7 +384,7 @@ export default {
|
|
/*background:#ffffff;*/
|
|
/*background:#ffffff;*/
|
|
.user-top-max-box-one{
|
|
.user-top-max-box-one{
|
|
overflow hidden
|
|
overflow hidden
|
|
- background url("@/images/img_wd_bg.png") no-repeat
|
|
|
|
|
|
+ background url("@/images/basicsModules/img_wd_bg.png") no-repeat
|
|
background-size:100%;
|
|
background-size:100%;
|
|
height:350rpx;
|
|
height:350rpx;
|
|
.top-max-box-one{
|
|
.top-max-box-one{
|
|
@@ -519,7 +504,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.top-max-box-two{
|
|
.top-max-box-two{
|
|
- background url("@/images/img_wd_bg.png")
|
|
|
|
|
|
+ background url("@/images/basicsModules/img_wd_bg.png")
|
|
background-size:100%;
|
|
background-size:100%;
|
|
height:245rpx;
|
|
height:245rpx;
|
|
display flex
|
|
display flex
|