|
@@ -1,5 +1,7 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
+ <view>
|
|
|
+ <componentLogin ref="refLogin" :check="1"
|
|
|
+ @findByOpenId="findByOpenId"></componentLogin>
|
|
|
<u-popup v-model="showMessage" mode="bottom" border-radius="30">
|
|
|
<view class="showMessage">
|
|
|
<view class="title">降锁成功</view>
|
|
@@ -137,8 +139,12 @@
|
|
|
|
|
|
<script>
|
|
|
import * as API from '@/apis/pagejs/index.js'
|
|
|
+ import componentLogin from '@/components/componentLogin.vue';
|
|
|
|
|
|
- export default {
|
|
|
+ export default {
|
|
|
+ components: {
|
|
|
+ componentLogin,
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
id: "",
|
|
@@ -159,7 +165,7 @@
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: "加载中..."
|
|
|
})
|
|
|
- this.getFloorlockDetails()
|
|
|
+ // this.$refs.refLogin.findByOpenId()
|
|
|
} else {
|
|
|
this.loading = true
|
|
|
uni.setNavigationBarTitle({
|
|
@@ -199,9 +205,8 @@
|
|
|
}
|
|
|
},
|
|
|
onReady() {
|
|
|
- this.setIntervalId = setInterval(() => {
|
|
|
- this.getFloorlockDetails(1)
|
|
|
- }, 1000 * 5)
|
|
|
+ this.$refs.refLogin.findByOpenId()
|
|
|
+
|
|
|
},
|
|
|
onUnload() {
|
|
|
//setInterval
|
|
@@ -211,6 +216,15 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ findByOpenId(res) {
|
|
|
+
|
|
|
+ this.setIntervalId = setInterval(() => {
|
|
|
+ this.getFloorlockDetails(1)
|
|
|
+ }, 1000 * 5)
|
|
|
+
|
|
|
+ this.getFloorlockDetails()
|
|
|
+
|
|
|
+ },
|
|
|
confirmPhone() {
|
|
|
this.openModalBl = false;
|
|
|
uni.makePhoneCall({
|