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.

116 lines
2.6 KiB

3 years ago
<template>
<view class="containers" :style="{'height':winHeight+'px'}">
3 years ago
<view class="title justify-between">
<text>BD访客</text>
3 years ago
<text @click="toUrl(0)" style="color: #f27707;">我的拜访记录</text>
3 years ago
</view>
3 years ago
<view class="bdfk">
2 years ago
<!-- <view>
3 years ago
<u--image :showLoading="true" :src="ptfk" width="315rpx" height="600rpx" @click="toUrl(1)"></u--image>
2 years 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 years ago
<view class="title justify-between">
<text>BD管理员</text>
</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 {
2 years ago
ptfk: require('../../static/img/ptfk.png'),
3 years ago
wlcl: require('../../static/img/wlcl1.png'),
2 years ago
sgry: require('../../static/img/sgry1.png'),
xxpx: require('../../static/img/xxpx.png'),
3 years ago
bdgl: require('../../static/img/bdgl.png'),
3 years ago
winHeight: 0,
isBd:""
3 years ago
}
},
onLoad() {
3 years ago
this.winHeight = uni.getSystemInfoSync().screenHeight - uni.getSystemInfoSync().statusBarHeight * 2-20;
3 years ago
},
onShow(){
this.isBd = uni.getStorageSync("userInfo_BD_token").token
console.log("bd",this.isBd)
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"
break;
case 0:
url = "/pages/visit/visithistory"
2 years ago
break;
case 5:
url = "/pages/visit/tostudy"
3 years ago
break;
3 years ago
case 4:
if(!this.util.isNull(this.isBd)){
url = "/pages/bd/mine"
}else{
url = "/pages/index/login"
}
3 years ago
break;
}
uni.navigateTo({
url:url
})
}
}
}
</script>
<style scoped>
.containers {
background-color: #044ed7;
padding: 0 40rpx;
padding-bottom:20px;
}
.title {
color: #fff;
font-size: 32rpx;
padding: 40rpx 0;
padding-top: 70rpx
}
.title:first-child{
padding-top:30rpx
}
.bdfk {
display: flex;
justify-content: space-between;
}
.sgry view {
margin-top: 40rpx
}
</style>