修改
This commit is contained in:
parent
b12b9ebe85
commit
f6ee498b48
@ -60,14 +60,11 @@
|
|||||||
.rate {
|
.rate {
|
||||||
margin: 30rpx auto;
|
margin: 30rpx auto;
|
||||||
width: 650rpx;
|
width: 650rpx;
|
||||||
height: 600rpx;
|
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border: 1px solid #E6E6E6;
|
border: 1px solid #E6E6E6;
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
color: #E6E6E6;
|
color: #E6E6E6;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
|
|
||||||
|
|
||||||
.itemimgs {
|
.itemimgs {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
@ -122,7 +119,7 @@
|
|||||||
.upload {
|
.upload {
|
||||||
margin: 30rpx auto;
|
margin: 30rpx auto;
|
||||||
width: 650rpx;
|
width: 650rpx;
|
||||||
height: 600rpx;
|
height: 255rpx;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border: 1px solid #E6E6E6;
|
border: 1px solid #E6E6E6;
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="Commodity" @tap="uploadImag">
|
<view class="Commodity" @tap="uploadImag">
|
||||||
<image class="picture" :src="myimg" mode=""></image>
|
<image class="picture" :src="myimg" mode="" v-if="myimg"></image>
|
||||||
|
<image class="picture" :src="baseurl + appPersonallist.avatar" mode="" v-else></image>
|
||||||
<view class="">
|
<view class="">
|
||||||
点击编辑头像
|
点击编辑头像
|
||||||
</view>
|
</view>
|
||||||
@ -38,8 +39,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="nursetype " style="">
|
<view class="nursetype " style="">
|
||||||
护理站:
|
护理站:
|
||||||
<text v-for='(uitem,index) in appPersonallist.nurseStationSysUserVOList'> {{uitem.nurseStationName}}
|
<text v-for='(uitem,uindex) in appPersonallist.nurseStationSysUserVOList' :key="uindex">
|
||||||
<text v-if="index!=appPersonallist.nurseStationSysUserVOList.length-1">,</text>
|
{{uitem.nurseStationName}}
|
||||||
|
<text v-if="uindex!=appPersonallist.nurseStationSysUserVOList.length-1">,</text>
|
||||||
</text>
|
</text>
|
||||||
<!-- {{getNurseStationName(appPersonallist)}} -->
|
<!-- {{getNurseStationName(appPersonallist)}} -->
|
||||||
</view>
|
</view>
|
||||||
@ -64,7 +66,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="rate" v-else>
|
<view class="rate" v-else>
|
||||||
<view class="itemimgs" v-for="(item,index) in certificateimg">
|
<view class="itemimgs" v-for="(item,index) in certificateimg" :key="index">
|
||||||
<image class="delimg" src="../../static/gb2.png" mode="" @tap='delimg(item)'>
|
<image class="delimg" src="../../static/gb2.png" mode="" @tap='delimg(item)'>
|
||||||
</image>
|
</image>
|
||||||
<image class="itemimg" :src="item" mode=""></image>
|
<image class="itemimg" :src="item" mode=""></image>
|
||||||
@ -170,21 +172,18 @@
|
|||||||
var that = this;
|
var that = this;
|
||||||
uni.chooseImage({
|
uni.chooseImage({
|
||||||
count: 1,
|
count: 1,
|
||||||
sourceType: ['album'],
|
|
||||||
success(res) {
|
success(res) {
|
||||||
that.appPersonallist.avatar = res.tempFilePaths[0]
|
|
||||||
that.myimg = res.tempFilePaths[0]
|
|
||||||
that.image = true
|
that.image = true
|
||||||
|
that.myimg = res.tempFilePaths[0]
|
||||||
|
that.appPersonallist.avatar = res.tempFilePaths[0]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//个人信息
|
//个人信息
|
||||||
myInfo() {
|
myInfo() {
|
||||||
this.certificateimg = []
|
|
||||||
nurseAppletPersonCenter(this.nursePersonId).then(res => {
|
nurseAppletPersonCenter(this.nursePersonId).then(res => {
|
||||||
res.data.sex == 'MALE' ? res.data.sex = '男' : ''
|
res.data.sex == 'MALE' ? res.data.sex = '男' : ''
|
||||||
res.data.sex == 'FEMALE' ? res.data.sex = '女' : ''
|
res.data.sex == 'FEMALE' ? res.data.sex = '女' : ''
|
||||||
this.myimg = baseurl + res.data.avatar
|
|
||||||
res.data.positionalTitleLevel == 'PRIMARY_LEVEL' ? res.data.positionalTitleLevelvalue = '初级' :
|
res.data.positionalTitleLevel == 'PRIMARY_LEVEL' ? res.data.positionalTitleLevelvalue = '初级' :
|
||||||
''
|
''
|
||||||
res.data.positionalTitleLevel == 'MIDDLE_LEVEL' ? res.data.positionalTitleLevelvalue = '中级' :
|
res.data.positionalTitleLevel == 'MIDDLE_LEVEL' ? res.data.positionalTitleLevelvalue = '中级' :
|
||||||
@ -216,13 +215,17 @@
|
|||||||
},
|
},
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
success(res) {
|
success(res) {
|
||||||
|
console.log(that.appPersonallist.nurseStationPersonCheckList.length, that
|
||||||
|
.uploadcertificateimg.length)
|
||||||
var img = {
|
var img = {
|
||||||
certificateUrl: JSON.parse(res.data).imgUrl
|
certificateUrl: JSON.parse(res.data).imgUrl
|
||||||
}
|
}
|
||||||
that.appPersonallist.nurseStationPersonCheckList.push(img)
|
that.appPersonallist.nurseStationPersonCheckList.push(img)
|
||||||
if (that.appPersonallist.nurseStationPersonCheckList.length == that
|
if (that.appPersonallist.nurseStationPersonCheckList.length == that
|
||||||
.certificateimg.length) {
|
.uploadcertificateimg.length) {
|
||||||
that.gofinish();
|
that.gofinish();
|
||||||
|
that.appPersonallist.nurseStationPersonCheckList = []
|
||||||
|
that.uploadcertificateimg = []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -237,7 +240,7 @@
|
|||||||
if (this.image) {
|
if (this.image) {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: baseurl + '/nurseApp/personLogin/updateHeadAvatarHead',
|
url: baseurl + '/nurseApp/personLogin/updateHeadAvatarHead',
|
||||||
filePath: that.myimg, //file: 二进制(filePath)
|
filePath: that.appPersonallist.avatar, //file: 二进制(filePath)
|
||||||
name: 'file',
|
name: 'file',
|
||||||
formData: { //多余值
|
formData: { //多余值
|
||||||
'userId': that.appPersonallist.userId,
|
'userId': that.appPersonallist.userId,
|
||||||
|
|||||||
@ -54,7 +54,7 @@ const store = new Vuex.Store({
|
|||||||
withSubscriptions: true,
|
withSubscriptions: true,
|
||||||
success(res) {
|
success(res) {
|
||||||
if (res.authSetting['scope.subscribeMessage']) {} else {
|
if (res.authSetting['scope.subscribeMessage']) {} else {
|
||||||
contxt.commit('subscribesuccess')
|
contxt.commit('personsubscribesuccess')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user