diff --git a/Pages/agreement_page/index.js b/Pages/agreement_page/index.js index aa5596d..ee13914 100644 --- a/Pages/agreement_page/index.js +++ b/Pages/agreement_page/index.js @@ -1,17 +1,20 @@ // Pages/webpage/index.js +import { API } from './../../utils/network/api' +const api = new API() Page({ /** * 页面的初始数据 */ data: { - src: "" + src: "", + static_host: api.getStaticHost() }, onLoad(options) { console.log(options.agreement_id) this.setData({ - src: "https://img.applets.igandanyiyuan.com/basic/file/agreement.htm?id="+options.agreement_id + src: this.data.static_host+"/basic/file/agreement.htm?id="+options.agreement_id }) }, diff --git a/Pages/index/index.js b/Pages/index/index.js index 739c841..34f3c2c 100644 --- a/Pages/index/index.js +++ b/Pages/index/index.js @@ -1,8 +1,11 @@ // Pages/index/index.js +import { API } from './../../utils/network/api' +const api = new API() const app = getApp() Page({ data: { - loading: true + loading: true, + static_host: api.getStaticHost() }, onLoad(option){ let from = option.from; diff --git a/Pages/index/index.wxml b/Pages/index/index.wxml index 789a18c..40cfe2f 100644 --- a/Pages/index/index.wxml +++ b/Pages/index/index.wxml @@ -4,7 +4,7 @@ data-url="/Pages/yishi/index/index" bindtap="goCheck" > diff --git a/Pages/mobile_login/index.js b/Pages/mobile_login/index.js index 98f456d..6842119 100644 --- a/Pages/mobile_login/index.js +++ b/Pages/mobile_login/index.js @@ -13,7 +13,8 @@ Page({ btn_msg: "获取验证码", btn_disabled: false, login_disabled: false, - btn_color: "#ccc" + btn_color: "#ccc", + static_host: api.getStaticHost() }, onLoad(){ let usertype = wx.getStorageSync('usertype'); diff --git a/Pages/mobile_login/index.wxml b/Pages/mobile_login/index.wxml index 1c9f1ee..68cf62d 100644 --- a/Pages/mobile_login/index.wxml +++ b/Pages/mobile_login/index.wxml @@ -1,6 +1,6 @@ diff --git a/Pages/yaoshi/index/index.js b/Pages/yaoshi/index/index.js index 439882c..2034790 100644 --- a/Pages/yaoshi/index/index.js +++ b/Pages/yaoshi/index/index.js @@ -1,8 +1,10 @@ // Pages/index/index.js +import { API } from './../../../utils/network/api' +const api = new API() Page({ - /** - * 生命周期函数--监听页面显示 - */ + data: { + static_host: api.getStaticHost() + }, onShow() { if (typeof this.getTabBar === 'function' && this.getTabBar()) { this.getTabBar().setData({ diff --git a/Pages/yaoshi/index/index.wxml b/Pages/yaoshi/index/index.wxml index 73e329d..de825d5 100644 --- a/Pages/yaoshi/index/index.wxml +++ b/Pages/yaoshi/index/index.wxml @@ -4,7 +4,7 @@ - + 添加结算银行卡 提示:每人只能绑定一张银行卡,银行卡绑定成功后每月只能修改结算银行卡一次,请谨慎绑定。 @@ -22,16 +22,6 @@ {{bank_name}} {{bank_card_code_mask}} - - 更换银行卡 diff --git a/Pages/yishi/bindcard/index.js b/Pages/yishi/bindcard/index.js index 9228588..769c472 100644 --- a/Pages/yishi/bindcard/index.js +++ b/Pages/yishi/bindcard/index.js @@ -27,7 +27,8 @@ Page({ area_sub_titles: ["省份","市区","区县"], areaprovince_data_ready: false, banklist_data_ready: false, - bank_card_id: "" + bank_card_id: "", + static_host: api.getStaticHost() }, onLoad(options){ console.log("options: ", options); diff --git a/Pages/yishi/bindcard/index.wxml b/Pages/yishi/bindcard/index.wxml index cd01bc2..69fce33 100644 --- a/Pages/yishi/bindcard/index.wxml +++ b/Pages/yishi/bindcard/index.wxml @@ -2,7 +2,7 @@ - + 请确定开户人姓名与账户医生的姓名一致 diff --git a/Pages/yishi/case/index.wxml b/Pages/yishi/case/index.wxml index 448e608..32c5296 100644 --- a/Pages/yishi/case/index.wxml +++ b/Pages/yishi/case/index.wxml @@ -27,15 +27,15 @@ 医生诊断: {{case_detail.disease_class_name}} --> - + 确诊医院: {{case_detail.diagnosis_hospital}} - + 正在服用的药品信息: {{case_detail.drugs_name==''?'无':''}} - + 详细描述:{{case_detail.drugs_name}} @@ -48,7 +48,7 @@ {{item}}; - + 复诊凭证(病例/处方单/检查报告/住院单): @@ -58,38 +58,38 @@ - 其他信息 - + 其他信息 + - + 过敏史: {{case_detail.is_allergy_history==0?'否':case_detail.allergy_history}} - + 家族史: {{case_detail.is_family_history==0?'否':case_detail.family_history}} - + 是否备孕、妊娠或者哺乳期: {{case_detail.is_pregnant==0?'否':case_detail.pregnant}} - + 饮酒史: {{case_detail.drink_wine_status==1?'从不':case_detail.drink_wine_status==2?'偶尔':case_detail.drink_wine_status==3?'经常':case_detail.drink_wine_status==4?'每天':case_detail.drink_wine_status==5?'已戒酒':'其他'}} - + 吸烟史: {{case_detail.smoke_status==1?'从不':case_detail.smoke_status==2?'偶尔':case_detail.smoke_status==3?'经常':case_detail.smoke_status==4?'每天':case_detail.smoke_status==5?'已戒烟':'其他'}} - + 手术史: {{case_detail.is_operation==0?'否':case_detail.operation}} - + 接触化学物: {{case_detail.chemical_compound_status==1?'从不':case_detail.chemical_compound_status==2?'偶尔':case_detail.chemical_compound_status==3?'经常':case_detail.chemical_compound_status==4?'每天':'其他'}} - + 详细描述:{{case_detail.chemical_compound_describe}} diff --git a/Pages/yishi/case/index.wxss b/Pages/yishi/case/index.wxss index a86b47e..c251ea6 100644 --- a/Pages/yishi/case/index.wxss +++ b/Pages/yishi/case/index.wxss @@ -38,7 +38,7 @@ page{ } .info_item{ text-align: center; - width: 190rpx; + /* width: 190rpx; */ height: 60rpx; display: flex; align-items: center; diff --git a/Pages/yishi/cash/index.js b/Pages/yishi/cash/index.js index 1b33f6c..a48c6af 100644 --- a/Pages/yishi/cash/index.js +++ b/Pages/yishi/cash/index.js @@ -11,7 +11,8 @@ Page({ }, height: app.globalData.height, bank_card_id: "", - bank_icon_path: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png", + static_host: api.getStaticHost(), + bank_icon_path: api.getStaticHost()+"/applet/doctor/static/images/yishi/bankcard/js_icon.png", bank_card_name: "默认姓名", bank_name : "xx银行", bank_card_code_mask: "888 xxxx xxxx 888", diff --git a/Pages/yishi/cash/index.wxml b/Pages/yishi/cash/index.wxml index 315ab96..3d17021 100644 --- a/Pages/yishi/cash/index.wxml +++ b/Pages/yishi/cash/index.wxml @@ -58,7 +58,7 @@ --> - 提取 + 提取 联系客服 diff --git a/Pages/yishi/cashrecord/index.js b/Pages/yishi/cashrecord/index.js index 10460e8..5b43aba 100644 --- a/Pages/yishi/cashrecord/index.js +++ b/Pages/yishi/cashrecord/index.js @@ -17,6 +17,7 @@ Page({ dateVisible: false, select_date: '', years: [], + static_host: api.getStaticHost() }, onLoad(){ let now_year = (new Date()).Format("yyyy"); diff --git a/Pages/yishi/cashrecord/index.wxml b/Pages/yishi/cashrecord/index.wxml index af3320d..aade775 100644 --- a/Pages/yishi/cashrecord/index.wxml +++ b/Pages/yishi/cashrecord/index.wxml @@ -11,7 +11,7 @@ - + {{item.account_name}}(尾号{{item.bank_card_code_four}}) @@ -27,26 +27,6 @@ 个人所得税:¥{{item.income_tax}} - - - diff --git a/Pages/yishi/index/index.js b/Pages/yishi/index/index.js index feffe85..f8cf1a0 100644 --- a/Pages/yishi/index/index.js +++ b/Pages/yishi/index/index.js @@ -20,9 +20,10 @@ Page({ praise_rate: "100%", avg_response_time: 0, number_of_fans: 0, - avatar: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png", + avatar: api.getStaticHost()+"/applet/doctor/static/images/default_photo.png", reject_prescription_number: false,//处方管理小红点 }, + static_host: api.getStaticHost(), iden_auth_status_txt: "未认证", multi_point_status_txt: "未认证", shiming_status_url: "", @@ -230,7 +231,6 @@ Page({ this.getTabBar().setData({ active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2,因此这边为2,同理首页就为0,审批页面为1 }) - this.getTabBar().startInterval() } this.getMenuButtonBound(); diff --git a/Pages/yishi/index/index.wxml b/Pages/yishi/index/index.wxml index 60e6f93..ac67c59 100644 --- a/Pages/yishi/index/index.wxml +++ b/Pages/yishi/index/index.wxml @@ -68,7 +68,7 @@ @@ -87,7 +87,7 @@ @@ -122,7 +122,7 @@ 个人简介管理 @@ -130,7 +130,7 @@ 在线问诊管理 @@ -138,7 +138,7 @@ 快速问诊管理 @@ -146,7 +146,7 @@ 公益问诊管理 @@ -154,7 +154,7 @@ @@ -164,7 +164,7 @@ 联系客服 @@ -228,7 +228,7 @@ fit="widthFix" style="position: absolute; padding-top: {{stateHeight + navHeight}}px;" width="100vw" - src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/collection.png" + src="{{static_host}}/applet/doctor/static/images/collection.png" /> 我知道了 diff --git a/Pages/yishi/my/index.js b/Pages/yishi/my/index.js index 76ea0cd..7ffe33d 100644 --- a/Pages/yishi/my/index.js +++ b/Pages/yishi/my/index.js @@ -10,7 +10,8 @@ Page({ iden_auth_status: "0", idcard_status: "0", multi_point_status: "0", - avatar: "https://img.applets.igandanyiyuan.com/applet/doctor/static/images/default_photo.png", + static_host: api.getStaticHost(), + avatar: api.getStaticHost()+"/applet/doctor/static/images/default_photo.png", balance_account: "0", estimate_income: "0", doctor_id: "" diff --git a/Pages/yishi/myaccount/index.js b/Pages/yishi/myaccount/index.js index 1503f29..bd90fb4 100644 --- a/Pages/yishi/myaccount/index.js +++ b/Pages/yishi/myaccount/index.js @@ -16,6 +16,7 @@ Page({ balance_account: "", amount_total_month: "", withdrawal_amount_month: "", + static_host: api.getStaticHost(), bill: [], years: [], seasons: [ diff --git a/Pages/yishi/myaccount/index.wxml b/Pages/yishi/myaccount/index.wxml index 43ffae7..cad88ae 100644 --- a/Pages/yishi/myaccount/index.wxml +++ b/Pages/yishi/myaccount/index.wxml @@ -23,7 +23,7 @@ - + 分享我的名片到 --> - - 保存到相册,分享到朋友圈 diff --git a/Pages/yishi/onlinechufang/index.js b/Pages/yishi/onlinechufang/index.js index c21a016..5f52d24 100644 --- a/Pages/yishi/onlinechufang/index.js +++ b/Pages/yishi/onlinechufang/index.js @@ -39,7 +39,8 @@ Page({ sub_disabled: false, from: "", now_filed_focus: 'save_durg_prescription_product_num', - page_meta_show: true + page_meta_show: true, + static_host: api.getStaticHost() }, changeFocus(e){ let next_filed_focus = e.currentTarget.dataset.next_filed_focus; diff --git a/Pages/yishi/onlinechufang/index.wxml b/Pages/yishi/onlinechufang/index.wxml index 1d809fe..658ad10 100644 --- a/Pages/yishi/onlinechufang/index.wxml +++ b/Pages/yishi/onlinechufang/index.wxml @@ -104,7 +104,7 @@ width="300rpx" height="300rpx" fit="contain" - src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/search_drugs.png" + src="{{static_host}}/applet/doctor/static/images/yishi/search_drugs.png" /> diff --git a/Pages/yishi/service_notice/index.js b/Pages/yishi/service_notice/index.js index 28da157..71696a1 100644 --- a/Pages/yishi/service_notice/index.js +++ b/Pages/yishi/service_notice/index.js @@ -18,7 +18,8 @@ Page({ confirmBtn: { "openType": "contact", "content": "确认", - } + }, + static_host: api.getStaticHost() }, onShow(){ this.getList(); diff --git a/Pages/yishi/service_notice/index.wxml b/Pages/yishi/service_notice/index.wxml index 75dcfe1..45519cd 100644 --- a/Pages/yishi/service_notice/index.wxml +++ b/Pages/yishi/service_notice/index.wxml @@ -5,33 +5,33 @@ 在线问诊 - + 快速问诊 - + 公益问诊 - + 问诊购药 - + {{item.notice_send_time}} {{item.notice_brief_title}} - + 到底了~ - + - + {{item.notice_brief_title}} - + 到底了~ - + diff --git a/Pages/yishi/wenzhen/wenzhen.js b/Pages/yishi/wenzhen/wenzhen.js index f53123c..f3fe8b9 100644 --- a/Pages/yishi/wenzhen/wenzhen.js +++ b/Pages/yishi/wenzhen/wenzhen.js @@ -17,6 +17,7 @@ Page({ data_list_4: [], data_list_5: [], message_inquiry_type: 2, + static_host: api.getStaticHost() }, onLoad() { console.log("wenzhen onload"); diff --git a/Pages/yishi/wenzhen/wenzhen.wxml b/Pages/yishi/wenzhen/wenzhen.wxml index dfaa341..b9be12b 100644 --- a/Pages/yishi/wenzhen/wenzhen.wxml +++ b/Pages/yishi/wenzhen/wenzhen.wxml @@ -4,20 +4,20 @@ - + 服务通知 - + 系统公告 - + 您还未设置在线问诊价格 开通图文问诊 diff --git a/Pages/yishi/wenzhen_v2/wenzhen.js b/Pages/yishi/wenzhen_v2/wenzhen.js index b3cb159..f292d24 100644 --- a/Pages/yishi/wenzhen_v2/wenzhen.js +++ b/Pages/yishi/wenzhen_v2/wenzhen.js @@ -10,6 +10,7 @@ Page({ title: '问诊消息', //导航栏 中间的标题 }, height: app.globalData.height, + static_host: api.getStaticHost(), has_data: false, data_list_1: [], data_list_2: [], diff --git a/Pages/yishi/wenzhen_v2/wenzhen.wxml b/Pages/yishi/wenzhen_v2/wenzhen.wxml index 932823c..a7a0df2 100644 --- a/Pages/yishi/wenzhen_v2/wenzhen.wxml +++ b/Pages/yishi/wenzhen_v2/wenzhen.wxml @@ -6,17 +6,17 @@ - + 服务通知 - + - + 系统公告 @@ -24,7 +24,7 @@ - + 未收到任何消息 加载中... diff --git a/Pages/yishi/wenzhen_v3/wenzhen.js b/Pages/yishi/wenzhen_v3/wenzhen.js index f66f287..e87db45 100644 --- a/Pages/yishi/wenzhen_v3/wenzhen.js +++ b/Pages/yishi/wenzhen_v3/wenzhen.js @@ -17,6 +17,7 @@ Page({ data_list_4: [], data_list_5: [], data_list_5_loading: false, + static_host: api.getStaticHost(), conversationList: [], message_inquiry_type: 99999, now_message_inquiry_type: 5, diff --git a/Pages/yishi/wenzhen_v3/wenzhen.wxml b/Pages/yishi/wenzhen_v3/wenzhen.wxml index 1a15d4e..4cfe4d1 100644 --- a/Pages/yishi/wenzhen_v3/wenzhen.wxml +++ b/Pages/yishi/wenzhen_v3/wenzhen.wxml @@ -6,17 +6,17 @@ - + 服务通知 - + - + 系统公告 @@ -24,7 +24,7 @@ - + 未收到任何消息 加载中... diff --git a/Pages/yishi/zhiye_identity/index.js b/Pages/yishi/zhiye_identity/index.js index 49b2a2d..d237f62 100644 --- a/Pages/yishi/zhiye_identity/index.js +++ b/Pages/yishi/zhiye_identity/index.js @@ -18,6 +18,7 @@ Page({ btn_disabled: true, sfz_show: false, sub_visible: false, + static_host: api.getStaticHost() }, onLoad(){ diff --git a/Pages/yishi/zhiye_identity/index.wxml b/Pages/yishi/zhiye_identity/index.wxml index a062790..a1fa8ad 100644 --- a/Pages/yishi/zhiye_identity/index.wxml +++ b/Pages/yishi/zhiye_identity/index.wxml @@ -14,6 +14,7 @@ data-file_multiple="true" bindUploadFile="doUploadFile" bindDeleteFile="doDeleteFile" + static_host="{{static_host}}" /> @@ -50,7 +52,7 @@ 点击签名 - + @@ -69,6 +71,7 @@ data-file_multiple="true" bindUploadFile="doUploadFile" bindDeleteFile="doDeleteFile" + static_host="{{static_host}}" /> 提示:平台会在1~3个工作日内审核您提交的资料,审核结果会第一时间通知您。 @@ -89,10 +92,10 @@ 身份证示例 - + - + diff --git a/TUIKit/components/TUIChat/components/MessageInput/index.js b/TUIKit/components/TUIChat/components/MessageInput/index.js index c6e7118..9ecf644 100644 --- a/TUIKit/components/TUIChat/components/MessageInput/index.js +++ b/TUIKit/components/TUIChat/components/MessageInput/index.js @@ -99,7 +99,8 @@ Component({ sub_visible: false, dialog_message: "在线开处方需先进行多点执业认证", message_rounds: 0, - networkstatus: "wifi" + networkstatus: "wifi", + static_host: api.getStaticHost() }, lifetimes: { diff --git a/TUIKit/components/TUIChat/components/MessageInput/index.wxml b/TUIKit/components/TUIChat/components/MessageInput/index.wxml index 784a9a5..f905fa3 100644 --- a/TUIKit/components/TUIChat/components/MessageInput/index.wxml +++ b/TUIKit/components/TUIChat/components/MessageInput/index.wxml @@ -29,7 +29,7 @@ - + 发送 @@ -41,15 +41,15 @@ - + 相机 - + 照片 - + 常用语