Browse Source

Merge pull request '患者端添加就诊人选择出生年份时弹窗中年份字体变大调整' (#20) from wulina_version_2025_07_22 into master

Reviewed-on: kuaileadmin/acupuncture_register_system_uniapp#20
master
longchao 1 month ago
parent
commit
388ac1134e
  1. 2
      components/customeDatePicker.vue
  2. 300
      pages/modify_visitor/modify_visitor.vue

2
components/customeDatePicker.vue

@ -224,7 +224,7 @@
height: 68rpx; height: 68rpx;
color: #E5E5E5; color: #E5E5E5;
&.selected { &.selected {
font-size: 28rpx !important; font-size: 57rpx !important;
color: #000000 !important; color: #000000 !important;
} }
&.style1 { &.style1 {

300
pages/modify_visitor/modify_visitor.vue

@ -14,10 +14,10 @@
<view :class="'btn btn3 PfScMedium submit' + (canSubmit ? ' primary' : ' noclick')" <view :class="'btn btn3 PfScMedium submit' + (canSubmit ? ' primary' : ' noclick')"
:hover-class="(canSubmit ? 'hover' : '')" @click="submit" v-if="!vid && (doctorInfo.aid || !canSubmit)"> :hover-class="(canSubmit ? 'hover' : '')" @click="submit" v-if="!vid && (doctorInfo.aid || !canSubmit)">
确认新增 确认新增
</view> </view>
<button :class="'btn btn3 PfScMedium submit' + (canSubmit ? ' primary' : ' noclick')" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" v-if="!doctorInfo.aid && canSubmit && !vid">确认新增</button> <button :class="'btn btn3 PfScMedium submit' + (canSubmit ? ' primary' : ' noclick')" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" v-if="!doctorInfo.aid && canSubmit && !vid">确认新增</button>
<view :class="'btn btn3 PfScMedium submit' + (canSubmit ? ' primary' : ' noclick')" <view :class="'btn btn3 PfScMedium submit' + (canSubmit ? ' primary' : ' noclick')"
:hover-class="(canSubmit ? 'hover' : '')" @click="submit" v-if="vid"> :hover-class="(canSubmit ? 'hover' : '')" @click="submit" v-if="vid">
确认修改 确认修改
@ -32,23 +32,23 @@
<CustomeDatePicker ref="customeDatePicker" @getDateString="handleYearChange" /> <CustomeDatePicker ref="customeDatePicker" @getDateString="handleYearChange" />
<SexPop ref="genderPopup" v-model="sex" @confirm="handleConfirm" /> <SexPop ref="genderPopup" v-model="sex" @confirm="handleConfirm" />
<uni-popup ref="nameWrap" :safe-area="false" v-if="!vid"> <uni-popup ref="nameWrap" :safe-area="false" v-if="!vid">
<view class="popup-container"> <view class="popup-container">
<view class="header"> <view class="header">
<view class="title PfScMedium">需要填写真实姓名来确保您账号的唯一性</view> <view class="title PfScMedium">需要填写真实姓名来确保您账号的唯一性</view>
</view> </view>
<view class="label">真实姓名</view> <view class="label">真实姓名</view>
<input type="text" class="realName" v-model="realName" placeholder-class="placeholder-style" placeholder="请填写"> <input type="text" class="realName" v-model="realName" placeholder-class="placeholder-style" placeholder="请填写">
<view class="confirm-button-wrapper btPadding"> <view class="confirm-button-wrapper btPadding">
<view class="confirm-button PfScMedium" @click="handleConfirmPhone"> <view class="confirm-button PfScMedium" @click="handleConfirmPhone">
完成 完成
</view> </view>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
</view> </view>
</template> </template>
@ -79,8 +79,8 @@ export default {
genders: { genders: {
0:'男', 0:'男',
1:'女' 1:'女'
}, },
doctorInfo:false, doctorInfo:false,
realName:'', realName:'',
} }
}, },
@ -103,49 +103,49 @@ export default {
}); });
} }
}, },
onShow() { onShow() {
if (this.vid) { if (this.vid) {
this.getVisitorInfo() this.getVisitorInfo()
}else{ }else{
this.getDoctorInfo() this.getDoctorInfo()
} }
}, },
methods: { methods: {
handleConfirmPhone(){ handleConfirmPhone(){
if(!this.realName.trim()){ if(!this.realName.trim()){
uni.showModal({ uni.showModal({
title:'提示', title:'提示',
content: '姓名不可为空', content: '姓名不可为空',
}) })
return return
} }
this.$http.req('/api/user/set_realname', { realname:this.realName}, 'POST').then(data => { this.$http.req('/api/user/set_realname', { realname:this.realName}, 'POST').then(data => {
if (data == -1) return if (data == -1) return
this.$refs.nameWrap.close() this.$refs.nameWrap.close()
}); });
}, },
getPhoneNumber(e) { getPhoneNumber(e) {
if (e.detail.errMsg === 'getPhoneNumber:ok') { if (e.detail.errMsg === 'getPhoneNumber:ok') {
this.$http.req('api/user/bind_phone', {phonecode:e.detail.code}, 'POST').then(data=>{ this.$http.req('api/user/bind_phone', {phonecode:e.detail.code}, 'POST').then(data=>{
if(data == -1) return if(data == -1) return
this.getDoctorInfo() this.getDoctorInfo()
}); });
} else { } else {
} }
}, },
async getDoctorInfo() { async getDoctorInfo() {
this.$http.req('api/user/index_info', {}, 'GET').then(data=>{ this.$http.req('api/user/index_info', {}, 'GET').then(data=>{
if(data == -1) return if(data == -1) return
this.doctorInfo = data; this.doctorInfo = data;
if(!data.realname && data.aid) { if(!data.realname && data.aid) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.nameWrap.open('bottom') this.$refs.nameWrap.open('bottom')
}) })
} }
}); });
}, },
handleConfirm(sex){ handleConfirm(sex){
this.sex = sex; this.sex = sex;
@ -238,7 +238,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.getphone-box{ .getphone-box{
position: fixed; position: fixed;
left: 0; left: 0;
@ -247,95 +247,95 @@ export default {
height: 100vh; height: 100vh;
z-index: 8999999999; z-index: 8999999999;
opacity: 0; opacity: 0;
} }
.popup-container { .popup-container {
position: relative; position: relative;
max-height: calc(100vh - 200rpx); max-height: calc(100vh - 200rpx);
overflow-y: scroll; overflow-y: scroll;
background: #ffffff; background: #ffffff;
border-radius: 40rpx 40rpx 0px 0px; border-radius: 40rpx 40rpx 0px 0px;
padding: 42rpx 48rpx 16rpx; padding: 42rpx 48rpx 16rpx;
.header { .header {
position: relative; position: relative;
text-align: left; text-align: left;
.title { .title {
font-size: 30rpx; font-size: 30rpx;
font-weight: 500; font-weight: 500;
line-height: 42rpx; line-height: 42rpx;
letter-spacing: normal; letter-spacing: normal;
color: #000000; color: #000000;
} }
} }
.label { .label {
margin-top: 54rpx; margin-top: 54rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-size: 34rpx; font-size: 34rpx;
font-weight: 500; font-weight: 500;
line-height: 47.6rpx; line-height: 47.6rpx;
letter-spacing: normal; letter-spacing: normal;
color: #000000; color: #000000;
} }
.realName { .realName {
color: #000000; color: #000000;
font-size: 34rpx; font-size: 34rpx;
line-height: 40rpx; line-height: 40rpx;
height: 40rpx; height: 40rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: normal; font-weight: normal;
letter-spacing: normal; letter-spacing: normal;
padding: 22rpx 0; padding: 22rpx 0;
border-bottom: 2rpx solid rgba(0, 0, 0, 0.1); border-bottom: 2rpx solid rgba(0, 0, 0, 0.1);
margin-bottom: 160rpx; margin-bottom: 160rpx;
margin-top: 22rpx; margin-top: 22rpx;
&::placeholder { &::placeholder {
opacity: 0.3; opacity: 0.3;
} }
} }
.placeholder-style { .placeholder-style {
opacity: 0.3; opacity: 0.3;
} }
.confirm-button-wrapper { .confirm-button-wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.confirm-button { .confirm-button {
justify-content: center; justify-content: center;
display: flex; display: flex;
align-items: center; align-items: center;
font-weight: 600; font-weight: 600;
font-size: 34rpx; font-size: 34rpx;
color: #ffffff; color: #ffffff;
text-align: center; text-align: center;
width: 368rpx; width: 368rpx;
height: 80rpx; height: 80rpx;
border-radius: 8rpx; border-radius: 8rpx;
background: #07C160; background: #07C160;
} }
} }
.date { .date {
margin: 12rpx 36rpx 42rpx; margin: 12rpx 36rpx 42rpx;
text-align: center; text-align: center;
color: #000000; color: #000000;
font-size: 26rpx; font-size: 26rpx;
font-family: PingFang SC; font-family: PingFang SC;
} }
} }
.visitor-form-page { .visitor-form-page {
background: #F8F8F8; background: #F8F8F8;
height: 100vh; height: 100vh;
overflow-y: scroll; overflow-y: scroll;
.block { .block {
background: #FFFFFF; background: #FFFFFF;

Loading…
Cancel
Save