123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <!-- 解锁记录 -->
- <!-- 一键开门 -->
- <template>
- <view class="">
- <image src="../../static/history_top_bgimage@2x.png" style="width: 100%;height: 278rpx;"></image>
- <view class="main">
- <!-- <view class="infoBox" style="margin-top: 40rpx;"> -->
- <!-- <view class="title">
- 番茄小区
- </view> -->
- <view class="item" v-for="(item,index) in data" :key="index">
- <view class="leftIcon">
- <image src="../../static/open_icon@2x.png" style="width: 100%;height: 100%;"></image>
- </view>
- <view class="" style="position: absolute;left: 100rpx;">
- <view class="name">{{item.deviceName}}</view>
- <view class="dec">
- 解锁时间:{{item.createTime}}
- </view>
- </view>
- </view>
-
- <!-- </view> -->
-
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- data:[]
- }
- },
- mounted() {
- this.getList()
- },
- methods: {
- // 获取列表数据
- getList() {
- uni.showLoading({
- mask:true,
- title:'加载中'
- })
- this.http.httpRequest('/wxapplet/owner/openDoor/list', 'get', {
- phoneNum:uni.getStorageSync('phoneNumber')
- }, true).then((res) => {
- console.log(res)
- if (res.code == 0) {
- uni.hideLoading()
- this.data=res.data.rows
- } else {
- uni.hideLoading()
- uni.showToast({
- title: res.msg,
- 'icon': 'none'
- })
- }
- }).catch(()=>{
- uni.hideLoading()
- })
- },
- // 查看解锁记录
- seeList() {
- uni.navigateTo({
- url: ""
- })
- }
- }
- }
- </script>
- <style scoped>
- .title {
- width: 100%;
- height: 44rpx;
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: rgba(41, 138, 253, 1);
- }
- .btn {
- width: 702rpx;
- height: 90rpx;
- background: rgba(41, 138, 253, 1);
- opacity: 1;
- border-radius: 18rpx;
- position: fixed;
- bottom: 56rpx;
- left: 24rpx;
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: rgba(255, 255, 255, 1);
- }
- .dec {
- width: 356rpx;
- height: 40rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: rgba(153, 153, 153, 1);
- margin-top: 12rpx;
- }
- .name {
- width: 262rpx;
- height: 44rpx;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: rgba(51, 51, 51, 1);
- margin-top: 38rpx;
- }
- .item {
- width: 702rpx;
- height: 170rpx;
- border-bottom: 2px solid rgba(247, 247, 247, 1);
- ;
- display: flex;
- position: relative;
- }
- .infoBox {
- width: 702rpx;
- margin: 0 auto;
- }
- .leftIcon {
- width: 60rpx;
- height: 60rpx;
- position: absolute;
- left: 24rpx;
- bottom: 60rpx;
- }
- .rightIcon {
- width: 80rpx;
- height: 80rpx;
- position: absolute;
- right: 24rpx;
- bottom: 44rpx;
- }
- .main {
- width: 100%;
- position: absolute;
- top: 0rpx;
- }
- </style>
|