优化页面

This commit is contained in:
haomingming 2023-05-16 14:06:05 +08:00
parent 33fbdf9a66
commit ca34793579
33 changed files with 97 additions and 60 deletions

View File

@ -24,6 +24,12 @@ Page({
checked: event.detail,
});
},
changeCheck(){
let checked = this.data.checked
this.setData({
checked: !checked
})
},
_navback() {
wx.navigateBack()
},

View File

@ -24,11 +24,14 @@
bindtap="getPhoneNumber"
color="#09BB07" custom-style="font-size: 36rpx;" type="primary" round block>微信授权手机号登录</van-button>
<view style="display: flex;flex-wrap: wrap;word-wrap: break-word;margin-top: 30rpx;line-height: 50rpx;">
<van-checkbox value="{{ checked }}" bind:change="onChange">我已阅读并同意协议</van-checkbox>
<view style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=10">《肝胆相照用户注册及服务协议》</view>
<view style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=9">《隐私协议》</view>
<view style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=11">《劳务协议》</view>
<view style="display: flex;margin-top: 30rpx;line-height: 50rpx;">
<van-checkbox value="{{ checked }}" bind:change="onChange"></van-checkbox>
<view style="float: left;">
<text style="color: #000000;word-wrap: break-word;" bindtap="changeCheck">我已阅读并同意协议</text>
<text style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=10">《肝胆相照用户注册及服务协议》</text>
<text style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=9">《隐私协议》</text>
<text style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=11">《劳务协议》</text>
</view>
</view>
</view>

View File

@ -75,5 +75,7 @@
color: #333333;
margin-bottom: 60rpx;
}
.van-checkbox {
padding-top: 6rpx !important;
}

View File

