作者 韩昌

修改隐私协议

... ... @@ -29,10 +29,10 @@
"color" : "#000"
},
"buttonRefuse" : {
"color" : "##c6cdd4"
"color" : "#c6cdd4"
},
"buttonVisitor" : {
"color" : "##c6cdd4"
"color" : "#c6cdd4"
}
}
}
\ No newline at end of file
... ...
... ... @@ -2,8 +2,8 @@
"name" : "宠研兽医",
"appid" : "__UNI__AB7B27B",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 1010,
"versionName" : "1.0.2",
"versionCode" : 1020,
"transformPx" : false,
"extensions" : {
"uni-cloud-verify" : {} // 启用一键登录扩展,值为空对象即可
... ...
... ... @@ -4,7 +4,7 @@
<view style="background-color: #fff">
<u-cell-group>
<template v-for="(_, index) in mineinfo">
<u-cell :title="_.title" :isLink="![1, 6].includes(index)">
<u-cell :title="_.title" :isLink="_.isLink">
<!-- <u-cell :title="_.title" isLink> -->
<template #value>
<template v-if="_.type === 'jump'">
... ... @@ -43,21 +43,21 @@ import { ref, getCurrentInstance, ComponentPublicInstance } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
import { storeToRefs } from 'pinia'
import { useSelectDataStore } from '../../store/selectData'
import { getUserInfo, updateChange_userinfo, getDepartment,getIndex } from '../../api'
import { sUserInfoType, ChangeUserInfoType, IndexListType,IndexType } from '../../types'
import { getUserInfo, updateChange_userinfo, getDepartment, getIndex } from '../../api'
import { sUserInfoType, ChangeUserInfoType, IndexListType, IndexType } from '../../types'
const { proxy } = getCurrentInstance() as { proxy: ComponentPublicInstance }
const { SelectDepartmentList, SelectHospitalList } = storeToRefs(useSelectDataStore())
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: '暂无手机号', type: 'jump', url: '/pages2/mineinfo/phone' },
{ keyName: 'hospital', title: '坐诊医院', text: '请选择', type: 'jump', url: '/pages2/mineinfo/hospitalList', isMyInfo: 1, flag: 'ZUOZHENYIYUAN' },
{ keyName: 'avatar', title: '头像', text: '', type: 'upload', imgUrl: '', isLink: true },
{ keyName: 'nickName', title: '昵称', text: '请输入昵称', type: 'input', disabled: false, isLink: false },
{ keyName: 'sex', title: '性别', text: '请选择', type: 'selectData', isLink: true },
{ keyName: 'phone', title: '手机号', text: '暂无手机号', type: 'jump', url: '/pages2/mineinfo/phone', isLink: true },
{ keyName: 'hospital', title: '坐诊医院', text: '请选择', type: 'jump', url: '/pages2/mineinfo/hospitalList', isMyInfo: 1, flag: 'ZUOZHENYIYUAN', isLink: true },
// { keyName: '', title: '标签', text: '请选择', type: 'jump', url: '/pages2/mineinfo/tag', flag: '' }, // 个人标签暂不可编辑
{ keyName: 'department', title: '科室', text: '请选择', type: 'jump', url: '/pages2/mineinfo/hospitalList', flag: 'KESHI' }
{ keyName: 'department', title: '科室', text: '请选择', type: 'jump', url: '', flag: 'KESHI', isLink: false }
// { keyName: 'introduction', title: '个人介绍', text: '介绍一下自己吧', type: 'textarea' }
])
... ... @@ -129,7 +129,10 @@ const confirmEditUserInfoHandler = async () => {
const getIndexDataHandler = async () => {
const { result }: { result: IndexType } = await getIndex()
if(![20,'20'].includes(result.examineState)) mineinfo.value[5].url = ''
if (![20, '20'].includes(result.examineState)) {
mineinfo.value[5].url = ''
mineinfo.value[5].isLink = false
}
// authState.value = Number(result.examineState)
}
... ... @@ -139,7 +142,7 @@ onLoad(() => {
})
onShow(() => {
getIndexDataHandler()
// getIndexDataHandler()
if (SelectDepartmentList.value.length > 0) {
mineinfo.value[5].text = SelectDepartmentList.value.map((_: { id: string; name: string }) => _.name).join()
... ...
... ... @@ -266,17 +266,17 @@ let permissionMap = {
"CAMERA_EXTERNAL_STORAGE": {
"name": "android.permission.READ_EXTERNAL_STORAGE,android.permission.WRITE_EXTERNAL_STORAGE,android.permission.CAMERA",
"title": "相机/相册权限说明",
"content": "便于您使用该功能上传您的照片/图片/视频及用于更换头像、上传资质证明、发布产品/需求、下载、与客服沟通等场景中读取和写入相册和文件内容"
"content": "宠研兽医对存储空间/照片/相机/摄像头权限申请说明:便于您使用该功能上传您的照片/图片/视频及用于更换头像、意见反馈、保存相册、发布商品/分享、下载与客服沟通等场景中读取和写入相册和文件内容。"
},
"CAMERA": {
"name": "android.permission.CAMERA",
"title": "相机权限说明",
"content": "上传资质信息、更改头像信息等模块拍照上传照片需要使用摄像头,是否允许使用摄像头"
"content": "宠研兽医对存储空间/照片/相机/摄像头权限申请说明:便于您使用该功能上传您的照片/图片/视频及用于更换头像、意见反馈、保存相册、发布商品/分享、下载与客服沟通等场景中读取和写入相册和文件内容。"
},
"EXTERNAL_STORAGE": {
"name": "android.permission.READ_EXTERNAL_STORAGE,android.permission.WRITE_EXTERNAL_STORAGE",
"title": "相册权限说明",
"content": "便于您使用该功能上传您的照片/图片/视频及用于更换头像、上传资质证明、发布产品/需求、下载、与客服沟通等场景中读取和写入相册和文件内容"
"content": "宠研兽医对存储空间/照片/相机/摄像头权限申请说明:便于您使用该功能上传您的照片/图片/视频及用于更换头像、意见反馈、保存相册、发布商品/分享、下载与客服沟通等场景中读取和写入相册和文件内容。"
}
},
"ios": {}
... ... @@ -354,7 +354,6 @@ function premissionCheck(permission) {
if (flag == false) { // 未完全授权
showViewDesc(permission);
requestAndroidPermission(permissionMap[plat][permission]["name"]).then((res) => {
view.close();
if (res == -1) {
uni.showModal({
title: '提示',
... ... @@ -363,6 +362,10 @@ function premissionCheck(permission) {
success: (res) => {
if (res.confirm) {
gotoAppPermissionSetting()
view.close();
}
if(res.cancel){
view.close();
}
}
})
... ...