临时提交

master
blak-kong 2 years ago
parent 8ea89ba60a
commit bd287af666

@ -581,7 +581,7 @@ class Index extends Component<any, any> {
/** 蓝牙逻辑 */
bindBlockLeft() {
if (!this.state.userinfo.mobile) {
if (!this.state.isRegisterBoolean) {
//未注册授权
this.alertRegister();
return false;

@ -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>

Loading…
Cancel
Save