封装脸部护理跳转框
parent
21875f2c5e
commit
c31d291cf6
@ -0,0 +1,3 @@
|
|||||||
|
export default definePageConfig({
|
||||||
|
navigationBarTitleText: "模板页",
|
||||||
|
});
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import Taro from "@tarojs/taro";
|
||||||
|
import classnames from "classnames";
|
||||||
|
|
||||||
|
import { Component, PropsWithChildren, useEffect, useState } from "react";
|
||||||
|
import { Block, View, Text, Image, Input, Button } from "@tarojs/components";
|
||||||
|
import Navbar from "@/components/navbar/navbar";
|
||||||
|
import "./face_report_AllDevice.less";
|
||||||
|
|
||||||
|
export default class Index extends Component<any, any> {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
name: "页面待开发",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
async onLoad() {}
|
||||||
|
componentDidMount() {}
|
||||||
|
|
||||||
|
componentWillUnmount() {}
|
||||||
|
|
||||||
|
componentDidShow() {}
|
||||||
|
|
||||||
|
componentDidHide() {}
|
||||||
|
|
||||||
|
async initData() {}
|
||||||
|
customBack = () => {
|
||||||
|
Taro.navigateBack();
|
||||||
|
};
|
||||||
|
render() {
|
||||||
|
let { name } = this.state;
|
||||||
|
return (
|
||||||
|
<Block>
|
||||||
|
<Navbar
|
||||||
|
titleSlot="待开发页面"
|
||||||
|
isBack
|
||||||
|
isCustomBack
|
||||||
|
customBack={this.customBack}
|
||||||
|
/>
|
||||||
|
<View>{name}</View>
|
||||||
|
</Block>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
export default definePageConfig({
|
||||||
|
navigationBarTitleText: "模板页",
|
||||||
|
});
|
||||||
@ -0,0 +1,353 @@
|
|||||||
|
page {
|
||||||
|
background: #f8f8f8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #000000;
|
||||||
|
margin: 38rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.m-x-30 {
|
||||||
|
margin-right: 30rpx;
|
||||||
|
margin-left: 30rpx;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statistic {
|
||||||
|
height: 200rpx;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
margin-top: 32rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statistic_item {
|
||||||
|
flex: 1;
|
||||||
|
border-right: 1rpx solid #dddddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statistic_title {
|
||||||
|
font-size: 48rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #000000;
|
||||||
|
margin-bottom: 26rpx;
|
||||||
|
height: 37rpx;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.num {
|
||||||
|
font-size: 26rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-left: 13rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statistic_desc {
|
||||||
|
font-size: 26rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #999999;
|
||||||
|
line-height: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.statistic_item:last-child {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
.bottom-title{
|
||||||
|
margin-right: 30rpx;
|
||||||
|
margin-left: 30rpx;
|
||||||
|
margin-top: 27rpx;
|
||||||
|
}
|
||||||
|
.text-title{
|
||||||
|
font-size: 18rpx;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
.main {
|
||||||
|
border-radius: 30rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
// padding-bottom: calc(153rpx + env(safe-area-inset-bottom));
|
||||||
|
}
|
||||||
|
|
||||||
|
.main_title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000;
|
||||||
|
// margin: 48rpx 0 34rpx;
|
||||||
|
}
|
||||||
|
.eacharts{
|
||||||
|
background-color: red;
|
||||||
|
margin-top: 14px;
|
||||||
|
margin-bottom: 45rpx;
|
||||||
|
/* margin: 52rpx 0rpx; */
|
||||||
|
width: 100%;
|
||||||
|
height: 247rpx;
|
||||||
|
}
|
||||||
|
.van-popup {
|
||||||
|
border-radius: 30rpx;
|
||||||
|
.popBox {
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 670rpx;
|
||||||
|
height: 840rpx;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
position: relative;
|
||||||
|
padding: 42rpx 30rpx 0;
|
||||||
|
.close_icon {
|
||||||
|
position: absolute;
|
||||||
|
width: 50rpx;
|
||||||
|
height: 50rpx;
|
||||||
|
top: 34rpx;
|
||||||
|
right: 34rpx;
|
||||||
|
}
|
||||||
|
.popTitle {
|
||||||
|
font-size: 36rpx;
|
||||||
|
text-align: center;
|
||||||
|
font-family: PingFang SC;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.popSubtitle {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-end;
|
||||||
|
font-size: 28rpx;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 50rpx;
|
||||||
|
.bold {
|
||||||
|
font-size: 38rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.img_box {
|
||||||
|
margin: 58rpx 0 37rpx 0;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
.img {
|
||||||
|
position: relative;
|
||||||
|
margin-right: 35rpx;
|
||||||
|
width: 180rpx;
|
||||||
|
height: 180rpx;
|
||||||
|
.closeImg {
|
||||||
|
position: absolute;
|
||||||
|
top: 10rpx;
|
||||||
|
right: 10rpx;
|
||||||
|
width: 30rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.img:last-child {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.addBox {
|
||||||
|
width: 180rpx;
|
||||||
|
height: 180rpx;
|
||||||
|
background: #ffffff;
|
||||||
|
border: 1px solid #dddddd;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
Image {
|
||||||
|
width: 40rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.showImg {
|
||||||
|
width: 100% !important;
|
||||||
|
height: 100% !important;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.info4 {
|
||||||
|
position: relative;
|
||||||
|
textarea {
|
||||||
|
padding: 28rpx 30rpx;
|
||||||
|
width: 610rpx;
|
||||||
|
height: 186rpx;
|
||||||
|
background: #ffffff;
|
||||||
|
border: 1px solid #dddddd;
|
||||||
|
border-radius: 3rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.tip {
|
||||||
|
position: absolute;
|
||||||
|
right: 20rpx;
|
||||||
|
bottom: 22rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
font-family: PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #cccccc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn1 {
|
||||||
|
font-style: normal;
|
||||||
|
width: 270rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
line-height: 90rpx;
|
||||||
|
background: #000000;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 45rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 55rpx;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.footer {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 99;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 153rpx;
|
||||||
|
box-shadow: 0rpx -3rpx 7rpx 1rpx rgba(173, 191, 207, 0.21);
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 540rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
background: #000000;
|
||||||
|
border-radius: 45rpx;
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 90rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 32rpx;
|
||||||
|
margin: 0 30rpx 0 49rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
flex: 1;
|
||||||
|
height: 31rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
line-height: 31rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text image {
|
||||||
|
width: 10rpx;
|
||||||
|
height: 20rpx;
|
||||||
|
margin-left: 15rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.products_item {
|
||||||
|
width: 690rpx;
|
||||||
|
height: 330rpx;
|
||||||
|
background: #fff;
|
||||||
|
padding: 30rpx 33rpx 38rpx;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
// margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.products_item:last-child {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.products_top {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
margin-bottom: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.products_top .add_time {
|
||||||
|
padding-right: 23rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
width: 90rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
line-height: 36rpx;
|
||||||
|
background: #e5f9ee;
|
||||||
|
border-radius: 18rpx;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #57bc81;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag_active {
|
||||||
|
background: #f8f8f8;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.face_type{
|
||||||
|
text-align: center;
|
||||||
|
margin-right: 37rpx;
|
||||||
|
// margin-top: 16rpx;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.cover {
|
||||||
|
width: 170rpx;
|
||||||
|
height: 211rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
margin-right: 37rpx;
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
padding: 21rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
width: 457rpx;
|
||||||
|
height: 195rpx;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_top{
|
||||||
|
height: 140rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
margin: 3rpx 0 25rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.desc {
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #999999;
|
||||||
|
margin: 12rpx 0rpx;
|
||||||
|
color: #181818;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
// .desc:last-child {
|
||||||
|
// margin-top: 10rpx;
|
||||||
|
// }
|
||||||
|
|
||||||
|
.progress {
|
||||||
|
display: flex;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-family: PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #999999;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.van-progress {
|
||||||
|
width: 213rpx;
|
||||||
|
.van-progress__portion {
|
||||||
|
background: linear-gradient(90deg, #ffe9c7, #eecda1);
|
||||||
|
border-radius: 6rpx;
|
||||||
|
height: 12rpx;
|
||||||
|
.van-progress__pivot {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.percent {
|
||||||
|
margin-left: 52rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue