完成我的信息接口调试

This commit is contained in:
2025-09-12 09:44:44 +08:00
parent 2e58309db4
commit 77cf4aa7b7
11 changed files with 472 additions and 389 deletions

View File

@@ -100,7 +100,7 @@ const install = (Vue, vm) => {
// 个人信息修改 // 个人信息修改
user: { user: {
saveUserInfo: (params = {}) => vm.$u.post(config.adminPath+'/mobile/user/saveUserInfo', params), saveUserInfo: (params = {}) => vm.$u.post(config.adminPath+'/mobile/user/saveUserInfo', params),
infoSavePwd: (params = {}) => vm.$u.put(config.adminPath+'/system/user/profile/updatePwd', params), infoSavePwd: (params = {}) => vm.$u.put(config.adminPath+'/property/xcx/person/editPW', params),
infoSavePqa: (params = {}) => vm.$u.post(config.adminPath+'/sys/user/infoSavePqa', params), infoSavePqa: (params = {}) => vm.$u.post(config.adminPath+'/sys/user/infoSavePqa', params),
}, },
@@ -119,6 +119,7 @@ const install = (Vue, vm) => {
queryEmployeeById:(params = {}) => vm.$u.get(config.adminPath+'/property/xcx/person/'+ params.id), queryEmployeeById:(params = {}) => vm.$u.get(config.adminPath+'/property/xcx/person/'+ params.id),
queryEmployee:(params = {}) => vm.$u.get(config.adminPath+'/property/xcx/person/list', params), queryEmployee:(params = {}) => vm.$u.get(config.adminPath+'/property/xcx/person/list', params),
updateEmployee:(params = {}) => vm.$u.put(config.adminPath+'/property/xcx/person', params), updateEmployee:(params = {}) => vm.$u.put(config.adminPath+'/property/xcx/person', params),
queryUnitById:(params = {}) => vm.$u.get(config.adminPath+'/property/xcx/unit/'+ params.unitId),
}, },
// 单位管理 // 单位管理
repair:{ repair:{
@@ -127,6 +128,7 @@ const install = (Vue, vm) => {
getMyOrderList:(params = {})=>vm.$u.get(config.adminPath+'/property/xcx/workOrders/list',params), getMyOrderList:(params = {})=>vm.$u.get(config.adminPath+'/property/xcx/workOrders/list',params),
updateOrder:(params = {})=>vm.$u.put(config.adminPath+'/property/xcx/workOrders',params), updateOrder:(params = {})=>vm.$u.put(config.adminPath+'/property/xcx/workOrders',params),
}, },
//访客管理
visitor:{ visitor:{
//我的访客列表 //我的访客列表
getMyVisitor:(params = {})=>vm.$u.get(config.adminPath+'/property/xcx/visitorManagement/list/'+params.type), getMyVisitor:(params = {})=>vm.$u.get(config.adminPath+'/property/xcx/visitorManagement/list/'+params.type),

View File

@@ -1,6 +1,6 @@
{ {
"name" : "数字南川", "name" : "数字南川",
"appid" : "__UNI__7AF1078", "appid" : "__UNI__AAACEF3",
"description" : "", "description" : "",
"versionName" : "1.8.4", "versionName" : "1.8.4",
"versionCode" : "100", "versionCode" : "100",

View File

@@ -8,7 +8,6 @@
"style": { "style": {
"navigationBarTitleText": "登录", "navigationBarTitleText": "登录",
"navigationStyle": "custom" "navigationStyle": "custom"
// 隐藏系统导航栏
} }
}, },
{ {
@@ -32,7 +31,7 @@
{ {
"path": "pages/sys/user/changeInfo/changeInfo", "path": "pages/sys/user/changeInfo/changeInfo",
"style": { "style": {
"navigationStyle": "custom" "navigationBarTitleText": "个人信息"
} }
}, },
{ {
@@ -41,6 +40,12 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{
"path": "pages/sys/user/pwd",
"style": {
"navigationBarTitleText": "修改密码"
}
},
{ {
"path": "pages/sys/user/serviceCenter/serviceCenter", "path": "pages/sys/user/serviceCenter/serviceCenter",
"style": { "style": {

View File

@@ -37,13 +37,14 @@
</view> </view>
</view> </view>
<!-- 滚动资讯条 --> <!-- 滚动资讯条 -->
<view class="news-bar"> <view class="news-bar">
<text class="news-label">头条</text> <text class="news-label">公告</text>
<scroll-view scroll-x class="news-scroll"> <swiper class="news-swiper" vertical autoplay circular interval="3000">
<text v-for="(item, idx) in newsList" :key="idx" class="news-item">{{ item }}</text> <swiper-item v-for="(item, idx) in newsList" :key="idx">
</scroll-view> <text class="news-item">{{ item }}<text class="news-arrow"></text></text>
<text class="news-arrow"></text> </swiper-item>
</view> </swiper>
</view>
<!-- 热门活动区 --> <!-- 热门活动区 -->
<view class="hot-section"> <view class="hot-section">
<view class="hot-title-row"> <view class="hot-title-row">
@@ -83,22 +84,22 @@
], ],
current: 0, current: 0,
gridList: [ gridList: [
{ // {
icon: '/static/aaaa_gd.png', // icon: '/static/aaaa_gd.png',
text: '工单', // text: '工单',
url:'/pages/sys/workbench/order/order' // url:'/pages/sys/workbench/order/order'
}, // },
{ // {
icon: '/static/aaaa_yjcl.png', // icon: '/static/aaaa_yjcl.png',
text: '预警处理', // text: '预警处理',
url:'/pages/sys/workbench/earlyWarning/earlyWarning' // url:'/pages/sys/workbench/earlyWarning/earlyWarning'
//
}, // },
{ // {
icon: '/static/aaaa_jk.png', // icon: '/static/aaaa_jk.png',
text: '监控', // text: '监控',
url:'/pages/sys/workbench/monitor/monitors' // url:'/pages/sys/workbench/monitor/monitors'
}, // },
{ {
icon: '/static/aaaa_bsbx.png', icon: '/static/aaaa_bsbx.png',
text: '报事报修', text: '报事报修',
@@ -486,4 +487,41 @@
border-radius: 8rpx; border-radius: 8rpx;
padding: 4rpx 12rpx; padding: 4rpx 12rpx;
} }
.news-bar {
display: flex;
align-items: center;
padding: 10rpx 0;
border-top: 1rpx solid #f5f5f5;
margin-top: 10rpx;
height: 60rpx; /* 固定高度 */
overflow: hidden;
}
.news-label {
color: #FF6A00;
font-size: 28rpx;
font-weight: bold;
margin-right: 16rpx;
border: 1rpx solid #FF6A00;
border-radius: 4rpx;
padding: 2rpx 6rpx;
}
.news-swiper {
flex: 1;
height: 100%;
}
.news-item {
display: block;
color: #666;
font-size: 24rpx;
line-height: 40rpx; /* 与容器高度一致 */
}
.news-arrow {
color: #999;
font-size: 32rpx;
margin-left: 10rpx;
}
</style> </style>

View File

@@ -1,237 +1,284 @@
<template> <template>
<view class="change-info-container"> <view class="change-info-container">
<image src="/static/ic_back.png" class="back-arrow" @click="goBack" /> <view class="title-main">完善你的资料</view>
<view class="title-main">完善你的资料</view> <view class="title-sub"></view>
<view class="title-sub">让大家更好地了解你</view>
<view class="avatar-section"> <view class="avatar-section">
<image class="avatar-img" src="/static/avatar.png" /> <view class="avatar-container">
<view class="avatar-camera"> <image class="avatar-img" :src="userInfo.img" mode="aspectFill" @click="chooseImage"/>
<image src="/static/ic_camera.png" class="camera-icon" /> </view>
</view> </view>
</view>
<view class="form-section"> <!-- 表单部分保持不变 -->
<view class="form-label">取个昵称</view> <view class="form-section">
<view class="input-row"> <view class="form-row">
<input class="form-input" v-model="userInfo.nickName" placeholder="请输入昵称" /> <view class="form-label">取个昵称</view>
<view class="input-suffix"> <view class="input-wrapper">
<image src="/static/ic_i_c_01.png" class="random-icon" /> <input class="form-input" v-model="userInfo.userName" placeholder="请输入昵称" />
<text class="random-text">随机</text> </view>
</view> </view>
</view> <view class="form-row">
<view class="form-label">你的手机号</view> <view class="form-label">你的手机号</view>
<view class="input-row"> <view class="input-wrapper">
<input class="form-input" v-model="userInfo.phonenumber" placeholder="请输入您的手机号" /> <input class="form-input" v-model="userInfo.phone" placeholder="请输入您的手机号" />
<image src="/static/ic_arrow_right.png" class="arrow-icon" /> </view>
</view> </view>
<view class="form-label">你的性别不可修改</view> <view class="form-row">
<view class="gender-row"> <view class="form-label">你的性别</view>
<view v-if="userInfo.sex == 1" class="gender-item selected"> <view class="input-wrapper">
<image src="/static/ic_i_c_02.png" class="gender-icon" /> <picker class="form-input gender-select" mode="selector" :range="genderOptions" range-key="label" @change="selectGender" v-model="userInfo.gender">
</view> <view class="gender-text">{{userInfo.sexLabel}}</view>
<view v-else class="gender-item"> </picker>
<image src="/static/ic_i_c_03.png" class="gender-icon" /> </view>
</view> </view>
</view> <view class="form-row">
<view class="info-row"><text class="info-label">部门</text>{{userInfo.deptName}}</view> <view class="form-label">证件号</view>
<view class="info-row"><text class="info-label">岗位</text>客服</view> <view class="input-wrapper">
<view class="info-row"><text class="info-label">工号</text>A10235</view> <input class="form-input" v-model="userInfo.idCard" placeholder="请输入您的证件号" />
</view> </view>
<button class="submit-btn">确认修改</button> </view>
</view> <view class="form-row">
<view class="form-label">所属单位</view>
<view class="input-wrapper">
<input class="form-input" :value="userInfo.unitName" disabled />
</view>
</view>
<view class="form-group">
<view class="group-title">联系信息</view>
<view class="form-row">
<view class="form-label">邮箱</view>
<view class="input-wrapper">
<input class="form-input" v-model="userInfo.email" placeholder="请输入邮箱" />
</view>
</view>
<view class="form-row">
<view class="form-label">车牌号</view>
<view class="input-wrapper">
<input class="form-input" v-model="userInfo.carNumber" placeholder="请输入车牌号" />
</view>
</view>
</view>
</view>
<button class="submit-btn" @click="onsubmit()">确认修改</button>
</view>
</template> </template>
<script> <script>
export default { import {uploadFiles} from "../../../../common/upload";
data() {
return { export default {
userInfo: {}, data() {
} return {
}, userInfo: {
onLoad() { idCard: '',
this.userInfo = this.vuex_user unitName:'',
}, email: '',
methods: { carNumber: '',
goBack() { img: '',
uni.navigateBack(); userName:'',
} phone:'',
} gender:'',
} sexLabel:''
},
genderOptions: [
{value: 1, label: '男'},
{value: 2, label: '女'}
]
}
},
onLoad() {
this.getUserInfo()
console.log(this.userInfo);
},
methods: {
getUserInfo() {
let params = {
id: this.vuex_user.id,
unitId: this.vuex_user.unitId,
}
this.$u.api.unit.queryEmployeeById(params).then(res => {
if (res.code == "200") {
this.userInfo =res.data;
this.userInfo.sexLabel = this.genderOptions[this.userInfo.gender-1].label;
}
});
this.$u.api.unit.queryUnitById(params).then(res => {
if (res.code == 200) {
this.userInfo.unitName =res.data.name;
}
});
},
selectGender(e) {
const index = e.detail.value;
this.userInfo.gender = this.genderOptions[index].value;
this.userInfo.sexLabel = this.genderOptions[index].label;
},
onsubmit(){
this.$u.api.unit.updateEmployee(this.userInfo).then(res => {
if (res.code == 200) {
uni.reLaunch({
url: '/pages/sys/user/mine'
});
}
});
},
chooseImage() {
uni.chooseImage({
count: 1,
sizeType: ['compressed'],
sourceType: ['album', 'camera'],
success: async (res) => {
const tempFilePaths = res.tempFilePaths;
this.userInfo.img = tempFilePaths[0];
const result = await uploadFiles({
files: tempFilePaths,
url: this.vuex_config.baseUrl + '/resource/oss/upload',
name: 'file',
vm: this
});
this.userInfo.img = result[0].data.url;
console.log(this.userInfo.img);
const allSuccess = result.every(item => item.code == 200);
if (!allSuccess) {
uni.showToast({
title: '上传失败',
icon: 'none'
});
return;
}
}
});
},
}
}
</script> </script>
<style scoped> <style scoped>
.change-info-container { .change-info-container {
position: relative; position: relative;
padding-bottom: 60rpx; padding-bottom: 60rpx;
padding-top: 118rpx; padding-top: 24rpx;
min-height: 100vh; min-height: 100vh;
background: linear-gradient(180deg, #d2edff 0%, #ffffff 100%); background: linear-gradient(180deg, #d2edff 0%, #ffffff 100%);
} }
.back-arrow { .back-arrow {
width: 24rpx; width: 24rpx;
height: 42rpx; height: 42rpx;
left: 45rpx; left: 45rpx;
} }
.title-main { .title-main {
font-size: 50rpx; font-size: 50rpx;
font-weight: bold; font-weight: bold;
color: #000; color: #000;
margin-top: 45rpx; margin-top: 45rpx;
margin-left: 65rpx; margin-left: 65rpx;
} }
.title-sub { .title-sub {
font-size: 50rpx; font-size: 50rpx;
color: #000; color: #000;
font-weight: bold; font-weight: bold;
margin-left: 65rpx; margin-left: 65rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
} }
.avatar-section { .avatar-section {
display: flex; margin: 0 68rpx 62rpx 68rpx;
justify-content: flex-start; display: flex;
align-items: center; }
margin-left: 68rpx;
margin-bottom: 62rpx;
position: relative;
}
.avatar-img { .avatar-container {
width: 200rpx; position: relative;
height: 200rpx; width: 200rpx;
border-radius: 50%; height: 200rpx;
background: #fff; border-radius: 50%;
} border: 2rpx solid #e0e0e0;
background-color: #fff;
overflow: hidden;
}
.avatar-camera { .avatar-img {
position: absolute; width: 100%;
left: 100rpx; height: 100%;
top: 90rpx; }
width: 48rpx;
height: 48rpx;
background: #bbb;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.camera-icon {
width: 32rpx;
height: 32rpx;
}
.form-section {
margin: 0 68rpx;
background: transparent;
}
.form-label { .form-section {
color: #737373; margin: 0 68rpx;
font-size: 28rpx; background: transparent;
margin-bottom: 17rpx; }
margin-top: 32rpx;
font-weight: bold;
}
.input-row { .form-row {
display: flex; display: flex;
align-items: center; align-items: center;
background: #fff; margin-bottom: 18rpx;
border-radius: 14rpx; }
border: 2rpx solid #e0e0e0;
margin-bottom: 18rpx;
padding: 0 20rpx;
height: 98rpx;
}
.form-input { .form-label {
flex: 1; color: #555;
border: none; font-size: 32rpx;
font-weight: bold; font-weight: bold;
font-size: 33rpx; width: 200rpx;
color: #000000; }
}
.input-suffix { .input-wrapper {
display: flex; flex: 1;
align-items: center; }
margin-left: 10rpx;
}
.random-icon { .form-input {
width: 31rpx; width: 100%;
height: 27rpx; background: #fff;
margin-right: 6rpx; border-radius: 14rpx;
} border: 2rpx solid #e0e0e0;
padding: 0 20rpx;
height: 98rpx;
font-size: 28rpx;
color: #333;
}
.random-text { .gender-select {
color: #636363; display: flex;
font-size: 25rpx; align-items: center;
} }
.arrow-icon { .gender-text {
width: 22rpx; width: 100%;
height: 22rpx; text-align: center;
margin-left: 10rpx; }
}
.gender-row { .form-group {
display: flex; margin-top: 40rpx;
align-items: center; border-top: 1px solid #e0e0e0;
margin-bottom: 50rpx; padding-top: 20rpx;
padding-top: 15rpx; }
}
.gender-item { .group-title {
width: 188rpx; font-size: 32rpx;
height: 97rpx; font-weight: bold;
border-radius: 10rpx; color: #333;
display: flex; margin-bottom: 20rpx;
align-items: center; }
justify-content: center;
margin-right: 24rpx;
background: #fff;
}
.gender-item.selected { .submit-btn {
background: #e0e0e0; width: 90vw;
border-color: #bbb; height: 80rpx;
} background: linear-gradient(90deg, #2e6cf6 0%, #4fc3f7 100%);
color: #fff;
font-size: 32rpx;
border: none;
border-radius: 40rpx;
margin: 80rpx auto 40rpx auto;
display: block;
box-shadow: 0 8rpx 24rpx rgba(46, 108, 246, 0.12);
}
.gender-icon { .form-input:disabled {
width: 38rpx; background-color: #f5f5f5;
height: 38rpx; color: #666;
} }
.info-row {
display: flex;
align-items: center;
font-size: 28rpx;
color: #737373;
margin-bottom: 20rpx;
}
.info-label {
color: #737373;
width: 134rpx;
font-size: 28rpx;
font-weight: bold;
display: inline-block;
}
.submit-btn {
width: 90vw;
height: 80rpx;
background: linear-gradient(90deg, #2e6cf6 0%, #4fc3f7 100%);
color: #fff;
font-size: 32rpx;
border: none;
border-radius: 40rpx;
margin: 80rpx auto 40rpx auto;
display: block;
box-shadow: 0 8rpx 24rpx rgba(46, 108, 246, 0.12);
}
</style> </style>

View File

@@ -44,10 +44,6 @@
icon: '/static/ic_mine_info.png', icon: '/static/ic_mine_info.png',
text: '我的信息' text: '我的信息'
}, },
{
icon: '/static/ic_mine_pay.png',
text: '我的缴费'
},
{ {
icon: '/static/ic_mine_repair.png', icon: '/static/ic_mine_repair.png',
text: '我的报修' text: '我的报修'
@@ -56,10 +52,6 @@
icon: '/static/ic_mine_visitor.png', icon: '/static/ic_mine_visitor.png',
text: '我的访客' text: '我的访客'
}, },
{
icon: '/static/ic_mine_check.png',
text: '我的考勤'
},
{ {
icon: '/static/ic_mine_pwd.png', icon: '/static/ic_mine_pwd.png',
text: '修改密码' text: '修改密码'
@@ -96,21 +88,17 @@
}); });
} else if (idx === 1) { } else if (idx === 1) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/sys/user/myPayment/myPayment' url: '/pages/sys/user/myRepair/myRepair'
}); });
} else if (idx === 2) { } else if (idx === 2) {
uni.navigateTo({
url: '/pages/sys/user/myRepair/myRepair'
});
} else if (idx === 3) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/sys/user/myVisitor/myVisitor' url: '/pages/sys/user/myVisitor/myVisitor'
}); });
} else if (idx === 4) { }else if (idx === 3) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/sys/user/myRecord/myRecord' url: '/pages/sys/user/pwd'
}); });
} }
}, },
logout() { logout() {
// 清除用户信息并返回登录页 // 清除用户信息并返回登录页

View File

@@ -1,126 +1,123 @@
<template> <template>
<view class="wrap"> <view class="wrap">
<view class="remind-text">请设置登录密码<br> <view class="remind-text">请设置登录密码<br>
定期更新密码提高安全性</view> 定期更新密码提高安全性
<u-form class="form" :model="model" :rules="rules" ref="uForm"> </view>
<u-form-item label="旧密码" prop="oldPassword" label-width="180"> <u-form class="form" :model="model" :rules="rules" ref="uForm">
<u-input type="password" v-model="model.oldPassword" placeholder="请输入旧密码"></u-input> <u-form-item label="旧密码" prop="oldPassword" label-width="180">
</u-form-item> <u-input type="password" v-model="model.oldPassword" placeholder="请输入旧密码"></u-input>
<u-form-item label="新密码" prop="newPassword" label-width="180"> </u-form-item>
<u-input type="password" v-model="model.newPassword" placeholder="请输入新密码"></u-input> <u-form-item label="新密码" prop="newPassword" label-width="180">
</u-form-item> <u-input type="password" v-model="model.newPassword" placeholder="请输入新密码"></u-input>
<u-form-item label="确认密码" prop="confirmPassword" label-width="180"> </u-form-item>
<u-input type="password" v-model="model.confirmPassword" placeholder="请确认新密码"></u-input> <u-form-item label="确认密码" prop="confirmPassword" label-width="180">
</u-form-item> <u-input type="password" v-model="model.confirmPassword" placeholder="请确认新密码"></u-input>
</u-form> </u-form-item>
<view class="remind-text"> </u-form>
<u-icon name="question-circle" color="#2767dc" size="28"></u-icon> <view class="remind-text">
密码必须是8-16位的数字字符组合不能是纯数字</view> <u-icon name="question-circle" color="#2767dc" size="28"></u-icon>
<view class="form-footer"> 密码至少包含8~20位大写字母小写字母数字和特殊字符其中的任意一种
<u-button class="btn" type="primary" @click="submit">提交</u-button> </view>
<!-- <u-button class="btn" type="default" @click="cancel">关闭</u-button> --> <view class="form-footer">
</view> <u-button class="btn" type="primary" @click="submit">提交</u-button>
</view> </view>
</view>
</template> </template>
<script> <script>
/**
* Copyright (c) 2013-Now http://aidex.vip All rights reserved.
*/
import base64 from '@/common/base64.js';
export default { export default {
data() { data() {
return { return {
model: { model: {
oldPassword: '', oldPassword: '',
newPassword: '', newPassword: '',
confirmNewPassword: '' confirmPassword: ''
}, },
rules: { rules: {
oldPassword: [ oldPassword: [
{ {
required: true, required: true,
message: '请输入旧密码', message: '请输入旧密码',
trigger: ['change','blur'], trigger: ['change', 'blur'],
} }
], ],
newPassword: [ newPassword: [
{ {
required: true, required: true,
message: '请输入新密码', message: '请输入新密码',
trigger: ['change','blur'], trigger: ['change', 'blur'],
}, },
{ {
pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]+\S{5,12}$/, pattern: /^(?=.*[a-zA-Z\d!@$%^&*$%&+&*=\[\]?])[a-zA-Z\d!@$%^&*$%&+&*=\[\]?]{8,20}$/,
message: '需同时含有字母和数字长度在6-12之间', message: '需同时含有字母和数字长度在6-12之间',
trigger: ['change','blur'], trigger: ['change', 'blur'],
} }
], ],
confirmPassword: [ confirmPassword: [
{ {
required: true, required: true,
message: '请重新输入密码', message: '请重新输入密码',
trigger: ['change','blur'], trigger: ['change', 'blur'],
}, },
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
return value === this.model.newPassword; return value === this.model.newPassword;
}, },
message: '两次输入的密码不相等', message: '两次输入的密码不相等',
trigger: ['change','blur'], trigger: ['change', 'blur'],
} }
], ],
} }
}; };
}, },
onReady() { onReady() {
this.$refs.uForm.setRules(this.rules); this.$refs.uForm.setRules(this.rules);
}, },
methods: { methods: {
submit() { submit() {
this.$refs.uForm.validate(valid => { this.$refs.uForm.validate(valid => {
if (valid) { if (valid) {
this.$u.api.user.infoSavePwd({ this.$u.api.user.infoSavePwd({
oldPassword: this.model.oldPassword, oldPassword: this.model.oldPassword,
newPassword: this.model.newPassword newPassword: this.model.newPassword
}).then(res => { }).then(res => {
if(res.code == '200'){ if (res.code == '200') {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: res.msg, content: res.msg,
showCancel: false, showCancel: false,
success: function () { success: function () {
uni.navigateBack(); uni.navigateBack();
} }
}); });
}else{ } else {
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: res.msg, content: res.msg,
showCancel: false showCancel: false
}); });
} }
}); });
} else { } else {
this.$u.toast('您填写的信息有误,请根据提示修正。'); this.$u.toast('您填写的信息有误,请根据提示修正。');
} }
}); });
}, },
cancel() { }
uni.navigateBack();
}
}
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
page{ page {
background: #f5f5f5; background: #f5f5f5;
} }
.u-form{
background: #fff; .u-form {
padding: 0px 15px; background: #fff;
padding: 0px 15px;
} }
.remind-text{
padding: 20rpx 30rpx; .remind-text {
color: #666666; padding: 20rpx 30rpx;
color: #666666;
} }
</style> </style>

