优化页面
This commit is contained in:
parent
33fbdf9a66
commit
ca34793579
@ -24,6 +24,12 @@ Page({
|
||||
checked: event.detail,
|
||||
});
|
||||
},
|
||||
changeCheck(){
|
||||
let checked = this.data.checked
|
||||
this.setData({
|
||||
checked: !checked
|
||||
})
|
||||
},
|
||||
_navback() {
|
||||
wx.navigateBack()
|
||||
},
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
@ -75,5 +75,7 @@
|
||||
color: #333333;
|
||||
margin-bottom: 60rpx;
|
||||
}
|
||||
|
||||
.van-checkbox {
|
||||
padding-top: 6rpx !important;
|
||||
}
|
||||
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -27,12 +27,15 @@
|
||||
<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>
|
||||
<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>
|
||||
|
||||
</m-nav-bar>
|
||||
@ -50,4 +50,7 @@
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-color: rgb(235, 237, 240);
|
||||
}
|
||||
.van-checkbox {
|
||||
padding-top: 6rpx !important;
|
||||
}
|
||||
@ -6,7 +6,7 @@ page{
|
||||
padding: 0 4vw;
|
||||
}
|
||||
.main_title{
|
||||
font-size: 30rpx;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
|
||||
@ -93,6 +93,7 @@ page{
|
||||
justify-content: flex-end;
|
||||
margin-right: 20rpx;
|
||||
color: #666;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.t-picker__confirm{
|
||||
color: #3CC7C0 !important;
|
||||
|
||||
@ -22,15 +22,14 @@
|
||||
|
||||
<van-cell-group>
|
||||
<van-field
|
||||
model:value="{{ realname }}"
|
||||
|
||||
type="text"
|
||||
model:value="{{ realname }}"
|
||||
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>
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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{
|
||||
|
||||
@ -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>
|
||||
@ -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;
|
||||
|
||||
@ -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="请输入疾病名称"
|
||||
|
||||
@ -66,7 +66,7 @@ page{
|
||||
}
|
||||
|
||||
.txt_title{
|
||||
font-size: 30rpx;
|
||||
font-size: 16px;
|
||||
margin: 20rpx 0;
|
||||
position: relative;
|
||||
left: 4vw;
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -39,7 +39,7 @@ page{
|
||||
}
|
||||
.switch_box_item_name{
|
||||
flex: 1;
|
||||
font-size: 32rpx;
|
||||
font-size: 16px;
|
||||
}
|
||||
.switch_box_item_btn{
|
||||
flex: 1;
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
}
|
||||
.imgbox_title{
|
||||
padding: 20rpx;
|
||||
font-size: 30rpx;
|
||||
font-size: 20px;
|
||||
}
|
||||
.imgbox_item{
|
||||
position: relative;
|
||||
|
||||
@ -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,
|
||||
// })
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
@ -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,
|
||||
// })
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
@ -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"
|
||||
>
|
||||
|
||||
@ -38,7 +38,7 @@ page{
|
||||
}
|
||||
.switch_box_item_name{
|
||||
flex: 1;
|
||||
font-size: 32rpx;
|
||||
font-size: 16px;
|
||||
}
|
||||
.switch_box_item_btn{
|
||||
flex: 1;
|
||||
|
||||
@ -27,7 +27,8 @@
|
||||
margin: 0 auto;
|
||||
}
|
||||
.sign_title{
|
||||
font-size: 30rpx;
|
||||
font-size: 16px;
|
||||
color: #323233;
|
||||
}
|
||||
.sign_note{
|
||||
margin: 20rpx 0;
|
||||
|
||||
@ -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
11
app.js
@ -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: []
|
||||
|
||||
@ -36,8 +36,8 @@
|
||||
}
|
||||
|
||||
.title{
|
||||
font-size: 32rpx;
|
||||
color: #1C2023;
|
||||
font-size: 16px;
|
||||
color: #000000E6;
|
||||
}
|
||||
.right{
|
||||
display: flex;
|
||||
|
||||
@ -42,7 +42,8 @@
|
||||
left: 32rpx;
|
||||
}
|
||||
.textarea-cell-name{
|
||||
font-size: 30rpx;
|
||||
font-size: 16px;
|
||||
color: #000000E6;
|
||||
}
|
||||
.error_box{
|
||||
position: relative;
|
||||
|
||||
@ -70,5 +70,6 @@
|
||||
font-weight: 600;
|
||||
}
|
||||
.upload-cell-name{
|
||||
font-size: 30rpx;
|
||||
font-size: 16px;
|
||||
color: #000000E6;
|
||||
}
|
||||
@ -79,7 +79,7 @@
|
||||
}
|
||||
.t-cell__title-text {
|
||||
display: flex;
|
||||
font-size: 32rpx;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
}
|
||||
.t-cell__left,
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user