diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index bab8405..a5e3a89 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -581,7 +581,7 @@ class Index extends Component { /** 蓝牙逻辑 */ bindBlockLeft() { - if (!this.state.userinfo.mobile) { + if (!this.state.isRegisterBoolean) { //未注册授权 this.alertRegister(); return false; diff --git a/src/pages/instrument_detail/index.tsx b/src/pages/instrument_detail/index.tsx index e3f63f6..ab0a57b 100644 --- a/src/pages/instrument_detail/index.tsx +++ b/src/pages/instrument_detail/index.tsx @@ -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 { 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 { type="text" disabled={true} placeholder-style="color:#000000;font-size:28rpx;font-weight: 500;" - placeholder={info.updateTime} + placeholder={info.bindingDateTime} />