init version kelfy-mini for new gitea

This commit is contained in:
terry.wang
2025-11-13 13:38:59 +08:00
commit 493fa4f1e1
763 changed files with 55626 additions and 0 deletions

View 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 () {
}
})

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1,4 @@
<!--pages/introduction/introduction.wxml-->
<view class="banner">
<rich-text nodes="{{html}}"></rich-text>
</view>

View 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%
}