更改静态资源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
+2 -1
View File
@@ -27,7 +27,8 @@ Component({
},
realname:"",
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,
city_show: false,
keshi_show: false,
+8 -5
View File
@@ -123,10 +123,10 @@
<view class="zhiye_popup">
<view class="zhiye_popup_title">医师执业证示例</view>
<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 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>
</van-popup>
@@ -142,10 +142,10 @@
<view class="zhiye_popup">
<view class="zhiye_popup_title">医师资格证示例</view>
<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 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>
</van-popup>
@@ -161,7 +161,7 @@
<view class="zhiye_popup">
<view class="zhiye_popup_title">职称证示例</view>
<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>
</van-popup>
@@ -310,6 +310,7 @@
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
static_host="{{static_host}}"
/>
<m-upload-cell
@@ -331,6 +332,7 @@
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
static_host="{{static_host}}"
/>
<m-upload-cell
@@ -352,6 +354,7 @@
wx:if="{{indentity}}"
disabled="{{(indentity && iden_auth_disabled)}}"
is_multiple="true"
static_host="{{static_host}}"
/>
<view class="sub_button" wx:if="{{indentity}}">
+4
View File
@@ -20,6 +20,10 @@ Component({
type: String,
value: '示例备注',
},
static_host: {
type: String,
value: 'static_host',
},
upload_cell_note_show:{
type: Boolean,
value: true,
+1 -1
View File
@@ -11,7 +11,7 @@
</view>
<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-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>
</view>
<view class="error_box" wx:if="{{ has_error_content != '' }}" >