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