From bd522d1d1c4af9e34c3ab187e2f799b5ed94d5a2 Mon Sep 17 00:00:00 2001 From: kk_888 <1422704179@qq.com> Date: Mon, 29 Nov 2021 14:33:29 +0800 Subject: [PATCH] =?UTF-8?q?cy=E9=A6=96=E9=A0=813?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 6 +- pages/home2/index.js | 89 +++++++++++++++++++++++++ pages/home2/index.json | 4 ++ pages/home2/index.wxml | 64 ++++++++++++++++++ pages/home2/index.wxss | 144 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 303 insertions(+), 4 deletions(-) create mode 100644 pages/home2/index.js create mode 100644 pages/home2/index.json create mode 100644 pages/home2/index.wxml create mode 100644 pages/home2/index.wxss diff --git a/app.json b/app.json index 601b667..188fa6a 100644 --- a/app.json +++ b/app.json @@ -1,17 +1,15 @@ { "pages": [ "pages/home/index", + "pages/home2/index", + "pages/courseDetail/index", "pages/companyInfo/index", "pages/companyPage/index", "pages/courseReservation/index", - - "pages/user/bindCard/index", "pages/user/profit/index", "pages/user/cashOut/index", - - "pages/goodsDetail/index", "pages/goodsList/index", "pages/login/index", diff --git a/pages/home2/index.js b/pages/home2/index.js new file mode 100644 index 0000000..bdfd9a3 --- /dev/null +++ b/pages/home2/index.js @@ -0,0 +1,89 @@ +// pages/home/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + authorize: false, + canIUseGetUserProfile: false + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + getUserInfoProfile(){ + wx.getUserProfile({ + lang: 'zh_CN', + desc: '需要获取您的信息用来展示', + success: res => { + console.log(res) + uni.showLoading({ + title: '登录中', + }) + + }, + }) + }, + toDetial(){ + wx.navigateTo({ + url: '/pages/goodsDetail/index', + }) + }, + toCompany(){ + wx.navigateTo({ + url: '/pages/companyInfo/index', + }) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/home2/index.json b/pages/home2/index.json new file mode 100644 index 0000000..965b8e8 --- /dev/null +++ b/pages/home2/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationStyle": "custom" +} \ No newline at end of file diff --git a/pages/home2/index.wxml b/pages/home2/index.wxml new file mode 100644 index 0000000..13f4511 --- /dev/null +++ b/pages/home2/index.wxml @@ -0,0 +1,64 @@ + + + + + + + + 点击查看 + + + + + + + 名师介绍 + + + + + + 刘朗菘,字瑞蓢 + + + 国学文化传播导师 当代民间隐士 武术练养家 + 湖北省文化产业商会常务副会长、传统文化专业委员会主任、国际易学研究院“中国易理策划名师”、“中国名师讲师” +“东方智慧国学风云人物终身推广者”。 + + + + + + 刘朗菘,字瑞蓢 + + + 国学文化传播导师 当代民间隐士 武术练养家 + 湖北省文化产业商会常务副会长、传统文化专业委员会主任、国际易学研究院“中国易理策划名师”、“中国名师讲师” +“东方智慧国学风云人物终身推广者”。 + + + + + + 课程介绍 + + + + + + 传统武术 + + 中国武术不仅是一种中国传统的体育运动形式,而且是一个完整的文化意识形态,它涵容了中国古典哲学、伦理学、美学,医学、兵学等中国传统文化的各种成分和要素,渗透着中国传统文化的精髓。武术具有极其广泛的群众基础,是中国人民在长期的社会实践中不断积累和丰富起来的一项宝贵的文化遗产 + + + + + 传统武术 + + 中国武术不仅是一种中国传统的体育运动形式,而且是一个完整的文化意识形态,它涵容了中国古典哲学、伦理学、美学,医学、兵学等中国传统文化的各种成分和要素,渗透着中国传统文化的精髓。武术具有极其广泛的群众基础,是中国人民在长期的社会实践中不断积累和丰富起来的一项宝贵的文化遗产 + + + + + + diff --git a/pages/home2/index.wxss b/pages/home2/index.wxss new file mode 100644 index 0000000..77481c0 --- /dev/null +++ b/pages/home2/index.wxss @@ -0,0 +1,144 @@ +/* pages/home/index.wxss */ +page{ + width: 100%; + background: #343434; +} +.home-page{ + background: #343434; +} +.top-box{ + width: 100%; + height: 1160rpx; + position: relative; +} +.top-box image{ + width: 100%; + height: 100%; + position: absolute; +} +.top-content{ + width: 100%; + height: 100%; + position: absolute; + z-index: 3; + padding-top: 180rpx; + padding-left: 40rpx; +} +.top-content .tisheng{ + width: 316rpx; + height: 760rpx; +} +.title-box{ + width: 100%; + height: 80rpx; + position: relative; +} +.title-box image{ + width: 434rpx; + height: 74rpx; + margin-right: 16rpx; +} + +.tosee-btn{ + width: 134rpx; + height: 54rpx; + border: 2rpx solid #986F43; + border-radius: 28rpx; + text-align: center; + line-height: 54rpx; + color: #986F43; + font-size: 24rpx; + position: absolute; + left: 456rpx; + top: 20rpx; +} +.teacher-introduce-box,.course-introduce-box{ + width: 100%; + padding: 20rpx 40rpx; + background: #343434; +} +.teacher-item{ + margin-bottom: 76rpx; +} +.item-l image{ + width: 240rpx; + height: 240rpx; +} +.item-l .name{ + font-size: 36rpx; + color: #987A59; + font-weight: 500; + margin-top: 24rpx; +} +.teacher-introduce-box .introduce{ + width: 400rpx; + margin-left: 20rpx; + font-size: 24rpx; + color: #E5E5E5; +} +.introduce .tips{ + font-size: 36rpx; + color: #fff; + margin-bottom: 24rpx; +} +.flexR{ + flex-direction: row-reverse; +} +.course-item{ + width: 100%; + background: #171414; + border-radius: 32rpx; + padding: 32rpx 24rpx; + position: relative; + margin-bottom: 80rpx; +} +.course-name{ + width: 400rpx; + height: 76rpx; + position: absolute; + font-size: 32rpx; + color: #363636; + text-align: center; + line-height: 76rpx; + left: 50%; + top: -38rpx; + transform: translateX(-50%); +} +.course-name image{ + width: 100%; + height: 100%; + position: absolute; + left: 0; +} +.course-name text{ + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%,-50%); + z-index: 3; +} +.course-item .introduce{ + font-size: 24rpx; + color: #707070; + line-height: 34rpx; + margin-top: 12rpx; + text-indent: 1em; +} +.t-box{ + color: #987A59; + font-size: 40rpx; + margin-bottom: 40rpx; +} +.t-box image{ + width: 64rpx; + height: 64rpx; + margin-left: 8rpx; +} +.submit-btn { + width: 100%; + height: 156rpx; +} +.submit-btn image{ + width: 100%; + height: 100%; +} \ No newline at end of file