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.7 KiB

3 years ago
<template>
<view class="containers" :style="{'height':winHeight+'px'}">
3 months ago
<view class="title justify-between">
<text>迈柯唯访客</text>
<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>
3 months 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>
3 months ago
<view class="title justify-between">
<text>迈柯唯管理员</text>
2 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 {
2 years ago
ptfk: require('../../static/img/ptfk.png'),
3 years ago
wlcl: require('../../static/img/wlcl1.png'),
3 months ago
sgry: require('../../static/img/sgry1.png'),
2 years ago
xxpx: require('../../static/img/xxpx.png'),
3 years ago
bdgl: require('../../static/img/bdgl.png'),
3 months ago
winHeight: 0,
3 years ago
isBd:""
3 years ago
}
},
onLoad() {
3 months ago
this.winHeight = uni.getSystemInfoSync().screenHeight - uni.getSystemInfoSync().statusBarHeight * 2-20;
3 months 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"
3 years ago
break;
3 months ago
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;
3 months ago
}
uni.navigateTo({
url:url
3 years ago
})
}
}
}
</script>
<style scoped>
.containers {
3 months ago
background-color: #fff;
padding: 0 40rpx;
3 years ago
padding-bottom:20px;
}
.title {
3 months ago
color: #182849;
3 years ago
font-size: 32rpx;
padding: 40rpx 0;
padding-top: 70rpx
}
3 months ago
.title:first-child{
padding-top:30rpx
3 years ago
}
.bdfk {
display: flex;
justify-content: space-between;
}
.sgry view {
margin-top: 40rpx
}
3 months ago
</style>