个人信息,修改密码

main
limingtao 11 months ago
parent 20f08606a5
commit 234bb14b06
  1. 2
      components/bottom-button/index.vue
  2. 2
      components/bottom-button/three.vue
  3. 13
      pages.json
  4. 10
      pages/map/index.vue
  5. 496
      pages/mine/index.vue
  6. 161
      pages/mine/password.vue
  7. BIN
      static/mine/background.png
  8. BIN
      static/scimg/left1.png
  9. BIN
      static/scimg/left1copy.png

@ -56,7 +56,7 @@ export default {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
padding: 10rpx 20rpx; padding: 18rpx 20rpx;
height: 80rpx; height: 80rpx;
background: #FFFFFF; background: #FFFFFF;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;

@ -55,7 +55,7 @@ export default {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
padding: 10rpx 20rpx; padding: 18rpx 20rpx;
height: 80rpx; height: 80rpx;
background: #FFFFFF; background: #FFFFFF;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;

@ -54,7 +54,7 @@
// //
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarBackgroundColor": "#FFFFFF", "navigationBarBackgroundColor": "#FFFFFF",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "white"
} }
}, },
{ {
@ -121,7 +121,16 @@
"navigationBarBackgroundColor": "#F6F8FA", "navigationBarBackgroundColor": "#F6F8FA",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
}, },
{
"path": "pages/mine/password",
"style": {
"navigationBarTitleText": "修改密码",
// "navigationStyle": "default",
"navigationBarBackgroundColor": "#F6F8FA",
"navigationBarTextStyle": "black"
}
},
{ {
"path": "pages/knowledge/index", "path": "pages/knowledge/index",
"style": { "style": {

@ -539,16 +539,16 @@ export default {
position: relative; position: relative;
.location { .location {
position: absolute; position: absolute;
width: 56px; width: 48px;
height: 56px; height: 48px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
right: 10px; right: 10px;
top: calc(50vh + 80px); top: calc(50vh + 70px);
background: #fff; background: #fff;
border-radius: 16px; border-radius: 16px;
z-index: 99999; z-index: 99998;
cover-image { cover-image {
width: 32px; width: 32px;
height: 32px; height: 32px;
@ -563,7 +563,7 @@ export default {
background: #fff; background: #fff;
border-radius: 4px; border-radius: 4px;
box-sizing: border-box; box-sizing: border-box;
z-index: 9999; z-index: 99999;
.status { .status {
position: absolute; position: absolute;
top: 0px; top: 0px;

@ -1,161 +1,335 @@
<template> <template>
<view id="page"> <view class="mine-box">
<view class="Width100 Box BorderBox" :style="bgUrl1"> <view class='info-box'>
<view class="Content BorderBox"> <image :src="userInfo.headUrl||base64Avatar"
<top-title :is-show-left="false" :rightWidth='120'> @click="checkObjEmpty(userInfo) ? $.open('/pages/logIn/userInfo'):$.open('/pages/logIn/logIn')"></image>
<template slot="right">
<image :src="$.imgSrc + '/mine/setting.png'" @click="$.open('/pages/mine/setting')" mode="aspectFit" class="InlineBlock img"></image> <view class="name FontS_50rpx FontBold MarginL_15rpx"
<image :src="$.imgSrc + '/mine/chat.png'" mode="aspectFit" @click="$.open('/pages/mine/notice')" class="InlineBlock img"></image> @click="checkObjEmpty(userInfo) ? $.open('/pages/logIn/userInfo'):$.open('/pages/logIn/logIn')">
</template> {{ userInfo.realName || userInfo.username || '请登录'}}
</top-title> </view>
<view class="user Flex BorderBox" @click="checkObjEmpty(userInfo) ? $.open('/pages/logIn/userInfo'):$.open('/pages/logIn/logIn')">
<u-avatar :src="userInfo.headUrl" :size="78"></u-avatar> <!-- <u-row justify="space-between" gutter="12" class="static-box">
<view class="name FontS_50rpx FontBold MarginL_15rpx"> <u-col span="4">
{{ userInfo.realName || userInfo.username || '请登录'}} <view class="item">
</view> <text>
</view> 1222
</view> </text>
<view class="func PositionR BorderR_20rpx BG_FFFFFF BorderBox"> <text class="label">
<view class="title FontBold FontS_40rpx"> 我排查的
常用功能 </text>
</view> </view>
<view class="list Flex Flex_Warp"> </u-col>
<view class="item Flex MarginT_10rpx PositionR" v-for="item in funcList" @click="handleClick(item)" :key="item.name"> <u-col span="4">
<image :src="$.imgSrc + item.icon" mode="aspectFit"></image> <view class="item">
<view class="info">{{ item.name }}</view> <text>
</view> 1222
</view> </text>
</view> <text class="label">
</view> 我排查的
</view> </text>
</template> </view>
</u-col>
<script> <u-col span="4">
import TopTitle from "../../components/top-title"; <view class="item">
export default { <text>
components:{TopTitle}, 1222
data() { </text>
return { <text class="label">
$:this.$, 我排查的
bgUrl1: '', </text>
userInfo: {}, </view>
timer: null, </u-col>
num: 0 </u-row> -->
// funcList: [ </view>
// { id:1,name:'',url:'/pages/logIn/userInfo',icon:'/mine/userinfo.png' }, <u-cell-group class="margin-top">
// { id:2,name:'',url:'/pages/mine/insurance',icon:'/mine/insurance.png' }, <u-cell icon="order" title="警号" :value="dataInfo.policeid" isLink></u-cell>
// { id:3,name:'',url:'',icon:'/mine/lean.png' }, <u-cell icon="account" title="身份证号" :value="dataInfo.cdescription" isLink> </u-cell>
// { id:4,name:'',url:'/pages/mine/train',icon:'/mine/train.png' }, <u-cell icon="phone" title="联系方式" :value="dataInfo.phone" isLink></u-cell>
// { id:5,name:'',url:'/pages/mine/jobfind',icon:'/mine/jobfind.png' }, </u-cell-group>
// { id:6,name:'',url:'/pages/mine/worker',icon:'/mine/jobfind.png' }, <u-cell-group style="margin-top:20rpx;padding:10rpx 20rpx">
// ] <u-cell icon="lock" title="修改密码" isLink @click='possword'></u-cell>
} </u-cell-group>
}, <view class="logout" @click="showModal">退出登录</view>
computed:{ <u-modal :show="show" @confirm="confirm" ref="uModal" :asyncClose="true" title="是否要继续退出登录?"
funcList(){ :showCancelButton="true" @cancel="show=false"></u-modal>
return [{ id:1,name:'个人信息',url:'/pages/logIn/userInfo',icon:'/mine/userinfo.png' }] </view>
} </template>
}, <script>
onShow(){ const base64Avatar =
let token = this.$.getData('token') "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAA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AdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z";
const userInfo = this.$.getData('userInfo')
if(userInfo) { import TopTitle from "../../components/top-title";
this.userInfo = userInfo export default {
} components: {
// TopTitle
this.bgUrl1 = "background-image:url('" + this.$.imgSrc + "/mine/mineBG.png');background-repeat: no-repeat;background-position: center top;background-size:100% 472rpx;" },
// if(!token){ data() {
// this.$.openNew('/pages/logIn/logIn') return {
// return show: false,
// } base64Avatar: base64Avatar,
if(this.userInfo.projectRole <= 1 && !this.timer) { $: this.$,
this.timer = setInterval(() => { bgUrl1: '',
this.getReviewNum() userInfo: {},
},10 * 1000) timer: null,
} num: 0,
}, dataInfo:{},
onHide() { // funcList: [
this.timer && clearInterval(this.timer) // { id:1,name:'',url:'/pages/logIn/userInfo',icon:'/mine/userinfo.png' },
}, // { id:2,name:'',url:'/pages/mine/insurance',icon:'/mine/insurance.png' },
onLoad() { // { id:3,name:'',url:'',icon:'/mine/lean.png' },
}, // { id:4,name:'',url:'/pages/mine/train',icon:'/mine/train.png' },
methods: { // { id:5,name:'',url:'/pages/mine/jobfind',icon:'/mine/jobfind.png' },
checkObjEmpty(obj){ // { id:6,name:'',url:'/pages/mine/worker',icon:'/mine/jobfind.png' },
if(JSON.stringify(obj) == '{}'){ // ]
return false }
} },
return true computed: {
}, // funcList() {
getBG(url){ // return [{
return "background-image:url('" + url + "');background-repeat: no-repeat;background-position: center top;background-size:100% 100%;" // id: 1,
}, // name: '',
handleClick(row) { // url: '/pages/logIn/userInfo',
this.$.open(row.url) // icon: '/mine/userinfo.png'
}, // }]
getReviewNum() { // }
this.$request.globalRequest('/hyjg-admin/mapi/projectworker/getApplyWorkerCount', {}, 'POST').then(res => {
if (res.code == 0) { },
this.num = res.data; onShow() {
} let token = this.$.getData('token')
}) const userInfo = this.$.getData('userInfo')
} if (userInfo) {
} this.userInfo = userInfo
} this.getInfo()
</script> // console.log(this.userInfo)
}
<style lang="scss" scoped> // //
page{ // this.bgUrl1 = "background-image:url('" + this.$.imgSrc + "/mine/mineBG.png');background-repeat: no-repeat;background-position: center top;background-size:100% 472rpx;"
background: #F2F2F2; // // if(!token){
} // // this.$.openNew('/pages/logIn/logIn')
// // return
.Box { // // }
padding: 30rpx; // if(this.userInfo.projectRole <= 1 && !this.timer) {
padding-top:var(--status-bar-height); // this.timer = setInterval(() => {
// this.getReviewNum()
.img { // },10 * 1000)
width: 50rpx; // }
height: 100%; },
} onHide() {
// this.timer && clearInterval(this.timer)
.img:nth-of-type(2) { },
margin-left: 20rpx; onLoad() {
}
},
.Content { methods: {
.user { //
height: 500rpx; getInfo() {
align-items: center; this.$request
} .globalRequest(
} "/hiddenDanger/auth/getOperatorInformation",
{
.func { nuserid: this.userInfo.username,
width: 100%; },
height: 430rpx; "GET"
top: -60rpx; )
padding: 30rpx; .then((res) => {
if (res.code === 200) {
.title { this.dataInfo = res.result;
margin-bottom: 20rpx; }else {
} this.$.toast(res.message)
}
.list { });
margin: auto; },
.item { //
padding: 12rpx; possword() {
width: 25%; // this.$.openNew('/pages/mine/password')
justify-content: center; uni.navigateTo({
flex-direction: column; url: '/pages/mine/password'
align-items: center; })
box-sizing: border-box; },
showModal() {
image { this.show = true;
width: 60rpx; },
height: 60rpx; confirm() {
margin-bottom: 20rpx; setTimeout(() => {
} this.$.clearData();
} this.$.openNew('/pages/logIn/logIn');
} }, 1500)
} }
} // checkObjEmpty(obj){
</style> // if(JSON.stringify(obj) == '{}'){
// return false
// }
// return true
// },
// getBG(url){
// return "background-image:url('" + url + "');background-repeat: no-repeat;background-position: center top;background-size:100% 100%;"
// },
// handleClick(row) {
// this.$.open(row.url)
// },
// getReviewNum() {
// this.$request.globalRequest('/hyjg-admin/mapi/projectworker/getApplyWorkerCount', {}, 'POST').then(res => {
// if (res.code == 0) {
// this.num = res.data;
// }
// })
// }
}
}
</script>
<style lang="scss" scoped>
page {
background: #F2F2F2;
}
.mine-box {
position: fixed;
width: 100%;
height: 100%;
background-image: url('../../static/mine/background.png');
background-size: 100% 100%;
.info-box {
padding-top: calc(var(--status-bar-height) + 80rpx);
width: 750rpx;
/* height: 667rpx; */
/* background: linear-gradient(#3677D9 0%, #45A3E6 28%, #F0F3F7 100%); */
border-radius: 0px 0px 0px 0px;
display: flex;
flex-direction: column;
align-items: center;
.name {
margin-top: 33rpx;
font-size: 40rpx;
}
image {
width: 170rpx !important;
height: 170rpx !important;
border: 8rpx solid #ffffff;
border-radius: 50%;
}
.static-box {
margin-top: 45rpx;
width: 710rpx;
height: 126rpx;
.u-col {
height: 126rpx;
border-radius: 13rpx;
.item {
height: 126rpx;
background: rgba(255, 255, 255, 0.35);
border-radius: 13rpx;
padding: 21rpx 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
text {
font-family: Arial, Arial;
font-weight: bold;
font-size: 40rpx;
color: #363F4D;
text-align: center;
font-style: normal;
text-transform: none;
}
.label {
font-family: Source Han Sans CN, Source Han Sans CN;
font-size: 28rpx;
font-weight: 400;
}
}
}
}
}
/deep/ .u-cell-group__wrapper .u-line {
border-bottom: none !important;
}
/deep/ .u-cell-group__wrapper .u-cell .u-line {
border-bottom: 1px solid #E6E6E6 !important;
}
.u-cell-group {
margin: 0 32rpx;
padding: 15rpx 20rpx;
background-color: rgba(255, 255, 255, 0.6);
border-radius: 13rpx;
/deep/ .u-cell__body {
.u-cell__title-text {
color: #5E6F8A;
font-size: 30rpx;
margin-left: 8rpx;
}
.u-icon__icon {
color: #5E6F8A;
font-size: 40rpx !important;
margin-top: 6rpx;
}
.u-cell__value {
color: #363F4D;
font-size: 28rpx;
position: relative;
top: 2rpx;
}
.uicon-arrow-right {
margin-right: -10rpx;
font-size: 30rpx !important;
}
}
.u-cell:last-child /deep/.u-line {
border-bottom: none !important;
}
.u-cell:first-child /deep/.u-line {
border-top: none !important;
}
.u-line .border-top-color {
/* border-bottom-color: #E6E6E6!important; */
}
}
.margin-top {
margin-top: 40rpx;
}
.logout {
width: 690rpx;
background-color: rgba(255, 255, 255, 0.6);
text-align: center;
margin-top: 20rpx;
margin-left: 30rpx;
padding: 27rpx 0;
border-radius: 13rpx;
font-size: 32rpx;
color: #363F4D;
font-weight: 600;
}
}
/deep/ .u-modal {
width: 580rpx !important;
}
</style>

@ -0,0 +1,161 @@
<template>
<view id="page" class="password-box">
<view class="Width100 Box BorderBox">
<u--form labelPosition="left" :model="form" :rules="rules" ref="uForm" class="form" labelWidth="100">
<!-- <u-form-item label="原密码" prop="password" borderBottom>
<u--input v-model="form.password" border="none"></u--input>
</u-form-item> -->
<u-form-item label="新密码" prop="password" borderBottom>
<u--input v-model="form.password" border="none"></u--input>
</u-form-item>
<u-form-item label="确认密码" prop="confirmPassword" borderBottom>
<u--input v-model="form.confirmPassword" border="none"></u--input>
</u-form-item>
</u--form>
<view @click="submit" class="Unit FontBold BorderBox TextCenter Width100 MarginT_30rpx BorderR_30rpx submit">
提交
</view>
<!-- <uni-forms :modelValue="formData" border>
<uni-forms-item label="道路类型">
<input v-if="isEdit" type="text" class="BorderNone Height100" v-model="formData.roadType"
placeholder="请输入道路类型" />
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{
formData.roadType
}}</text>
</uni-forms-item>
</uni-forms > -->
</view>
</view>
</template>
<script>
export default {
data() {
return {
// js
$: this.$,
rules: {
// 'password': {
// type: 'string',
// required: true,
// message: '',
// trigger: ['blur', 'change']
// },
},
form: {
confirmPassword: "",
password: ""
},
}
},
//
onLoad(e) {
},
//
onShow() {
},
//
computed: {},
//
methods: {
// sexSelect(e) {
// this.model1.userInfo.sex = e.name
// this.$refs.uForm.validateField('userInfo.sex')
// },
},
onReady() {
//setRules
this.$refs.uForm.setRules(this.rules)
},
//
onUnload() {
},
methods: {
//
submit() {
if (!this.form.password) {
this.$.toast('请输入密码')
}
else if (this.form.password != this.form.confirmPassword) {
this.$.toast('两次密码不一致')
} else {
this.$request
.globalRequest(
"/hiddenDanger/auth/updatePwd",
{
cusername: this.$.getData('userInfo').username,
nuserid: this.$.getData("token"),
nuserpwd: this.form.password,
},
"POST",
true
)
.then((res) => {
if (res.code === 200) {
this.$.toast('密码修改成功~')
setTimeout(() => {
uni.navigateBack({
delta: 1,
});
}, 2000);
} else {
this.$.toast(res.message)
}
});
}
},
},
//
onPullDownRefresh() {
},
//
onReachBottom() {
},
}
</script>
<style>
</style>
<style lang="scss" scoped>
page {
background: #F6F8FA;
}
.password-box {
position: fixed;
width: 100%;
height: 100%;
background-color: #F6F8FA;
padding: 10rpx 30rpx;
.form {
width: 690rpx;
}
/deep/ .u-form-item__body {
padding: 30rpx 10rpx;
}
.submit {
/* background: #E1EDFF; */
background: linear-gradient(90deg, #0064FF 0%, #2D99FD 100%);
color: #ffffff;
width: 690rpx !important;
height: 94rpx;
line-height: 94rpx;
border-radius: 13rpx;
margin-top: 70rpx;
font-weight: 500;
margin-left: 0;
font-size: 32rpx;
letter-spacing: 4rpx;
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Loading…
Cancel
Save