You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
3.3 KiB

3 years ago
<template>
<view class="containers" :style="{'height':winHeight+'px'}">
2 weeks ago
<view class="title justify-between">
<text>BD访客</text>
<text @click="toUrl(0)" style="color: #f27707;">我的拜访记录</text>
3 years ago
</view>
3 years ago
<view class="bdfk">
3 years ago
<!-- <view>
3 years ago
<u--image :showLoading="true" :src="ptfk" width="315rpx" height="600rpx" @click="toUrl(1)"></u--image>
2 weeks ago
</view> -->
<view class="sgry">
<u--image :src="xxpx" width="315rpx" height="280rpx" @click="toUrl(5)"></u--image>
<view>
<u--image :src="ptfk" width="315rpx" height="280rpx" @click="toUrl(1)"></u--image>
</view>
3 years ago
</view>
<view class="sgry">
3 years ago
<u--image :src="wlcl" width="315rpx" height="280rpx" @click="toUrl(3)"></u--image>
3 years ago
<view>
3 years ago
<u--image :src="sgry" width="315rpx" height="280rpx" @click="toUrl(2)"></u--image>
3 years ago
</view>
</view>
</view>
2 weeks ago
<view class="vip-entry" @click="toUrl(6)">
VIP访客预约入口
</view>
<view class="title justify-between">
<text>BD管理员</text>
3 years ago
</view>
3 years ago
<view>
<u--image :src="bdgl" width="670rpx" height="336rpx" @click="toUrl(4)"></u--image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
3 years ago
ptfk: require('../../static/img/ptfk.png'),
3 years ago
wlcl: require('../../static/img/wlcl1.png'),
2 weeks ago
sgry: require('../../static/img/sgry1.png'),
3 years ago
xxpx: require('../../static/img/xxpx.png'),
3 years ago
bdgl: require('../../static/img/bdgl.png'),
2 weeks ago
winHeight: 0,
3 years ago
isBd:""
3 years ago
}
},
onLoad() {
2 weeks ago
this.winHeight = uni.getSystemInfoSync().screenHeight - uni.getSystemInfoSync().statusBarHeight * 2-20;
2 weeks ago
},
onShow(){
this.isBd = uni.getStorageSync("userInfo_BD_token").token
console.log("bd",this.isBd)
},
onShareAppMessage() {
return {
title: 'BD访客系统',
path: '/pages/index/index',
// imageUrl: this.logoIndex
}
},
onShareTimeline() {
return {
title: 'BD访客系统',
path: '/pages/index/index',
// imageUrl: this.logoIndex
}
3 years ago
},
methods: {
toUrl(type) {
let url = ""
switch (type) {
case 1:
3 years ago
url = "/pages/visit/addrecord?type=1"
3 years ago
break;
case 2:
3 years ago
url = "/pages/visit/addrecord?type=2"
3 years ago
break;
case 3:
3 years ago
url = "/pages/visit/addrecord?type=3"
3 years ago
break;
2 weeks ago
case 6:
url = "/pages/visit/addrecord?type=4"
break;
case 0:
url = "/pages/visit/visithistory"
break;
case 5:
url = "/pages/visit/tostudy"
break;
case 4:
if(!this.util.isNull(this.isBd)){
url = "/pages/bd/mine"
}else{
url = "/pages/index/login"
3 years ago
}
3 years ago
break;
2 weeks ago
}
uni.navigateTo({
url:url
3 years ago
})
}
}
}
</script>
<style scoped>
.containers {
background-color: #044ed7;
2 weeks ago
padding: 0 40rpx;
3 years ago
padding-bottom:20px;
}
.title {
color: #fff;
font-size: 32rpx;
padding: 40rpx 0;
padding-top: 70rpx
}
2 weeks ago
.title:first-child{
padding-top:30rpx
3 years ago
}
.bdfk {
display: flex;
justify-content: space-between;
}
.sgry view {
margin-top: 40rpx
}
2 weeks ago
.vip-entry{
margin-top: 40rpx;
height: 88rpx;
line-height: 88rpx;
border-radius: 12rpx;
background: #f27707;
color: #fff;
text-align: center;
font-size: 30rpx;
font-weight: 600;
}
</style>