lion 2 months ago
commit 21cb8dc1e6

@ -82,7 +82,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wxbcf69120e37e6e3a",
"appid" : "wx2129de75c4937c40",
"__usePrivacyCheck__" : true,
"setting" : {
"urlCheck" : false,

9
node_modules/.package-lock.json generated vendored

@ -1,8 +1,13 @@
{
"name": "wx-dangyuanjiaoyujidi",
"lockfileVersion": 2,
"name": "mkw-visit-wx",
"lockfileVersion": 3,
"requires": true,
"packages": {
"node_modules/image-tools": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/image-tools/-/image-tools-1.4.0.tgz",
"integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ=="
},
"node_modules/moment": {
"version": "2.29.3",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz",

28
package-lock.json generated

@ -1,21 +1,35 @@
{
"name": "mkw-visit-wx",
"lockfileVersion": 3,
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"image-tools": {
"packages": {
"": {
"dependencies": {
"image-tools": "^1.4.0",
"moment": "^2.29.3",
"uview-ui": "^2.0.31"
}
},
"node_modules/image-tools": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/image-tools/-/image-tools-1.4.0.tgz",
"integrity": "sha512-TKtvJ6iUwM0mfaD4keMnk1ENHFC470QEjBfA3IlvKdEOufzvWbjbaoNcoyYq6HlViF8+d5tOS1ooE6j7CHf1lQ=="
},
"moment": {
"node_modules/moment": {
"version": "2.29.3",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz",
"integrity": "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw=="
"integrity": "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==",
"engines": {
"node": "*"
}
},
"uview-ui": {
"node_modules/uview-ui": {
"version": "2.0.31",
"resolved": "https://registry.npmjs.org/uview-ui/-/uview-ui-2.0.31.tgz",
"integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw=="
"integrity": "sha512-I/0fGuvtiKHH/mBb864SGYk+SJ7WaF32tsBgYgeBOsxlUp+Th+Ac2tgz2cTvsQJl6eZYWsKZ3ixiSXCAcxZ8Sw==",
"engines": {
"HBuilderX": "^3.1.0"
}
}
}
}

@ -6,6 +6,7 @@
{
"path": "pages/index/index",
"style": {
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black",
"backgroundColor": "#fff"

@ -1,31 +1,71 @@
<template>
<view class="containers" :style="{'height':winHeight+'px'}">
<view class="title justify-between">
<text>迈柯唯访客</text>
<text @click="toUrl(0)" style="color: #f27707;">我的拜访记录</text>
<view class="containers" :style="{'height':winHeight+'px', 'padding-top': statusBarHeight + 20 + 'px'}">
<view class="header-area">
<view class="logo-container">
<image class="logo" :src="logoIndex" mode="aspectFit"></image>
</view>
<view class="visit-record">
<view class="visit-text">
<text @click="toUrl(0)">访</text>
<text class="english" @click="toUrl(0)">Visit Records</text>
</view>
</view>
</view>
<view class="section-title">
<view class="title-text">
<text class="chinese">迈柯唯访客</text>
<text class="english">Visitor</text>
</view>
</view>
<view class="bdfk">
<!-- <view>
<u--image :showLoading="true" :src="ptfk" width="315rpx" height="600rpx" @click="toUrl(1)"></u--image>
</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 class="btn-card" @click="toUrl(5)">
<image :src="xxpx" class="btn-icon"></image>
<view class="btn-text">
<text class="chinese">学习培训</text>
<text class="english">Learning and training</text>
</view>
</view>
<view class="sgry">
<u--image :src="wlcl" width="315rpx" height="280rpx" @click="toUrl(3)"></u--image>
<view>
<u--image :src="sgry" width="315rpx" height="280rpx" @click="toUrl(2)"></u--image>
<view class="btn-card" @click="toUrl(1)">
<image :src="ptfk" class="btn-icon"></image>
<view class="btn-text">
<text class="chinese">普通访客</text>
<text class="english">Ordinary visitor</text>
</view>
</view>
<view class="btn-card" @click="toUrl(3)">
<image :src="wlsj" class="btn-icon"></image>
<view class="btn-text">
<text class="chinese">物流司机</text>
<text class="english">Logistics driver</text>
</view>
</view>
<view class="btn-card" @click="toUrl(2)">
<image :src="sgry" class="btn-icon"></image>
<view class="btn-text">
<text class="chinese">施工人员</text>
<text class="english">Construction worker</text>
</view>
</view>
</view>
<view class="title justify-between">
<text>迈柯唯管理员</text>
<view class="section-title admin-section">
<view class="title-text">
<text class="chinese">迈柯唯管理员</text>
<text class="english">Administrator</text>
</view>
</view>
<view>
<u--image :src="bdgl" width="670rpx" height="336rpx" @click="toUrl(4)"></u--image>
<view class="admin-btn-container">
<view class="admin-btn" @click="toUrl(4)">
<view class="admin-icon">
<image :src="gly" class="admin-icon-img"></image>
</view>
<view class="admin-text">
<text class="chinese">迈柯唯管理员</text>
<text class="english">Administrator</text>
</view>
<view class="arrow">
<text>></text>
</view>
</view>
</view>
</view>
@ -36,16 +76,21 @@
data() {
return {
ptfk: require('../../static/img/ptfk.png'),
wlcl: require('../../static/img/wlcl1.png'),
sgry: require('../../static/img/sgry1.png'),
wlsj: require('../../static/img/wlsj.png'),
sgry: require('../../static/img/sgry.png'),
xxpx: require('../../static/img/xxpx.png'),
bdgl: require('../../static/img/bdgl.png'),
gly: require('../../static/img/gly.png'),
logoIndex: require('../../static/img/logo-index.png'),
winHeight: 0,
statusBarHeight: 0,
isBd:""
}
},
onLoad() {
this.winHeight = uni.getSystemInfoSync().screenHeight - uni.getSystemInfoSync().statusBarHeight * 2-20;
const systemInfo = uni.getSystemInfoSync();
this.statusBarHeight = systemInfo.statusBarHeight;
this.winHeight = systemInfo.screenHeight - systemInfo.statusBarHeight * 2-20;
},
onShow(){
@ -91,22 +136,202 @@
<style scoped>
.containers {
background-color: #fff;
padding: 0 40rpx;
padding-bottom:20px;
background-image: url('../../static/img/bg.png');
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
padding: 0 40rpx 20px;
position: relative;
}
.title {
color: #182849;
.header-area {
height: 300rpx;
display: flex;
flex-direction: column;
position: relative;
}
.logo-container {
position: absolute;
top: 80rpx;
right: 40rpx;
z-index: 10;
}
.logo {
width: 160rpx;
height: 160rpx;
}
.visit-record {
position: absolute;
bottom: 115rpx;
left: 40rpx;
}
.visit-text {
display: flex;
flex-direction: column;
line-height: 1.5;
}
.visit-text text:first-child {
color: #ffffff;
font-size: 32rpx;
padding: 40rpx 0;
padding-top: 70rpx
font-weight: normal;
letter-spacing: 2rpx;
}
.title:first-child{
padding-top:30rpx
.visit-text .english {
color: #cccccc;
font-size: 20rpx;
font-weight: normal;
letter-spacing: 2rpx;
}
.bdfk {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 4%;
position: relative;
margin-top: 2%;
}
.btn-card {
background-color: #ffffff;
border-radius: 20rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
padding: 4%;
box-sizing: border-box;
aspect-ratio: 1.5;
}
.btn-icon {
width: 60rpx;
height: 60rpx;
margin-bottom: 10rpx;
flex-shrink: 0;
}
.btn-text {
display: flex;
justify-content: space-between;
flex-direction: column;
align-items: center;
line-height: 1.1;
flex-shrink: 0;
}
.btn-text .chinese {
color: #182849;
font-size: 32rpx;
font-weight: normal;
margin-bottom: 4rpx;
}
.btn-text .english {
color: #999999;
font-size: 20rpx;
font-weight: normal;
}
.section-title {
position: relative;
padding: 16% 0 2% 0;
}
.admin-section {
padding: 6% 0 2% 0;
}
.title-text {
display: flex;
flex-direction: column;
line-height: 1.3;
}
.title-text .chinese {
color: #182849;
font-size: 28rpx;
font-weight: normal;
margin-bottom: 2rpx;
}
.title-text .english {
color: #999999;
font-size: 20rpx;
font-weight: normal;
}
.admin-btn-container {
position: relative;
padding: 2% 0;
}
.admin-btn {
width: calc(100% - 10rpx) !important;
height: 104px !important;
background-color: #ffffff !important;
border-radius: 20rpx !important;
position: relative !important;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1) !important;
margin: 0 5rpx !important;
}
.admin-icon {
width: 60rpx !important;
height: 60rpx !important;
position: absolute !important;
left: 110rpx !important;
top: 50% !important;
transform: translateY(-50%) !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
.admin-icon-img {
width: 60rpx;
height: 60rpx;
}
.admin-text {
position: absolute !important;
left: 50% !important;
top: 50% !important;
transform: translate(-50%, -50%) !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
line-height: 1.3 !important;
}
.admin-text .chinese {
color: #182849;
font-size: 32rpx;
font-weight: bold;
margin-bottom: 4rpx;
}
.admin-text .english {
color: #999999;
font-size: 24rpx;
font-weight: normal;
}
.arrow {
position: absolute !important;
right: 110rpx !important;
top: 50% !important;
transform: translateY(-50%) !important;
color: #999999 !important;
font-size: 40rpx !important;
font-weight: normal !important;
}
.sgry view {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Loading…
Cancel
Save