修复我的地址按钮遮挡的bug

This commit is contained in:
2024-11-15 14:23:41 +08:00
parent ba5563e7bb
commit a35ad49431
4 changed files with 276 additions and 291 deletions

View File

@@ -43,12 +43,6 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#EAF2FF"
}
}, {
"path": "pages/cate/cate",
"style": {
"navigationBarTitleText": "商城"
}
// "needLogin": true
},
{
"path": "pages/cate/index",

View File

@@ -34,8 +34,8 @@
<!-- <image class="banner" mode="aspectFill" src="/static/home/banner.png"></image> -->
</view>
<!-- 导航栏 v-if="isShow_envVersion==false" -->
<view class="nav" v-if="isShow_envVersion==false">
<!-- 导航栏 -->
<view class="nav">
<view class="nav_service" @click="goYard">
<view class="nav_service_img">
<image src="../../static/home/bg1.png" mode=""></image>
@@ -56,22 +56,15 @@
</view>
<view class="doctor_list" v-if="isShow_envVersion==false" @click="goYard">
<view class="doctor_list" @click="goYard">
医生列表
<view class="info">
更多 <text class="iconfont icon-jiantou1"></text>
</view>
</view>
<view class="doctor_list" v-if="isShow_envVersion" @click="goShop">
商品列表
<view class="info">
更多 <text class="iconfont icon-jiantou1"></text>
</view>
</view>
<!-- 医生列表 -->
<view class="" v-if="isShow_envVersion==false">
<view class="">
<view class="list" @click="goLookDoctor(item.id)" v-for="(item,index) in doctorList" :key="item.id">
<!-- 图片部分 -->
<view class="list_info">
@@ -121,47 +114,6 @@
</view>
<view class="lists" v-if="isShow_envVersion">
<!-- 图片部分 -->
<!-- <view class="list_lefts" v-for="(item,index) in shopList" :key="item.id">
<image :src="item.image||'https://p3.maiyaole.com/img/971/971752/org_org.jpg?v=1'" mode=""></image>
<view class="its">
<view class="it_names">{{item.name}}</view>
<view class="it_infos">{{item.desc}}</view>
<view class="it_prices">
<text>{{item.price}}</text>
<text class="nums">x{{item.num}}</text>
</view>
</view>
</view> -->
<view class="list_info">
<view class="list_left">
<image src="https://p3.maiyaole.com/img/971/971752/org_org.jpg?v=1" mode=""></image>
<view class="it">
<view class="it_name">日康对乙酰氨基酚片0.3g*12*2/</view>
<view class="it_info">清热解毒,咽喉肿痛,牙痛</view>
<view class="it_price">
<text>34.00</text>
<text class="num">x1</text>
</view>
</view>
</view>
</view>
<view class="list_info">
<view class="list_left" @click="goList(2)">
<image src="https://p2.maiyaole.com/img/item/202210/24/202210241042513.jpg" mode=""></image>
<view class="it">
<view class="it_name">同仁堂 六味地黄丸(浓缩丸) 200/</view>
<view class="it_info">滋阴补肾用于阴肾亏损头晕耳鸣腰膝酸软骨蒸潮热盗汗遗精</view>
<view class="it_price">
<text>22.00</text>
<text class="num">x1</text>
</view>
</view>
</view>
</view>
</view>
<!-- 遮罩层 -->
<view class="bg-" v-if="bgShow" @click="bgShow=false">
@@ -257,23 +209,22 @@
methods: {
goYard() {
//订阅消息
uni.requestSubscribeMessage({
tmplIds: ['JdSs08cMSiL17xwwHZ8fZ5UBUqeY0eKAuvyW7n4Fl20',
'OERMugiahk-aKRVH9GHmdJCRBE3yldzEKTzbMCJhY6U',
'p-Ix0uIuwPKxm-_yKDlI8mkI-niUgPtaMUZyAaa5vvA'
],
complete: (res) => {
// console.log(res, 'xxxxxxxxxxxx');
uni.navigateTo({
url: '/pages/Inquiries/Inquiries?type=' + 1
})
}
})
},
goShop() {
uni.switchTab({
url: '/pages/cate/cate'
})
uni.navigateTo({
url: '/pages/Inquiries/Inquiries?type=' + 1
})
// uni.requestSubscribeMessage({
// tmplIds: ['JdSs08cMSiL17xwwHZ8fZ5UBUqeY0eKAuvyW7n4Fl20',
// 'OERMugiahk-aKRVH9GHmdJCRBE3yldzEKTzbMCJhY6U',
// 'p-Ix0uIuwPKxm-_yKDlI8mkI-niUgPtaMUZyAaa5vvA'
// ],
// complete: (res) => {
// // console.log(res, 'xxxxxxxxxxxx');
// uni.navigateTo({
// url: '/pages/Inquiries/Inquiries?type=' + 1
// })
// }
// })
},
// 线上复诊
golist() {

View File

@@ -1,190 +1,192 @@
<template>
<view class="container safe-area-inset-bottom">
<!-- 基础信息 -->
<view class="card">
<view class="card_title">
基础信息
</view>
<!-- 姓名 -->
<view class="card_name">
<text>姓名</text>
<u-input v-model="names" input-align="right" placeholder="请输入真实姓名"
placeholder-style="text-align:right;color: #94A3B8;" :type="type" />
</view>
<!-- 身份证号 -->
<view class="card_name">
<text>身份证号</text>
<u-input v-model="form.identityCardNo" maxlength="18" input-align="right" placeholder="已经填写无法修改,请慎重填写"
placeholder-style="text-align:right;color: #94A3B8;padding-right:5px;" @input="inputChange"
:type="type" />
</view>
<!-- 性别 -->
<view class="card_name">
<text>性别</text>
<u-input v-model="form.sex" input-align="right" placeholder="-"
placeholder-style="text-align:right;color: #94A3B8;" :type="type" />
</view>
<!-- 年龄 -->
<view class="card_name">
<text>年龄</text>
<u-input v-model="form.age" input-align="right" placeholder="-"
placeholder-style="text-align:right;color: #94A3B8;" :type="type" />
</view>
<view class="container safe-area-inset-bottom">
<view class="card-box">
<!-- 基础信息 -->
<view class="card">
<view class="card_title">
基础信息
</view>
<!-- 姓名 -->
<view class="card_name">
<text>姓名</text>
<u-input v-model="names" input-align="right" placeholder="请输入真实姓名"
placeholder-style="text-align:right;color: #94A3B8;" :type="type" />
</view>
<!-- 身份证号 -->
<view class="card_name">
<text>身份证号</text>
<u-input v-model="form.identityCardNo" maxlength="18" input-align="right" placeholder="已经填写无法修改,请慎重填写"
placeholder-style="text-align:right;color: #94A3B8;padding-right:5px;" @input="inputChange"
:type="type" />
</view>
<!-- 性别 -->
<view class="card_name">
<text>性别</text>
<u-input v-model="form.sex" input-align="right" placeholder="-"
placeholder-style="text-align:right;color: #94A3B8;" :type="type" />
</view>
<!-- 年龄 -->
<view class="card_name">
<text>年龄</text>
<u-input v-model="form.age" input-align="right" placeholder="-"
placeholder-style="text-align:right;color: #94A3B8;" :type="type" />
</view>
<!-- 手机号 -->
<view class="card_telephone">
<text>手机号</text>
<u-input v-model="phone" input-align="right" placeholder="请输入手机号"
placeholder-style="text-align:right; color: #94A3B8;" :type="type" />
</view>
<!-- 手机号 -->
<view class="card_telephone">
<text>手机号</text>
<u-input v-model="phone" input-align="right" placeholder="请输入手机号"
placeholder-style="text-align:right; color: #94A3B8;" :type="type" />
</view>
<!-- 与您的关系 -->
<view class="card_relation">
<text>与您的关系</text>
<u-input v-model="relations" type="select" input-align="right" placeholder="请选择"
placeholder-style="text-align:right;color: #94A3B8;" @click="showRelat = true" />
<u-icon name="arrow-right" color="#A7ABB0" size="26" @click="showRelat = true"></u-icon>
<!-- 与您的关系 -->
<view class="card_relation">
<text>与您的关系</text>
<u-input v-model="relations" type="select" input-align="right" placeholder="请选择"
placeholder-style="text-align:right;color: #94A3B8;" @click="showRelat = true" />
<u-icon name="arrow-right" color="#A7ABB0" size="26" @click="showRelat = true"></u-icon>
<u-action-sheet :list="actionSheetList" v-model="showRelat" @click="actionSheetCallback"
:safe-area-inset-bottom="true">
</u-action-sheet>
</view>
</view>
<u-action-sheet :list="actionSheetList" v-model="showRelat" @click="actionSheetCallback"
:safe-area-inset-bottom="true">
</u-action-sheet>
</view>
</view>
<!-- 健康信息 -->
<view class="cards">
<view class="cards_title">
健康信息
</view>
<!-- 肝功能 -->
<view class="cards_names">
<text>肝功能</text>
<u-radio-group v-model="liver" @change="radioGroupChange" size="44rpx">
<u-radio @change="radioChange" v-for="(item, index) in lists" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<!-- 健康信息 -->
<view class="cards">
<view class="cards_title">
健康信息
</view>
<!-- 肝功能 -->
<view class="cards_names">
<text>肝功能</text>
<u-radio-group v-model="liver" @change="radioGroupChange" size="44rpx">
<u-radio @change="radioChange" v-for="(item, index) in lists" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<!-- 肾功能 -->
<view class="cards_names">
<text>肾功能</text>
<u-radio-group v-model="renal" @change="radioGroupChange" size="44rpx">
<u-radio @change="radioChange" v-for="(item, index) in lists" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<!-- 过敏史 -->
<view class="cards_history">
<view class="name">
<text>过敏史</text>
<u-radio-group v-model="allergic" @change="radioGroupChange" size="44rpx">
<u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<view class="tabs" v-if="allergic=='有'">
<u-tag :bg-color="rSelect.indexOf(index)!=-1?'#2979FF' :'rgba(41,121,255,0.08)'"
:color="rSelect.indexOf(index)!=-1? '#FFFFFF':'#475569'" v-for="(item,index) in allergicList"
:key="index" @tap="tapInfo(index,item)" :text="item.name" mode="dark" />
<text @click="addAller">+添加</text>
</view>
</view>
<!-- 个人病史 -->
<view class="cards_history">
<view class="name">
<text>个人病史</text>
<u-radio-group v-model="person" @change="radioGroupChange" size="44rpx">
<u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<view class="tabs" v-if="person=='有'">
<u-tag :bg-color="rSelects.indexOf(index)!=-1?'#2979FF' :'rgba(41,121,255,0.08)'"
:color="rSelects.indexOf(index)!=-1? '#FFFFFF':'#475569'" v-for="(item,index) in personList"
:key="index" @tap="tapInfos(index,item)" :text="item.name" mode="dark" />
<text @click="addPer">+添加</text>
</view>
</view>
<!-- 家族病史 -->
<view class="cards_history">
<view class="name">
<text>家族病史</text>
<u-radio-group v-model="family" @change="radioGroupChange" size="44rpx">
<d-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</d-radio>
</u-radio-group>
</view>
<view class="tabs" v-if="family=='有'">
<u-tag :bg-color="rSelec.indexOf(index)!=-1?'#2979FF' :'rgba(41,121,255,0.08)'"
:color="rSelec.indexOf(index)!=-1? '#FFFFFF':'#475569'" v-for="(item,index) in familyList"
:key="index" @tap="taps(index,item)" :text="item.name" mode="dark" />
<text @click="addFmaily">+添加</text>
</view>
</view>
</view>
<!-- 肾功能 -->
<view class="cards_names">
<text>肾功能</text>
<u-radio-group v-model="renal" @change="radioGroupChange" size="44rpx">
<u-radio @change="radioChange" v-for="(item, index) in lists" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<!-- 过敏史 -->
<view class="cards_history">
<view class="name">
<text>过敏史</text>
<u-radio-group v-model="allergic" @change="radioGroupChange" size="44rpx">
<u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<view class="tabs" v-if="allergic=='有'">
<u-tag :bg-color="rSelect.indexOf(index)!=-1?'#2979FF' :'rgba(41,121,255,0.08)'"
:color="rSelect.indexOf(index)!=-1? '#FFFFFF':'#475569'" v-for="(item,index) in allergicList"
:key="index" @tap="tapInfo(index,item)" :text="item.name" mode="dark" />
<text @click="addAller">+添加</text>
</view>
</view>
<!-- 个人病史 -->
<view class="cards_history">
<view class="name">
<text>个人病史</text>
<u-radio-group v-model="person" @change="radioGroupChange" size="44rpx">
<u-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
<view class="tabs" v-if="person=='有'">
<u-tag v-if="personList.length > 0" :plain="!item.checked" :bg-color="rSelects.indexOf(index)!=-1?'#2979FF' :'rgba(41,121,255,0.08)'"
:color="rSelects.indexOf(index)!=-1? '#FFFFFF':'#475569'" v-for="(item,index) in personList"
:key="index" @tap="tapInfos(index,item)" :text="item.name" mode="dark" />
<text @click="addPer">+添加</text>
</view>
</view>
<!-- 家族病史 -->
<view class="cards_history">
<view class="name">
<text>家族病史</text>
<u-radio-group v-model="family" @change="radioGroupChange" size="44rpx">
<d-radio @change="radioChange" v-for="(item, index) in list" :key="index" :name="item.name"
:disabled="item.disabled" label-size="30rpx">
{{item.name}}
</d-radio>
</u-radio-group>
</view>
<view class="tabs" v-if="family=='有'">
<u-tag v-if="familyList.length > 0" :plain="!item.checked" :bg-color="rSelec.indexOf(index)!=-1?'#2979FF' :'rgba(41,121,255,0.08)'"
:color="rSelec.indexOf(index)!=-1? '#FFFFFF':'#475569'" v-for="(item,index) in familyList"
:key="index" @tap="taps(index,item)" :text="item.name" mode="dark" />
<text @click="addFmaily">+添加</text>
</view>
</view>
</view>
<view class="floors">
<!-- 浮层 添加历史病情 -->
<u-popup v-model="show" mode="center" border-radius="14" width="710rpx" height="360px" :closeable="true"
z-index="10">
<view class="floor_item">
<!-- 标题 -->
<view class="title">
添加
</view>
<!-- 输入 -->
<view class="u_inp">
<u-input v-model="addtext" type="text" placeholder="请输入内容" placeholder-style="color:#94A3B8"
:border="true" border-color="#F1F5F9" :maxlength="50" :height="80" />
</view>
<view class="floors">
<!-- 浮层 添加历史病情 -->
<u-popup v-model="show" mode="center" border-radius="14" width="710rpx" height="360px" :closeable="true"
z-index="10">
<view class="floor_item">
<!-- 标题 -->
<view class="title">
添加
</view>
<!-- 输入 -->
<view class="u_inp">
<u-input v-model="addtext" type="text" placeholder="请输入内容" placeholder-style="color:#94A3B8"
:border="true" border-color="#F1F5F9" :maxlength="50" :height="80" />
</view>
<!-- 保存 -->
<view class="u_btn">
<u-button type="primary" shape="circle" @click="addTag">保存</u-button>
</view>
<!-- 就诊 -->
<view class="info">
<view class="addinfo">
<view class="words">
是否就该病情到医院就诊过
</view>
<view class="radios">
<u-radio-group v-model="isVisit" @change="radioGroupChange">
<u-radio @change="radioChange" v-for="(item, index) in visitList" :key="index"
:name="item.name" :disabled="item.disabled">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
</view>
<!-- 详细病情描述 -->
<view class="u_inp">
<u-input v-model="visitDesc" type="text" :maxlength="50" placeholder-style="color:#94A3B8"
:border="true" border-color="#F1F5F9" placeholder="请输入实体医院确诊病例名称(最多50字)" />
</view>
</view>
</view>
</u-popup>
</view>
<!-- 保存 -->
<view class="u_btn">
<u-button type="primary" shape="circle" @click="addTag">保存</u-button>
</view>
<!-- 就诊 -->
<view class="info">
<view class="addinfo">
<view class="words">
是否就该病情到医院就诊过
</view>
<view class="radios">
<u-radio-group v-model="isVisit" @change="radioGroupChange">
<u-radio @change="radioChange" v-for="(item, index) in visitList" :key="index"
:name="item.name" :disabled="item.disabled">
{{item.name}}
</u-radio>
</u-radio-group>
</view>
</view>
<!-- 详细病情描述 -->
<view class="u_inp">
<u-input v-model="visitDesc" type="text" :maxlength="50" placeholder-style="color:#94A3B8"
:border="true" border-color="#F1F5F9" placeholder="请输入实体医院确诊病例名称(最多50字)" />
</view>
</view>
</view>
</u-popup>
</view>
</view>
<!-- 保存 -->
<view class="footer">
<view class="btn">
<text @click="getAdduser">保存</text>
</view>
</view>
<u-toast ref="uToast" />
</view>
<!-- 保存 -->
<view class="footer">
<view class="btn">
<text @click="getAdduser">保存</text>
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
@@ -349,6 +351,7 @@
onLoad(e) {
// console.log(e);
this.id = e.id
this.getAction()
},
watch: {
// 默认就诊人
@@ -438,7 +441,7 @@
},
// 过敏史
tapInfo(e, item) {
// console.log(item);
if (this.rSelect.indexOf(e) == -1) {
// console.log(e) //打印下标
this.rSelect.push(e); //选中添加到数组里
@@ -451,13 +454,17 @@
},
// 个人病史
tapInfos(e, item) {
console.log(e, item, 'daaaaaaaaaaaaaaaaaaa')
// 如果当前选项不在已选中项的数组中
if (this.rSelects.indexOf(e) == -1) {
// console.log(e) //打印下标
this.rSelects.push(e); //选中添加到数组
this.person_history.push(item.name)
// console.log(e) // 打印当前选项的下标
this.rSelects.push(e); // 将选中的选项添加到数组
this.person_history.push(item.name); // 同时将选项的名称添加到历史记录中
} else {
this.rSelects.splice(this.rSelects.indexOf(e), 1); //取消
this.person_history.splice(this.person_history.indexOf(item.name), 1)
// 如果当前选项已经在已选中项的数组中,则移除它
this.rSelects.splice(this.rSelects.indexOf(e), 1); // 取消选中
// 同时从历史记录中移除该选项的名称
this.person_history.splice(this.person_history.indexOf(item.name), 1);
}
},
// 家庭病史
@@ -522,6 +529,7 @@
// 就诊人列表
getInfolist() {
let that = this;
userList({
method: "post",
data: {
@@ -531,16 +539,19 @@
// console.log(res, 'info');
if (res.data.errcode == 0) {
this.infoList = res.data.data.filter((item) => item.id == this.id)
that.infoList = res.data.data.filter((item) => item.id == that.id)
this.names = this.infoList[0].name
this.phone = this.infoList[0].mobile
this.form.sex = (this.infoList[0].sex) % 2 == 0 ? '女' : '男'
this.form.age = this.infoList[0].age
this.form.identityCardNo = this.infoList[0].id_card
this.addid = this.infoList[0].id
that.actived = that.infoList[0].id;
that.names = that.infoList[0].name
// that.relations = that.infoList[0].relations
that.phone = that.infoList[0].mobile
that.form.sex = (that.infoList[0].sex) % 2 == 0 ? '女' : '男'
that.form.age = that.infoList[0].age
that.form.identityCardNo = that.infoList[0].id_card
that.addid = that.infoList[0].id
this.actionSheetCallback(this.infoList[0].relation)
that.actionSheetCallback(that.infoList[0].relation)
that.getHeath()
}
})
},
@@ -604,6 +615,7 @@
// 健康卡片
getHeath() {
let that = this;
userEidtPatient({
method: "post",
data: {
@@ -620,21 +632,48 @@
this.allergic = (this.heathList.allergic_status) % 2 == 0 ? '无' : '有'
this.allergicList = (this.heathList.allergic_history) == 'Array' ? [] : (this.heathList
.allergic_history).split(',')
.allergic_history).map(function (item, index) {
console.log(index, 'sssssssssssssssssssssssssss')
that.tapInfo(index, {
name: item,
checked: true
})
return {
name: item,
checked: true
}
})
this.person = (this.heathList.person_status) % 2 == 0 ? '无' : '有'
this.personList = (this.heathList.person_history) == 'Array' ? [] : (this.heathList
.person_history).split(',')
this.personList = (this.heathList.person_history != '') == 'Array' ? [] : (this.heathList
.person_history).map(function (item, index) {
that.tapInfos(index, {
name: item,
checked: true
})
return {
name: item,
checked: true
}
})
this.family = (this.heathList.family_status) % 2 == 0 ? '无' : '有'
this.familyList = (this.heathList.family_history) == 'Array' ? [] : (this.heathList
.family_history).split(',')
this.familyList = (this.heathList.family_history != '') == 'Array' ? [] : (this.heathList
.family_history).map(function (item, index) {
that.taps(index, {
name: item,
checked: true
})
return {
name: item,
checked: true
}
})
}
})
}
},
mounted() {
this.getAction()
this.getInfolist()
}
}
@@ -643,12 +682,15 @@
<style lang="scss" scoped>
.container {
width: 750rpx;
min-height: 100vh;
max-height: 100%;
height: 100vh;
background: #F8FAFC;
padding: 20rpx 0;
padding-bottom: env(safe-area-inset-bottom);
.card-box {
height: 93vh;
overflow: auto;
}
.card {
width: 710rpx;
background: #FFFFFF;

View File

@@ -154,32 +154,30 @@
title: "加载中"
});
setTimeout(() => {
uni.hideLoading();
this.$refs.uToast.show({
title: '切换成功',
type: 'default',
icon: false
})
uni.hideLoading();
this.$refs.uToast.show({
title: '切换成功',
type: 'default',
icon: false
})
this.getInfolist();
this.getInfolist();
setTimeout(() => {
uni.navigateBack({
delta: 1,
})
}, 1000)
}, 1800)
// setTimeout(() => {
// uni.navigateBack({
// delta: 1,
// })
// }, 1000)
})
}
},
mounted() {
this.getAction()
this.getInfolist()
this.getAction()
},
onShow() {
this.getAction()
this.getInfolist()
this.getAction()
}
}
</script>