修改小程序 隐私协议,未登录不获取位置权限

修改人员不能删除的问题
main
yanzai 2 years ago
parent 37c8954a2d
commit 4b2ec5736b

@ -344,9 +344,11 @@ const user_order_columns = [{
]),
h('div', null, [
h('b', '各方应收: '),
//h('span', !!row.appointment_number ? row.appointment_number : '-'),
h('div', !!s_info ? s_info.map((item) => {
return item.account + ' ¥'+(item.amount/100)
if(item.account!='代理'){
return item.account + ' ¥'+(item.amount/100)
}
}).join('\r\n') : ''),
]),
h('div', null, [

@ -25,7 +25,13 @@ const HospitalInfo = async (latitude, longitude, cb) => {
cb(response.data.info)
})
}
const hospital = (cb = () => {}) => {
getFuzzyLocation(cb)
const hospital = (cb = () => {},status=false) => {
if(status){
getFuzzyLocation(cb)
}else{
HospitalInfo(26.536252, 101.715271, cb)
}
}
export default hospital

@ -51,9 +51,9 @@
}
})
}
const hospital_info = ref(false)
const getHospitalInfo = () => {
const getHospitalInfo = (status=false) => {
uni.$lu.hospital((info) => {
hospital_info.value = info
uni.setNavigationBarTitle({
@ -63,7 +63,7 @@
CarouselList(2)
CarouselList(3)
CarouselList(4)
})
},status)
}
const choose_type_show = ref(false)
const setOrderChooseTypeFunc = () => {
@ -154,7 +154,7 @@
}
const loginCallback = () => {
getHospitalInfo()
getHospitalInfo(true)
getUserInfo()
}

@ -198,6 +198,13 @@
}
const saveClick = async () => {
if(tongyi.value!='tongyi'){
uni.showToast({
title: "请阅读并同意用户协议",
icon:'none'
})
return false;
}
const response = !user_person_info.value.id ?
await UserPersonCreateAction(user_person_info.value) :
await UserPersonUpdateAction(user_person_info.value)
@ -207,6 +214,10 @@
})
})
}
let tongyi=ref(false)
const tongyiclick=(e)=>{
tongyi.value=e.detail.value
}
</script>
<template>
<view>
@ -284,13 +295,29 @@
</view>
</view>
<view class="break_block_wrapper"></view>
<view @click="readmeClick()" class="readme_wrapper">添加或修改体检人信息</view>
<!-- <view @click="readmeClick()" class="readme_wrapper">添加或修改体检人信息</view>
<view @click="readmeClick()" class="readme_wrapper">
即代表您已同意
<text class="blue_text_wrapper">用户服务协议</text>
<text class="blue_text_wrapper">隐私协议</text>
</view>
</view> -->
<view style="display: flex; padding-left: 30rpx; align-items: center;">
<view>
<checkbox-group @change="tongyiclick">
<label>
<checkbox value="tongyi" />已阅读并同意
</label>
</checkbox-group>
</view>
<view @click="readmeClick()" class="readme_wrapper">
<text class="blue_text_wrapper">用户服务协议</text>
<text class="blue_text_wrapper">隐私协议</text>
</view>
</view>
<view @click="saveClick()" class="add_button_wrapper">保存</view>
<view class="blank_wrapper"></view>
</view>
@ -311,7 +338,7 @@
.readme_wrapper {
font-size: 26rpx;
line-height: 50rpx;
margin-left: 30rpx;
margin-left: -10rpx;
}
.blue_text_wrapper {

@ -94,6 +94,10 @@
UserPersonList()
})
}
const delPersonClick = (id) => {
delete_active.value = id
del_show.value = true
}
</script>
<template>
<view>

Loading…
Cancel
Save