更改静态资源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
+5 -3
View File
@@ -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({
+2 -2
View File
@@ -4,7 +4,7 @@
<t-image
bindtap="toGo" data-url="/Pages/yaoshi/home/home"
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="医师端"
@@ -17,7 +17,7 @@
<t-image
bindtap="toGo" data-url="/Pages/yaoshi/my/my"
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="药师端"