优化
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Pages/webpage/index.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
src: ""
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
console.log(options.agreement_id)
|
||||
this.setData({
|
||||
src: "https://img.applets.igandanyiyuan.com/basic/file/agreement.htm?id="+options.agreement_id
|
||||
})
|
||||
},
|
||||
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<!--Pages/webpage/index.wxml-->
|
||||
<web-view src="{{src}}"/>
|
||||
@@ -0,0 +1 @@
|
||||
/* Pages/webpage/index.wxss */
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<view style="display: flex;">
|
||||
<van-checkbox value="{{ checked }}" bind:change="onChange">我已阅读并同意协议</van-checkbox>
|
||||
<view style="color: #4384FE;flex: 1;" bindtap="go" data-url="/Pages/yishi/agreement_detail/index?agreement_id=10">《肝胆相照用户服务协议》</view>
|
||||
<view style="color: #4384FE;flex: 1;" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=10">《肝胆相照用户服务协议》</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
+43
-12
@@ -1,4 +1,5 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import { requestSubscribeMessage } from './../../../utils/requestSubscribeUtil';
|
||||
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
@@ -17,8 +18,10 @@ Page({
|
||||
withdrawal_amount: "xxxx",
|
||||
income_tax: "xx",
|
||||
contactKeFu: false,
|
||||
sub_visible: false,
|
||||
skeleton_loading: true,
|
||||
order_inquiry_ids: []
|
||||
order_inquiry_ids: [],
|
||||
sub_btn_disabled: false
|
||||
},
|
||||
onLoad(option){
|
||||
let order_inquiry_ids = option.order_inquiry_ids;
|
||||
@@ -33,29 +36,50 @@ Page({
|
||||
this.postDoctorWithdrawalInfo(params);
|
||||
},
|
||||
onShow(){
|
||||
|
||||
this.setData({
|
||||
sub_btn_disabled: false
|
||||
})
|
||||
},
|
||||
go(e){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url);
|
||||
},
|
||||
contactKeFu(e){
|
||||
let _this = this;
|
||||
|
||||
console.log("concatKeFu");
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc'],
|
||||
success (res) {
|
||||
console.log(res);
|
||||
_this.setData({
|
||||
contactKeFu: true
|
||||
let tmplIds = ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc']
|
||||
let sub_promise = requestSubscribeMessage(tmplIds)
|
||||
sub_promise.then(res => {
|
||||
console.log("订阅成功")
|
||||
this.setData({
|
||||
contactKeFu: true
|
||||
})
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
let errCode = err.errCode
|
||||
if(errCode == 20004){
|
||||
this.setData({
|
||||
sub_visible: true,
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
subcancelDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
},
|
||||
subconfirmDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
wx.openSetting({
|
||||
success (res) {
|
||||
console.log(res.authSetting)
|
||||
}
|
||||
})
|
||||
},
|
||||
postDoctorWithdrawalInfo(params){
|
||||
|
||||
//获取提现数据
|
||||
api.postDoctorWithdrawalInfo(params).then(response => {
|
||||
console.log(response);
|
||||
@@ -74,9 +98,13 @@ Page({
|
||||
}
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
|
||||
})
|
||||
},
|
||||
postDoctorWithdrawal(){
|
||||
this.setData({
|
||||
sub_btn_disabled: true
|
||||
})
|
||||
let params = {};
|
||||
params.order_inquiry_id = this.data.order_inquiry_ids.join(",");
|
||||
params.withdrawal_amount_total = this.data.withdrawal_amount;
|
||||
@@ -94,6 +122,9 @@ Page({
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
this.setData({
|
||||
sub_btn_disabled: false
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -6,6 +6,7 @@
|
||||
"van-icon": "@vant/weapp/icon/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-dialog": "@vant/weapp/dialog/index",
|
||||
"t-skeleton": "tdesign-miniprogram/skeleton/skeleton"
|
||||
"t-skeleton": "tdesign-miniprogram/skeleton/skeleton",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<view class="container">
|
||||
<view class="top">
|
||||
<view class="txt_title">结算银行卡</view>
|
||||
<view class="rule" bindtap="go" data-url="/Pages/yishi/agreement_detail/index?agreement_id=12">提现规则<van-icon name="warning-o" color="#FF9800" /></view>
|
||||
<view class="rule" bindtap="go" data-url="/Pages/agreement_page/index?agreement_id=12">提现规则<van-icon name="warning-o" color="#FF9800" /></view>
|
||||
</view>
|
||||
<view class="bankcard" wx:if="{{!skeleton_loading}}">
|
||||
<view class="bankcard_icon">
|
||||
@@ -58,7 +58,7 @@
|
||||
</view> -->
|
||||
|
||||
<view class="bottom">
|
||||
<van-button bind:click="postDoctorWithdrawal" disabled="{{order_inquiry_ids.length == 0}}" custom-style="border-radius: 10rpx;font-size: 30rpx;" block color="#3CC7C0">提取</van-button>
|
||||
<van-button bind:click="postDoctorWithdrawal" disabled="{{order_inquiry_ids.length == 0 || sub_btn_disabled}}" custom-style="border-radius: 10rpx;font-size: 30rpx;" block color="#3CC7C0">提取</van-button>
|
||||
<view class="kefu" bindtap="contactKeFu">
|
||||
<text>联系客服</text>
|
||||
</view>
|
||||
@@ -71,4 +71,18 @@
|
||||
confirm-button-color="#3CC7C0"
|
||||
confirm-button-open-type="contact"
|
||||
/>
|
||||
|
||||
<t-dialog
|
||||
visible="{{ sub_visible }}"
|
||||
title="温馨提示"
|
||||
content="您已关闭订阅消息通知,请点击“确认”按钮在设置中打开订阅通知。"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="subcancelDialog">
|
||||
取消
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="subconfirmDialog">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
|
||||
</view>
|
||||
|
||||
@@ -139,5 +139,18 @@ page{
|
||||
color: #3CC7C0;
|
||||
margin: 30rpx;
|
||||
}
|
||||
|
||||
.dialog{
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.dialog_cancel_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
}
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
color: #3CC7C0;
|
||||
}
|
||||
|
||||
|
||||
+37
-11
@@ -1,6 +1,8 @@
|
||||
// Pages/yishi/index/index.js
|
||||
import { API } from './../../../utils/network/api'
|
||||
import { rpxTopx } from './../../../utils/util'
|
||||
import { pxTorpx } from './../../../utils/util'
|
||||
import { requestSubscribeMessage } from './../../../utils/requestSubscribeUtil';
|
||||
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -92,6 +94,7 @@ Page({
|
||||
},
|
||||
],
|
||||
contactKeFu: false,
|
||||
sub_visible: false,
|
||||
jiesuan_dialog_show: false,
|
||||
jiesuan_dialog_visible: false,
|
||||
funbox_height: 100,
|
||||
@@ -125,7 +128,7 @@ Page({
|
||||
const { statusBarHeight } = wx.getSystemInfoSync();
|
||||
// console.log("statusBarHeight: ", rpxTopx(statusBarHeight));
|
||||
let funbox_height = wx.getSystemInfoSync().windowHeight - (this.data.stateHeight + this.data.navHeight + 10) - 55;//减去底部空白
|
||||
funbox_height = rpxTopx(funbox_height);
|
||||
funbox_height = pxTorpx(funbox_height);
|
||||
// 147 userinfo的高度
|
||||
// 80 info_note
|
||||
// 155 认证部分的高度
|
||||
@@ -424,6 +427,8 @@ Page({
|
||||
});
|
||||
}
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "未认证",
|
||||
"info.info_shiming_status": "info_shiming_status_no",
|
||||
dialog_content: "请您先完成实名认证",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
dialog_url: "/Pages/yishi/identity/index",
|
||||
@@ -637,20 +642,41 @@ Page({
|
||||
|
||||
let checkDialog = this.checkDialog(e);
|
||||
if(checkDialog){
|
||||
// console.log("concatKeFu");
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc'],
|
||||
success (res) {
|
||||
// console.log(res);
|
||||
_this.setData({
|
||||
contactKeFu: true
|
||||
|
||||
let tmplIds = ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc']
|
||||
let sub_promise = requestSubscribeMessage(tmplIds)
|
||||
sub_promise.then(res => {
|
||||
console.log("订阅成功")
|
||||
this.setData({
|
||||
contactKeFu: true
|
||||
})
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
let errCode = err.errCode
|
||||
if(errCode == 20004){
|
||||
this.setData({
|
||||
sub_visible: true,
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
},
|
||||
subcancelDialog(){
|
||||
this.setData({
|
||||
sub_visible: false,
|
||||
contactKeFu: true
|
||||
})
|
||||
},
|
||||
subconfirmDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
wx.openSetting({
|
||||
success (res) {
|
||||
console.log(res.authSetting)
|
||||
}
|
||||
})
|
||||
},
|
||||
checkDialog(e){
|
||||
//实名认证
|
||||
let idcard_status = this.data.info.idcard_status;
|
||||
|
||||
@@ -233,6 +233,19 @@
|
||||
<van-button color="rgba(0, 0, 0, .1)" style="position: fixed;bottom: 50rpx;left: 50%;transform: translateX(-50%);width: 90vw;border: 1px solid #fff;border-radius: 50px;" block round bind:click="onClickHideOverlay">我知道了</van-button>
|
||||
</van-overlay>
|
||||
|
||||
<t-dialog
|
||||
visible="{{ sub_visible }}"
|
||||
title="温馨提示"
|
||||
content="您已关闭订阅消息通知,请点击“确认”按钮在设置中打开订阅通知。"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="subcancelDialog">
|
||||
取消
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="subconfirmDialog">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
@@ -167,6 +167,7 @@ page{
|
||||
margin: 0 auto;
|
||||
background-color: #fff;
|
||||
padding: 20rpx 20rpx 0 20rpx;
|
||||
box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.1);
|
||||
}
|
||||
.swiper{
|
||||
height:168rpx;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import { requestSubscribeMessage } from './../../../utils/requestSubscribeUtil';
|
||||
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -32,7 +33,8 @@ Page({
|
||||
"5",
|
||||
"10"
|
||||
]
|
||||
}
|
||||
},
|
||||
sub_visible: false,
|
||||
},
|
||||
|
||||
onLoad(){
|
||||
@@ -78,16 +80,41 @@ Page({
|
||||
console.log(response);
|
||||
}).then(()=>{
|
||||
if(detail){
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIMyb6_deuEEbJfajfhGvNzc'],
|
||||
success (res) {
|
||||
console.log(res);//同意授权
|
||||
|
||||
let tmplIds = ['G1RIs0RYqsTQ2CuPQWalIMyb6_deuEEbJfajfhGvNzc']
|
||||
let sub_promise = requestSubscribeMessage(tmplIds)
|
||||
sub_promise.then(res => {
|
||||
console.log("订阅成功")
|
||||
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
let errCode = err.errCode
|
||||
if(errCode == 20004){
|
||||
this.setData({
|
||||
sub_visible: true,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
|
||||
},
|
||||
subcancelDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
},
|
||||
subconfirmDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
wx.openSetting({
|
||||
success (res) {
|
||||
console.log(res.authSetting)
|
||||
}
|
||||
})
|
||||
},
|
||||
putDoctorInquiryConfig(){
|
||||
wx.switchTab({
|
||||
url: "/Pages/yishi/wenzhen_v2/wenzhen"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"van-stepper": "@vant/weapp/stepper/index",
|
||||
"van-switch": "@vant/weapp/switch/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-toast": "@vant/weapp/toast/index"
|
||||
"van-toast": "@vant/weapp/toast/index",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
}
|
||||
}
|
||||
@@ -46,4 +46,17 @@
|
||||
</view>
|
||||
|
||||
<van-toast id="van-toast" />
|
||||
|
||||
<t-dialog
|
||||
visible="{{ sub_visible }}"
|
||||
title="温馨提示"
|
||||
content="您已关闭订阅消息通知,请点击“确认”按钮在设置中打开订阅通知。"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="subcancelDialog">
|
||||
取消
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="subconfirmDialog">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
</view>
|
||||
@@ -123,4 +123,18 @@ page{
|
||||
.price{
|
||||
text-align: center;
|
||||
flex: 1;
|
||||
}
|
||||
.dialog{
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.dialog_cancel_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
}
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
color: #3CC7C0;
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
<van-empty description="暂无账单" wx:if="{{ bill.length == 0 }}" />
|
||||
</view>
|
||||
|
||||
<van-image bind:click="go" data-url="/Pages/yishi/agreement_detail/index?agreement_id=13" style="position: fixed; right: 0;bottom: 262rpx;" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/account_rule.png" fit="heightFix" height="84rpx" aria-label="role" />
|
||||
<van-image bind:click="go" data-url="/Pages/agreement_page/index?agreement_id=13" style="position: fixed; right: 0;bottom: 262rpx;" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/account_rule.png" fit="heightFix" height="84rpx" aria-label="role" />
|
||||
|
||||
<t-picker
|
||||
visible="{{dateVisible}}"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import { API } from './../../../utils/network/api'
|
||||
import Dialog from '@vant/weapp/dialog/dialog';
|
||||
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -138,11 +140,24 @@ Page({
|
||||
|
||||
let product_id = this.data.save_durg_product_id;
|
||||
this.delDrugBox(product_id);
|
||||
let save_durg_prescription_product_num = this.data.save_durg_prescription_product_num;
|
||||
|
||||
if(!save_durg_prescription_product_num || save_durg_prescription_product_num <0){
|
||||
Dialog.alert({
|
||||
message: '请输入药品数量',
|
||||
}).then(() => {
|
||||
this.setData({
|
||||
save_durg_prescription_product_num: ""
|
||||
})
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
let save_durg = {};
|
||||
save_durg.product_name = this.data.product_name;
|
||||
save_durg.product_id = this.data.save_durg_product_id;
|
||||
save_durg.prescription_product_num = this.data.save_durg_prescription_product_num;
|
||||
|
||||
save_durg.single_unit = this.data.save_durg_single_unit;
|
||||
save_durg.single_use = this.data.save_durg_single_use;
|
||||
save_durg.packaging_unit = this.data.save_durg_packaging_unit;
|
||||
@@ -394,6 +409,37 @@ Page({
|
||||
})
|
||||
})
|
||||
},
|
||||
get_save_durg_prescription_product_num(e){
|
||||
console.log("get_save_durg_prescription_product_num")
|
||||
let save_durg_prescription_product_num = e.detail
|
||||
console.log(typeof save_durg_prescription_product_num)
|
||||
save_durg_prescription_product_num = Number.parseInt(save_durg_prescription_product_num)
|
||||
console.log(save_durg_prescription_product_num)
|
||||
if(isNaN(save_durg_prescription_product_num)){
|
||||
Dialog.alert({
|
||||
message: '请输入正确数字',
|
||||
}).then(() => {
|
||||
this.setData({
|
||||
save_durg_prescription_product_num: ""
|
||||
})
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
if(save_durg_prescription_product_num > 5){
|
||||
Dialog.alert({
|
||||
message: '每个药品数量不允许添加超过5个',
|
||||
}).then(() => {
|
||||
this.setData({
|
||||
save_durg_prescription_product_num: ""
|
||||
})
|
||||
});
|
||||
return
|
||||
}
|
||||
this.setData({
|
||||
save_durg_prescription_product_num: save_durg_prescription_product_num
|
||||
})
|
||||
},
|
||||
putDoctorPrescription(){//修改处方
|
||||
let sub_disabled = this.data.sub_disabled;
|
||||
if(sub_disabled) return
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"van-search": "@vant/weapp/search/index",
|
||||
"van-image": "@vant/weapp/image/index",
|
||||
"van-toast": "@vant/weapp/toast/index",
|
||||
"van-icon": "@vant/weapp/icon/index"
|
||||
"van-icon": "@vant/weapp/icon/index",
|
||||
"van-dialog": "@vant/weapp/dialog/index"
|
||||
}
|
||||
}
|
||||
@@ -187,7 +187,8 @@
|
||||
<van-field
|
||||
label="药品数量"
|
||||
type="number"
|
||||
model:value="{{save_durg_prescription_product_num}}"
|
||||
bind:input="get_save_durg_prescription_product_num"
|
||||
value="{{save_durg_prescription_product_num}}"
|
||||
input-align="left"
|
||||
placeholder="请输入数量"
|
||||
custom-style="font-size: 30rpx;"
|
||||
@@ -255,5 +256,6 @@
|
||||
<van-toast id="van-toast" />
|
||||
</view>
|
||||
<view style="height: 50rpx;">
|
||||
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<van-dialog id="van-dialog" confirm-button-color="#3CC7C0"/>
|
||||
@@ -1,5 +1,7 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import Toast from 'tdesign-miniprogram/toast/index';
|
||||
import { requestSubscribeMessage } from './../../../utils/requestSubscribeUtil';
|
||||
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -32,7 +34,8 @@ Page({
|
||||
"5",
|
||||
"10"
|
||||
]
|
||||
}
|
||||
},
|
||||
sub_visible: false,
|
||||
},
|
||||
onLoad(){
|
||||
|
||||
@@ -72,16 +75,41 @@ Page({
|
||||
console.log(response);
|
||||
}).then(()=>{
|
||||
if(detail){
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIMyb6_deuEEbJfajfhGvNzc'],
|
||||
success (res) {
|
||||
console.log(res);//同意授权
|
||||
|
||||
let tmplIds = ['G1RIs0RYqsTQ2CuPQWalIMyb6_deuEEbJfajfhGvNzc']
|
||||
let sub_promise = requestSubscribeMessage(tmplIds)
|
||||
sub_promise.then(res => {
|
||||
console.log("订阅成功")
|
||||
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
let errCode = err.errCode
|
||||
if(errCode == 20004){
|
||||
this.setData({
|
||||
sub_visible: true,
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
|
||||
},
|
||||
subcancelDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
},
|
||||
subconfirmDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
wx.openSetting({
|
||||
success (res) {
|
||||
console.log(res.authSetting)
|
||||
}
|
||||
})
|
||||
},
|
||||
putDoctorInquiryConfig(){
|
||||
//修改医生问诊配置
|
||||
// let params = {};
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"van-stepper": "@vant/weapp/stepper/index",
|
||||
"van-switch": "@vant/weapp/switch/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"t-toast": "tdesign-miniprogram/toast/toast"
|
||||
"t-toast": "tdesign-miniprogram/toast/toast",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
}
|
||||
}
|
||||
@@ -51,4 +51,17 @@
|
||||
</view>
|
||||
|
||||
<t-toast id="t-toast" />
|
||||
|
||||
<t-dialog
|
||||
visible="{{ sub_visible }}"
|
||||
title="温馨提示"
|
||||
content="您已关闭订阅消息通知,请点击“确认”按钮在设置中打开订阅通知。"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="subcancelDialog">
|
||||
取消
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="subconfirmDialog">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
</view>
|
||||
@@ -137,4 +137,18 @@ page{
|
||||
}
|
||||
.cell_value{
|
||||
color: #000;
|
||||
}
|
||||
.dialog{
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.dialog_cancel_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
}
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
color: #3CC7C0;
|
||||
}
|
||||
@@ -118,6 +118,8 @@ Page({
|
||||
|
||||
if(wx.$TUIKit){
|
||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onMessageReceived, this);
|
||||
wx.$TUIKit.off(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady);
|
||||
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady, this);
|
||||
}else{
|
||||
app.imInit().then(res => {
|
||||
// console.log("wenzhen onload imInit");
|
||||
@@ -152,6 +154,7 @@ Page({
|
||||
dot_4: false,
|
||||
})
|
||||
wx.$TUIKit.off(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onMessageReceived);
|
||||
wx.$TUIKit.off(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady);
|
||||
},
|
||||
onUnload(){
|
||||
// console.log("onUnload from wenzhen")
|
||||
@@ -161,6 +164,9 @@ Page({
|
||||
now_message_inquiry_type: 5,
|
||||
})
|
||||
},
|
||||
onSDKReady(){
|
||||
console.log("onSDKReady from wenzhen")
|
||||
},
|
||||
getConversationList(){
|
||||
// console.log("getConversationListgetConversationListgetConversationList");
|
||||
app.imInit().then(res => {
|
||||
@@ -294,6 +300,9 @@ Page({
|
||||
if(!cloudCustomData) return;
|
||||
let cloudCustomDataJson;
|
||||
try {
|
||||
if(!cloudCustomData){
|
||||
return
|
||||
}
|
||||
cloudCustomDataJson = JSON.parse(cloudCustomData);
|
||||
} catch (error) {
|
||||
// console.log(error);
|
||||
@@ -316,6 +325,9 @@ Page({
|
||||
if(!cloudCustomData) return;
|
||||
let cloudCustomDataJson;
|
||||
try {
|
||||
if(!item.lastMessage.cloudCustomData){
|
||||
return
|
||||
}
|
||||
cloudCustomDataJson = JSON.parse(item.lastMessage.cloudCustomData);
|
||||
} catch (error) {
|
||||
return;
|
||||
@@ -394,7 +406,7 @@ Page({
|
||||
if(lastMessage.messageForShow == "[自定义消息]"){
|
||||
let text = "自定义消息";
|
||||
let payload = lastMessage.payload;
|
||||
if(payload) {
|
||||
if(payload && payload.data) {
|
||||
// console.log("payload: ",payload.data);
|
||||
let payloadJson = JSON.parse(payload.data);
|
||||
text = payloadJson.title.replaceAll(/—/g, "");
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
"van-tabs": "@vant/weapp/tabs/index",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog",
|
||||
"van-divider": "@vant/weapp/divider/index",
|
||||
"van-loading": "@vant/weapp/loading/index"
|
||||
"van-loading": "@vant/weapp/loading/index",
|
||||
"van-dialog": "@vant/weapp/dialog/index"
|
||||
},
|
||||
"enablePullDownRefresh": true,
|
||||
"onReachBottomDistance": 100
|
||||
|
||||
@@ -469,18 +469,18 @@ Page({
|
||||
show: false
|
||||
})
|
||||
|
||||
console.log("开始订阅消息");
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'],
|
||||
success (res) {
|
||||
console.log(res);
|
||||
let from_account = e.currentTarget.dataset.from_account;
|
||||
let order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
|
||||
let inquiry_type = e.currentTarget.dataset.inquiry_type;
|
||||
let url = e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id+"&inquiry_type="+inquiry_type;
|
||||
app.go(url);
|
||||
}
|
||||
})
|
||||
// console.log("开始订阅消息");
|
||||
// wx.requestSubscribeMessage({
|
||||
// tmplIds: ['jhYUf91ULCTX_f69hazqAYwImdFf8ELasRAwB6X-MTM'],
|
||||
// success (res) {
|
||||
// console.log(res);
|
||||
// }
|
||||
// })
|
||||
let from_account = e.currentTarget.dataset.from_account;
|
||||
let order_inquiry_id = e.currentTarget.dataset.order_inquiry_id;
|
||||
let inquiry_type = e.currentTarget.dataset.inquiry_type;
|
||||
let url = e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id+"&inquiry_type="+inquiry_type;
|
||||
app.go(url);
|
||||
},
|
||||
postDoctorInquiry(e){
|
||||
this.setData({
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import { requestSubscribeMessage } from './../../../utils/requestSubscribeUtil';
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -35,7 +36,8 @@ Page({
|
||||
"5",
|
||||
"10"
|
||||
]
|
||||
}
|
||||
},
|
||||
sub_visible: false,
|
||||
},
|
||||
|
||||
onLoad(){
|
||||
@@ -96,10 +98,19 @@ Page({
|
||||
console.log(response);
|
||||
}).then(()=>{
|
||||
if(detail){
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIMyb6_deuEEbJfajfhGvNzc'],
|
||||
success (res) {
|
||||
console.log(res);//同意授权
|
||||
|
||||
let tmplIds = ['G1RIs0RYqsTQ2CuPQWalIMyb6_deuEEbJfajfhGvNzc']
|
||||
let sub_promise = requestSubscribeMessage(tmplIds)
|
||||
sub_promise.then(res => {
|
||||
console.log("订阅成功")
|
||||
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
let errCode = err.errCode
|
||||
if(errCode == 20004){
|
||||
this.setData({
|
||||
sub_visible: true,
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -112,7 +123,21 @@ Page({
|
||||
this.setData({ "info.is_open": detail });
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
|
||||
subcancelDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
},
|
||||
subconfirmDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
wx.openSetting({
|
||||
success (res) {
|
||||
console.log(res.authSetting)
|
||||
}
|
||||
})
|
||||
},
|
||||
putDoctorInquiryConfig(){
|
||||
//修改医生问诊配置
|
||||
let params = {};
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"van-stepper": "@vant/weapp/stepper/index",
|
||||
"van-switch": "@vant/weapp/switch/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-toast": "@vant/weapp/toast/index"
|
||||
"van-toast": "@vant/weapp/toast/index",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
}
|
||||
}
|
||||
@@ -73,4 +73,17 @@
|
||||
</t-picker>
|
||||
|
||||
<van-toast id="van-toast" />
|
||||
|
||||
<t-dialog
|
||||
visible="{{ sub_visible }}"
|
||||
title="温馨提示"
|
||||
content="您已关闭订阅消息通知,请点击“确认”按钮在设置中打开订阅通知。"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="subcancelDialog">
|
||||
取消
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="subconfirmDialog">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
</view>
|
||||
@@ -121,4 +121,18 @@ page{
|
||||
}
|
||||
.price{
|
||||
color: red;
|
||||
}
|
||||
.dialog{
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.dialog_cancel_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
}
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
color: #3CC7C0;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
import { requestSubscribeMessage } from './../../../utils/requestSubscribeUtil';
|
||||
let api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -35,7 +36,8 @@ Page({
|
||||
"5",
|
||||
"10"
|
||||
]
|
||||
}
|
||||
},
|
||||
sub_visible: false,
|
||||
},
|
||||
|
||||
onShow(){
|
||||
@@ -98,16 +100,39 @@ Page({
|
||||
console.log(response);
|
||||
}).then(()=>{
|
||||
if(detail){
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['G1RIs0RYqsTQ2CuPQWalIMyb6_deuEEbJfajfhGvNzc'],
|
||||
success (res) {
|
||||
console.log(res);//同意授权
|
||||
|
||||
let tmplIds = ['G1RIs0RYqsTQ2CuPQWalIMyb6_deuEEbJfajfhGvNzc']
|
||||
let sub_promise = requestSubscribeMessage(tmplIds)
|
||||
sub_promise.then(res => {
|
||||
console.log("订阅成功")
|
||||
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
let errCode = err.errCode
|
||||
if(errCode == 20004){
|
||||
this.setData({
|
||||
sub_visible: true,
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
},
|
||||
|
||||
subcancelDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
},
|
||||
subconfirmDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
wx.openSetting({
|
||||
success (res) {
|
||||
console.log(res.authSetting)
|
||||
}
|
||||
})
|
||||
},
|
||||
putDoctorInquiryConfig(){
|
||||
//修改医生问诊配置
|
||||
let params = {};
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"van-cell-group": "@vant/weapp/cell-group/index",
|
||||
"van-stepper": "@vant/weapp/stepper/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-toast": "@vant/weapp/toast/index"
|
||||
"van-toast": "@vant/weapp/toast/index",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
}
|
||||
}
|
||||
@@ -46,4 +46,17 @@
|
||||
</t-picker>
|
||||
|
||||
<van-toast id="van-toast" />
|
||||
|
||||
<t-dialog
|
||||
visible="{{ sub_visible }}"
|
||||
title="温馨提示"
|
||||
content="您已关闭订阅消息通知,请点击“确认”按钮在设置中打开订阅通知。"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="subcancelDialog">
|
||||
取消
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="subconfirmDialog">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
</view>
|
||||
@@ -120,4 +120,18 @@ page{
|
||||
.van-cell__value{
|
||||
font-size: 32rpx !important;
|
||||
color: red !important;
|
||||
}
|
||||
.dialog{
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.dialog_cancel_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
}
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
color: #3CC7C0;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import { API } from './../../../utils/network/api'
|
||||
import { FileUtil } from './../../../utils/fileutil'
|
||||
import { requestSubscribeMessage } from './../../../utils/requestSubscribeUtil';
|
||||
const api = new API()
|
||||
const app = getApp()
|
||||
Page({
|
||||
@@ -15,7 +16,8 @@ Page({
|
||||
btn_txt: "提交",
|
||||
multi_point_status: "",
|
||||
btn_disabled: true,
|
||||
sfz_show: false
|
||||
sfz_show: false,
|
||||
sub_visible: false,
|
||||
},
|
||||
|
||||
onLoad(){
|
||||
@@ -99,66 +101,88 @@ Page({
|
||||
})
|
||||
}
|
||||
},
|
||||
add(){
|
||||
let _this = this;
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['XWfEQYtb8_ubz8pCs3GoCG6TFxpDz9jn52895yvDm3s','bGGoKtDZC23GZtrrxuy6i5V7OhHgRgwXWx4yoDO1tlA'],
|
||||
success (res) {
|
||||
console.log(res);
|
||||
console.log(_this.data.id_card_front);
|
||||
console.log(_this.data.id_card_back);
|
||||
|
||||
if(_this.data.id_card_front.length == 0){
|
||||
wx.showToast({
|
||||
title: '身份证正面为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
if(_this.data.id_card_back.length == 0){
|
||||
wx.showToast({
|
||||
title: '身份证反面为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
let id_card_front = _this.data.id_card_front[0].url;
|
||||
let id_card_back = _this.data.id_card_back[0].url;
|
||||
let sign_image = _this.data.sign_image[0].url;
|
||||
console.log("id_card_front: ", id_card_front);
|
||||
console.log("id_card_back: ", id_card_back);
|
||||
console.log("sign_image: ", sign_image);
|
||||
if(sign_image == ""){
|
||||
wx.showToast({
|
||||
title: '手写签名为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
let params = {};
|
||||
params.id_card_front = id_card_front;
|
||||
params.id_card_back = id_card_back;
|
||||
params.sign_image = sign_image;
|
||||
api.postDoctorAuthMulti(params).then(response => {
|
||||
console.log("postDoctorAuthMulti: ",response);
|
||||
wx.showToast({
|
||||
title: '提交成功',
|
||||
icon: "success"
|
||||
})
|
||||
_this.setData({
|
||||
btn_txt: "审核中",
|
||||
btn_disabled: true
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
},
|
||||
fail (res) { console.log(res) },
|
||||
complete (res) { console.log(res) },
|
||||
subcancelDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
|
||||
this.goadd()
|
||||
},
|
||||
subconfirmDialog(){
|
||||
this.setData({
|
||||
sub_visible: false
|
||||
})
|
||||
wx.openSetting({
|
||||
success (res) {
|
||||
console.log(res.authSetting)
|
||||
}
|
||||
})
|
||||
},
|
||||
add(){
|
||||
let tmplIds = ['XWfEQYtb8_ubz8pCs3GoCG6TFxpDz9jn52895yvDm3s','bGGoKtDZC23GZtrrxuy6i5V7OhHgRgwXWx4yoDO1tlA']
|
||||
let sub_promise = requestSubscribeMessage(tmplIds)
|
||||
sub_promise.then(res => {
|
||||
console.log("订阅成功")
|
||||
this.goadd()
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
let errCode = err.errCode
|
||||
if(errCode == 20004){
|
||||
this.setData({
|
||||
sub_visible: true,
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
goadd(){
|
||||
let _this = this;
|
||||
console.log(_this.data.id_card_front);
|
||||
console.log(_this.data.id_card_back);
|
||||
|
||||
if(_this.data.id_card_front.length == 0){
|
||||
wx.showToast({
|
||||
title: '身份证正面为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
if(_this.data.id_card_back.length == 0){
|
||||
wx.showToast({
|
||||
title: '身份证反面为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
let id_card_front = _this.data.id_card_front[0].url;
|
||||
let id_card_back = _this.data.id_card_back[0].url;
|
||||
let sign_image = _this.data.sign_image[0].url;
|
||||
console.log("id_card_front: ", id_card_front);
|
||||
console.log("id_card_back: ", id_card_back);
|
||||
console.log("sign_image: ", sign_image);
|
||||
if(sign_image == ""){
|
||||
wx.showToast({
|
||||
title: '手写签名为空',
|
||||
icon: "error"
|
||||
})
|
||||
return;
|
||||
}
|
||||
let params = {};
|
||||
params.id_card_front = id_card_front;
|
||||
params.id_card_back = id_card_back;
|
||||
params.sign_image = sign_image;
|
||||
api.postDoctorAuthMulti(params).then(response => {
|
||||
console.log("postDoctorAuthMulti: ",response);
|
||||
wx.showToast({
|
||||
title: '提交成功',
|
||||
icon: "success"
|
||||
})
|
||||
_this.setData({
|
||||
btn_txt: "审核中",
|
||||
btn_disabled: true
|
||||
})
|
||||
}).catch(errors => {
|
||||
console.error(errors);
|
||||
})
|
||||
},
|
||||
doUploadFile(event) {
|
||||
console.log("index douploadFIle: ", event);
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"van-divider": "@vant/weapp/divider/index",
|
||||
"van-button": "@vant/weapp/button/index",
|
||||
"van-popup": "@vant/weapp/popup/index",
|
||||
"van-image": "@vant/weapp/image/index"
|
||||
"van-image": "@vant/weapp/image/index",
|
||||
"t-dialog": "tdesign-miniprogram/dialog/dialog"
|
||||
}
|
||||
}
|
||||
@@ -97,4 +97,17 @@
|
||||
</view>
|
||||
</van-popup>
|
||||
|
||||
<t-dialog
|
||||
visible="{{ sub_visible }}"
|
||||
title="温馨提示"
|
||||
content="您已关闭订阅消息通知,请点击“确认”按钮在设置中打开订阅通知。"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="subcancelDialog">
|
||||
取消
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="subconfirmDialog">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
|
||||
</view>
|
||||
@@ -54,4 +54,18 @@
|
||||
}
|
||||
.zhiye_popup_img{
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.dialog{
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
height: 100rpx;
|
||||
line-height: 100rpx;
|
||||
}
|
||||
.dialog_cancel_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
border-right: 1px solid #E9E9E9;
|
||||
}
|
||||
.dialog_confirm_btn{
|
||||
border-top: 1px solid #E9E9E9;
|
||||
color: #3CC7C0;
|
||||
}
|
||||
Reference in New Issue
Block a user