init version kelfy-mini for new gitea
This commit is contained in:
87
pages/introduction/introduction.js
Normal file
87
pages/introduction/introduction.js
Normal file
@@ -0,0 +1,87 @@
|
||||
// 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 () {
|
||||
|
||||
}
|
||||
})
|
||||
3
pages/introduction/introduction.json
Normal file
3
pages/introduction/introduction.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
4
pages/introduction/introduction.wxml
Normal file
4
pages/introduction/introduction.wxml
Normal file
@@ -0,0 +1,4 @@
|
||||
<!--pages/introduction/introduction.wxml-->
|
||||
<view class="banner">
|
||||
<rich-text nodes="{{html}}"></rich-text>
|
||||
</view>
|
||||
20
pages/introduction/introduction.wxss
Normal file
20
pages/introduction/introduction.wxss
Normal file
@@ -0,0 +1,20 @@
|
||||
/* pages/introduction/introduction.wxss */
|
||||
.banner{
|
||||
margin: 30rpx 0;
|
||||
width: 750rpx;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.imgWrap{
|
||||
height: 300rpx;
|
||||
width: 100%;
|
||||
margin: 20rpx auto;
|
||||
border-radius: 15rpx;
|
||||
}
|
||||
.text{
|
||||
width: 100%;
|
||||
margin-top: 20rpx;
|
||||
color: #555;
|
||||
font-size: 35rpx;
|
||||
line-height: 180%
|
||||
}
|
||||
Reference in New Issue
Block a user