更改静态资源host
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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="药师端"
|
||||
|
||||
Reference in New Issue
Block a user