This commit is contained in:
haomingming
2023-03-06 17:57:39 +08:00
parent 3794faceae
commit 1066e37c96
4230 changed files with 193453 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
const app = getApp()
Page({
data: {
navbarData: {
showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
title: '设置快捷回复', //导航栏 中间的标题
},
height: app.globalData.height,
},
onLoad(option) {
console.log("onLoad", option)
this.setData({
'navbarData.title': option.title,
})
},
})
+8
View File
@@ -0,0 +1,8 @@
{
"component": true,
"usingComponents": {
"te-nav-bar": "/commpents/te_navbar",
"van-cell": "@vant/weapp/cell/index",
"van-button": "@vant/weapp/button/index"
}
}
+11
View File
@@ -0,0 +1,11 @@
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
<view class="item_list">
<van-cell custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="身体怎么样" />
<van-cell custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="按时吃药" />
<van-cell custom-style="border-radius: 20rpx;margin-bottom: 20rpx;" title="多运动" />
</view>
<van-button color="#3CC7C0"
custom-style="border-radius: 20rpx;font-size:30rpx;width:92vw;position:fixed;bottom:50rpx;left:50%; transform: translateX(-50%);"
type="primary" block>添加快捷回复</van-button>
</view>
+9
View File
@@ -0,0 +1,9 @@
.container{
width: 100vw;
height: 100vh;
background-color: #F6F6F6;
}
.item_list{
width: 92vw;
margin: 20rpx auto;
}