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,104 @@
// pages/healthEncyclopedia/healthEncyclopedia.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
msgList:[],
url:''
},
naviToMsg(e){
console.log(e.currentTarget.dataset.item)
let item = e.currentTarget.dataset.item
let hosId = item.HOS_ARTICLE_ID
wx.navigateTo({
url: '/pages/articleDetails/articleDetails?hosId='+hosId,
})
},
getList(){
wx.request({
url:'https://fy.btlsoln.com:8443/findHospitalArticle',
// url:'http://sayetest.f3322.org:5000/findHospitalArticle',
method:"GET",
data:{},
header: {
'content-type': 'application/json'
},
success: (res)=> {
console.log(res,"健康百科")
let data = res.data
data.map((item,index) => {
let str = item.IMG
var html = str.replace("/showFile",'https://fy.btlsoln.com:8443/showFile')
item.IMG = html
return data
})
console.log(data,"新")
this.setData({
msgList:data
})
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
url:app.globalData.url2
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
wx.setNavigationBarTitle({
title: '健康百科'
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.getList()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

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

View File

@@ -0,0 +1,11 @@
<!--pages/healthEncyclopedia/healthEncyclopedia.wxml-->
<view class="banner">
<view class="item" wx:for="{{msgList}}" wx:key="item" bindtap="naviToMsg" data-item="{{item}}">
<view class="imgWrap">
<image src="{{item.IMG}}"></image>
</view>
<view class="msgWrap" >
<view class="title">{{item.TITLE}}</view>
</view>
</view>
</view>

View File

@@ -0,0 +1,49 @@
/* pages/healthEncyclopedia/healthEncyclopedia.wxss */
.banner{
margin: 30rpx 0;
width: 750rpx;
}
.item{
height: 200rpx;
width: 90%;
border-radius: 5rpx;
margin: 40rpx auto;
box-shadow:0px 0px 15rpx #e2e2e2;
padding: 30rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
}
.imgWrap{
height: 100%;
width: 35%;
border-radius: 10rpx ;
/* background: rgba(230,241,255); */
}
.imgWrap image{
height: 100%;
width:100%;
border-radius: 15rpx;
background-size: 100%;
background-repeat: no-repeat;
}
.msgWrap{
height: 100%;
width: 60%;
display: flex;
flex-direction: column;
justify-content: center;
}
.title{
font-size:30rpx;
color: #333;
}
.writer{
display: flex;
font-size: 25rpx;
color: #666;
}
.ml{
margin-left: 30rpx;
}