87 lines
1.5 KiB
JavaScript
87 lines
1.5 KiB
JavaScript
// pages/introduction/introduction.js
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
html:''
|
|
},
|
|
getMsg(){
|
|
wx.request({
|
|
url:'https://fy.btlsoln.com:8443/findHospital',
|
|
// url:'http://sayetest.f3322.org:5000/findHospital',
|
|
method:"GET",
|
|
data:{},
|
|
header: {
|
|
'content-type': 'application/json'
|
|
},
|
|
success: (res)=> {
|
|
console.log(res,"医院介绍")
|
|
let str = res.data.HOSPITAL_ABOUT,
|
|
s1 = str.replace("/showFile",'https://fy.btlsoln.com:8443/showFile')
|
|
s1 = s1.replace("<img",'<img class="imgWrap"')
|
|
console.log(s1,"剪切")
|
|
this.setData({
|
|
html:s1
|
|
})
|
|
}
|
|
})
|
|
},
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function (options) {
|
|
this.getMsg()
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
*/
|
|
onReady: function () {
|
|
wx.setNavigationBarTitle({
|
|
title: '医院介绍'
|
|
})
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面显示
|
|
*/
|
|
onShow: function () {
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面隐藏
|
|
*/
|
|
onHide: function () {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面卸载
|
|
*/
|
|
onUnload: function () {
|
|
|
|
},
|
|
|
|
/**
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
*/
|
|
onPullDownRefresh: function () {
|
|
|
|
},
|
|
|
|
/**
|
|
* 页面上拉触底事件的处理函数
|
|
*/
|
|
onReachBottom: function () {
|
|
|
|
},
|
|
|
|
/**
|
|
* 用户点击右上角分享
|
|
*/
|
|
onShareAppMessage: function () {
|
|
|
|
}
|
|
}) |