|
|
|
|
@ -9,9 +9,8 @@ import Taro from "@tarojs/taro";
|
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
|
import { setMobile } from "../../store/features/userInfo";
|
|
|
|
|
/*** redux end ***/
|
|
|
|
|
|
|
|
|
|
import { WCUserLogin } from "../../utils/Interface";
|
|
|
|
|
|
|
|
|
|
import Navbar from "../../components/navbar/navbar";
|
|
|
|
|
import Echarts from "./Echarts/index";
|
|
|
|
|
import "./moisture_test_report.less";
|
|
|
|
|
|
|
|
|
|
class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
@ -49,7 +48,7 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async onLoad() { }
|
|
|
|
|
|
|
|
|
|
componentDidMount() { }
|
|
|
|
|
|
|
|
|
|
componentWillUnmount() { }
|
|
|
|
|
@ -58,6 +57,9 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
componentDidHide() { }
|
|
|
|
|
|
|
|
|
|
async onLoad() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
async initData() { }
|
|
|
|
|
|
|
|
|
|
getStatusData(level) {
|
|
|
|
|
@ -121,16 +123,18 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
render() {
|
|
|
|
|
let { name, imgUrl, reportData, bgCssData, isClock, xinde, imglist, id, show } = this.state
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
<Block>
|
|
|
|
|
<View className='moisture_test_report'>
|
|
|
|
|
<View className='time'>{reportData.curDate || ''}</View>
|
|
|
|
|
|
|
|
|
|
<Navbar isBack titleSlot='水分测试报告'></Navbar>
|
|
|
|
|
<View className='moisture_test_report'>
|
|
|
|
|
<View className='time'>2023.6.23</View>
|
|
|
|
|
<View className='report_data'>
|
|
|
|
|
<View className='forehead moisture_block flex' style='{util.getStatusData(reportData.shuifenLevel.head).bg}'>
|
|
|
|
|
<View className='forehead moisture_block flex' style={this.getStatusData(reportData.shuifenLevel.head).bg}>
|
|
|
|
|
<Image className='moisture_img' src={`/img/fr200/${this.getStatusData(reportData.shuifenLevel.head)}.img}.png`} mode='aspectFill'></Image>
|
|
|
|
|
<View className='pos_info'>
|
|
|
|
|
<View className='top'>额头</View>
|
|
|
|
|
{/* <View className='bottom'>{this.getStatusData(7).title}</View> */}
|
|
|
|
|
<View className='bottom'>{this.getStatusData(7).title}</View>
|
|
|
|
|
<View className='bottom'></View>
|
|
|
|
|
|
|
|
|
|
</View>
|
|
|
|
|
@ -217,7 +221,7 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
<View className='report_chart'>
|
|
|
|
|
<View className='chart_title common_title'>肌肤整体</View>
|
|
|
|
|
<View className='container'>
|
|
|
|
|
{/* <ec-canvas id='mychart' style='width: 100%;height: 100%' canvas-id='mychart-line' ec='{ ec }'></ec-canvas> */}
|
|
|
|
|
<Echarts></Echarts>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
|