Commit fdc4c3e3 by zhangxw

样式修改

1 parent d63dd280
// packageEquity/pages/residentTarget/residentTarget.js // packageEquity/pages/residentTarget/residentTarget.js
import { taskMarkAsReadApi } from '../../api' import { taskMarkAsReadApi } from '../../api'
import { ImgUrl } from '~/config.js' import { ImgUrl } from '~/config.js'
const navStyle = 'background-color: transparent;box-shadow:none;'
Page({ Page({
/** /**
...@@ -8,7 +9,7 @@ Page({ ...@@ -8,7 +9,7 @@ Page({
*/ */
data: { data: {
ImgUrl: ImgUrl + '/miniProgram/', ImgUrl: ImgUrl + '/miniProgram/',
navStyle: 'background-color: transparent;box-shadow:none;', navStyle,
taskInfo: {}, taskInfo: {},
userInfo: {} userInfo: {}
}, },
...@@ -25,6 +26,11 @@ Page({ ...@@ -25,6 +26,11 @@ Page({
userInfo: wx.$util.getUserInfo() userInfo: wx.$util.getUserInfo()
}) })
}, },
onPageScroll({scrollTop}){
this.setData({
navStyle:scrollTop > 20 ? '' : navStyle
})
},
markAsRead(options) { markAsRead(options) {
taskMarkAsReadApi({id: options?.id}).then(res => { taskMarkAsReadApi({id: options?.id}).then(res => {
let { code, data, message } = res let { code, data, message } = res
......
...@@ -5,7 +5,11 @@ page{ ...@@ -5,7 +5,11 @@ page{
.navigation-title { .navigation-title {
font-weight: 500; font-weight: 500;
font-size: var(--fontSize36); font-size: var(--fontSize36);
color: #fff; }
@media screen and (min-device-width: 600px) and (-webkit-min-device-pixel-ratio: 1) {
.navigation-title {
font-size: var(--fontSize22);
}
} }
.layout { .layout {
......
...@@ -335,10 +335,22 @@ page { ...@@ -335,10 +335,22 @@ page {
} }
.work-title { .work-title {
width: calc(100% - var(--fontSize64));
height: var(--fontSize100); height: var(--fontSize100);
position: absolute;
top: 0;
font-size: var(--fontSize28);
font-weight: 500;
}
.work-body {
margin: var(--fontSize100) 0;
height: calc(100% - var(--fontSize200));
overflow: auto;
} }
.work-body .item { .work-body .item {
height: var(--fontSize100); height: var(--fontSize100);
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -402,8 +414,11 @@ page { ...@@ -402,8 +414,11 @@ page {
.work-footer { .work-footer {
display: flex; display: flex;
height: var(--fontSize100); height: var(--fontSize100);
width: calc(100% - var(--fontSize64));
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
position: absolute;
bottom: var(--fontSize10);
} }
.work-footer .cancel, .work-footer .cancel,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!