2024-03-21 17:52:58 +08:00
< template >
<!-- 个人资料 -- >
< view >
< form @submit ="formSubmit" >
< view class = 'personal-data' :style ="viewColor" >
< view class = 'list' >
< view class = 'item acea-row row-between-wrapper' >
< view > 头像 < / view >
< view class = "avatar-box" >
< image : src = "userInfo.avatar || '/static/images/f.png'" > < / image >
< / view >
< / view >
< view class = 'item acea-row row-between-wrapper' >
< view > 昵称 < / view >
< view class = 'input acea-row row-between-wrapper' >
< input type = 'nickname' name = 'nickname' : value = 'userInfo.nickname' maxlength = "16" class = 'id' disabled > < / input >
< text class = 'iconfont icon-suozi' > < / text >
< / view >
< / view >
< view class = 'item acea-row row-between-wrapper' >
< view > 手机号码 < / view >
< navigator url = "/pages/users/user_phone/index" hover -class = " none " class = "input"
v - if = "!userInfo.phone" >
点击绑定手机号 < text class = "iconfont icon-xiangyou" > < / text >
< / navigator >
< view class = 'input acea-row row-between-wrapper' v-else >
< input type = 'text' disabled = 'true' name = 'phone' : value = 'userInfo.phone' class = 'id' > < / input >
< text class = 'iconfont icon-suozi' > < / text >
< / view >
< / view >
2024-05-29 15:46:29 +08:00
< view class = 'item acea-row row-between-wrapper' >
< view > 姓名 < / view >
< view class = 'input acea-row row-between-wrapper' >
< input type = 'text' : value = 'userInfo.real_name' disabled = 'true' class = 'id' > < / input >
< text class = 'iconfont icon-suozi' > < / text >
< / view >
< / view >
2024-03-21 17:52:58 +08:00
< view class = 'item acea-row row-between-wrapper' >
2024-05-19 11:52:22 +08:00
< view > 身份证 < / view >
2024-03-21 17:52:58 +08:00
< view class = 'input acea-row row-between-wrapper' >
2024-05-19 11:52:22 +08:00
< input type = 'text' : value = 'userInfo.card_id' disabled = 'true' class = 'id' > < / input >
2024-03-21 17:52:58 +08:00
< text class = 'iconfont icon-suozi' > < / text >
< / view >
< / view >
< view class = 'item acea-row row-between-wrapper' v-for ="(item,index) in userInfo.extend_info" :key ="index" >
< view class = "acea-row row-middle" > { { item . title } } < text v-if ="item.is_require==1" class="asterisk iconfont icon-xinghao" > < / text > < / view >
<!-- text -- >
< view class = 'input' v-if ="item.type == 'input'" >
< input type = 'text' v-model ="item.value" :placeholder="item.msg" placeholder-class="placeholder" > < / input >
< / view >
<!-- number -- >
< view class = 'input' v-if ="item.type == 'int'" >
< input type = 'number' v-model ="item.value" :placeholder="item.msg" placeholder-class="placeholder" > < / input >
< / view >
<!-- email -- >
< view class = 'input' v-if ="item.type == 'email'" >
< input type = 'text' v-model ="item.value" :placeholder="item.msg" placeholder-class="placeholder" > < / input >
< / view >
<!-- data -- >
< view class = "input acea-row row-middle row-right" v-if ="item.type=='date'" >
< picker mode = "date" :value ="item.value" start = "1970-01-01" @change ="bindDateChange($event,index)" >
< input type = "text" v -model = " item.value " :placeholder ="item.msg" placeholder -class = ' placeholder ' / >
< / picker >
< text class = 'iconfont icon-xiangyou' > < / text >
< / view >
<!-- id -- >
< view class = 'input' v-if ="item.type == 'id_card'" >
< input type = 'idcard' v-model ="item.value" :placeholder="item.msg" placeholder-class="placeholder" > < / input >
< / view >
<!-- phone -- >
< view class = 'input' v-if ="item.type == 'phone'" >
< input type = 'tel' v-model ="item.value" :placeholder="item.msg" placeholder-class="placeholder" > < / input >
< / view >
<!-- radio -- >
< view class = "input" v-if ="item.type=='radio'" >
< radio -group @ change = "radioChange($event, item)" >
< label class = "label" v-for ="(itm,idx) in item.content" :key ="idx" >
< radio :value ="idx.toString()" : checked = "item.value == idx.toString()" > { { itm } } < / radio >
< / label >
< / r a d i o - g r o u p >
< / view >
<!-- address -- >
< view class = "input acea-row row-middle row-right" v-if ="item.type=='address'" >
< input type = 'text' v-model ="item.value" :placeholder="item.msg" placeholder-class="placeholder" > < / input >
< / view >
< / view >
< / view >
2024-05-29 15:46:29 +08:00
< button class = 'modifyBnt' formType = "submit" > 退出 < / button >
2024-03-21 17:52:58 +08:00
< / view >
< / form >
< canvas canvas -id = " canvas " v -if = " canvasStatus "
: style = "{width: canvasWidth + 'px', height: canvasHeight + 'px',position: 'absolute',left:'-100000px',top:'-100000px'}" > < / canvas >
< / view >
< / template >
< script >
2024-03-21 18:05:36 +08:00
2024-03-21 17:52:58 +08:00
import { getUserSetting , userSettingEdit } from '@/api/user.js' ;
import { toLogin } from '@/libs/login.js' ;
import { mapGetters } from "vuex" ;
import dayjs from "@/plugin/dayjs/dayjs.min.js" ;
export default {
data ( ) {
return {
userInfo : { } ,
loginType : 'h5' , //app.globalData.loginType
userIndex : 0 ,
canvasWidth : "" ,
canvasHeight : "" ,
canvasStatus : false ,
mp _is _new : this . $Cache . get ( 'MP_VERSION_ISNEW' ) || false ,
} ;
} ,
components : { } ,
computed : mapGetters ( [ 'isLogin' , 'viewColor' , 'keyColor' ] ) ,
watch : { } ,
onLoad ( ) {
if ( this . isLogin ) {
this . getUserSetting ( ) ;
} else {
toLogin ( )
}
} ,
onShow ( ) { } ,
methods : {
radioChange ( e , item ) {
item . value = e . detail . value
} ,
bindDateChange : function ( e , index ) {
this . userInfo [ 'extend_info' ] [ index ] . value = e . detail . value
} ,
/ * *
* 获取用户详情
* /
getUserSetting : function ( ) {
let that = this ;
getUserSetting ( ) . then ( res => {
that . $set ( that , 'userInfo' , res . data ) ;
} ) ;
} ,
/ * *
* 上传文件
*
* /
uploadpic : function ( ) {
let that = this ;
that . canvasStatus = true
that . $util . uploadImageChange ( 'upload/image' , ( res ) => {
that . userInfo . avatar = res . data . url ;
that . canvasStatus = false
} , ( res ) => {
that . canvasStatus = false
} , ( res ) => {
that . canvasWidth = res . w
that . canvasHeight = res . h
} ) ;
} ,
// 微信头像获取
onChooseAvatar ( e ) {
const {
avatarUrl
} = e . detail
this . $util . uploadImgs ( 'upload/image' , avatarUrl , ( res ) => {
this . userInfo . avatar = res . data . url
} , ( err ) => {
console . log ( err )
} )
} ,
/ * *
* 提交修改
* /
formSubmit : function ( e ) {
2024-05-29 15:46:29 +08:00
this . $util . Tips ( {
title : '退出中...'
2024-03-21 17:52:58 +08:00
} ) ;
2024-05-29 15:46:29 +08:00
setTimeout ( ( ) => {
uni . switchTab ( {
url : '/pages/user/index'
} )
} , 500 )
// let that = this,
// value = e.detail.value;
// if (!value.nickname) return that.$util.Tips({
// title: '用户姓名不能为空'
// });
// value.avatar = this.userInfo.avatar;
// for (var i = 0; i < that.userInfo.extend_info.length; i++) {
// let data = that.userInfo.extend_info[i]
// if (data.is_require || data.value) {
// if (data.type === 'date' || data.type === 'address') {
// if (!data.value) {
// return that.$util.Tips({
// title: `${data.msg}`
// });
// }
// }
// if(data.type === 'input'){
// if (!data.value.trim()) {
// return that.$util.Tips({
// title: `${data.msg}`
// });
// }
// }
// if (data.type === 'int') {
// if (data.value <= 0) {
// return that.$util.Tips({
// title: `${data.msg}`
// });
// }
// }
// if (data.type === 'email') {
// if (data.is_require) {
// if (!data.value) {
// return that.$util.Tips({
// title: `${data.msg}`
// });
// }
// }
// if (!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(data.value)) {
// return that.$util.Tips({
// title: '请填写正确的邮箱'
// });
// }
// }
// if (data.type === 'phone') {
// if (data.is_require) {
// if (!data.value) {
// return that.$util.Tips({
// title: `${data.msg}`
// });
// }
// }
// if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(data.value)) {
// return that.$util.Tips({
// title: `${data.msg}`
// });
// }
// }
// if (data.type === 'id_card') {
// if (data.is_require) {
// if (!data.value) {
// return that.$util.Tips({
// title: `${data.msg}`
// });
// }
// }
// if (!/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/i.test(data.value)) {
// return that.$util.Tips({
// title: '请填写正确的身份证号码'
// });
// }
// }
// }
// }
// value.extend_info = that.userInfo.extend_info;
// userSettingEdit(value).then(res => {
// that.$util.Tips({
// title: res.message,
// icon: 'success'
// });
// setTimeout(()=>{
// uni.switchTab({
// url: '/pages/user/index'
// })
// },500)
// }).catch(msg => {
// return that.$util.Tips({
// title: msg || '保存失败,您并没有修改'
// });
// });
2024-03-21 17:52:58 +08:00
}
}
}
< / script >
< style >
. placeholder {
color : # ccc ;
font - size : 30 rpx ;
}
< / style >
< style scoped lang = "scss" >
/ d e e p / r a d i o . w x - r a d i o - i n p u t . w x - r a d i o - i n p u t - c h e c k e d ,
/ d e e p / u n i - r a d i o . u n i - r a d i o - i n p u t . u n i - r a d i o - i n p u t - c h e c k e d {
border : 1 px solid var ( -- view - theme ) ! important ;
background - color : var ( -- view - theme ) ! important ;
}
/ d e e p / c h e c k b o x . u n i - c h e c k b o x - i n p u t . u n i - c h e c k b o x - i n p u t - c h e c k e d ,
/ d e e p / c h e c k b o x . w x - c h e c k b o x - i n p u t . w x - c h e c k b o x - i n p u t - c h e c k e d {
border : 1 px solid var ( -- view - theme ) ! important ;
background - color : var ( -- view - theme ) ! important ;
color : # fff ! important ;
}
. personal - data {
padding - bottom : 50 rpx ;
}
. dater {
width : 400 rpx ;
}
. grab {
color : # ccc ! important ;
}
. asterisk {
color : red ;
font - size : 20 rpx ;
margin - left : 6 rpx ;
}
. cartcolor {
color : var ( -- view - theme ) ;
border : 1 px solid var ( -- view - theme ) ;
}
. personal - data . wrapper {
margin : 10 rpx 0 ;
background - color : # fff ;
padding : 36 rpx 30 rpx 13 rpx 30 rpx ;
}
. personal - data . wrapper . title {
margin - bottom : 30 rpx ;
font - size : 32 rpx ;
color : # 282828 ;
}
. personal - data . wrapper . wrapList . item {
width : 690 rpx ;
height : 160 rpx ;
background - color : # f8f8f8 ;
border - radius : 20 rpx ;
margin - bottom : 22 rpx ;
padding : 0 30 rpx ;
position : relative ;
border : 2 rpx solid # f8f8f8 ;
box - sizing : border - box ;
}
. personal - data . wrapper . wrapList . item . on {
border - color : # e93323 ;
border - radius : 20 rpx ;
background - image : url ( " data : image / png ; base64 , iVBORw0KGgoAAAANSUhEUgAAArIAAACgCAYAAADw + I85AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbW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Zq6WF6L6/DOmVchCwDwdcGWY+0q7N+ZKpa4vSj3y2F7H9ptr9IZvh5CFgDgm+UVx8UHgm0Ye7ehXaUVsEIWAOBLLEq0fTb+lqFdnb0d8WtxXS7fcq4EIQsA8HY5Pmc7bs9jAt0MbJ6HXZe460YLuhna7eDrVjF/j+x1yM9lHo48AytkAQAOY7EnYu9Cu7KadsRtd7DXqtzvqgTgdhTm3z2Gldmq/K0n0ZBCFgDgdd02UkM5UPNK6uMbf0eO2nyQV161XYanq5lX5fZTnpn91jGCfVUNAMB+OdwWOyL2f++I2KHH8rPrrds/cvDYV/XiTWhXkuOp/WEAAOy3axXy944QfY9uNXc7mK9P7Lnnlegf4UT/FV/IAgC8bHukII8HPB7g9z6W3/XSY32nvEK8DKe5SixkAQBecbkVcmlHfH7G9okRYvj+1c/chz9OLKqFLADAO23vUrAKhz0jV7dt10uP+dXhniP2YgxvjpAFANhvO+gejvAYD6885lfJK7D5oK44ljfH9lsAAPttL/o9HuExHl95zK+QdyS4HtubI2QBAPbbXp1cH+Ex1q885rEd4pS7J/F/GQAAvD1sx260EStkAQBelr4gZKtXHvNYlmOOWCELAPCy7X/2P8aBWBevPOYx5JXY2djfHCELALDf9oFYxzi+6PKVxzxGxF5N4c0RsgAA++3a4/WQ4wUxPF8ZfTji85lPJWKFLADAy3JUbp9565Db
background - size : 100 % 100 % ;
background - color : # fff9f9 ;
background - repeat : no - repeat ;
}
. personal - data . wrapper . wrapList . item . picTxt {
width : 445 rpx ;
}
. personal - data . wrapper . wrapList . item . picTxt . pictrue {
width : 96 rpx ;
height : 96 rpx ;
position : relative ;
}
. personal - data . wrapper . wrapList . item . picTxt . pictrue image {
width : 100 % ;
height : 100 % ;
border - radius : 50 % ;
}
. personal - data . wrapper . wrapList . item . picTxt . pictrue . alter {
width : 30 rpx ;
height : 30 rpx ;
border - radius : 50 % ;
position : absolute ;
bottom : 0 ;
right : 0 ;
}
. personal - data . wrapper . wrapList . item . picTxt . text {
width : 325 rpx ;
}
. personal - data . wrapper . wrapList . item . picTxt . text . name {
width : 100 % ;
font - size : 30 rpx ;
color : # 282828 ;
}
. personal - data . wrapper . wrapList . item . picTxt . text . phone {
font - size : 24 rpx ;
color : # 999 ;
margin - top : 10 rpx ;
}
. personal - data . wrapper . wrapList . item . bnt {
font - size : 24 rpx ;
background - color : # fff ;
border - radius : 27 rpx ;
width : 140 rpx ;
height : 54 rpx ;
border : 2 rpx solid # e93323 ;
}
. personal - data . wrapper . wrapList . item . currentBnt {
position : absolute ;
right : 0 ;
top : 0 ;
font - size : 26 rpx ;
background - color : rgba ( 233 , 51 , 35 , 0.1 ) ;
width : 140 rpx ;
height : 48 rpx ;
border - radius : 0 20 rpx 0 20 rpx ;
}
. personal - data . list {
margin - top : 15 rpx ;
background - color : # fff ;
}
. personal - data . list . item {
padding : 30 rpx 30 rpx 30 rpx 0 ;
border - bottom : 1 rpx solid # f2f2f2 ;
margin - left : 30 rpx ;
font - size : 30 rpx ;
color : # 282828 ;
. label {
margin - right : 30 rpx ;
}
}
. personal - data . list . item . phone {
width : 160 rpx ;
height : 56 rpx ;
font - size : 24 rpx ;
color : # fff ;
line - height : 56 rpx ;
border - radius : 32 rpx
}
. personal - data . list . item . pictrue {
width : 88 rpx ;
height : 88 rpx ;
}
. personal - data . list . item . pictrue image {
width : 100 % ;
height : 100 % ;
border - radius : 50 % ;
}
. personal - data . list . item . input {
width : 460 rpx ;
text - align : right ;
color : # cccccc ;
input {
text - align : right ;
}
. picker {
width : 400 rpx ;
}
}
. personal - data . list . item . input . id {
width : 414 rpx ;
}
. personal - data . list . item . input . iconfont {
font - size : 28 rpx ;
color : # cccccc ;
margin - left : 10 rpx ;
}
. personal - data . modifyBnt {
font - size : 32 rpx ;
color : # fff ;
width : 690 rpx ;
height : 90 rpx ;
border - radius : 50 rpx ;
text - align : center ;
line - height : 90 rpx ;
margin : 76 rpx auto 0 auto ;
background - color : var ( -- view - theme ) ; ;
}
. personal - data . logOut {
font - size : 32 rpx ;
text - align : center ;
width : 690 rpx ;
height : 90 rpx ;
border - radius : 45 rpx ;
margin : 30 rpx auto 0 auto ;
}
. avatar - box {
width : 96 rpx ;
height : 96 rpx ;
image {
width : 100 % ;
height : 100 % ;
border - radius : 50 % ;
border : 1 px solid # eee ;
}
}
< / style >