fourPayProject/51uni/homePages/EquipmentManagement/details.vue

186 lines
3.4 KiB
Vue
Raw Normal View History

2025-03-31 10:23:28 +08:00
<template>
<view class="content">
<view class="container">
<headers :titles="titles"><uni-icons type="arrow-left" color="#fff" size="22px"></uni-icons></headers>
<view class="box_">
<view class="">
设备类型
</view>
<view class="">
{{terminalDetail.terminalType}}
</view>
</view>
<view class="box_">
<view class="">
设备型号
</view>
<view class="">
{{terminalDetail.machineModel}}
</view>
</view>
<view class="box_">
<view class="">
厂商名称
</view>
<view class="">
{{terminalDetail.manufacturerName}}
</view>
</view>
<view class="box_">
<view class="">
SN
</view>
<view class="">
{{terminalDetail.sn}}
</view>
</view>
<view class="box_">
<view class="">
绑定时间
</view>
<view class="">
{{terminalDetail.agentBindTime}}
</view>
</view>
<view class="box_">
<view class="">
使用状态
</view>
<view class="" v-if="terminalDetail.status==0">
未绑定
</view>
<view class="" v-if="terminalDetail.status!=0">
绑定
</view>
</view>
<view class="box_">
<view class="">
设备奖励
</view>
<view class="">
{{terminalDetail.terminalType}}
</view>
</view>
<view class="box_">
<view class="">
代理联系人
</view>
<view class="">
{{terminalDetail.terminalType}}
</view>
</view>
<view class="box_">
<view class="">
交易记录
</view>
<view class="">
<u-icon name="arrow-right" size="20"></u-icon>
</view>
</view>
<view style="width: 100%; height: 50px; "></view>
<view class="bottom-anniu">
解除绑定
</view>
</view>
</view>
</template>
<script>
import request from '../../utils/request.js'
import headers from '../../components/header/headers.vue'
export default {
data() {
return {
sn: '',
terminalDetail: '',
titles: "设备信息",
msg: "1",
dataList: [],
show: false,
status: 'loading',
}
},
onShow() {
// this.actList = ["1", "1", "1", "1", "1", ]
// this.status = "nomore" 底部刷新结束
},
onPullDownRefresh() {
console.log("刷新");
uni.stopPullDownRefresh()
},
onLoad(option) {
this.sn = option.sn;
this.getTerminalDetail()
},
onReachBottom() {
// this.show = true
setTimeout(() => {
console.log("加载执行");
}, 2000)
},
components: {
headers
},
methods: {
//获取设备详情
getTerminalDetail() {
request({
url: '/app/uaMer/terminalDetail',
method: 'post',
data: {
sn: this.sn
}
}).then(res => {
if (res.data) {
this.terminalDetail = res.data
console.log("terminalDetail:", this.terminalDetail);
}
})
},
goback() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.content {
background: #fff;
height: 100vh;
}
.container {
width: 100%;
background: #fff;
box-sizing: border-box;
padding-top: 88px;
}
.box_ {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 20px;
border-bottom: 1px solid #d5d5d5;
}
.bottom-anniu {
width: 100%;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
color: white;
background: #E4612E;
position: fixed;
bottom: 0px;
}
</style>