Commit fdc4c3e3 by zhangxw

样式修改

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