4.12
This commit is contained in:
parent
41edd2f55e
commit
249e3a26c4
@ -115,7 +115,7 @@
|
|||||||
<text class="fun_box_item_txt">个人简介管理</text>
|
<text class="fun_box_item_txt">个人简介管理</text>
|
||||||
<view class="introicon" wx:if="{{info.introduction_status==3}}">!</view>
|
<view class="introicon" wx:if="{{info.introduction_status==3}}">!</view>
|
||||||
</view>
|
</view>
|
||||||
<view bindtap="go" data-moudle="4" data-url="/user/pages/yishi/onlinesetup/index?multi_point_status={{info.multi_point_status}}" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
<view bindtap="go" data-moudle="4" data-url="/user/pages/yishi/onlinesetup/index?multi_point_status={{info.multi_point_status}}&&idcard_status={{info.idcard_status}}&&is_bind_bank={{info.is_bind_bank}}&&iden_auth_status={{info.iden_auth_status}}" class="fun_box_item" style="height: {{funbox_height}}rpx;">
|
||||||
<van-image class="fun_box_item_img"
|
<van-image class="fun_box_item_img"
|
||||||
fit="widthFix"
|
fit="widthFix"
|
||||||
width="70rpx"
|
width="70rpx"
|
||||||
|
|||||||
@ -79,7 +79,7 @@ Page({
|
|||||||
delService(event){
|
delService(event){
|
||||||
let {items}=this.data;
|
let {items}=this.data;
|
||||||
let {id} =event.currentTarget.dataset;
|
let {id} =event.currentTarget.dataset;
|
||||||
items.splice(1,id);
|
items.splice(id,1)
|
||||||
this.setData({
|
this.setData({
|
||||||
items
|
items
|
||||||
})
|
})
|
||||||
@ -88,9 +88,9 @@ Page({
|
|||||||
this.data.isAdd?this.addService():this.editService();
|
this.data.isAdd?this.addService():this.editService();
|
||||||
},
|
},
|
||||||
addServiceArr(){
|
addServiceArr(){
|
||||||
let {items}=this.data;
|
|
||||||
this.setData({
|
this.setData({
|
||||||
items:items.concat({
|
items:this.data.items.concat({
|
||||||
service_period:'' ,
|
service_period:'' ,
|
||||||
service_price:''
|
service_price:''
|
||||||
})
|
})
|
||||||
@ -109,7 +109,6 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
monthly_frequency,
|
monthly_frequency,
|
||||||
service_rounds,
|
service_rounds,
|
||||||
items,
|
|
||||||
isAdd:false
|
isAdd:false
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
@ -171,14 +170,14 @@ Page({
|
|||||||
for (let i = 0; i < items.length; i++) {
|
for (let i = 0; i < items.length; i++) {
|
||||||
if(!items[i].service_period){
|
if(!items[i].service_period){
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '请选择第'+(i+1)+'的服务周期',
|
title: '请选择第'+(i+1)+'个的服务周期',
|
||||||
icon:'none'
|
icon:'none'
|
||||||
})
|
})
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if(!items[i].service_price){
|
if(!items[i].service_price){
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '请设置第'+(i+1)+'的服务价格',
|
title: '请设置第'+(i+1)+'个的服务价格',
|
||||||
icon:'none'
|
icon:'none'
|
||||||
})
|
})
|
||||||
return false
|
return false
|
||||||
@ -198,15 +197,18 @@ Page({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getFollowDetail(){
|
getFollowDetail(){
|
||||||
api.getFollowDetail().then(response=>{
|
let type=wx.getStorageSync('usertype');
|
||||||
|
let id=wx.getStorageSync('client_user_id_'+type);
|
||||||
|
api.getFollowDetail(id).then(response=>{
|
||||||
if(response.code==200){
|
if(response.code==200){
|
||||||
if(response.data){
|
if(response.data){
|
||||||
let res=response.data.map((item)=>{
|
let res=response.data.map((item)=>{
|
||||||
return {service_period:item.service_period,service_price:item.service_price}
|
return {service_period:item.service_period,service_price:item.service_price}
|
||||||
})
|
})
|
||||||
this.setData({
|
this.setData({
|
||||||
items:res
|
items:res?res:[]
|
||||||
})
|
})
|
||||||
|
console.log(this.data.items)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -233,7 +235,12 @@ getFollowDetail(){
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
this.setData({
|
||||||
|
iden_auth_status:options.iden_auth_status,
|
||||||
|
idcard_status:options.idcard_status,
|
||||||
|
is_bind_bank:options.is_bind_bank
|
||||||
|
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -248,7 +255,10 @@ getFollowDetail(){
|
|||||||
*/
|
*/
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getService();
|
this.getService();
|
||||||
this.getFollowDetail();
|
let {idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
||||||
|
if(idcard_status==1 && iden_auth_status==1 && is_bind_bank==1){
|
||||||
|
this.getFollowDetail();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<view class="checked_box">
|
<view class="checked_box">
|
||||||
<view class="price_steup_box">
|
<view class="price_steup_box">
|
||||||
<view class="price_steup_box_top">
|
<view class="price_steup_box_top">
|
||||||
<view class="price_steup_box_top_title">服务次数/月</view>
|
<view class="price_steup_box_top_title">服务次数/月</view>
|
||||||
|
|||||||
@ -48,7 +48,11 @@ Page({
|
|||||||
onLoad(options){
|
onLoad(options){
|
||||||
console.log(options.multi_point_status);
|
console.log(options.multi_point_status);
|
||||||
this.setData({
|
this.setData({
|
||||||
multi_point_status:options.multi_point_status
|
multi_point_status:options.multi_point_status,
|
||||||
|
iden_auth_status:options.iden_auth_status,
|
||||||
|
idcard_status:options.idcard_status,
|
||||||
|
is_bind_bank:options.is_bind_bank
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
cancelOpenChuFang(){
|
cancelOpenChuFang(){
|
||||||
@ -95,6 +99,7 @@ Page({
|
|||||||
})
|
})
|
||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
|
|
||||||
getDoctorconfig(){
|
getDoctorconfig(){
|
||||||
let {inquiry_type,inquiry_mode}=this.data;
|
let {inquiry_type,inquiry_mode}=this.data;
|
||||||
//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
//接诊类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)
|
||||||
@ -152,7 +157,8 @@ Page({
|
|||||||
}).catch(errors => {console.error(errors);})
|
}).catch(errors => {console.error(errors);})
|
||||||
},
|
},
|
||||||
addServiceContent(){
|
addServiceContent(){
|
||||||
app.go('/user/pages/yishi/addServiceContent/index')
|
let {idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
||||||
|
app.go('/user/pages/yishi/addServiceContent/index?idcard_status='+idcard_status+'&iden_auth_status='+iden_auth_status+'&is_bind_bank='+is_bind_bank)
|
||||||
},
|
},
|
||||||
async doChange(detail){
|
async doChange(detail){
|
||||||
console.log("onChange: ", detail);
|
console.log("onChange: ", detail);
|
||||||
@ -165,8 +171,8 @@ Page({
|
|||||||
if(!check) return;
|
if(!check) return;
|
||||||
};
|
};
|
||||||
if(this.data.active==2 && detail){
|
if(this.data.active==2 && detail){
|
||||||
let {data}=await api.getOpen({inquiry_type:1,inquiry_mode:1});
|
let {data}=await api.getDoctorInquiryConfig({inquiry_type:1,inquiry_mode:1});
|
||||||
if(data==0){
|
if(data.inquiry_price!=''){
|
||||||
this.setData({
|
this.setData({
|
||||||
showOpenTuWen:true
|
showOpenTuWen:true
|
||||||
})
|
})
|
||||||
@ -278,8 +284,10 @@ Page({
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onChangeInquiry(event) {
|
onChangeInquiry(event) {
|
||||||
let index=event.detail.name;
|
let index=event.detail.name;
|
||||||
|
let {idcard_status,iden_auth_status,is_bind_bank}=this.data;
|
||||||
this.setData({
|
this.setData({
|
||||||
active:index
|
active:index
|
||||||
})
|
})
|
||||||
@ -293,6 +301,11 @@ Page({
|
|||||||
inquiry_type:1,
|
inquiry_type:1,
|
||||||
inquiry_mode:9,
|
inquiry_mode:9,
|
||||||
})
|
})
|
||||||
|
this.getFollow();
|
||||||
|
if(idcard_status==1 && iden_auth_status==1 && is_bind_bank==1){
|
||||||
|
this.getFollowDetail();
|
||||||
|
}
|
||||||
|
|
||||||
}else if(index==2){
|
}else if(index==2){
|
||||||
this.setData({
|
this.setData({
|
||||||
inquiry_type:1,
|
inquiry_type:1,
|
||||||
@ -315,6 +328,35 @@ Page({
|
|||||||
this.getDoctorOpen();
|
this.getDoctorOpen();
|
||||||
this.getSysconfig();
|
this.getSysconfig();
|
||||||
},
|
},
|
||||||
|
getFollowDetail(){
|
||||||
|
let type=wx.getStorageSync('usertype');
|
||||||
|
let id=wx.getStorageSync('client_user_id_'+type);
|
||||||
|
api.getFollowDetail(id).then(response=>{
|
||||||
|
if(response.code==200){
|
||||||
|
if(response.data){
|
||||||
|
let res=response.data.map((item)=>{
|
||||||
|
return {service_period:item.service_period,service_price:item.service_price}
|
||||||
|
})
|
||||||
|
this.setData({
|
||||||
|
items:res
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getFollow(){
|
||||||
|
api.getFollow().then(response=>{
|
||||||
|
if(response.code==200){
|
||||||
|
if(response.data){
|
||||||
|
let {monthly_frequency,service_rounds,items}=response.data
|
||||||
|
this.setData({
|
||||||
|
monthly_frequency,
|
||||||
|
service_rounds
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
putDoctorInquiryConfig(){
|
putDoctorInquiryConfig(){
|
||||||
//修改医生问诊配置
|
//修改医生问诊配置
|
||||||
// let params = {};
|
// let params = {};
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
"van-button": "@vant/weapp/button/index",
|
"van-button": "@vant/weapp/button/index",
|
||||||
"t-toast": "tdesign-miniprogram/toast/toast",
|
"t-toast": "tdesign-miniprogram/toast/toast",
|
||||||
"van-tab": "@vant/weapp/tab/index",
|
"van-tab": "@vant/weapp/tab/index",
|
||||||
|
"van-icon": "@vant/weapp/icon/index",
|
||||||
"van-tabs": "@vant/weapp/tabs/index",
|
"van-tabs": "@vant/weapp/tabs/index",
|
||||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<van-tabs active="{{ active }}" bind:change="onChangeInquiry" color="#3CC7C0">
|
<van-tabs active="{{ active }}" bind:change="onChangeInquiry" color="#3CC7C0">
|
||||||
<van-tab title="图文问诊">
|
<van-tab title="图文问诊">
|
||||||
|
|
||||||
<view class="tabcon">
|
<view class="tabcon">
|
||||||
<view class="switch_box">
|
<view class="switch_box">
|
||||||
<view class="switch_box_top">
|
<view class="switch_box_top">
|
||||||
@ -64,7 +63,53 @@
|
|||||||
<van-cell size="large" custom-style="font-size:32rpx;" title="服务内容介绍和结算" is-link border="{{false}}" />
|
<van-cell size="large" custom-style="font-size:32rpx;" title="服务内容介绍和结算" is-link border="{{false}}" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="checked_box" style="margin-top: 30rpx;">
|
||||||
|
<view class="price_steup_box">
|
||||||
|
<view class="price_steup_box_top">
|
||||||
|
<view class="price_steup_box_top_title">服务次数/月</view>
|
||||||
|
<view class="price_steup_box_top_stepper" bind:tap="addServiceContent">
|
||||||
|
<text class="amount nodata" wx:if="{{monthly_frequency===''}}">请选择服务次数</text>
|
||||||
|
<text class="amount" wx:else>{{monthly_frequency===0?'不限次数':'10次'}}</text>
|
||||||
|
|
||||||
|
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="price_steup_box_bottom" style="padding-bottom: 25rpx;">
|
||||||
|
<view class="price_steup_box_bottom_title">服务回合数</view>
|
||||||
|
<view class="price_steup_box_bottom_num" style="flex: none;">
|
||||||
|
|
||||||
|
<text class="price" style="text-align: right;">不限制</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="vontent" wx:if="{{items.length>0}}">
|
||||||
|
<view class="checked_box">
|
||||||
|
<view class="title">服务内容</view>
|
||||||
|
<view class="price_steup_box" wx:for="{{items}}" wx:key="index">
|
||||||
|
<view class="price_steup_box_top" bind:tap="addServiceContent" data-id="{{index}}">
|
||||||
|
<view class="price_steup_box_top_title">服务周期</view>
|
||||||
|
<view class="price_steup_box_top_stepper">
|
||||||
|
<text class="amount " wx:if="{{item.service_period}}">{{item.service_period/30}}个月</text>
|
||||||
|
<text class="amount nodata" wx:else>请选择周期</text>
|
||||||
|
<van-icon name="arrow" color="#999" style="margin-top: 2rpx;"/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="price_steup_box_bottom" style="border-bottom:0.5px solid #e7e7e7;padding-bottom: 25rpx;">
|
||||||
|
<view class="price_steup_box_bottom_title">服务价格(元)</view>
|
||||||
|
<view class="price_steup_box_bottom_num">
|
||||||
|
<input type="number" class="ipt" value="{{item.service_price}}" placeholder="请设置价格" placeholder-style="font-size:28rpx;color: rgba(0,0,0,0.45);" disabled="{{true}}" data-id="{{index}}" /><text class="unit" wx:if="{{item.service_price}}">元</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<!-- <view class="tips">
|
||||||
|
<view >建议服务价格设置为:{{(item.service_period/30)==1?'单次图文*10次*5~8折':(item.service_period/30)==3?'单次图文*30次*4~7折':(item.service_period/30)==6?'单次图文*60次*3~6折':(item.service_period/30)==12?'单次图文*120次*2~5折':'单次图文*10次*5'}}</view>
|
||||||
|
|
||||||
|
</view> -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
<!-- <view class="checked_box">
|
<!-- <view class="checked_box">
|
||||||
<view class="price_title">价格设置</view>
|
<view class="price_title">价格设置</view>
|
||||||
<view class="price_steup_box">
|
<view class="price_steup_box">
|
||||||
|
|||||||
@ -194,3 +194,26 @@ page{
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.tips{
|
||||||
|
margin:15rpx 30rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
color: #E34D59;
|
||||||
|
}
|
||||||
|
.checked_box .title{
|
||||||
|
width:90vw;
|
||||||
|
font-weight: 550;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: rgba(0,0,0,0.85);
|
||||||
|
margin:20rpx auto 20rpx;
|
||||||
|
}
|
||||||
|
.ipt{
|
||||||
|
font-size: 28rpx;
|
||||||
|
text-align: right;
|
||||||
|
color: #E34D59;
|
||||||
|
}
|
||||||
|
.unit{
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
@ -1044,9 +1044,9 @@ postServiceConfig(params) {//新增医生问诊配置-服务设置
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
getFollowDetail(){
|
getFollowDetail(id){
|
||||||
return this.request({//获取医生问诊配置-随访包-明细
|
return this.request({//获取医生问诊配置-随访包-明细
|
||||||
url: `${this.baseUrl}/doctor/inquiry/config/follow/item`,
|
url: `${this.baseUrl}/doctor/inquiry/service/follow/item/${id}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user