...
|
...
|
@@ -7,16 +7,18 @@ |
|
|
<u-cell :title="_.title" :isLink="![1, 5].includes(index)">
|
|
|
<template #value>
|
|
|
<template v-if="_.type === 'jump'">
|
|
|
<text class="info-text" @click="proxy.$h.jumpUrl(`${_.url}?flag=${_.flag}&title=${_.title}&isMyInfo=${_.isMyInfo}`)">{{ _.text }}</text>
|
|
|
<text class="info-text" @click="proxy.$h.jumpUrl(`${_.url}?flag=${_.flag}&title=${_.title}&isMyInfo=${_.isMyInfo}`)" :style="{ color: !['请选择', '暂无手机号'].includes(_.text) ? '#000' : '#999' }">{{ _.text }}</text>
|
|
|
</template>
|
|
|
<template v-if="_.type === 'selectData'">
|
|
|
<text class="info-text" @click="showSelectSex = true">{{ _.text !== '请选择' ? proxy.$h.optObjectValue('sexData', _.text) : _.text }}</text>
|
|
|
<text class="info-text" @click="showSelectSex = true" :style="{ color: _.text !== '请选择' ? '#000' : '#999' }">{{ _.text !== '请选择' ? proxy.$h.optObjectValue('sexData', _.text) : _.text }}</text>
|
|
|
</template>
|
|
|
<template v-if="_.type === 'upload'"><image @click="uploadAvatarHandler" class="info-avatar" :src="proxy.$h.downFile(_.imgUrl) || '/static/images/mAvatar.png'" mode="aspectFill" /></template>
|
|
|
<template v-if="_.type === 'input'"><up-input v-model="form[_.keyName]" :disabled="_.disabled" :placeholder="_.text" border="none" inputAlign="right" disabledColor="#fff"></up-input></template>
|
|
|
|
|
|
<template v-if="_.type === 'textarea'"><u-textarea v-model="form[_.keyName]" :placeholder="_.text" border="none" height="30"></u-textarea></template>
|
|
|
</template>
|
|
|
</u-cell>
|
|
|
<view class="grayLine" v-if="index === mineinfo.length - 2"></view>
|
|
|
</template>
|
|
|
</u-cell-group>
|
|
|
</view>
|
...
|
...
|
@@ -48,9 +50,9 @@ const mineinfo = ref([ |
|
|
{ keyName: 'avatar', title: '头像', text: '', type: 'upload', imgUrl: '' },
|
|
|
{ keyName: 'nickName', title: '昵称', text: '请输入昵称', type: 'input', disabled: false },
|
|
|
{ keyName: 'sex', title: '性别', text: '请选择', type: 'selectData' },
|
|
|
{ keyName: 'phone', title: '手机号', text: '110', type: 'jump', url: '/pages2/mineinfo/phone' },
|
|
|
{ keyName: 'phone', title: '手机号', text: '暂无手机号', type: 'jump', url: '/pages2/mineinfo/phone' },
|
|
|
{ keyName: 'hospital', title: '坐诊医院', text: '请选择', type: 'jump', url: '/pages2/mineinfo/hospitalList', isMyInfo: 1, flag: 'ZUOZHENYIYUAN' },
|
|
|
{ keyName: 'introduction', title: '个人简介', text: '请输入个人介绍', type: 'textarea' },
|
|
|
{ keyName: 'introduction', title: '个人介绍', text: '介绍一下自己吧', type: 'textarea' },
|
|
|
// { keyName: '', title: '标签', text: '请选择', type: 'jump', url: '/pages2/mineinfo/tag', flag: '' }, // 个人标签暂不可编辑
|
|
|
{ keyName: 'department', title: '科室', text: '请选择', type: 'jump', url: '/pages2/mineinfo/hospitalList', flag: 'KESHI' }
|
|
|
])
|
...
|
...
|
@@ -144,6 +146,9 @@ page { |
|
|
</style>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
:deep(.u-line) {
|
|
|
display: none !important;
|
|
|
}
|
|
|
.main {
|
|
|
box-sizing: border-box;
|
|
|
padding: 0 24rpx;
|
...
|
...
|
|