Browse Source

Merge pull request 'version_v1_2024_11_04' (#4) from version_v1_2024_11_04 into master

Reviewed-on: kuaileadmin/acupuncture_register_system_uniapp#4
master
超级管理员 7 months ago
parent
commit
9a118d3822
  1. 10
      components/inputBox.vue
  2. 4
      manifest.json
  3. 80
      pages/index/index.vue
  4. 18
      pages/modify_visitor/modify_visitor.vue
  5. 1
      static/images/frontend/copy_green.svg

10
components/inputBox.vue

@ -2,7 +2,7 @@
<view class="input-com"> <view class="input-com">
<view :class="'input-wrapper'+(errormsg?' error':'')"> <view :class="'input-wrapper'+(errormsg?' error':'')">
<view class="left"> <view class="left">
<text :class="!required?'hide-start':''"><img :src="cssUrl+'hua.svg'" class="hua"></text> <!-- <text :class="!required?'hide-start':''"><img :src="cssUrl+'hua.svg'" class="hua"></text> -->
<view>{{label}}</view> <view>{{label}}</view>
</view> </view>
<view class="right"> <view class="right">
@ -129,10 +129,12 @@ export default {
padding: 27.5rpx 14rpx; padding: 27.5rpx 14rpx;
box-sizing: border-box; box-sizing: border-box;
margin: 0 auto; margin: 0 auto;
font-size: 32rpx; font-size: 32rpx;
letter-spacing: 1rpx; line-height: 32rpx;
letter-spacing: 1rpx;
align-items: center;
&.error{ &.error{
border: 1rpx solid #FAB0B0; border: 2rpx solid #FAB0B0;
} }
.left{ .left{
display: flex; display: flex;

4
manifest.json

@ -69,7 +69,9 @@
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
}, },
"vueVersion" : "2", "vueVersion" : "2",
/* "target" : "http://jasonyizherenxin.checkcopy.com",*/
/* "target" : "http://api.yizherenxin.cn",*/
"h5" : { "h5" : {
"router" : { "router" : {
"mode" : "history", "mode" : "history",

80
pages/index/index.vue

@ -33,26 +33,40 @@
<view class="top flex"> <view class="top flex">
<view class="left"> <view class="left">
<view class="title flex"> <view class="title flex">
<text class="over2 PfScMedium">{{item.hospital_name}} {{item.depart_name}} <text class="over2 PfScMedium">{{item.hospital_name}}
<!-- {{item.depart_name}} -->
<!-- {{item.depart_name}} --> <!-- {{item.depart_name}} -->
<!-- 科室 --> <!-- 科室 -->
</text> </text>
<img :src="cssUrl+'index_comback.svg'" v-if="item.hospital_pos" @click="toLocation(item)"> <!-- <img :src="cssUrl+'index_comback.svg'" v-if="item.hospital_pos" @click="toLocation(item)"> -->
</view> </view>
<view class="date over2 over4"> <view class="date over2 over4" v-if="item.address">
出诊{{ item.workdate_desc }}
{{item.address}}
<!-- 出诊{{ item.workdate_desc }} -->
</view> </view>
</view> </view>
<view class="right"> <view class="right">
<view class="flex right-wrapper" style="justify-content:flex-end;" v-if="item.hospital_pos"> <view class="flex right-wrapper" style="justify-content:center;" v-if="item.hospital_pos">
<view class="" @click="toLocation(item)"> <!-- <view class="" @click="toLocation(item)">
<img :src="cssUrl+'index_nav.svg'" alt=""> <img :src="cssUrl+'index_nav.svg'" alt="">
<view>导航</view> <view>导航</view>
</view> -->
<view v-if="item.address" class="flex copy_btn" @click="copyAddress(item.address)" style="justify-content:center;flex-wrap: wrap;">
<img :src="cssUrl+'copy_green.svg'" alt="">
<view>复制地址</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="center">
出诊{{ item.workdate_desc }}
</view>
<view class="bot primary btn btn2" hover-class="hover" @click="toVisitors(item)"> <view class="bot primary btn btn2" hover-class="hover" @click="toVisitors(item)">
预约看诊 预约看诊
</view> </view>
@ -197,6 +211,14 @@
} }
}); });
}, },
copyAddress(address){
uni.setClipboardData({
data: address,
success: () => {
uni.showToast({ title: "地址已复制", icon: "none" });
}
});
},
setLoginUserInfo(info) { setLoginUserInfo(info) {
var uinfo = new Object(); var uinfo = new Object();
this.$setuinfo.setUinfo(JSON.stringify(info)) this.$setuinfo.setUinfo(JSON.stringify(info))
@ -409,7 +431,7 @@
width: 100%; width: 100%;
margin-bottom: 36rpx; margin-bottom: 36rpx;
.top{ .top{
min-height: 102rpx; // min-height: 102rpx;
.left{ .left{
flex-grow: 1; flex-grow: 1;
.title{ .title{
@ -422,33 +444,51 @@
.date{ .date{
line-height: 40rpx; line-height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
color: #666666; color: #949699;
margin-top: 14rpx; margin-top: 14rpx;
} }
} }
.right{ .right{
width: 200rpx; // width: 200rpx;
width: 172rpx;
flex-shrink: 0;
height: 100%; height: 100%;
color: #666666; color: #666666;
display: flex;
justify-content: flex-end;
img{ img{
width: 52rpx; width: 52rpx;
height: 52rpx; height: 52rpx;
background: #F4F4F4; // background: #F4F4F4;
border-radius: 6rpx; // border-radius: 6rpx;
margin-right: 7rpx; // margin-right: 7rpx;
} }
text{ .copy_btn{
width: 60rpx;
height: 54rpx;
display: block; display: block;
font-size: 26rpx; line-height: normal;
color: #666666;
line-height: 37rpx;
text-align: center; text-align: center;
margin-top: 5rpx; margin-top: 4rpx;
font-size: 24rpx;
color: #30C563;
} }
} }
} }
.center{
justify-content: flex-start;
align-items: center;
width: 100%;
box-sizing: border-box;
min-height: 59rpx;
padding: 10rpx;
display: flex;
z-index: 1;
background: #F8F6F9;
font-size: 28rpx;
line-height: 39rpx;
color: #666666;
margin-top: 22rpx;
word-break: break-all;
}
.bot{ .bot{
margin-top: 16rpx; margin-top: 16rpx;
} }

18
pages/modify_visitor/modify_visitor.vue

@ -8,8 +8,11 @@
</view> </view>
<view class="submit-wrapper btPadding" v-if="!vid"> <view class="submit-wrapper btPadding" v-if="!vid">
<view :class="'btn btn3 submit'+(canSubmit?' primary':' noclick')" :hover-class="(canSubmit?'hover':'')" @click="submit"> <view :class="'btn btn3 submit'+(canSubmit?' primary':' noclick')" :hover-class="(canSubmit?'hover':'')" @click="submit" v-if="!vid">
确认就诊人 确认添加
</view>
<view :class="'btn btn3 submit'+(canSubmit?' primary':' noclick')" :hover-class="(canSubmit?'hover':'')" @click="submit" v-else>
确认修改
</view> </view>
</view> </view>
<view class="fixedBot btPadding" v-if="vid"> <view class="fixedBot btPadding" v-if="vid">
@ -45,7 +48,16 @@
}, },
onLoad(option) { onLoad(option) {
if(option.type) this.type = option.type if(option.type) this.type = option.type
if(option.vid) this.vid = option.vid if(option.vid) {
this.vid = option.vid
uni.setNavigationBarTitle({
title: '修改就诊人'
});
}else{
uni.setNavigationBarTitle({
title: '添加就诊人'
});
}
}, },
onShow() { onShow() {
if(this.vid) this.getVisitorInfo() if(this.vid) this.getVisitorInfo()

1
static/images/frontend/copy_green.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.6 KiB

Loading…
Cancel
Save