优化页面
This commit is contained in:
parent
33fbdf9a66
commit
ca34793579
@ -24,6 +24,12 @@ Page({
|
|||||||
checked: event.detail,
|
checked: event.detail,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
changeCheck(){
|
||||||
|
let checked = this.data.checked
|
||||||
|
this.setData({
|
||||||
|
checked: !checked
|
||||||
|
})
|
||||||
|
},
|
||||||
_navback() {
|
_navback() {
|
||||||
wx.navigateBack()
|
wx.navigateBack()
|
||||||
},
|
},
|
||||||
|
|||||||
@ -24,11 +24,14 @@
|
|||||||
bindtap="getPhoneNumber"
|
bindtap="getPhoneNumber"
|
||||||
color="#09BB07" custom-style="font-size: 36rpx;" type="primary" round block>微信授权手机号登录</van-button>
|
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;">
|
<view style="display: flex;margin-top: 30rpx;line-height: 50rpx;">
|
||||||
<van-checkbox value="{{ checked }}" bind:change="onChange">我已阅读并同意协议</van-checkbox>
|
<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="float: left;">
|
||||||
<view style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=9">《隐私协议》</view>
|
<text style="color: #000000;word-wrap: break-word;" bindtap="changeCheck">我已阅读并同意协议</text>
|
||||||
<view style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=11">《劳务协议》</view>
|
<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>
|
</view>
|
||||||
|
|
||||||
|
|||||||
@ -75,5 +75,7 @@
|
|||||||
color: #333333;
|
color: #333333;
|
||||||
margin-bottom: 60rpx;
|
margin-bottom: 60rpx;
|
||||||
}
|
}
|
||||||
|
.van-checkbox {
|
||||||
|
padding-top: 6rpx !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,6 +29,12 @@ Page({
|
|||||||
checked: event.detail,
|
checked: event.detail,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
changeCheck(){
|
||||||
|
let checked = this.data.checked
|
||||||
|
this.setData({
|
||||||
|
checked: !checked
|
||||||
|
})
|
||||||
|
},
|
||||||
phone_change(e){
|
phone_change(e){
|
||||||
let phone = e.detail.value;
|
let phone = e.detail.value;
|
||||||
this.setData({
|
this.setData({
|
||||||
|
|||||||
@ -27,12 +27,15 @@
|
|||||||
<view class="btn">
|
<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-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> -->
|
<!-- <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;">
|
<view style="display: flex;margin-top: 30rpx;line-height: 50rpx;">
|
||||||
<van-checkbox value="{{ checked }}" bind:change="onChange">我已阅读并同意协议</van-checkbox>
|
<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="float: left;">
|
||||||
<view style="color: #4384FE;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=9">《隐私协议》</view>
|
<text style="color: #000000;word-wrap: break-word;" bindtap="changeCheck">我已阅读并同意协议</text>
|
||||||
<view style="color: #4384FE;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=11">《劳务协议》</view>
|
<text style="color: #4384FE;word-wrap: break-word;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=10">《肝胆相照用户注册及服务协议》</text>
|
||||||
</view>
|
<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>
|
||||||
|
|
||||||
</m-nav-bar>
|
</m-nav-bar>
|
||||||
@ -51,3 +51,6 @@
|
|||||||
border-bottom-style: solid;
|
border-bottom-style: solid;
|
||||||
border-bottom-color: rgb(235, 237, 240);
|
border-bottom-color: rgb(235, 237, 240);
|
||||||
}
|
}
|
||||||
|
.van-checkbox {
|
||||||
|
padding-top: 6rpx !important;
|
||||||
|
}
|
||||||
@ -6,7 +6,7 @@ page{
|
|||||||
padding: 0 4vw;
|
padding: 0 4vw;
|
||||||
}
|
}
|
||||||
.main_title{
|
.main_title{
|
||||||
font-size: 30rpx;
|
font-size: 16px;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
margin: 30rpx 0;
|
margin: 30rpx 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -93,6 +93,7 @@ page{
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
|
font-size: 32rpx;
|
||||||
}
|
}
|
||||||
.t-picker__confirm{
|
.t-picker__confirm{
|
||||||
color: #3CC7C0 !important;
|
color: #3CC7C0 !important;
|
||||||
|
|||||||
@ -22,15 +22,14 @@
|
|||||||
|
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-field
|
<van-field
|
||||||
model:value="{{ realname }}"
|
model:value="{{ realname }}"
|
||||||
|
|
||||||
type="text"
|
|
||||||
placeholder="请填写真实姓名,提交后不能修改"
|
placeholder="请填写真实姓名,提交后不能修改"
|
||||||
placeholder-style="font-size:28rpx; color: #C5C8CB;"
|
placeholder-style="font-size:28rpx; color: #C5C8CB;"
|
||||||
input-align="right"
|
input-align="right"
|
||||||
clearable
|
clearable
|
||||||
type="text"
|
type="text"
|
||||||
custom-style="font-size:30rpx;"
|
size="large"
|
||||||
|
custom-style="font-size:16px;"
|
||||||
disabled="{{next_btn_disabled}}"
|
disabled="{{next_btn_disabled}}"
|
||||||
>
|
>
|
||||||
<text slot="label">真实姓名 <text style="color: #e34d59;">*</text> </text>
|
<text slot="label">真实姓名 <text style="color: #e34d59;">*</text> </text>
|
||||||
@ -42,7 +41,8 @@
|
|||||||
placeholder-style="font-size:28rpx; color: #C5C8CB;"
|
placeholder-style="font-size:28rpx; color: #C5C8CB;"
|
||||||
input-align="right"
|
input-align="right"
|
||||||
clearable
|
clearable
|
||||||
custom-style="font-size:30rpx;"
|
size="large"
|
||||||
|
custom-style="font-size:16px;"
|
||||||
disabled="{{next_btn_disabled}}"
|
disabled="{{next_btn_disabled}}"
|
||||||
>
|
>
|
||||||
<text slot="label">身份证号 <text style="color: #e34d59;">*</text> </text>
|
<text slot="label">身份证号 <text style="color: #e34d59;">*</text> </text>
|
||||||
|
|||||||
@ -71,7 +71,7 @@
|
|||||||
letter-spacing: 2rpx;
|
letter-spacing: 2rpx;
|
||||||
}
|
}
|
||||||
.t-cell__title-text{
|
.t-cell__title-text{
|
||||||
font-size: 32rpx !important;
|
font-size: 16px !important;
|
||||||
}
|
}
|
||||||
.t-input__wrap--suffix-icon{
|
.t-input__wrap--suffix-icon{
|
||||||
padding-left: var(--td-spacer-1, 8rpx) !important;
|
padding-left: var(--td-spacer-1, 8rpx) !important;
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
<view class="price_title">价格设置</view>
|
<view class="price_title">价格设置</view>
|
||||||
<view class="price_steup_box">
|
<view class="price_steup_box">
|
||||||
<view class="price_steup_box_bottom">
|
<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">
|
<view class="price_steup_box_bottom_num">
|
||||||
<input class="weui-input" disabled bindblur="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
|
<input class="weui-input" disabled bindblur="onPriceChange" type="digit" value="{{ info.inquiry_price }}" placeholder="请输入问诊单价" />
|
||||||
<text class="price">元</text>
|
<text class="price">元</text>
|
||||||
|
|||||||
@ -38,7 +38,7 @@ page{
|
|||||||
}
|
}
|
||||||
.switch_box_item_name{
|
.switch_box_item_name{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 32rpx;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
.switch_box_item_btn{
|
.switch_box_item_btn{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@ -80,7 +80,7 @@ page{
|
|||||||
}
|
}
|
||||||
.price_steup_box_top_title, .price_steup_box_bottom_title{
|
.price_steup_box_top_title, .price_steup_box_bottom_title{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 32rpx;
|
font-size: 16px;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
.price_steup_box_top::after{
|
.price_steup_box_top::after{
|
||||||
|
|||||||
@ -48,10 +48,10 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="content" style="top: calc(20rpx + {{stateHeight}}px);">
|
<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/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: 30rpx;" 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: 30rpx;" 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: 30rpx;" 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: 30rpx;" title="常用语" is-link border="{{ false }}"/>
|
<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>
|
</view>
|
||||||
@ -1,5 +1,5 @@
|
|||||||
.t-cell__note,.t-class-note,.note{
|
.t-cell__note,.t-class-note,.note{
|
||||||
font-size: 30rpx !important;
|
font-size: 16px !important;
|
||||||
}
|
}
|
||||||
.t-tabs__item--active{
|
.t-tabs__item--active{
|
||||||
color: #49B9AD !important;
|
color: #49B9AD !important;
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
<form bindsubmit="{{ order_prescription_id == ''?'postDoctorPrescription':'putDoctorPrescription' }}">
|
<form bindsubmit="{{ order_prescription_id == ''?'postDoctorPrescription':'putDoctorPrescription' }}">
|
||||||
<view class="txt_title">医嘱</view>
|
<view class="txt_title">医嘱</view>
|
||||||
<view class="doctors_advice" bindtap="onDoctorsAdviceFocus">
|
<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>
|
||||||
<!-- 从聊天页面过来的不显示按钮 -->
|
<!-- 从聊天页面过来的不显示按钮 -->
|
||||||
<view class="sub_btn" wx:if="{{from != 'chat'}}">
|
<view class="sub_btn" wx:if="{{from != 'chat'}}">
|
||||||
@ -241,7 +241,7 @@
|
|||||||
custom-style="height: calc(100vh - {{height*2 + 20}}px);"
|
custom-style="height: calc(100vh - {{height*2 + 20}}px);"
|
||||||
bind:close="onZhenduanClose"
|
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
|
<van-field
|
||||||
model:value="{{ disease_class_name }}"
|
model:value="{{ disease_class_name }}"
|
||||||
placeholder="请输入疾病名称"
|
placeholder="请输入疾病名称"
|
||||||
|
|||||||
@ -66,7 +66,7 @@ page{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.txt_title{
|
.txt_title{
|
||||||
font-size: 30rpx;
|
font-size: 16px;
|
||||||
margin: 20rpx 0;
|
margin: 20rpx 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 4vw;
|
left: 4vw;
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
{{info.work_num_day}}
|
{{info.work_num_day}}
|
||||||
</view>
|
</view>
|
||||||
</van-cell>
|
</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">
|
<view class="cell_value">
|
||||||
{{info.inquiry_price}}元
|
{{info.inquiry_price}}元
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -39,7 +39,7 @@ page{
|
|||||||
}
|
}
|
||||||
.switch_box_item_name{
|
.switch_box_item_name{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 32rpx;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
.switch_box_item_btn{
|
.switch_box_item_btn{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
.imgbox_title{
|
.imgbox_title{
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
font-size: 30rpx;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
.imgbox_item{
|
.imgbox_item{
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@ -55,9 +55,9 @@ Page({
|
|||||||
// console.log("onNetworkStatusChange from wenzhen: ")
|
// console.log("onNetworkStatusChange from wenzhen: ")
|
||||||
// console.log(res.isConnected)
|
// console.log(res.isConnected)
|
||||||
// console.log(res.networkType)
|
// console.log(res.networkType)
|
||||||
wx.showToast({
|
// wx.showToast({
|
||||||
title: '网络类型'+res.networkType,
|
// title: '网络类型'+res.networkType,
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@ -55,9 +55,9 @@ Page({
|
|||||||
console.log("onNetworkStatusChange from wenzhen: ")
|
console.log("onNetworkStatusChange from wenzhen: ")
|
||||||
console.log(res.isConnected)
|
console.log(res.isConnected)
|
||||||
console.log(res.networkType)
|
console.log(res.networkType)
|
||||||
wx.showToast({
|
// wx.showToast({
|
||||||
title: '网络类型'+res.networkType,
|
// title: '网络类型'+res.networkType,
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@ -34,7 +34,7 @@
|
|||||||
</van-cell>
|
</van-cell>
|
||||||
<view class="price_steup_box_bottom">
|
<view class="price_steup_box_bottom">
|
||||||
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
<van-cell size="large" custom-style="font-size:32rpx;border-radius: 20rpx;"
|
||||||
title="问诊单价(元)" is-link
|
title="问诊单价" is-link
|
||||||
border="{{false}}"
|
border="{{false}}"
|
||||||
url="/Pages/yishi/yizhensetupprice/index"
|
url="/Pages/yishi/yizhensetupprice/index"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -38,7 +38,7 @@ page{
|
|||||||
}
|
}
|
||||||
.switch_box_item_name{
|
.switch_box_item_name{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 32rpx;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
.switch_box_item_btn{
|
.switch_box_item_btn{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@ -27,7 +27,8 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
.sign_title{
|
.sign_title{
|
||||||
font-size: 30rpx;
|
font-size: 16px;
|
||||||
|
color: #323233;
|
||||||
}
|
}
|
||||||
.sign_note{
|
.sign_note{
|
||||||
margin: 20rpx 0;
|
margin: 20rpx 0;
|
||||||
|
|||||||
@ -54,7 +54,7 @@
|
|||||||
/*justify-content: flex-start;*/
|
/*justify-content: flex-start;*/
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
outline: none;
|
outline: none;
|
||||||
font-size: 28rpx;
|
font-size: 34rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
position: relative;
|
position: relative;
|
||||||
max-width: 60vw;
|
max-width: 60vw;
|
||||||
@ -65,7 +65,7 @@
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
letter-spacing: 0;
|
letter-spacing: 0;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
font-size: 28rpx;
|
/* font-size: 28rpx; */
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
|||||||
11
app.js
11
app.js
@ -53,9 +53,9 @@ App({
|
|||||||
// console.log("onNetworkStatusChange: ")
|
// console.log("onNetworkStatusChange: ")
|
||||||
// console.log(res.isConnected)
|
// console.log(res.isConnected)
|
||||||
// console.log(res.networkType)
|
// console.log(res.networkType)
|
||||||
wx.showToast({
|
// wx.showToast({
|
||||||
title: '网络类型'+res.networkType,
|
// title: '网络类型'+res.networkType,
|
||||||
})
|
// })
|
||||||
})
|
})
|
||||||
|
|
||||||
wx.onNetworkWeakChange(function(res){
|
wx.onNetworkWeakChange(function(res){
|
||||||
@ -100,6 +100,7 @@ App({
|
|||||||
wx.$chat_userID = this.globalData.config.userID;
|
wx.$chat_userID = this.globalData.config.userID;
|
||||||
wx.$chat_SDKAppID = this.globalData.config.SDKAPPID;
|
wx.$chat_SDKAppID = this.globalData.config.SDKAPPID;
|
||||||
wx.$chat_userSig = userSig;
|
wx.$chat_userSig = userSig;
|
||||||
|
|
||||||
wx.$TUIKitTIM = TIM;
|
wx.$TUIKitTIM = TIM;
|
||||||
console.log("TIM: ", wx.$TUIKitTIM)
|
console.log("TIM: ", wx.$TUIKitTIM)
|
||||||
wx.$TUIKit.registerPlugin({ 'tim-upload-plugin': TIMUploadPlugin });
|
wx.$TUIKit.registerPlugin({ 'tim-upload-plugin': TIMUploadPlugin });
|
||||||
@ -272,8 +273,8 @@ App({
|
|||||||
jiesuan_dialog_show: false,
|
jiesuan_dialog_show: false,
|
||||||
config: {
|
config: {
|
||||||
userID: "",
|
userID: "",
|
||||||
SDKAPPID: 1400796919, // Your SDKAppID
|
SDKAPPID: api.getIMappId(), // Your SDKAppID
|
||||||
SECRETKEY: "a5bcd8c583181cf004e9d91a47687d719d4b5d2a10ce33fbee95d587889447d8", // Your secretKey
|
SECRETKEY: api.getIMsecretkey(), // Your secretKey
|
||||||
EXPIRETIME: 604800,
|
EXPIRETIME: 604800,
|
||||||
},
|
},
|
||||||
app_inter: []
|
app_inter: []
|
||||||
|
|||||||
@ -36,8 +36,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title{
|
.title{
|
||||||
font-size: 32rpx;
|
font-size: 16px;
|
||||||
color: #1C2023;
|
color: #000000E6;
|
||||||
}
|
}
|
||||||
.right{
|
.right{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -42,7 +42,8 @@
|
|||||||
left: 32rpx;
|
left: 32rpx;
|
||||||
}
|
}
|
||||||
.textarea-cell-name{
|
.textarea-cell-name{
|
||||||
font-size: 30rpx;
|
font-size: 16px;
|
||||||
|
color: #000000E6;
|
||||||
}
|
}
|
||||||
.error_box{
|
.error_box{
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@ -70,5 +70,6 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.upload-cell-name{
|
.upload-cell-name{
|
||||||
font-size: 30rpx;
|
font-size: 16px;
|
||||||
|
color: #000000E6;
|
||||||
}
|
}
|
||||||
@ -79,7 +79,7 @@
|
|||||||
}
|
}
|
||||||
.t-cell__title-text {
|
.t-cell__title-text {
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: 32rpx;
|
font-size: 16px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
.t-cell__left,
|
.t-cell__left,
|
||||||
|
|||||||
@ -4,6 +4,12 @@ class API extends HTTP {
|
|||||||
getStaticHost(){
|
getStaticHost(){
|
||||||
return `${this.staticHost}`;
|
return `${this.staticHost}`;
|
||||||
}
|
}
|
||||||
|
getIMappId(){
|
||||||
|
return `${this.IMappId}`;
|
||||||
|
}
|
||||||
|
getIMsecretkey(){
|
||||||
|
return `${this.IMsecretkey}`;
|
||||||
|
}
|
||||||
//获取oss签名数据
|
//获取oss签名数据
|
||||||
getOssSign(params) {
|
getOssSign(params) {
|
||||||
return this.request({
|
return this.request({
|
||||||
|
|||||||
@ -2,18 +2,21 @@
|
|||||||
export const dev = {
|
export const dev = {
|
||||||
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
||||||
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
|
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
|
||||||
appId: 'wxbdb4d63f81d98228' //此处为appId
|
IMappId: '1400798221', //此处为IM appId
|
||||||
|
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
|
||||||
}
|
}
|
||||||
// 测试环境url
|
// 测试环境url
|
||||||
export const test = {
|
export const test = {
|
||||||
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
baseUrl: "https://dev.hospital.applets.igandanyiyuan.com",
|
||||||
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
|
staticHost: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com",//静态资源host
|
||||||
appId: 'wxbdb4d63f81d98228' //此处为appId
|
IMappId: '1400798221', //此处为此处为IM appId
|
||||||
|
IMsecretkey: 'fc45ab469ca632a700166973d87b3a6f56a855cb92d7cffb54e4d37135c097da' //此处为IM secretkey
|
||||||
}
|
}
|
||||||
|
|
||||||
// 线上环境url
|
// 线上环境url
|
||||||
export const prod = {
|
export const prod = {
|
||||||
baseUrl: 'https://prod.hospital.applets.igandanyiyuan.com',
|
baseUrl: 'https://prod.hospital.applets.igandanyiyuan.com',
|
||||||
staticHost: "https://oss.prod.applets.igandanyiyuan.com",//静态资源host
|
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() {
|
constructor() {
|
||||||
this.baseUrl = env.baseUrl,
|
this.baseUrl = env.baseUrl,
|
||||||
this.staticHost = env.staticHost,
|
this.staticHost = env.staticHost,
|
||||||
this.appId = env.appId
|
this.IMappId = env.IMappId,
|
||||||
|
this.IMsecretkey = env.IMsecretkey
|
||||||
}
|
}
|
||||||
|
|
||||||
request({
|
request({
|
||||||
@ -27,7 +28,6 @@ class HTTP {
|
|||||||
data: data,
|
data: data,
|
||||||
header: {
|
header: {
|
||||||
'content-type': contentType,
|
'content-type': contentType,
|
||||||
'appId': this.appId,
|
|
||||||
'Authorization': "Bearer " + wx.getStorageSync('AUTH_TOKEN_'+usertype)
|
'Authorization': "Bearer " + wx.getStorageSync('AUTH_TOKEN_'+usertype)
|
||||||
},
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user