|
|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
import Taro from "@tarojs/taro";
|
|
|
|
|
import classnames from "classnames";
|
|
|
|
|
|
|
|
|
|
import dayjs from "dayjs";
|
|
|
|
|
|
|
|
|
|
import { Component, PropsWithChildren, useEffect, useState } from "react";
|
|
|
|
|
import { Block, View, Text, Image, Input, Button } from "@tarojs/components";
|
|
|
|
|
import Navbar from "../../components/navbar/navbar";
|
|
|
|
|
@ -43,7 +45,11 @@ export default class InstrumentDetail extends Component<any, any> {
|
|
|
|
|
instrumentId: id,
|
|
|
|
|
});
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
this.setState({ info: res.data.data });
|
|
|
|
|
let info = res.data.data;
|
|
|
|
|
info.bindingDateTime = dayjs(info.bindingDateTime).format(
|
|
|
|
|
"YYYY-MM-DD hh:mm:ss"
|
|
|
|
|
);
|
|
|
|
|
this.setState({ info: info });
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -96,7 +102,7 @@ export default class InstrumentDetail extends Component<any, any> {
|
|
|
|
|
type="text"
|
|
|
|
|
disabled={true}
|
|
|
|
|
placeholder-style="color:#000000;font-size:28rpx;font-weight: 500;"
|
|
|
|
|
placeholder={info.updateTime}
|
|
|
|
|
placeholder={info.bindingDateTime}
|
|
|
|
|
/>
|
|
|
|
|
</View>
|
|
|
|
|
</View>
|
|
|
|
|
|