diff --git a/miniprogram/pages/index/index.scss b/miniprogram/pages/index/index.scss index 94ee420..30666a4 100644 --- a/miniprogram/pages/index/index.scss +++ b/miniprogram/pages/index/index.scss @@ -172,14 +172,35 @@ .title{ width: 100%; - height: 100rpx; - // background-color: aqua; + height: 10%; + background-color: aqua; position:absolute; - top:55rpx; + top:0rpx; display: flex; justify-content: center; align-items: center; font-size: x-large; + .page_back{ + height: 70rpx; + width: 70rpx; + position: absolute; + display: flex; + align-items: center; + justify-content: center; + // background-color: aquamarine; + top: 50rpx; + left:30rpx; + // font-size: 150rpx; + // font-weight: 900; + // font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; + } +} +.content{ + position:absolute; + width: 100%; + height: 90%; + top: 10%; + overflow: scroll; } // 知识库界面 @@ -194,9 +215,6 @@ // 历史记录 #page_history{ background-color: rgba($color: #fff5d2, $alpha: 1.0); - display: flex; - align-items: center; - justify-content: center; .date1{ background-color: rgba($color: #fff5d2, $alpha: 1); height: 50rpx; @@ -205,6 +223,44 @@ top: 160rpx; left: 10%; } + .content{ + flex-direction: column; + justify-items: center; + align-items: flex-start; + .history_part{ + height: 210rpx; + width: auto; + background-color: violet; + // margin:25rpx; + margin-top:30rpx; + margin-left: 30rpx; + margin-right: 30rpx; + padding: 15rpx; + .history_time{ + // height: 30rpx; + width:fit-content; + // margin-left: 10rpx; + padding:5rpx; + background-color: whitesmoke; + } + .history_content{ + display: flex; + justify-self: start; + overflow: scroll; + .picture{ + margin-left: 0; + height: auto; + width: auto; + } + } + } + } + .picture{ + background-color: rgba($color: #ffffff, $alpha: 1); + height: 170rpx; + width: 25%; + margin: 10rpx; + } .picture1{ background-color: rgba($color: #ffffff, $alpha: 1); height: 170rpx; diff --git a/miniprogram/pages/index/index.ts b/miniprogram/pages/index/index.ts index d64a8a8..434c5d2 100644 --- a/miniprogram/pages/index/index.ts +++ b/miniprogram/pages/index/index.ts @@ -10,13 +10,27 @@ Page({ text_startPage1: "知识库", text_startPage4: "个性化", imgUrl_startPage1:"./static/icons/lib.svg", + function_startPage1:"", imgUrl_startPage2:"./static/icons/history.svg", + function_startPage2:"popup_history", imgUrl_startPage3:"./static/icons/heart.svg", + function_startPage3:"popup_collect", imgUrl_startPage4:"./static/icons/self.svg", tip_content: "不吃饭会饿死", tip_hidden: false, active_Page: "startPage", currentDate: '', + + data_history_test:{ + "2023.2.30":["test1","test2","test2","test2","test2","test2","test2","test2","test2","test2"], + "2023.12.31":["test3","test4"], + "2023.2.32":["test5","test6"], + "2023.2.33":["test7","test8"], + "2023.2.34":["test9","test0"], + "2023.2.35":["test9","test0"], + "2023.2.36":["test9","test0"], + "2023.12.37":["test9","test0"], + }, // userInfo: {}, // hasUserInfo: false, // canIUse: wx.canIUse('button.open-type.getUserInfo'), diff --git a/miniprogram/pages/index/index.wxml b/miniprogram/pages/index/index.wxml index 00a6cd8..565d342 100644 --- a/miniprogram/pages/index/index.wxml +++ b/miniprogram/pages/index/index.wxml @@ -12,10 +12,10 @@ {{text_startPage1}} - + - + @@ -30,7 +30,7 @@ 弹出相机 - + @@ -54,20 +54,36 @@ - 搜索历史 - - + + 历史记录 + + + - {{currentDate}} + + + + + {{date}} + + + + + + + + - 我的收藏 - - + + 我的收藏 + + + 收藏1 收藏2 diff --git a/project.private.config.json b/project.private.config.json index 2378526..1fe1bdf 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,6 +1,6 @@ { "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "wxprogram1", + "projectname": "wxProject-w4w", "setting": { "compileHotReLoad": true }