更改静态资源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
+4 -1
View File
@@ -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;
+2 -2
View File
@@ -4,7 +4,7 @@
data-url="/Pages/yishi/index/index" bindtap="goCheck" >
<t-image
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"
height="220rpx"
aria-label="医师端"
@@ -18,7 +18,7 @@
data-usertype="3" bindtap="goCheck">
<t-image
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"
height="220rpx"
aria-label="药师端"