From 5a887acf1924950715086633d329db045223b5c4 Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Tue, 09 Jun 2020 14:47:27 +0800 Subject: [PATCH] test --- SunshineLnsMinApp/pages/test/test.js | 67 +++++++++++++++++++++++++++++++++ SunshineLnsMinApp/app.json | 1 SunshineLnsMinApp/pages/test/test.wxss | 23 +++++++++++ SunshineLnsMinApp/pages/test/test.wxml | 8 ++++ SunshineLnsMinApp/pages/test/test.json | 3 + 5 files changed, 102 insertions(+), 0 deletions(-) diff --git a/SunshineLnsMinApp/app.json b/SunshineLnsMinApp/app.json index 1149467..5ea5096 100644 --- a/SunshineLnsMinApp/app.json +++ b/SunshineLnsMinApp/app.json @@ -1,5 +1,6 @@ { "pages": [ + "pages/test/test", "pages/index/index", "pages/lawInfo/lawInfo", "pages/zhwj/zhwj", diff --git a/SunshineLnsMinApp/pages/test/test.js b/SunshineLnsMinApp/pages/test/test.js new file mode 100644 index 0000000..8e5c802 --- /dev/null +++ b/SunshineLnsMinApp/pages/test/test.js @@ -0,0 +1,67 @@ +// pages/test/test.js +const app = getApp() +Page({ + + /** + * 页面的初始数据 + */ + data: { + llz: app.globalData.imgUrl + '/image/icon_lianluo.svg', + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/SunshineLnsMinApp/pages/test/test.json b/SunshineLnsMinApp/pages/test/test.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/SunshineLnsMinApp/pages/test/test.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/SunshineLnsMinApp/pages/test/test.wxml b/SunshineLnsMinApp/pages/test/test.wxml new file mode 100644 index 0000000..9ce9571 --- /dev/null +++ b/SunshineLnsMinApp/pages/test/test.wxml @@ -0,0 +1,8 @@ +<!--pages/test/test.wxml--> +<View class='card-div'> + <View class="card-div-img"> + <image class="index-mycontent-icon " src="{{llz}} " /> + </View> + <View class="font_s_lager">在线心理服务</View> + <View class="font_s_small">心理健康评估、咨询</View> +</View> \ No newline at end of file diff --git a/SunshineLnsMinApp/pages/test/test.wxss b/SunshineLnsMinApp/pages/test/test.wxss new file mode 100644 index 0000000..d27c013 --- /dev/null +++ b/SunshineLnsMinApp/pages/test/test.wxss @@ -0,0 +1,23 @@ +/* pages/test/test.wxss */ +.card-div{ + display: flex; +text-align: center; +line-height: 48px; +box-shadow: 0px 6px 6px 0 rgba(80, 119, 170, 0.06); +} + +.card-div-img { + +} + +.index-mycontent-icon { + +} + +.font_s_lager { + +} + +.font_s_small { + +} \ No newline at end of file -- Gitblit v1.8.0