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