@ -29,6 +29,12 @@ Page({
checked: event.detail,
});
},
changeCheck(){
let checked = this.data.checked
this.setData({
checked: !checked
})
},
phone_change(e){
let phone = e.detail.value;
this.setData({

View File

@ -27,11 +27,14 @@
<view class="btn">
<van-button color="#3CC7C0" disabled="{{login_disabled}}" custom-style="font-size: 36rpx;margin-bottom:30rpx;" type="primary" round block bind:click="mobileLogin">登录</van-button>
<!-- <van-checkbox value="{{ checked }}" bind:change="onChange">我已阅读并同意协议<text style="color: #4384FE;">《肝胆相照用户服务协议》</text></van-checkbox> -->
<view style="word-wrap:break-word;word-break:break-all;display: flex;flex-wrap: wrap;word-wrap: break-word;margin-top: 30rpx;line-height: 50rpx;">
<van-checkbox value="{{ checked }}" bind:change="onChange">我已阅读并同意协议</van-checkbox>
<view style="color: #4384FE;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=10">《肝胆相照用户注册及服务协议》</view>
<view style="color: #4384FE;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=9">《隐私协议》</view>
<view style="color: #4384FE;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=11">《劳务协议》</view>
<view style="display: flex;margin-top: 30rpx;line-height: 50rpx;">
<van-checkbox value="{{ checked }}" bind:change="onChange"></van-checkbox>
<view style="float: left;">
<text style="color: #000000;word-wrap: break-word;" bindtap="changeCheck">我已阅读并同意协议</text>
<text style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=10">《肝胆相照用户注册及服务协议》</text>
<text style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=9">《隐私协议》</text>
<text style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=11">《劳务协议》</text>
</view>
</view>
</view>

View File

@ -51,3 +51,6 @@
border-bottom-style: solid;
border-bottom-color: rgb(235, 237, 240);
}
.van-checkbox {
padding-top: 6rpx !important;
}

View File

@ -6,7 +6,7 @@ page{
padding: 0 4vw;
}
.main_title{
font-size: 30rpx;
font-size: 16px;
color: #000000;
margin: 30rpx 0;
}

View File

@ -93,6 +93,7 @@ page{
justify-content: flex-end;
margin-right: 20rpx;
color: #666;
font-size: 32rpx;
}
.t-picker__confirm{
color: #3CC7C0 !important;

View File

@ -23,14 +23,13 @@
<van-cell-group>
<van-field
model:value="{{ realname }}"
type="text"
placeholder="请填写真实姓名,提交后不能修改"
placeholder-style="font-size:28rpx; color: #C5C8CB;"
input-align="right"
clearable
type="text"
custom-style="font-size:30rpx;"
size="large"
custom-style="font-size:16px;"
disabled="{{next_btn_disabled}}"
>
<text slot="label">真实姓名 <text style="color: #e34d59;">*</text> </text>
@ -42,7 +41,8 @@
placeholder-style="font-size:28rpx; color: #C5C8CB;"
input-align="right"
clearable
custom-style="font-size:30rpx;"
size="large"
custom-style="font-size:16px;"
disabled="{{next_btn_disabled}}"
>
<text slot="label">身份证号 <text style="color: #e34d59;">*</text> </text>

View File

@ -71,7 +71,7 @@
letter-spacing: 2rpx;
}
.t-cell__title-text{
font-size: 32rpx !important;
font-size: 16px !important;
}
.t-input__wrap--suffix-icon{
padding-left: var(--td-spacer-1, 8rpx) !important;

View File

@ -24,7 +24,7 @@
<view class="price_title">价格设置</view>
<view class="price_steup_box">
<view class="price_steup_box_bottom">
<view class="price_steup_box_bottom_title">问诊单价(元)</view>
<view class="price_steup_box_bottom_title">问诊单价</view>
<view class="price_steup_box_bottom_num">
<input class="weui-input" disabled bindblur="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
<text class="price">元</text>

View File

@ -38,7 +38,7 @@ page{
}
.switch_box_item_name{
flex: 1;
font-size: 32rpx;
font-size: 16px;
}
.switch_box_item_btn{
flex: 1;
@ -80,7 +80,7 @@ page{
}
.price_steup_box_top_title, .price_steup_box_bottom_title{
flex: 1;
font-size: 32rpx;
font-size: 16px;
color: #333;
}
.price_steup_box_top::after{

View File

@ -48,10 +48,10 @@
</view>
<view class="content" style="top: calc(20rpx + {{stateHeight}}px);">
<van-cell size="large" url="/Pages/yishi/myaccount/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的账户" is-link />
<van-cell size="large" url="/Pages/yishi/bankcard/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的银行卡" is-link />
<van-cell size="large" url="/Pages/yishi/mycard/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="我的名片" is-link />
<van-cell size="large" url="/Pages/yishi/appraise/index?doctor_id={{doctor_id}}" link-type="navigateTo" title-style="font-size: 30rpx;" title="患者评价" is-link />
<van-cell size="large" url="/Pages/yishi/quickreply/index" link-type="navigateTo" title-style="font-size: 30rpx;" title="常用语" is-link border="{{ false }}"/>
<van-cell size="large" url="/Pages/yishi/myaccount/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="我的账户" is-link />
<van-cell size="large" url="/Pages/yishi/bankcard/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="我的银行卡" is-link />
<van-cell size="large" url="/Pages/yishi/mycard/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="我的名片" is-link />
<van-cell size="large" url="/Pages/yishi/appraise/index?doctor_id={{doctor_id}}" link-type="navigateTo" title-style="font-size: 34rpx;" title="患者评价" is-link />
<van-cell size="large" url="/Pages/yishi/quickreply/index" link-type="navigateTo" title-style="font-size: 34rpx;" title="常用语" is-link border="{{ false }}"/>
</view>
</view>

View File

@ -1,5 +1,5 @@
.t-cell__note,.t-class-note,.note{
font-size: 30rpx !important;
font-size: 16px !important;
}
.t-tabs__item--active{
color: #49B9AD !important;

View File

@ -63,7 +63,7 @@
<form bindsubmit="{{ order_prescription_id == ''?'postDoctorPrescription':'putDoctorPrescription' }}">
<view class="txt_title">医嘱</view>
<view class="doctors_advice" bindtap="onDoctorsAdviceFocus">
<textarea disabled="{{from == 'chat'}}" auto-height focus="{{doctors_advice_focus}}" maxlength="1000" bindblur="getAdvice" style="width: 100%;" placeholder-style="font-size:24rpx; color:#999" placeholder="请输入医嘱5-200字" name="doctors_advice" value="{{doctor_advice}}"></textarea>
<textarea disabled="{{from == 'chat'}}" auto-height focus="{{doctors_advice_focus}}" maxlength="1000" bindblur="getAdvice" style="width: 100%;" placeholder-style="font-size:15px; color:#999" placeholder="请输入医嘱5-200字" name="doctors_advice" value="{{doctor_advice}}"></textarea>
</view>
<!-- 从聊天页面过来的不显示按钮 -->
<view class="sub_btn" wx:if="{{from != 'chat'}}">
@ -241,7 +241,7 @@
custom-style="height: calc(100vh - {{height*2 + 20}}px);"
bind:close="onZhenduanClose"
>
<view style="padding-left: 20rpx;font-size: 30rpx;color: #999999;margin: 20rpx 0;">诊断</view>
<view style="padding-left: 20rpx;font-size: 30rpx;color: #000;margin: 20rpx 0;">诊断</view>
<van-field
model:value="{{ disease_class_name }}"
placeholder="请输入疾病名称"

View File

@ -66,7 +66,7 @@ page{
}
.txt_title{
font-size: 30rpx;
font-size: 16px;
margin: 20rpx 0;
position: relative;
left: 4vw;

View File

@ -28,7 +28,7 @@
{{info.work_num_day}}
</view>
</van-cell>
<van-cell size="large" url="/Pages/yishi/onlinesetupprice/index" custom-style="font-size:32rpx;" title="问诊单价(元)" is-link border="{{false}}" >
<van-cell size="large" url="/Pages/yishi/onlinesetupprice/index" custom-style="font-size:32rpx;" title="问诊单价" is-link border="{{false}}" >
<view class="cell_value">
{{info.inquiry_price}}元
</view>

View File

@ -39,7 +39,7 @@ page{
}
.switch_box_item_name{
flex: 1;
font-size: 32rpx;
font-size: 16px;
}
.switch_box_item_btn{
flex: 1;

View File

@ -14,7 +14,7 @@
}
.imgbox_title{
padding: 20rpx;
font-size: 30rpx;
font-size: 20px;
}
.imgbox_item{
position: relative;

View File

@ -55,9 +55,9 @@ Page({
// console.log("onNetworkStatusChange from wenzhen: ")
// console.log(res.isConnected)
// console.log(res.networkType)
wx.showToast({
title: '网络类型'+res.networkType,
})
// wx.showToast({
// title: '网络类型'+res.networkType,
// })
})
},

View File

@ -55,9 +55,9 @@ Page({
console.log("onNetworkStatusChange from wenzhen: ")
console.log(res.isConnected)
console.log(res.networkType)
wx.showToast({
title: '网络类型'+res.networkType,
})
// wx.showToast({
// title: '网络类型'+res.networkType,
// })
})
},

View File

@ -34,7 +34,7 @@
</van-cell>
<view class="price_steup_box_bottom">
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
title="问诊单价(元)" is-link
title="问诊单价" is-link
border="{{false}}"
url="/Pages/yishi/yizhensetupprice/index"
>

View File

@ -38,7 +38,7 @@ page{
}
.switch_box_item_name{
flex: 1;
font-size: 32rpx;
font-size: 16px;
}
.switch_box_item_btn{
flex: 1;

View File

@ -27,7 +27,8 @@
margin: 0 auto;
}
.sign_title{
font-size: 30rpx;
font-size: 16px;
color: #323233;
}
.sign_note{
margin: 20rpx 0;

View File

@ -54,7 +54,7 @@
/*justify-content: flex-start;*/
flex-wrap: wrap;
outline: none;
font-size: 28rpx;
font-size: 34rpx;
color: #333333;
position: relative;
max-width: 60vw;
@ -65,7 +65,7 @@
color: #000000;
letter-spacing: 0;
line-height: 40rpx;
font-size: 28rpx;
/* font-size: 28rpx; */
word-wrap: break-word;
word-break: break-all;
}

11
app.js
View File

@ -53,9 +53,9 @@ App({
// console.log("onNetworkStatusChange: ")
// console.log(res.isConnected)
// console.log(res.networkType)
wx.showToast({
title: '网络类型'+res.networkType,
})
// wx.showToast({
// title: '网络类型'+res.networkType,
// })
})
wx.onNetworkWeakChange(function(res){
@ -100,6 +100,7 @@ App({
wx.$chat_userID = this.globalData.config.userID;
wx.$chat_SDKAppID = this.globalData.config.SDKAPPID;
wx.$chat_userSig = userSig;
wx.$TUIKitTIM = TIM;
console.log("TIM: ", wx.$TUIKitTIM)
wx.$TUIKit.registerPlugin({ 'tim-upload-plugin': TIMUploadPlugin });
@ -272,8 +273,8 @@ App({
jiesuan_dialog_show: false,
config: {
userID: "",
SDKAPPID: 1400796919, // Your SDKAppID
SECRETKEY: "a5bcd8c583181cf004e9d91a47687d719d4b5d2a10ce33fbee95d587889447d8", // Your secretKey
SDKAPPID: api.getIMappId(), // Your SDKAppID
SECRETKEY: api.getIMsecretkey(), // Your secretKey
EXPIRETIME: 604800,
},
app_inter: []

View File

@ -36,8 +36,8 @@
}
.title{
font-size: 32rpx;
color: #1C2023;
font-size: 16px;
color: #000000E6;
}
.right{
display: flex;

View File

@ -42,7 +42,8 @@
left: 32rpx;
}
.textarea-cell-name{
font-size: 30rpx;
font-size: 16px;
color: #000000E6;
}
.error_box{
position: relative;

View File

@ -70,5 +70,6 @@
font-weight: 600;
}
.upload-cell-name{
font-size: 30rpx;
font-size: 16px;
color: #000000E6;
}

View File

@ -79,7 +79,7 @@
}
.t-cell__title-text {
display: flex;
font-size: 32rpx;
font-size: 16px;
font-weight: 400;
}
.t-cell__left,

View File

@ -4,6 +4,12 @@ class API extends HTTP {
getStaticHost(){
return `${this.staticHost}`;
}
getIMappId(){
return `${this.IMappId}`;
}
getIMsecretkey(){
return `${this.IMsecretkey}`;
}
//获取oss签名数据
getOssSign(params) {
return this.request({

View File

@ -2,18 +2,21 @@
export const dev = {
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
appId: 'wxbdb4d63f81d98228' //此处为appId
IMappId: '1400798221', //此处为IM appId
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
}
// 测试环境url
export const test = {
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
appId: 'wxbdb4d63f81d98228' //此处为appId
IMappId: '1400798221', //此处为此处为IM appId
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
}
// 线上环境url
export const prod = {
baseUrl: 'https://prod.hospital.applets.igandanyiyuan.com',
staticHost: "https://oss.prod.applets.igandanyiyuan.com",//静态资源host
appId: 'wxbdb4d63f81d98228' //此处为appId
IMappId: '1400796919', //此处为此处为IM appId
IMsecretkey: 'a5bcd8c583181cf004e9d91a47687d719d4b5d2a10ce33fbee95d587889447d8' //此处为IM secretkey
}

View File

@ -3,7 +3,8 @@ class HTTP {
constructor() {
this.baseUrl = env.baseUrl,
this.staticHost = env.staticHost,
this.appId = env.appId
this.IMappId = env.IMappId,
this.IMsecretkey = env.IMsecretkey
}
request({
@ -27,7 +28,6 @@ class HTTP {
data: data,
header: {
'content-type': contentType,
'appId': this.appId,
'Authorization': "Bearer " + wx.getStorageSync('AUTH_TOKEN_'+usertype)
},
success: (res) => {