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

88
pages/explain/explain.js Normal file
View File

@@ -0,0 +1,88 @@
// pages/explain/explain.js
Page({
/**
* 页面的初始数据
*/
data: {
content:[]
},
confirm(){
wx.navigateBack({
})
},
getMsg(){
wx.request({
url:'https://fy.btlsoln.com:8443/findOrderNotice',
method:"GET",
data:{},
header: {
'content-type': 'application/json'
},
success: (res)=> {
console.log(res,"预约须知 ")
this.setData({
content:res.data.CONTENT
})
}
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.setNavigationBarTitle({
title: "预约须知"
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.getMsg()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

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

View File

@@ -0,0 +1,9 @@
<!--pages/explain/explain.wxml-->
<view class="main">
<view class="wrap">
<view class="item kg">
<rich-text nodes="{{content}}"></rich-text>
</view>
<view class="btn" bindtap="confirm">确认</view>
</view>
</view>

View File

@@ -0,0 +1,39 @@
/* pages/explain/explain.wxss */
.main{
width: 750rpx;
height: 100vh;
}
.wrap{
width: 90%;
height: 100%;
margin:30rpx auto;
}
.title{
height: 80rpx;
line-height: 80rpx;
width: 100%;
font-size: 35rpx;
color: #333;
}
.item{
width: 100%;
font-size: 32rpx;
color: #666;
line-height: 50rpx;
}
.kg{
text-indent: 64rpx;
}
.btn{
height: 100rpx;
margin-top: 50rpx;
margin-bottom: 20rpx;
width: 100%;
background: rgba(0,110,255);
color: #fff;
text-align: center;
line-height: 100rpx;
border-radius: 10rpx;
font-size: 35rpx;
letter-spacing: 5rpx;
}