You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

274 lines
4.8 KiB

2 years ago
<script>
export default {
1 year ago
globalData:{
doctorId:'',
doctoridStorageKey:'doctor_id'
},
onLaunch: function(option) {
console.log(option,'option====');
var did = false
try {
const pathParts = location.pathname.split('/');
const paramIndex = pathParts.indexOf('did');
if(paramIndex !== -1 && paramIndex + 1 < pathParts.length) {
did = pathParts[paramIndex + 1]
}
} catch (e) {
}
if(!did){
1 year ago
var doctor_id = uni.getStorageSync(this.globalData.doctoridStorageKey)
if(doctor_id){
this.globalData.doctorId = doctor_id
}else{
document.getElementsByTagName('body')[0].innerHTML = ""
setTimeout(function(){
alert('请扫描二维码或点击分享网站链接进入');
},500)
}
}else{
this.globalData.doctorId = did
uni.setStorageSync(this.globalData.doctoridStorageKey, did)
location.href = '/'
1 year ago
}
},
2 years ago
onShow: function() {},
onHide: function() {}
2 years ago
}
</script>
<style>
2 years ago
view,
text,
h1,
h2,
h3,
h4,
h5,
p,
span,
a,
div,
ol,
ul,
li,
dl,
dt,
dd,
table,
tbody,
tfoot,
thead,
tr,
th,
td,
input,
textarea,
form {
margin: 0;
padding: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
input,
textarea {
outline: none;
}
input[type="text"]{
border-radius: 12rpx;
-webkit-appearance: none;
}
page,html,body{
height: 100%;
margin:0 auto;
padding: 0;
2 years ago
background: #F8F6F9;
2 years ago
-webkit-text-size-adjust: 100%;
font-family: "PingFang SC","Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
2 years ago
height: 100%;
}
.fl {
float: left;
}
.fr {
float: right;
}
.clear:after {
display: block;
content: '';
clear: both;
}
.hide {
display: none;
}
.hover{
opacity: 0.8;
2 years ago
}
.hover2{
background: #DEF3DB !important;
}
2 years ago
.ft18{
font-size:18rpx;
line-height: 18rpx;
}
.ft22{
font-size:22rpx;
line-height: 22rpx;
}
.ft24{
font-size:24rpx;
line-height: 24rpx;
}
.ft26{
font-size:26rpx;
line-height: 18rpx;
}
.ft28{
font-size:28rpx;
line-height: 28rpx;
}
.ft30{
font-size:30rpx;
line-height: 30rpx;
}
.ft32{
font-size:32rpx;
line-height: 32rpx;
}
.ft34{
font-size:34rpx;
line-height: 34rpx;
}
2 years ago
.ft40{
font-size:40rpx;
line-height: 40rpx;
}
.ft50{
font-size:50rpx;
line-height: 50rpx;
}
2 years ago
.PfScMedium{
font-weight: 600;
2 years ago
}
.PfScSemibold{
font-weight: 700;
2 years ago
}
@supports (-webkit-touch-callout: none) {
.PfScMedium{
font-weight: 500;
}
.PfScSemibold{
font-weight: 600;
}
2 years ago
}
2 years ago
.over{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
2 years ago
.over2{
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
2 years ago
word-break: break-all;
2 years ago
}
.over3{
-webkit-line-clamp: 3 !important;
}
.over4{
-webkit-line-clamp: 4 !important;
}
.over5{
-webkit-line-clamp: 5 !important;
}
.btPadding{
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
2 years ago
.btn{
text-align: center;
}
.primary.btn{
background-color: #39D067;
color: #FFFFFF;
}
.cancel.btn{
background-color: #F1F2F3;
color: #616266;
}
.btn.noclick{
background: #CFCFCF;
color: #FFFFFF;
}
2 years ago
.btn.btn1{
width: 300rpx;
height: 90rpx;
line-height: 90rpx;
border-radius: 12rpx;
}
.btn.btn2{
width: 666rpx;
height: 92rpx;
line-height: 92rpx;
border-radius: 16rpx;
}
.btn.btn3{
width: 646rpx;
height: 92rpx;
line-height: 92rpx;
border-radius: 16rpx;
}
2 years ago
.flex{
display: flex;
}
.line36{
line-height: 36rpx !important;
height: 36rpx !important;
}
.line40{
line-height: 40rpx !important;
}
.height40{
line-height: 40rpx !important;
height: 40rpx !important;
}
4 months ago
.pages-visitors-visitors ::v-deep .uni-actionsheet__cell{
color:#31333B !important;
font-size: 34rpx;
line-height: 112rpx;
height: 112rpx;
padding: 0rpx 6rpx;
}
4 months ago
.pages-visitors-visitors ::v-deep uni-actionsheet .uni-actionsheet {
left: 0;
right: 0;
bottom: 0;
background: #F6F6F6;
border-radius: 20rpx 20rpx 0 0;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
4 months ago
.pages-visitors-visitors ::v-deep .uni-actionsheet__menu{
border-radius: 20rpx 20rpx 0 0;
}
4 months ago
.pages-visitors-visitors ::v-deep uni-actionsheet .uni-actionsheet__cell:before {
border-top: 2rpx solid #EEEEEE;
color: #EEEEEE;
}
4 months ago
.pages-visitors-visitors ::v-deep uni-actionsheet .uni-actionsheet__action{
margin-top: 24rpx;
margin-bottom: 10rpx;
}
</style>