更改静态资源host

This commit is contained in:
haomingming 2023-05-10 10:49:40 +08:00
parent 807698b89f
commit 7ef82dab29
51 changed files with 155 additions and 153 deletions

View File

@ -1,17 +1,20 @@
// Pages/webpage/index.js // Pages/webpage/index.js
import { API } from './../../utils/network/api'
const api = new API()
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
src: "" src: "",
static_host: api.getStaticHost()
}, },
onLoad(options) { onLoad(options) {
console.log(options.agreement_id) console.log(options.agreement_id)
this.setData({ 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
}) })
}, },

View File

@ -1,8 +1,11 @@
// Pages/index/index.js // Pages/index/index.js
import { API } from './../../utils/network/api'
const api = new API()
const app = getApp() const app = getApp()
Page({ Page({
data: { data: {
loading: true loading: true,
static_host: api.getStaticHost()
}, },
onLoad(option){ onLoad(option){
let from = option.from; let from = option.from;

View File

@ -4,7 +4,7 @@
data-url="/Pages/yishi/index/index" bindtap="goCheck" > data-url="/Pages/yishi/index/index" bindtap="goCheck" >
<t-image <t-image
class="item_img" class="item_img"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yi.png" src="{{static_host}}/applet/doctor/static/images/yi.png"
mode="heightFix" mode="heightFix"
height="220rpx" height="220rpx"
aria-label="医师端" aria-label="医师端"
@ -18,7 +18,7 @@
data-usertype="3" bindtap="goCheck"> data-usertype="3" bindtap="goCheck">
<t-image <t-image
class="item_img" class="item_img"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yao.png" src="{{static_host}}/applet/doctor/static/images/yao.png"
mode="heightFix" mode="heightFix"
height="220rpx" height="220rpx"
aria-label="药师端" aria-label="药师端"

View File

@ -8,7 +8,8 @@ Page({
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示 showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '登录', //导航栏 中间的标题 title: '登录', //导航栏 中间的标题
}, },
checked: false checked: false,
static_host: api.getStaticHost()
}, },
onLoad(){ onLoad(){
let usertype = wx.getStorageSync('usertype'); let usertype = wx.getStorageSync('usertype');

View File

@ -6,7 +6,7 @@
<view class="box"> <view class="box">
<view class="top"> <view class="top">
<view class="logo"> <view class="logo">
<van-image fit="heightFix" height="56rpx" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/logo.png" use-loading-slot> <van-image fit="heightFix" height="56rpx" src="{{static_host}}/applet/doctor/static/images/logo.png" use-loading-slot>
<van-loading slot="loading" type="spinner" size="20" vertical /> <van-loading slot="loading" type="spinner" size="20" vertical />
</van-image> </van-image>
</view> </view>

View File

@ -13,7 +13,8 @@ Page({
btn_msg: "获取验证码", btn_msg: "获取验证码",
btn_disabled: false, btn_disabled: false,
login_disabled: false, login_disabled: false,
btn_color: "#ccc" btn_color: "#ccc",
static_host: api.getStaticHost()
}, },
onLoad(){ onLoad(){
let usertype = wx.getStorageSync('usertype'); let usertype = wx.getStorageSync('usertype');

View File

@ -1,6 +1,6 @@
<m-nav-bar navbarData="{{navbarData}}"> <m-nav-bar navbarData="{{navbarData}}">
<view class="logo"> <view class="logo">
<van-image height="196rpx" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/logo2.png" fit="heightFix" /> <van-image height="196rpx" src="{{static_host}}/applet/doctor/static/images/logo2.png" fit="heightFix" />
</view> </view>
<view class="fields"> <view class="fields">
<view class="phone_box"> <view class="phone_box">

View File

@ -1,8 +1,10 @@
// Pages/index/index.js // Pages/index/index.js
import { API } from './../../../utils/network/api'
const api = new API()
Page({ Page({
/** data: {
* 生命周期函数--监听页面显示 static_host: api.getStaticHost()
*/ },
onShow() { onShow() {
if (typeof this.getTabBar === 'function' && this.getTabBar()) { if (typeof this.getTabBar === 'function' && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({

View File

@ -4,7 +4,7 @@
<t-image <t-image
bindtap="toGo" data-url="/Pages/yaoshi/home/home" bindtap="toGo" data-url="/Pages/yaoshi/home/home"
class="item_img" class="item_img"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yi.png" src="{{static_host}}/applet/doctor/static/images/yi.png"
mode="heightFix" mode="heightFix"
height="220rpx" height="220rpx"
aria-label="医师端" aria-label="医师端"
@ -17,7 +17,7 @@
<t-image <t-image
bindtap="toGo" data-url="/Pages/yaoshi/my/my" bindtap="toGo" data-url="/Pages/yaoshi/my/my"
class="item_img" class="item_img"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yao.png" src="{{static_host}}/applet/doctor/static/images/yao.png"
mode="heightFix" mode="heightFix"
height="220rpx" height="220rpx"
aria-label="药师端" aria-label="药师端"

View File

@ -12,7 +12,8 @@ Page({
bank_card_id: "", bank_card_id: "",
bank_img_path: "", bank_img_path: "",
bank_name: "", bank_name: "",
bank_card_code_mask: "" bank_card_code_mask: "",
static_host: api.getStaticHost()
}, },
onShow(){ onShow(){

View File

@ -11,7 +11,7 @@
</view> </view>
<view class="bankcard_empty_box" wx:if="{{ banklist_empty }}"> <view class="bankcard_empty_box" wx:if="{{ banklist_empty }}">
<view class="bankcard_empty"> <view class="bankcard_empty">
<van-image src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/bankcard_empty.png" fit="widthFix" width="500rpx" aria-label="空" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/bankcard_empty.png" fit="widthFix" width="500rpx" aria-label="空" />
</view> </view>
<van-button data-url="/Pages/yishi/bindcard/index" bind:click="go" custom-style="font-size: 30rpx;border-radius: 10rpx;background-color:#3CC7C0;border: none;width: 92vw;margin: 50rpx auto;" type="primary" block>添加结算银行卡</van-button> <van-button data-url="/Pages/yishi/bindcard/index" bind:click="go" custom-style="font-size: 30rpx;border-radius: 10rpx;background-color:#3CC7C0;border: none;width: 92vw;margin: 50rpx auto;" type="primary" block>添加结算银行卡</van-button>
<view class="note">提示:每人只能绑定一张银行卡,银行卡绑定成功后每月只能修改结算银行卡一次,请谨慎绑定。</view> <view class="note">提示:每人只能绑定一张银行卡,银行卡绑定成功后每月只能修改结算银行卡一次,请谨慎绑定。</view>
@ -22,16 +22,6 @@
<view class="bankcard_list_item_name">{{bank_name}}</view> <view class="bankcard_list_item_name">{{bank_name}}</view>
<view class="bankcard_list_item_num">{{bank_card_code_mask}}</view> <view class="bankcard_list_item_num">{{bank_card_code_mask}}</view>
</view> </view>
<!-- <view class="bankcard_list_item">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/ny.png" fit="widthFix" width="100%" aria-label="空" />
<view class="bankcard_list_item_name">中国农业银行</view>
<view class="bankcard_list_item_num">3034 **** **** **** 2698</view>
</view> -->
<!-- <view class="bankcard_list_item">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js.png" fit="widthFix" width="100%" aria-label="空" />
<view class="bankcard_list_item_name">中国建设银行</view>
<view class="bankcard_list_item_num">3034 **** **** **** 2698</view>
</view> -->
<van-button data-url="/Pages/yishi/bindcard/index" bind:click="go" custom-style="font-size: 30rpx;border-radius: 10rpx;background-color:#3CC7C0;border: none;width: 92vw;margin: 50rpx auto;" type="primary" block>更换银行卡</van-button> <van-button data-url="/Pages/yishi/bindcard/index" bind:click="go" custom-style="font-size: 30rpx;border-radius: 10rpx;background-color:#3CC7C0;border: none;width: 92vw;margin: 50rpx auto;" type="primary" block>更换银行卡</van-button>
<view class="note"> <view class="note">

View File

@ -27,7 +27,8 @@ Page({
area_sub_titles: ["省份","市区","区县"], area_sub_titles: ["省份","市区","区县"],
areaprovince_data_ready: false, areaprovince_data_ready: false,
banklist_data_ready: false, banklist_data_ready: false,
bank_card_id: "" bank_card_id: "",
static_host: api.getStaticHost()
}, },
onLoad(options){ onLoad(options){
console.log("options: ", options); console.log("options: ", options);

View File

@ -2,7 +2,7 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar> <te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);"> <view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
<view class="top_note"> <view class="top_note">
<van-image style="display: flex;align-items: center;margin-right: 10rpx;" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/bell.png" fit="widthFix" width="45rpx" aria-label="qrcode" /> <van-image style="display: flex;align-items: center;margin-right: 10rpx;" src="{{static_host}}/applet/doctor/static/images/bell.png" fit="widthFix" width="45rpx" aria-label="qrcode" />
<text>请确定开户人姓名与账户医生的姓名一致</text> <text>请确定开户人姓名与账户医生的姓名一致</text>
</view> </view>
<view class="info"> <view class="info">

View File

@ -27,15 +27,15 @@
<view class="title">医生诊断:</view> <view class="title">医生诊断:</view>
<view class="conent">{{case_detail.disease_class_name}}</view> <view class="conent">{{case_detail.disease_class_name}}</view>
</view> --> </view> -->
<view class="disease_box_item" wx:if="{{case_detail.diagnosis_hospital != ''}}"> <view class="disease_box_item" wx:if="{{case_detail.diagnosis_hospital != '' && case_detail.diagnosis_hospital != null}}">
<view class="title">确诊医院:</view> <view class="title">确诊医院:</view>
<view class="conent">{{case_detail.diagnosis_hospital}}</view> <view class="conent">{{case_detail.diagnosis_hospital}}</view>
</view> </view>
<view class="disease_box_item"> <view class="disease_box_item" wx:if="{{case_detail.drugs_name != '' && case_detail.drugs_name != null}}">
<view class="title">正在服用的药品信息:</view> <view class="title">正在服用的药品信息:</view>
<view class="conent">{{case_detail.drugs_name==''?'无':''}}</view> <view class="conent">{{case_detail.drugs_name==''?'无':''}}</view>
</view> </view>
<view class="disease_info" wx:if="{{case_detail.drugs_name != ''}}"> <view class="disease_info" wx:if="{{case_detail.drugs_name != '' && case_detail.drugs_name != null}}">
详细描述:{{case_detail.drugs_name}} 详细描述:{{case_detail.drugs_name}}
</view> </view>
<view class="disease_box_item"> <view class="disease_box_item">
@ -48,7 +48,7 @@
<text wx:for="{{case_detail.product}}">{{item}};</text> <text wx:for="{{case_detail.product}}">{{item}};</text>
</view> </view>
</view> </view>
<view class="disease_box_item"> <view class="disease_box_item" wx:if="{{case_detail.diagnose_images.length > 0}}">
<view class="title">复诊凭证(病例/处方单/检查报告/住院单)</view> <view class="title">复诊凭证(病例/处方单/检查报告/住院单)</view>
<view class="conent" wx:if="{{case_detail.diagnose_images.length == 0}}">无</view> <view class="conent" wx:if="{{case_detail.diagnose_images.length == 0}}">无</view>
</view> </view>
@ -58,38 +58,38 @@
</view> </view>
</view> </view>
<view class="main_title">其他信息</view> <view class="main_title" wx:if="{{case_detail.is_allergy_history != null && case_detail.is_family_history != null && case_detail.is_pregnant != null && case_detail.drink_wine_status != null && case_detail.smoke_status != null && case_detail.is_operation != null && case_detail.chemical_compound_status != null && case_detail.chemical_compound_status != null}}">其他信息</view>
<view class="data_box orther"> <view class="data_box orther" wx:if="{{case_detail.is_allergy_history != null && case_detail.is_family_history != null && case_detail.is_pregnant != null && case_detail.drink_wine_status != null && case_detail.smoke_status != null && case_detail.is_operation != null && case_detail.chemical_compound_status != null && case_detail.chemical_compound_status != null}}">
<view class="disease_box"> <view class="disease_box">
<view class="disease_box_item" wx:if="{{case_detail.is_allergy_history != 0}}"> <view class="disease_box_item" wx:if="{{case_detail.is_allergy_history != null}}">
<view class="title">过敏史:</view> <view class="title">过敏史:</view>
<view class="conent">{{case_detail.is_allergy_history==0?'否':case_detail.allergy_history}}</view> <view class="conent">{{case_detail.is_allergy_history==0?'否':case_detail.allergy_history}}</view>
</view> </view>
<view class="disease_box_item" wx:if="{{case_detail.is_family_history != 0}}"> <view class="disease_box_item" wx:if="{{ case_detail.is_family_history != null}}">
<view class="title">家族史:</view> <view class="title">家族史:</view>
<view class="conent">{{case_detail.is_family_history==0?'否':case_detail.family_history}}</view> <view class="conent">{{case_detail.is_family_history==0?'否':case_detail.family_history}}</view>
</view> </view>
<view class="disease_box_item" wx:if="{{case_detail.is_pregnant != 0}}"> <view class="disease_box_item" wx:if="{{case_detail.is_pregnant != null}}">
<view class="title">是否备孕、妊娠或者哺乳期:</view> <view class="title">是否备孕、妊娠或者哺乳期:</view>
<view class="conent">{{case_detail.is_pregnant==0?'否':case_detail.pregnant}}</view> <view class="conent">{{case_detail.is_pregnant==0?'否':case_detail.pregnant}}</view>
</view> </view>
<view class="disease_box_item" wx:if="{{case_detail.drink_wine_status != 0}}"> <view class="disease_box_item" wx:if="{{ case_detail.drink_wine_status != null}}">
<view class="title">饮酒史:</view> <view class="title">饮酒史:</view>
<view class="conent">{{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?'已戒酒':'其他'}}</view> <view class="conent">{{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?'已戒酒':'其他'}}</view>
</view> </view>
<view class="disease_box_item" wx:if="{{case_detail.smoke_status != 0}}"> <view class="disease_box_item" wx:if="{{case_detail.smoke_status != null}}">
<view class="title">吸烟史:</view> <view class="title">吸烟史:</view>
<view class="conent">{{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?'已戒烟':'其他'}}</view> <view class="conent">{{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?'已戒烟':'其他'}}</view>
</view> </view>
<view class="disease_box_item" wx:if="{{case_detail.is_operation != 0}}"> <view class="disease_box_item" wx:if="{{case_detail.is_operation != null}}">
<view class="title">手术史:</view> <view class="title">手术史:</view>
<view class="conent">{{case_detail.is_operation==0?'否':case_detail.operation}}</view> <view class="conent">{{case_detail.is_operation==0?'否':case_detail.operation}}</view>
</view> </view>
<view class="disease_box_item" wx:if="{{case_detail.chemical_compound_status != 0}}"> <view class="disease_box_item" wx:if="{{ case_detail.chemical_compound_status != null}}">
<view class="title">接触化学物:</view> <view class="title">接触化学物:</view>
<view class="conent">{{case_detail.chemical_compound_status==1?'从不':case_detail.chemical_compound_status==2?'偶尔':case_detail.chemical_compound_status==3?'经常':case_detail.chemical_compound_status==4?'每天':'其他'}}</view> <view class="conent">{{case_detail.chemical_compound_status==1?'从不':case_detail.chemical_compound_status==2?'偶尔':case_detail.chemical_compound_status==3?'经常':case_detail.chemical_compound_status==4?'每天':'其他'}}</view>
</view> </view>
<view class="disease_info" wx:if="{{case_detail.chemical_compound_status != 1}}"> <view class="disease_info" wx:if="{{case_detail.chemical_compound_describe != null}}">
详细描述:{{case_detail.chemical_compound_describe}} 详细描述:{{case_detail.chemical_compound_describe}}
</view> </view>
</view> </view>

View File

@ -38,7 +38,7 @@ page{
} }
.info_item{ .info_item{
text-align: center; text-align: center;
width: 190rpx; /* width: 190rpx; */
height: 60rpx; height: 60rpx;
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -11,7 +11,8 @@ Page({
}, },
height: app.globalData.height, height: app.globalData.height,
bank_card_id: "", 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_card_name: "默认姓名",
bank_name : "xx银行", bank_name : "xx银行",
bank_card_code_mask: "888 xxxx xxxx 888", bank_card_code_mask: "888 xxxx xxxx 888",

View File

@ -58,7 +58,7 @@
</view> --> </view> -->
<view class="bottom"> <view class="bottom">
<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> <van-button bind:click="postDoctorWithdrawal" disabled="{{order_inquiry_ids.length == 0 || sub_btn_disabled || withdrawal_amount == 0}}" custom-style="border-radius: 10rpx;font-size: 30rpx;" block color="#3CC7C0">提取</van-button>
<view class="kefu" bindtap="contactKeFu"> <view class="kefu" bindtap="contactKeFu">
<text>联系客服</text> <text>联系客服</text>
</view> </view>

View File

@ -17,6 +17,7 @@ Page({
dateVisible: false, dateVisible: false,
select_date: '', select_date: '',
years: [], years: [],
static_host: api.getStaticHost()
}, },
onLoad(){ onLoad(){
let now_year = (new Date()).Format("yyyy"); let now_year = (new Date()).Format("yyyy");

View File

@ -11,7 +11,7 @@
<view class="data_item" wx:for="{{record_list}}"> <view class="data_item" wx:for="{{record_list}}">
<view class="data_item_top"> <view class="data_item_top">
<view class="data_item_top_icon"> <view class="data_item_top_icon">
<van-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" fit="heightFix" height="50rpx" aria-label="role" /> <van-image custom-style="" src="{{static_host}}/applet/doctor/static/images/yishi/bankcard/js_icon.png" fit="heightFix" height="50rpx" aria-label="role" />
</view> </view>
<view class="data_item_top_content"> <view class="data_item_top_content">
<view class="name">{{item.account_name}}<text style="margin-left:20rpx;font-size: 28rpx;color:#999;">(尾号{{item.bank_card_code_four}}</text></view> <view class="name">{{item.account_name}}<text style="margin-left:20rpx;font-size: 28rpx;color:#999;">(尾号{{item.bank_card_code_four}}</text></view>
@ -28,26 +28,6 @@
<view class="data_item_bottom">个人所得税:¥{{item.income_tax}}</view> <view class="data_item_bottom">个人所得税:¥{{item.income_tax}}</view>
</view> </view>
<!-- <view class="data_item">
<view class="data_item_top">
<view class="data_item_top_icon">
<van-image custom-style="" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/bankcard/js_icon.png" fit="heightFix" height="50rpx" aria-label="role" />
</view>
<view class="data_item_top_content">
<view class="name">张三三<text style="margin-left:20rpx;font-size: 28rpx;color:#999;">尾号9900</text></view>
<view class="date">12.09 13:23</view>
</view>
<view class="data_item_top_num">
<view class="jine">¥123.00</view>
<view class="status_box">
<view class="status status_end">结算成功</view>
</view>
</view>
</view>
<view class="data_item_bottom">个人所得税¥12.00</view>
</view> -->
<van-empty description="暂无数据" wx:if="{{record_list.length == 0}}" /> <van-empty description="暂无数据" wx:if="{{record_list.length == 0}}" />
</view> </view>

View File

@ -20,9 +20,10 @@ Page({
praise_rate: "100%", praise_rate: "100%",
avg_response_time: 0, avg_response_time: 0,
number_of_fans: 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,//处方管理小红点 reject_prescription_number: false,//处方管理小红点
}, },
static_host: api.getStaticHost(),
iden_auth_status_txt: "未认证", iden_auth_status_txt: "未认证",
multi_point_status_txt: "未认证", multi_point_status_txt: "未认证",
shiming_status_url: "", shiming_status_url: "",
@ -230,7 +231,6 @@ Page({
this.getTabBar().setData({ this.getTabBar().setData({
active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2因此这边为2同理首页就为0审批页面为1 active: 0, //数字是当前页面在tabbar的索引,如我的查询页索引是2因此这边为2同理首页就为0审批页面为1
}) })
this.getTabBar().startInterval() this.getTabBar().startInterval()
} }
this.getMenuButtonBound(); this.getMenuButtonBound();

View File

@ -68,7 +68,7 @@
<view class="renzheng_content_right"> <view class="renzheng_content_right">
<van-image class="renzheng_content_right_img" width="100%" <van-image class="renzheng_content_right_img" width="100%"
fit="widthFix" fit="widthFix"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yishirenzheng.png" src="{{static_host}}/applet/doctor/static/images/yishi/yishirenzheng.png"
/> />
</view> </view>
</view> </view>
@ -87,7 +87,7 @@
<view class="renzheng_content_right"> <view class="renzheng_content_right">
<van-image class="renzheng_content_right_img" width="100%" <van-image class="renzheng_content_right_img" width="100%"
fit="widthFix" fit="widthFix"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zhiyerenzheng.png" src="{{static_host}}/applet/doctor/static/images/yishi/zhiyerenzheng.png"
/> />
</view> </view>
</view> </view>
@ -122,7 +122,7 @@
<van-image class="fun_box_item_img" <van-image class="fun_box_item_img"
fit="heightFix" fit="heightFix"
height="70rpx" height="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/jianjie.png" src="{{static_host}}/applet/doctor/static/images/yishi/jianjie.png"
/> />
<text class="fun_box_item_txt">个人简介管理</text> <text class="fun_box_item_txt">个人简介管理</text>
</view> </view>
@ -130,7 +130,7 @@
<van-image class="fun_box_item_img" <van-image class="fun_box_item_img"
fit="widthFix" fit="widthFix"
width="70rpx" width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/zaixian.png" src="{{static_host}}/applet/doctor/static/images/yishi/zaixian.png"
/> />
<text class="fun_box_item_txt">在线问诊管理</text> <text class="fun_box_item_txt">在线问诊管理</text>
</view> </view>
@ -138,7 +138,7 @@
<van-image class="fun_box_item_img" <van-image class="fun_box_item_img"
fit="widthFix" fit="widthFix"
width="70rpx" width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kuaisu.png" src="{{static_host}}/applet/doctor/static/images/yishi/kuaisu.png"
/> />
<text class="fun_box_item_txt">快速问诊管理</text> <text class="fun_box_item_txt">快速问诊管理</text>
</view> </view>
@ -146,7 +146,7 @@
<van-image class="fun_box_item_img" <van-image class="fun_box_item_img"
fit="widthFix" fit="widthFix"
width="70rpx" width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/yizhen.png" src="{{static_host}}/applet/doctor/static/images/yishi/yizhen.png"
/> />
<text class="fun_box_item_txt">公益问诊管理</text> <text class="fun_box_item_txt">公益问诊管理</text>
</view> </view>
@ -154,7 +154,7 @@
<van-image class="fun_box_item_img" <van-image class="fun_box_item_img"
fit="widthFix" fit="widthFix"
width="70rpx" width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/chufang.png" src="{{static_host}}/applet/doctor/static/images/yishi/chufang.png"
/> />
<view class="fun_box_item_txt"> <view class="fun_box_item_txt">
<t-badge style="display: flex;align-items: center;" dot="{{info.reject_prescription_number ? true : false}}" offset="{{ ['-14rpx', '10rpx'] }}" class="wrapper" content="处方管理" /> <t-badge style="display: flex;align-items: center;" dot="{{info.reject_prescription_number ? true : false}}" offset="{{ ['-14rpx', '10rpx'] }}" class="wrapper" content="处方管理" />
@ -164,7 +164,7 @@
<van-image class="fun_box_item_img" <van-image class="fun_box_item_img"
fit="widthFix" fit="widthFix"
width="70rpx" width="70rpx"
src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/kefu.png" src="{{static_host}}/applet/doctor/static/images/yishi/kefu.png"
/> />
<text class="fun_box_item_txt">联系客服</text> <text class="fun_box_item_txt">联系客服</text>
</view> </view>
@ -228,7 +228,7 @@
fit="widthFix" fit="widthFix"
style="position: absolute; padding-top: {{stateHeight + navHeight}}px;" style="position: absolute; padding-top: {{stateHeight + navHeight}}px;"
width="100vw" width="100vw"
src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/collection.png" src="{{static_host}}/applet/doctor/static/images/collection.png"
/> />
<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-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> </van-overlay>

View File

@ -10,7 +10,8 @@ Page({
iden_auth_status: "0", iden_auth_status: "0",
idcard_status: "0", idcard_status: "0",
multi_point_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", balance_account: "0",
estimate_income: "0", estimate_income: "0",
doctor_id: "" doctor_id: ""

View File

@ -16,6 +16,7 @@ Page({
balance_account: "", balance_account: "",
amount_total_month: "", amount_total_month: "",
withdrawal_amount_month: "", withdrawal_amount_month: "",
static_host: api.getStaticHost(),
bill: [], bill: [],
years: [], years: [],
seasons: [ seasons: [

View File

@ -23,7 +23,7 @@
<van-empty description="暂无账单" wx:if="{{ bill.length == 0 }}" /> <van-empty description="暂无账单" wx:if="{{ bill.length == 0 }}" />
</view> </view>
<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" /> <van-image bind:click="go" data-url="/Pages/agreement_page/index?agreement_id=13" style="position: fixed; right: 0;bottom: 262rpx;" src="{{static_host}}/applet/doctor/static/images/yishi/account_rule.png" fit="heightFix" height="84rpx" aria-label="role" />
<t-picker <t-picker
visible="{{dateVisible}}" visible="{{dateVisible}}"

View File

@ -52,7 +52,7 @@ Page({
}, },
{ {
type: 'image',//医生二维码图片 3 type: 'image',//医生二维码图片 3
url: 'https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/qrcode.png', url: '',
css: { css: {
left: '215px', left: '215px',
top: '458px', top: '458px',
@ -62,7 +62,7 @@ Page({
}, },
{ {
type: 'image',//医生头像图片 4 type: 'image',//医生头像图片 4
url: 'https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png', url: '',
css: { css: {
top: '40px', top: '40px',
left: '327px', left: '327px',

View File

@ -25,20 +25,7 @@
<!-- <view class="title">分享我的名片到</view> --> <!-- <view class="title">分享我的名片到</view> -->
</view> </view>
<view class="imgbox"> <view class="imgbox">
<!-- <view class="imgbox_item">
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wx.png" mode="heightFix" width="90rpx" height="90rpx" aria-label="qrcode" />
<text class="imgbox_item_txt">
微信好友
</text>
</view>
<view class="imgbox_item">
<t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/pyq.png" mode="heightFix" width="90rpx" height="90rpx" aria-label="qrcode" />
<text class="imgbox_item_txt">
朋友圈
</text>
</view> -->
<view class="imgbox_item" bindtap="onSave"> <view class="imgbox_item" bindtap="onSave">
<!-- <t-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wx.png" mode="heightFix" width="90rpx" height="90rpx" aria-label="qrcode" /> -->
<t-icon color="#fff" name="download" size="24" data-name="download" class="t_icon" /> <t-icon color="#fff" name="download" size="24" data-name="download" class="t_icon" />
<text class="imgbox_item_txt"> <text class="imgbox_item_txt">
保存到相册,分享到朋友圈 保存到相册,分享到朋友圈

View File

@ -39,7 +39,8 @@ Page({
sub_disabled: false, sub_disabled: false,
from: "", from: "",
now_filed_focus: 'save_durg_prescription_product_num', now_filed_focus: 'save_durg_prescription_product_num',
page_meta_show: true page_meta_show: true,
static_host: api.getStaticHost()
}, },
changeFocus(e){ changeFocus(e){
let next_filed_focus = e.currentTarget.dataset.next_filed_focus; let next_filed_focus = e.currentTarget.dataset.next_filed_focus;

View File

@ -104,7 +104,7 @@
width="300rpx" width="300rpx"
height="300rpx" height="300rpx"
fit="contain" 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"
/> />
</view> </view>
<view class="search_drug_list_noempty" wx:if="{{ !search_drug_list_empty }}"> <view class="search_drug_list_noempty" wx:if="{{ !search_drug_list_empty }}">

View File

@ -18,7 +18,8 @@ Page({
confirmBtn: { confirmBtn: {
"openType": "contact", "openType": "contact",
"content": "确认", "content": "确认",
} },
static_host: api.getStaticHost()
}, },
onShow(){ onShow(){
this.getList(); this.getList();

View File

@ -5,33 +5,33 @@
<view class="item_top"> <view class="item_top">
<view class="item_img" wx:if="{{item.link_params.inquiry_type == 1}}"> <view class="item_img" wx:if="{{item.link_params.inquiry_type == 1}}">
<text style="margin-left: 10rpx;">在线问诊</text> <text style="margin-left: 10rpx;">在线问诊</text>
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/online.png" fit="heightFix" height="54rpx" aria-label="qrcode" /> <van-image class="van_img" src="{{static_host}}/applet/doctor/static/images/yishi/service_notice/online.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view> </view>
<view class="item_img" wx:if="{{item.link_params.inquiry_type == 2}}"> <view class="item_img" wx:if="{{item.link_params.inquiry_type == 2}}">
<text style="margin-left: 10rpx;">快速问诊</text> <text style="margin-left: 10rpx;">快速问诊</text>
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" /> <van-image class="van_img" src="{{static_host}}/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view> </view>
<view class="item_img" wx:if="{{item.link_params.inquiry_type == 3}}"> <view class="item_img" wx:if="{{item.link_params.inquiry_type == 3}}">
<text style="margin-left: 10rpx;">公益问诊</text> <text style="margin-left: 10rpx;">公益问诊</text>
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/yizhen.png" fit="heightFix" height="54rpx" aria-label="qrcode" /> <van-image class="van_img" src="{{static_host}}/applet/doctor/static/images/yishi/service_notice/yizhen.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view> </view>
<view class="item_img" wx:if="{{item.link_params.inquiry_type == 4}}"> <view class="item_img" wx:if="{{item.link_params.inquiry_type == 4}}">
<text style="margin-left: 10rpx;">问诊购药</text> <text style="margin-left: 10rpx;">问诊购药</text>
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/drug.png" fit="heightFix" height="54rpx" aria-label="qrcode" /> <van-image class="van_img" src="{{static_host}}/applet/doctor/static/images/yishi/service_notice/drug.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view> </view>
<view class="item_date">{{item.notice_send_time}}</view> <view class="item_date">{{item.notice_send_time}}</view>
</view> </view>
<view class="item_content"> <view class="item_content">
{{item.notice_brief_title}} {{item.notice_brief_title}}
<view class="hongdian" wx:if="{{item.read_status == 0}}"> <view class="hongdian" wx:if="{{item.read_status == 0}}">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/honhdian.png" fit="heightFix" height="20rpx" aria-label="qrcode" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/honhdian.png" fit="heightFix" height="20rpx" aria-label="qrcode" />
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<van-empty description="暂无数据" wx:if="{{list.length == 0}}" /> <van-empty description="暂无数据" wx:if="{{list.length == 0}}" />
<van-divider contentPosition="center" wx:if="{{list.length > 0 && current_page == last_page}}">到底了~</van-divider> <van-divider contentPosition="center" wx:if="{{list.length > 0 && current_page == last_page}}">到底了~</van-divider>
<van-image bind:click="putMessageReadNoticeAll" style="position: fixed; right: 0;bottom: 262rpx;" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/service_notice/readall.png" fit="heightFix" height="84rpx" aria-label="role" /> <van-image bind:click="putMessageReadNoticeAll" style="position: fixed; right: 0;bottom: 262rpx;" src="{{static_host}}/applet/doctor/static/images/yishi/service_notice/readall.png" fit="heightFix" height="84rpx" aria-label="role" />
<view style="height: 50rpx;"></view> <view style="height: 50rpx;"></view>
<t-dialog <t-dialog

View File

@ -14,6 +14,7 @@ Page({
total: 0, total: 0,
per_page: 0, per_page: 0,
last_page: 0, last_page: 0,
static_host: api.getStaticHost()
}, },
go(e){ go(e){
this.putMessageReadNotice(e); this.putMessageReadNotice(e);

View File

@ -4,18 +4,18 @@
<view class="item" bindtap="go" data-notice_id="{{item.notice_id}}" data-url="/Pages/yishi/notice_deatil/index?notice_id={{item.notice_id}}" wx:for="{{list}}"> <view class="item" bindtap="go" data-notice_id="{{item.notice_id}}" data-url="/Pages/yishi/notice_deatil/index?notice_id={{item.notice_id}}" wx:for="{{list}}">
<view class="item_top"> <view class="item_top">
<view class="item_img"> <view class="item_img">
<van-image class="van_img" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" /> <van-image class="van_img" src="{{static_host}}/applet/doctor/static/images/yishi/service_notice/kuaisu.png" fit="heightFix" height="54rpx" aria-label="qrcode" />
</view> </view>
<view class="item_content">{{item.notice_brief_title}}</view> <view class="item_content">{{item.notice_brief_title}}</view>
</view> </view>
<view class="hongdian" wx:if="{{item.read_status == 0}}"> <view class="hongdian" wx:if="{{item.read_status == 0}}">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/honhdian.png" fit="heightFix" height="20rpx" aria-label="qrcode" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/honhdian.png" fit="heightFix" height="20rpx" aria-label="qrcode" />
</view> </view>
</view> </view>
</view> </view>
<van-empty description="暂无数据" wx:if="{{list.length == 0}}" /> <van-empty description="暂无数据" wx:if="{{list.length == 0}}" />
<van-divider contentPosition="center" wx:if="{{list.length > 0 && current_page == last_page}}">到底了~</van-divider> <van-divider contentPosition="center" wx:if="{{list.length > 0 && current_page == last_page}}">到底了~</van-divider>
<van-image bind:click="putMessageReadNoticeAll" style="position: fixed; right: 0;bottom: 262rpx;" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/service_notice/readall.png" fit="heightFix" height="84rpx" aria-label="role" /> <van-image bind:click="putMessageReadNoticeAll" style="position: fixed; right: 0;bottom: 262rpx;" src="{{static_host}}/applet/doctor/static/images/yishi/service_notice/readall.png" fit="heightFix" height="84rpx" aria-label="role" />
<view style="height: 50rpx;"> <view style="height: 50rpx;">
</view> </view>

View File

@ -17,6 +17,7 @@ Page({
data_list_4: [], data_list_4: [],
data_list_5: [], data_list_5: [],
message_inquiry_type: 2, message_inquiry_type: 2,
static_host: api.getStaticHost()
}, },
onLoad() { onLoad() {
console.log("wenzhen onload"); console.log("wenzhen onload");

View File

@ -4,20 +4,20 @@
<view class="top"> <view class="top">
<view class="top_left" bindtap="go" data-url="/Pages/yishi/service_notice/index"> <view class="top_left" bindtap="go" data-url="/Pages/yishi/service_notice/index">
<t-badge dot offset="{{ [1, 1] }}" class="wrapper"> <t-badge dot offset="{{ [1, 1] }}" class="wrapper">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" fit="heightFix" height="108rpx" aria-label="notice" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/service_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
</t-badge> </t-badge>
服务通知 服务通知
</view> </view>
<view class="top_right" bindtap="go" data-url="/Pages/yishi/system_notice/index"> <view class="top_right" bindtap="go" data-url="/Pages/yishi/system_notice/index">
<t-badge count="8" offset="{{ [1, 1] }}" class="wrapper"> <t-badge count="8" offset="{{ [1, 1] }}" class="wrapper">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
</t-badge> </t-badge>
系统公告 系统公告
</view> </view>
</view> </view>
<view class="empty" wx:if="{{ !has_data }}" > <view class="empty" wx:if="{{ !has_data }}" >
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wnzhen_empty.png" fit="heightFix" height="108rpx" aria-label="empty" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/wnzhen_empty.png" fit="heightFix" height="108rpx" aria-label="empty" />
<view class="empty_note">您还未设置在线问诊价格</view> <view class="empty_note">您还未设置在线问诊价格</view>
</view> </view>
<van-button color="#3CC7C0" custom-style="width: 92vw;margin: 0 auto;border-radius: 10rpx;" block wx:if="{{ !has_data }}">开通图文问诊</van-button> <van-button color="#3CC7C0" custom-style="width: 92vw;margin: 0 auto;border-radius: 10rpx;" block wx:if="{{ !has_data }}">开通图文问诊</van-button>

View File

@ -10,6 +10,7 @@ Page({
title: '问诊消息', //导航栏 中间的标题 title: '问诊消息', //导航栏 中间的标题
}, },
height: app.globalData.height, height: app.globalData.height,
static_host: api.getStaticHost(),
has_data: false, has_data: false,
data_list_1: [], data_list_1: [],
data_list_2: [], data_list_2: [],

View File

@ -6,17 +6,17 @@
<view class="top"> <view class="top">
<view class="top_left" bindtap="go" data-name="service_notice_unreadnnum" data-url="/Pages/yishi/service_notice/index"> <view class="top_left" bindtap="go" data-name="service_notice_unreadnnum" data-url="/Pages/yishi/service_notice/index">
<t-badge dot="{{service_notice_unreadnnum > 0}}" offset="{{ [1, 1] }}" class="wrapper"> <t-badge dot="{{service_notice_unreadnnum > 0}}" offset="{{ [1, 1] }}" class="wrapper">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" fit="heightFix" height="108rpx" aria-label="notice" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/service_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
</t-badge> </t-badge>
服务通知 服务通知
</view> </view>
<view class="top_right" bindtap="go" data-name="system_notice_unreadnnum" data-url="/Pages/yishi/system_notice/index"> <view class="top_right" bindtap="go" data-name="system_notice_unreadnnum" data-url="/Pages/yishi/system_notice/index">
<t-badge offset="{{ [1, 1] }}" class="wrapper" wx:if="{{system_notice_unreadnnum == ''}}"> <t-badge offset="{{ [1, 1] }}" class="wrapper" wx:if="{{system_notice_unreadnnum == ''}}">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
</t-badge> </t-badge>
<t-badge count="{{system_notice_unreadnnum}}" offset="{{ [1, 1] }}" class="wrapper" wx:else> <t-badge count="{{system_notice_unreadnnum}}" offset="{{ [1, 1] }}" class="wrapper" wx:else>
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
</t-badge> </t-badge>
系统公告 系统公告
</view> </view>
@ -24,7 +24,7 @@
<view class="empty" wx:if="{{ has_data==false }}" > <view class="empty" wx:if="{{ has_data==false }}" >
<view wx:if="{{!data_list_5_loading}}" class="empty_box"> <view wx:if="{{!data_list_5_loading}}" class="empty_box">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wnzhen_empty.png" fit="heightFix" height="108rpx" aria-label="empty" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/wnzhen_empty.png" fit="heightFix" height="108rpx" aria-label="empty" />
<view class="empty_note">未收到任何消息</view> <view class="empty_note">未收到任何消息</view>
</view> </view>
<van-loading size="24px" wx:if="{{data_list_5_loading}}">加载中...</van-loading> <van-loading size="24px" wx:if="{{data_list_5_loading}}">加载中...</van-loading>

View File

@ -17,6 +17,7 @@ Page({
data_list_4: [], data_list_4: [],
data_list_5: [], data_list_5: [],
data_list_5_loading: false, data_list_5_loading: false,
static_host: api.getStaticHost(),
conversationList: [], conversationList: [],
message_inquiry_type: 99999, message_inquiry_type: 99999,
now_message_inquiry_type: 5, now_message_inquiry_type: 5,

View File

@ -6,17 +6,17 @@
<view class="top"> <view class="top">
<view class="top_left" bindtap="go" data-name="service_notice_unreadnnum" data-url="/Pages/yishi/service_notice/index"> <view class="top_left" bindtap="go" data-name="service_notice_unreadnnum" data-url="/Pages/yishi/service_notice/index">
<t-badge dot="{{service_notice_unreadnnum > 0}}" offset="{{ [1, 1] }}" class="wrapper"> <t-badge dot="{{service_notice_unreadnnum > 0}}" offset="{{ [1, 1] }}" class="wrapper">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/service_notice.png" fit="heightFix" height="108rpx" aria-label="notice" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/service_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
</t-badge> </t-badge>
服务通知 服务通知
</view> </view>
<view class="top_right" bindtap="go" data-name="system_notice_unreadnnum" data-url="/Pages/yishi/system_notice/index"> <view class="top_right" bindtap="go" data-name="system_notice_unreadnnum" data-url="/Pages/yishi/system_notice/index">
<t-badge offset="{{ [1, 1] }}" class="wrapper" wx:if="{{system_notice_unreadnnum == ''}}"> <t-badge offset="{{ [1, 1] }}" class="wrapper" wx:if="{{system_notice_unreadnnum == ''}}">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
</t-badge> </t-badge>
<t-badge count="{{system_notice_unreadnnum}}" offset="{{ [1, 1] }}" class="wrapper" wx:else> <t-badge count="{{system_notice_unreadnnum}}" offset="{{ [1, 1] }}" class="wrapper" wx:else>
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/system_notice.png" fit="heightFix" height="108rpx" aria-label="notice" />
</t-badge> </t-badge>
系统公告 系统公告
</view> </view>
@ -24,7 +24,7 @@
<view class="empty" wx:if="{{ has_data==false }}" > <view class="empty" wx:if="{{ has_data==false }}" >
<view wx:if="{{!data_list_5_loading}}"> <view wx:if="{{!data_list_5_loading}}">
<van-image src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/wnzhen_empty.png" fit="heightFix" height="108rpx" aria-label="empty" /> <van-image src="{{static_host}}/applet/doctor/static/images/yishi/wnzhen_empty.png" fit="heightFix" height="108rpx" aria-label="empty" />
<view class="empty_note">未收到任何消息</view> <view class="empty_note">未收到任何消息</view>
</view> </view>
<van-loading size="24px" wx:if="{{data_list_5_loading}}">加载中...</van-loading> <van-loading size="24px" wx:if="{{data_list_5_loading}}">加载中...</van-loading>

View File

@ -18,6 +18,7 @@ Page({
btn_disabled: true, btn_disabled: true,
sfz_show: false, sfz_show: false,
sub_visible: false, sub_visible: false,
static_host: api.getStaticHost()
}, },
onLoad(){ onLoad(){

View File

@ -14,6 +14,7 @@
data-file_multiple="true" data-file_multiple="true"
bindUploadFile="doUploadFile" bindUploadFile="doUploadFile"
bindDeleteFile="doDeleteFile" bindDeleteFile="doDeleteFile"
static_host="{{static_host}}"
/> />
<m-upload-cell <m-upload-cell
@ -30,6 +31,7 @@
data-file_multiple="true" data-file_multiple="true"
bindUploadFile="doUploadFile" bindUploadFile="doUploadFile"
bindDeleteFile="doDeleteFile" bindDeleteFile="doDeleteFile"
static_host="{{static_host}}"
/> />
<van-cell-group border="{{ false }}"> <van-cell-group border="{{ false }}">
@ -50,7 +52,7 @@
<van-button custom-style="height:130rpx;margin-top:20rpx;border-radius: 20rpx;border: 1px dashed #999;width:100%;font-size:30rpx;background-color: #fff;color: #3CC7C0;" icon="edit">点击签名</van-button> <van-button custom-style="height:130rpx;margin-top:20rpx;border-radius: 20rpx;border: 1px dashed #999;width:100%;font-size:30rpx;background-color: #fff;color: #3CC7C0;" icon="edit">点击签名</van-button>
</view> </view>
<view style="margin-top:20rpx;border-radius: 20rpx;border: 1px dashed #999;" class="sign_img" wx:if="{{sign_image.length > 0}}"> <view style="margin-top:20rpx;border-radius: 20rpx;border: 1px dashed #999;" class="sign_img" wx:if="{{sign_image.length > 0}}">
<image mode="heightFix" style="transform: rotate(-0deg);width: 100%;" src="{{sign_image[0].url}}"></image> <image bindtap="{{btn_disabled?'':'go'}}" data-url="/Pages/yishi/signcanvas/index" mode="heightFix" style="transform: rotate(-0deg);width: 100%;" src="{{sign_image[0].url}}"></image>
</view> </view>
</view> </view>
@ -69,6 +71,7 @@
data-file_multiple="true" data-file_multiple="true"
bindUploadFile="doUploadFile" bindUploadFile="doUploadFile"
bindDeleteFile="doDeleteFile" bindDeleteFile="doDeleteFile"
static_host="{{static_host}}"
/> />
<view class="sign_box"> <view class="sign_box">
<view class="sign_note">提示平台会在1~3个工作日内审核您提交的资料审核结果会第一时间通知您。</view> <view class="sign_note">提示平台会在1~3个工作日内审核您提交的资料审核结果会第一时间通知您。</view>
@ -89,10 +92,10 @@
<view class="zhiye_popup"> <view class="zhiye_popup">
<view class="zhiye_popup_title">身份证示例</view> <view class="zhiye_popup_title">身份证示例</view>
<view class="zhiye_popup_img"> <view class="zhiye_popup_img">
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/sfz1.png" /> <van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="{{static_host}}/applet/doctor/static/images/yishi/cert/sfz1.png" />
</view> </view>
<view class="zhiye_popup_img"> <view class="zhiye_popup_img">
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/sfz2.png" /> <van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="{{static_host}}/applet/doctor/static/images/yishi/cert/sfz2.png" />
</view> </view>
</view> </view>
</van-popup> </van-popup>

View File

@ -99,7 +99,8 @@ Component({
sub_visible: false, sub_visible: false,
dialog_message: "在线开处方需先进行多点执业认证", dialog_message: "在线开处方需先进行多点执业认证",
message_rounds: 0, message_rounds: 0,
networkstatus: "wifi" networkstatus: "wifi",
static_host: api.getStaticHost()
}, },
lifetimes: { lifetimes: {

View File

@ -29,7 +29,7 @@
<image class="TUI-icon" bindtap="handleEmoji" src="../../../../static/assets/face-emoji.svg" /> <image class="TUI-icon" bindtap="handleEmoji" src="../../../../static/assets/face-emoji.svg" />
</view> </view>
<view wx:if="{{!sendMessageBtn}}" bindtap="handleExtensions" class="TUI-sendMessage-btn"> <view wx:if="{{!sendMessageBtn}}" bindtap="handleExtensions" class="TUI-sendMessage-btn">
<image class="TUI-icon" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/chat/tianjia.png" /> <image class="TUI-icon" src="{{static_host}}/applet/doctor/static/images/chat/tianjia.png" />
</view> </view>
<view wx:else class="TUI-sendMessage-btn TUI-sendMessage-btn-input" bindtap="sendTextMessage"> <view wx:else class="TUI-sendMessage-btn TUI-sendMessage-btn-input" bindtap="sendTextMessage">
发送 发送
@ -41,15 +41,15 @@
</view> </view>
<view wx:if="{{displayFlag === 'extension'}}" class="TUI-Extensions"> <view wx:if="{{displayFlag === 'extension'}}" class="TUI-Extensions">
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="handleSendPicture"> <view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="handleSendPicture">
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/chat/xiangji.png" /> <image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="{{static_host}}/applet/doctor/static/images/chat/xiangji.png" />
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">相机</view> <view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">相机</view>
</view> </view>
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="handleSendImage"> <view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="handleSendImage">
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/chat/picture.png" /> <image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="{{static_host}}/applet/doctor/static/images/chat/picture.png" />
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">照片</view> <view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">照片</view>
</view> </view>
<view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="showChangYongYu"> <view class="TUI-Extension-slot MY-TUI-Extension-slot" bindtap="showChangYongYu">
<image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/chat/wenzi.png" /> <image mode="widthFix" class="TUI-Extension-icon MY-TUI-Extension-icon" src="{{static_host}}/applet/doctor/static/images/chat/wenzi.png" />
<view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">常用语</view> <view class="TUI-Extension-slot-name MY-TUI-Extension-slot-name">常用语</view>
</view> </view>
<!-- <view class="TUI-Extension-slot" bindtap="handleSendPicture"> <!-- <view class="TUI-Extension-slot" bindtap="handleSendPicture">

View File

@ -1,12 +1,12 @@
import dayjs from '../../../../utils/dayjs'; import dayjs from '../../../../utils/dayjs';
import logger from '../../../../utils/logger'; import logger from '../../../../utils/logger';
import constant from '../../../../utils/constant'; import constant from '../../../../utils/constant';
import { getTimeAgoChat } from './../../../../../utils/util'
import { wechatTimeFormat } from './../../../../../utils/wechatTime' import { wechatTimeFormat } from './../../../../../utils/wechatTime'
import { API } from '../../../../../utils/network/api';
const { GDXZ_CUSTOM_MSEEAGE } = constant; const { GDXZ_CUSTOM_MSEEAGE } = constant;
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
const app = getApp(); const app = getApp();
const api = new API()
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
@ -92,7 +92,8 @@ Component({
autoToButtom: true, autoToButtom: true,
cachTime: "", cachTime: "",
list_first_loading: false, list_first_loading: false,
message_rounds: 0 message_rounds: 0,
static_host: api.getStaticHost()
}, },
lifetimes: { lifetimes: {

View File

@ -39,7 +39,7 @@
</view> </view>
<TipMessage wx:if="{{item.type === 'TIMGroupTipElem'}}" message="{{item}}"/> <TipMessage wx:if="{{item.type === 'TIMGroupTipElem'}}" message="{{item}}"/>
<view wx:if="{{item.type !== 'TIMGroupTipElem'}}" class="{{item.flow === 'out' ? 't-self-message':'t-recieve-message'}}" > <view wx:if="{{item.type !== 'TIMGroupTipElem'}}" class="{{item.flow === 'out' ? 't-self-message':'t-recieve-message'}}" >
<image class="t-message-avatar" wx:if="{{item.flow === 'in' && !item.no_avatar }}" src="{{item.avatar || 'https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png'}}" data-value="{{item}}" bindtap="getMemberProfile" /> <image class="t-message-avatar" wx:if="{{item.flow === 'in' && !item.no_avatar }}" src="{{item.avatar || static_host+'/applet/doctor/static/images/default_photo.png'}}" data-value="{{item}}" bindtap="getMemberProfile" />
<!-- <view class="read-receipts" wx:if="{{conversation.type === 'C2C' && item.flow==='out' }}"> <!-- <view class="read-receipts" wx:if="{{conversation.type === 'C2C' && item.flow==='out' }}">
<view wx:if="{{item.isPeerRead}}" >已读</view> <view wx:if="{{item.isPeerRead}}" >已读</view>
<view wx:else>未读</view> <view wx:else>未读</view>
@ -63,7 +63,7 @@
<MergerMessage wx:if="{{item.type === 'TIMRelayElem'}}" message="{{item}}" isMine="{{item.flow === 'out'}}"/> <MergerMessage wx:if="{{item.type === 'TIMRelayElem'}}" message="{{item}}" isMine="{{item.flow === 'out'}}"/>
</view> </view>
<image class="t-message-avatar" wx:if="{{item.flow === 'out' && !item.no_avatar }}" src="{{item.avatar || 'https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png'}}" data-value="{{item}}" bindtap="getMemberProfile"/> <image class="t-message-avatar" wx:if="{{item.flow === 'out' && !item.no_avatar }}" src="{{item.avatar || static_host+'/applet/doctor/static/images/default_photo.png'}}" data-value="{{item}}" bindtap="getMemberProfile"/>
</view> </view>
</view> </view>
</view> </view>

View File

@ -27,7 +27,8 @@ Component({
}, },
realname:"", realname:"",
idcard:"", idcard:"",
avatar: "https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/default_photo.png", static_host: api.getStaticHost(),
avatar: api.getStaticHost()+"/applet/doctor/static/images/default_photo.png",
is_avatar: false, is_avatar: false,
city_show: false, city_show: false,
keshi_show: false, keshi_show: false,

View File

@ -123,10 +123,10 @@
<view class="zhiye_popup"> <view class="zhiye_popup">
<view class="zhiye_popup_title">医师执业证示例</view> <view class="zhiye_popup_title">医师执业证示例</view>
<view class="zhiye_popup_img"> <view class="zhiye_popup_img">
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zhiye1.png" /> <van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="{{static_host}}/applet/doctor/static/images/yishi/cert/zhiye1.png" />
</view> </view>
<view class="zhiye_popup_img"> <view class="zhiye_popup_img">
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zhiye2.png" /> <van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="{{static_host}}/applet/doctor/static/images/yishi/cert/zhiye2.png" />
</view> </view>
</view> </view>
</van-popup> </van-popup>
@ -142,10 +142,10 @@
<view class="zhiye_popup"> <view class="zhiye_popup">
<view class="zhiye_popup_title">医师资格证示例</view> <view class="zhiye_popup_title">医师资格证示例</view>
<view class="zhiye_popup_img"> <view class="zhiye_popup_img">
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zige1.png" /> <van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="{{static_host}}/applet/doctor/static/images/yishi/cert/zige1.png" />
</view> </view>
<view class="zhiye_popup_img"> <view class="zhiye_popup_img">
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zige2.png" /> <van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="{{static_host}}/applet/doctor/static/images/yishi/cert/zige2.png" />
</view> </view>
</view> </view>
</van-popup> </van-popup>
@ -161,7 +161,7 @@
<view class="zhiye_popup"> <view class="zhiye_popup">
<view class="zhiye_popup_title">职称证示例</view> <view class="zhiye_popup_title">职称证示例</view>
<view class="zhiye_popup_img"> <view class="zhiye_popup_img">
<van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="https://img.applets.igandanyiyuan.com/applet/doctor/static/images/yishi/cert/zhicheng.png" /> <van-image lazy-load slot="loading" type="spinner" fit="widthFix" width="420rpx" src="{{static_host}}/applet/doctor/static/images/yishi/cert/zhicheng.png" />
</view> </view>
</view> </view>
</van-popup> </van-popup>
@ -310,6 +310,7 @@
wx:if="{{indentity}}" wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}" disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true" is_multiple="true"
static_host="{{static_host}}"
/> />
<m-upload-cell <m-upload-cell
@ -331,6 +332,7 @@
wx:if="{{indentity}}" wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}" disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true" is_multiple="true"
static_host="{{static_host}}"
/> />
<m-upload-cell <m-upload-cell
@ -352,6 +354,7 @@
wx:if="{{indentity}}" wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}" disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true" is_multiple="true"
static_host="{{static_host}}"
/> />
<view class="sub_button" wx:if="{{indentity}}"> <view class="sub_button" wx:if="{{indentity}}">

View File

@ -20,6 +20,10 @@ Component({
type: String, type: String,
value: '示例备注', value: '示例备注',
}, },
static_host: {
type: String,
value: 'static_host',
},
upload_cell_note_show:{ upload_cell_note_show:{
type: Boolean, type: Boolean,
value: true, value: true,

View File

@ -11,7 +11,7 @@
</view> </view>
<view class="upload-cell-input"> <view class="upload-cell-input">
<van-uploader disabled="{{disabled}}" multiple="{{is_multiple}}" preview-full-image="{{true}}" file-list="{{ fileList }}" max-count="{{max_count}}" deletable="{{ deletable }}" bind:after-read="afterRead" bind:delete="delete" > <van-uploader disabled="{{disabled}}" multiple="{{is_multiple}}" preview-full-image="{{true}}" file-list="{{ fileList }}" max-count="{{max_count}}" deletable="{{ deletable }}" bind:after-read="afterRead" bind:delete="delete" >
<van-image width="100" height="100" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/upload_button.png" /> <van-image width="100" height="100" src="{{static_host}}/applet/doctor/static/images/yishi/upload_button.png" />
</van-uploader> </van-uploader>
</view> </view>
<view class="error_box" wx:if="{{ has_error_content != '' }}" > <view class="error_box" wx:if="{{ has_error_content != '' }}" >

View File

@ -52,28 +52,37 @@ Component({
items: [ ], items: [ ],
dialog_visible: false, dialog_visible: false,
dialog_content: "", dialog_content: "",
usertype: "", usertype: 2,
index_info: "", index_info: "",
wenzhen_info: "", wenzhen_info: "",
my_info: "", my_info: "",
next_url: "/Pages/yishi/identity/index", next_url: "/Pages/yishi/identity/index",
info_inter: 0 info_inter: 0
}, },
lifetimes: {
attached(){
this.setData({
usertype: 2,
items: this.data.listAll.list2
})
},
ready() { ready() {
const usertype = wx.getStorageSync('usertype') const usertype = wx.getStorageSync('usertype')
if (usertype == 3) { if (usertype == 3) {
this.setData({ this.setData({
usertype: usertype, usertype: 3,
items: this.data.listAll.list1 items: this.data.listAll.list1
}) })
}else{ }else{
this.setData({ this.setData({
usertype: usertype, usertype: 2,
items: this.data.listAll.list2 items: this.data.listAll.list2
}) })
} }
}, },
},
methods: { methods: {
startInterval(){ startInterval(){
let _this = this; let _this = this;

View File

@ -1,6 +1,6 @@
<van-tabbar active="{{ active }}" bind:change="onChange" <van-tabbar active="{{ active }}" bind:change="onChange" z-index="9999"
active-color="#3CC7C0" inactive-color="#999999" wx:if="{{usertype == 2}}" > active-color="#3CC7C0" inactive-color="#999999" wx:if="{{usertype != 3}}" >
<van-tabbar-item info="{{index_info}}" data-url="{{listAll.list2[0].pagePath}}" url="{{listAll.list2[0].pagePath}}"> <van-tabbar-item info="{{index_info}}" data-url="{{listAll.list2[0].pagePath}}" url="{{listAll.list2[0].pagePath}}">
<image <image
@ -57,7 +57,7 @@ active-color="#3CC7C0" inactive-color="#999999" wx:if="{{usertype == 2}}" >
</van-tabbar-item> </van-tabbar-item>
</van-tabbar> </van-tabbar>
<van-tabbar active="{{ active }}" bind:change="onChange" <van-tabbar active="{{ active }}" bind:change="onChange" z-index="9999"
active-color="#74A2FA" inactive-color="#999999" wx:if="{{usertype == 3}}" > active-color="#74A2FA" inactive-color="#999999" wx:if="{{usertype == 3}}" >
<van-tabbar-item info="{{my_info}}" data-url="{{listAll.list1[0].pagePath}}" url="{{listAll.list1[0].pagePath}}"> <van-tabbar-item info="{{my_info}}" data-url="{{listAll.list1[0].pagePath}}" url="{{listAll.list1[0].pagePath}}">
<image <image

View File

@ -18,5 +18,5 @@
] ]
} }
}, },
"libVersion": "2.31.0" "libVersion": "2.31.1"
} }