View File

@@ -162,7 +162,8 @@ export default {
// 删除图片 // 删除图片
deleteImage() { deleteImage() {
this.employeeInfo.img = ''; this.employeeInfo.img = '';
}, // 提交表单 },
// 提交表单
submitForm() { submitForm() {
//密码对比 //密码对比
if (!this.validatePassword()) { if (!this.validatePassword()) {

View File

@@ -136,7 +136,7 @@ export default {
.unit-management { .unit-management {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 95vh; height: 100vh;
background-color: #f5f5f5; background-color: #f5f5f5;
padding: 20rpx; padding: 20rpx;
} }

View File

@@ -64,31 +64,36 @@
text: '工单', text: '工单',
url:'/pages/sys/workbench/order/order' url:'/pages/sys/workbench/order/order'
}, },
{ // {
icon: '/static/aaaa_yjcl.png', // icon: '/static/aaaa_yjcl.png',
text: '预警处理', // text: '预警处理',
url:'/pages/sys/workbench/earlyWarning/earlyWarning' // url:'/pages/sys/workbench/earlyWarning/earlyWarning'
//
}, // },
// { // {
// icon: 'https://picsum.photos/80/80?random=3', // icon: 'https://picsum.photos/80/80?random=3',
// text: '保洁' // text: '保洁'
// }, // },
{ // {
icon: '/static/aaaa_jk.png', // icon: '/static/aaaa_jk.png',
text: '监控', // text: '监控',
url:'/pages/sys/workbench/monitor/monitors' // url:'/pages/sys/workbench/monitor/monitors'
}, // },
{ // {
icon: '/static/aaaa_bsbx.png', // icon: '/static/aaaa_bsbx.png',
text: '报事报修', // text: '报事报修',
url:'/pages/sys/user/myRepair/myRepair' // url:'/pages/sys/user/myRepair/myRepair'
}, // },
{ {
icon: '/static/ic_unit.png', icon: '/static/ic_unit.png',
text: '单位管理', text: '单位管理',
url:'/pages/sys/workbench/unitManagement/unitManagement' url:'/pages/sys/workbench/unitManagement/unitManagement'
}, },
{
icon: '/static/aaa_yq.png',
text: '访客管理',
url:'/pages/sys/user/myVisitor/myVisitor'
},
// { // {
// icon: 'https://picsum.photos/80/80?random=3', // icon: 'https://picsum.photos/80/80?random=3',
// text: '添加常用' // text: '添加常用'

BIN
static/aaa_yq.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB