Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mingPayMobile
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
mingPayMobile
Commits
1eba81b5
Commit
1eba81b5
authored
5 years ago
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111111
parent
9455e2f4
dev
…
ISV
No related merge requests found
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
112 additions
and
80 deletions
+112
-80
app.js
app.js
+2
-2
externalContact.js
pages/externalContact/externalContact.js
+1
-0
phoneAddressBook.js
pages/phoneAddressBook/phoneAddressBook.js
+0
-1
reservations.acss
pages/reservations/reservations.acss
+12
-8
reservations.axml
pages/reservations/reservations.axml
+15
-9
reservations.js
pages/reservations/reservations.js
+0
-0
reservations.json
pages/reservations/reservations.json
+2
-2
visitors.axml
pages/visitors/visitors.axml
+2
-2
visitors.js
pages/visitors/visitors.js
+30
-10
visitorsDetail.axml
pages/visitorsDetail/visitorsDetail.axml
+15
-20
visitorsDetail.js
pages/visitorsDetail/visitorsDetail.js
+33
-26
No files found.
app.js
View file @
1eba81b5
...
...
@@ -14,9 +14,9 @@ App({
},
globalData
:
{
loadingType
:
0
,
globalUrl
:
'http://192.168.1.101:9999'
//本地豪
//
globalUrl: 'http://192.168.1.101:9999' //本地豪
// globalUrl:'http://192.168.1.110:9999' // 本地成
// globalUrl:'https://gateway.mingwork.com'
//
globalUrl:'https://gateway-beta.mingwork.com'
globalUrl
:
'https://gateway-beta.mingwork.com'
}
});
This diff is collapsed.
Click to expand it.
pages/externalContact/externalContact.js
View file @
1eba81b5
...
...
@@ -23,6 +23,7 @@ create.Page({
success
:
function
(
res
)
{
if
(
_that
.
data
.
query
==
0
)
{
_that
.
store
.
data
.
visitorName
=
res
[
0
].
name
debugger
_that
.
store
.
data
.
selectVisitors
=
false
_that
.
update
()
}
...
...
This diff is collapsed.
Click to expand it.
pages/phoneAddressBook/phoneAddressBook.js
View file @
1eba81b5
...
...
@@ -19,7 +19,6 @@ create.Page({
const
_that
=
this
dd
.
choosePhonebook
({
multiple
:
false
,
//是否多选: true多选 false单选; 默认true
maxUsers
:
1
,
//人数限制,当multiple为true才生效,可选范围1-1500
success
:
function
(
res
)
{
if
(
_that
.
data
.
query
==
0
)
{
_that
.
store
.
data
.
visitorName
=
res
[
0
].
name
...
...
This diff is collapsed.
Click to expand it.
pages/reservations/reservations.acss
View file @
1eba81b5
...
...
@@ -189,25 +189,23 @@
.address {
overflow: hidden;
width: 686rpx;
padding: 0 32rpx;
height: 144rpx;
padding: 32rpx;
display: flex;
overflow: hidden;
border-bottom: 2rpx solid #EEEEEE;
}
.address>view {
/*
.address>view {
margin-top: 32rpx;
}
}
*/
.address .addressTitle {
width: 30%;
height: 44rpx;
}
.addressDetail {
width: 482rpx;
height:
80rpx
;
height:
auto
;
line-height: 40rpx;
font-size: 32rpx;
color: #717579;
...
...
@@ -228,7 +226,7 @@
.iconshanchu {
color: #D4D5D6;
font-size: 40rpx;
line-height: 76rpx;
/* line-height: 76rpx; */
}
.addCompanions {
...
...
@@ -347,12 +345,17 @@
align-items: center;
}
.ccPeople view {
position: relative;
height: 100rpx;
width: 100rpx;
border-radius: 50%;
background: blue;
margin-right: 10rpx;
color: white;
overflow: hidden;
text-align: center;
}
.ccPeopleShanChu {
position: absolute;
top: -40rpx;
right: -6rpx;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pages/reservations/reservations.axml
View file @
1eba81b5
...
...
@@ -52,7 +52,7 @@
</view>
</view>
</view>
<picker value="{{
0}}" range="{{P
urposes}}" onChange='selectPurpose'>
<picker value="{{
1}}" range="{{p
urposes}}" onChange='selectPurpose'>
<view>
<view class="purpose">
<view class="purposeTitle">来访目的</view>
...
...
@@ -107,7 +107,7 @@
<view class="iconjia iconfont"></view>
添加同行人员
</view>
<view class="more">
<view class="more"
a:if='{{isPackUp}}'
>
<view class="moreTitle visitorInfoTitle">更多信息</view>
<view class="visitorName moreName">
<view class="visitorNameText visitorComNameText">
...
...
@@ -116,22 +116,28 @@
<view class="iconfont iconjia moreJia" onTap="copyPerson">
</view>
</view>
<view class="ccPeople">
<view a:for="{{copyPerson}}" a:for-index="index" a:for-item="item"></view>
<view class="ccPeople" a:if='{{copyPerson.length}}'>
<view a:for="{{copyPerson}}" a:for-index="index" a:for-item="item">
{{item.name.substring(item.name.length-2)}}
<text class="iconshanchu iconfont ccPeopleShanChu" data-index='{{index}}' onTap="deleateCcPeople"></text>
</view>
</view>
<view class="visitorName">
<view class="visitorNameText visitorComNameText">
备注
</view>
<view class="visitorInput">
<input placeholder="请输入" data-type='visitorNode' onInput='visitorInput'/>
<input placeholder="请输入" data-type='visitorNode' onInput='visitorInput'
value="{{visitorNode}}"
/>
</view>
</view>
<view class="isHidden">
</view>
<view class="isHidden" onTap="isPackUp" a:if='{{isPackUp}}'>
收起更多消息
<!--<text class='iconzhankai iconfont'></text> -->
<text class='iconshouqi iconfont'></text>
</view>
<text class='iconshouqi iconfont'></text>
</view>
<view class="isHidden" onTap="isPackUp" a:else>
展开更多消息
<text class='iconzhankai iconfont'></text>
</view>
<view class="confirmAppointment">
<view class="confirmAppointmentButton" onTap="confirmAppointment">确认预约</view>
...
...
This diff is collapsed.
Click to expand it.
pages/reservations/reservations.js
View file @
1eba81b5
This diff is collapsed.
Click to expand it.
pages/reservations/reservations.json
View file @
1eba81b5
{}
\ No newline at end of file
{
"pullRefresh"
:
false
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pages/visitors/visitors.axml
View file @
1eba81b5
...
...
@@ -4,8 +4,8 @@
<view class="{{type !== '0' ? 'clickTabs' : ''}}" data-type="1" onTap="changeType">公司访客</view>
</view>
<view class='visitorSituation' a:if="{{dataList.length !== 0}}">今天共
<text>
2
</text>位访客,到访
<text>
1
</text>位
<text>
{{todayVisit}}
</text>位访客,到访
<text>
{{arrivedVisit}}
</text>位
</view>
<view class="nullImage" a:if="{{dataList.length === 0}}">
<image mode="scaleToFill" src="../../../assets/allowanceNull.png"/>
...
...
This diff is collapsed.
Click to expand it.
pages/visitors/visitors.js
View file @
1eba81b5
...
...
@@ -8,11 +8,28 @@ Page({
pageSize
:
10
,
totalCount
:
''
,
overdue
:
false
,
todayVisit
:
0
,
arrivedVisit
:
0
},
arriveStaus
()
{
const
_that
=
this
let
data
=
{
type
:
0
}
$http
.
$http
(
'/admin/visitor/getCurrentCount'
,
data
,
'post'
).
then
(
res
=>
{
_that
.
setData
({
todayVisit
:
res
[
1
],
arrivedVisit
:
res
[
0
]
})
}).
catch
(
err
=>
{
})
},
changeType
(
event
)
{
this
.
setData
({
type
:
event
.
target
.
dataset
.
type
,
dataList
:
[]
dataList
:
[],
currentPage
:
1
})
this
.
visitorList
(
this
.
data
.
type
)
},
...
...
@@ -25,7 +42,7 @@ Page({
}
$http
.
$http
(
'/admin/visitor/getRecordList'
,
data
,
'post'
).
then
(
res
=>
{
let
dataList
=
res
.
records
;
let
dataListSource
=
[]
;
let
dataListSource
=
_that
.
data
.
dataList
;
;
console
.
log
(
dataList
.
length
)
if
(
dataList
.
length
>
0
)
{
dataList
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -46,19 +63,19 @@ Page({
dataListSource
.
push
(
item
)
})
dataList
=
dataListSource
let
totalCount
=
Math
.
ceil
(
parseInt
(
res
.
total
)
/
_that
.
data
.
page
Number
)
let
totalCount
=
Math
.
ceil
(
parseInt
(
res
.
total
)
/
_that
.
data
.
page
Size
)
_that
.
setData
({
dataList
:
dataList
,
totalCount
:
totalCount
})
}
})
},
timeToStr
(
time
)
{
time
=
time
.
replace
(
/
\-
/g
,
"/"
)
if
(
/-/
.
test
(
time
))
{
time
=
time
.
replace
(
/
\-
/g
,
"/"
)
}
let
timeData
=
new
Date
(
time
)
console
.
log
(
'timeData'
,
timeData
)
let
year
=
timeData
.
getFullYear
()
let
month
=
timeData
.
getMonth
()
+
1
let
date
=
timeData
.
getDate
()
...
...
@@ -69,19 +86,22 @@ Page({
month
:
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
,
date
:
date
.
toString
().
length
>
1
?
date
:
'0'
+
date
,
hour
:
hour
.
toString
().
length
>
1
?
hour
:
'0'
+
hour
,
minute
:
minute
.
toString
().
length
>
1
?
minute
:
'0'
+
minute
minute
:
minute
.
toString
().
length
>
1
?
minute
:
'0'
+
minute
,
yearMonthDate
:
`
${
year
}
年
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
月
${
date
.
toString
().
length
>
1
?
date
:
'0'
+
date
}
日`
,
hourMinute
:
`
${
hour
.
toString
().
length
>
1
?
hour
:
'0'
+
hour
}
:
${
minute
.
toString
().
length
>
1
?
minute
:
'0'
+
minute
}
`
,
allTime
:
`
${
year
}
年
${
month
.
toString
().
length
>
1
?
month
:
'0'
+
month
}
月
${
date
.
toString
().
length
>
1
?
date
:
'0'
+
date
}
日
${
hour
.
toString
().
length
>
1
?
hour
:
'0'
+
hour
}
:
${
minute
.
toString
().
length
>
1
?
minute
:
'0'
+
minute
}
分`
}
},
navigatorToNext
(
event
)
{
dd
.
setStorageSync
({
key
:
'item'
,
data
:
event
.
target
.
dataset
.
item
})
dd
.
navigateTo
({
url
:
`./../visitorsDetail/visitorsDetail`
})
dd
.
navigateTo
({
url
:
`./../visitorsDetail/visitorsDetail?item=
${
JSON
.
stringify
(
event
.
target
.
dataset
.
item
)}
`
})
},
appointment
()
{
dd
.
navigateTo
({
url
:
'./../reservations/reservations'
});
dd
.
navigateTo
({
url
:
'./../reservations/reservations'
});
},
onLoad
(
query
)
{
dd
.
setNavigationBar
({
title
:
'智能访客'
});
this
.
visitorList
(
0
)
this
.
arriveStaus
()
},
onReady
()
{
},
...
...
This diff is collapsed.
Click to expand it.
pages/visitorsDetail/visitorsDetail.axml
View file @
1eba81b5
...
...
@@ -2,19 +2,19 @@
<view class="visitorsDetail">
<view class="visitorTab">
<view class="visitorName">
<text class="visitorNameName">
赖蜜桃
</text>
<text class="visitorNameName">
{{visitorName}}
</text>
<text class="visitorNameIcon iconfont iconzhankai">
<!--<text class="visitorHidden"><text>1111111111</text><text>1111111111</text><text>1111111111</text><text>1111111111</text><text>1111111111</text></text> -->
</text>
</view>
<view class="visitorNumber">
<text class="iconfont icondianhua visitorNumberIcon"></text>
<text class="visitorNumberNumber">
17853553699
</text>
<text class="visitorNumberNumber">
{{phone}}
</text>
<text class="call" onTap="call">拨打</text>
</view>
<view class="visitorCompany">
<view class="visitorCompany"
a:if='{{company}}'
>
<text class="visitorCompanyIcon iconfont iconqiye"></text>
<text class="visitorCompanyName">
杭州明我科技有限公司
</text>
<text class="visitorCompanyName">
{{company}}
</text>
</view>
<image mode="scaleToFill" src="{{processStatus == 'invite'? '../../assets/await.png': (processStatus == 'cancel'? '../../assets/cancel.png':'../../assets/dao.png')}}"/>
</view>
...
...
@@ -27,13 +27,13 @@
</view>
<view class="visitorTimeBottom">
<view>
<view>
2019年10月11日
</view>
<view>
10:14
</view>
<view>
{{startTimeYear}}
</view>
<view>
{{startHour}}
</view>
</view>
<view class="fu">~</view>
<view>
<view>
2019年10月11日
</view>
<view>
10:14
</view>
<view>
{{endTimeYear}}
</view>
<view>
{{endHour}}
</view>
</view>
</view>
</view>
...
...
@@ -43,7 +43,7 @@
<text class="visitorTimeTopTitle">被访人</text>
</view>
<view class="visitorTimeBottom">
林萍萍
{{byVisitorName}}
</view>
</view>
<view class="visitorTime">
...
...
@@ -52,7 +52,7 @@
<text class="visitorTimeTopTitle">来访目的</text>
</view>
<view class="visitorTimeBottom">
商务洽谈
{{purpose}}
</view>
</view>
<view class="visitorTime">
...
...
@@ -61,26 +61,21 @@
<text class="visitorTimeTopTitle">到访地址</text>
</view>
<view class="visitorTimeBottom">
浙江省杭州市余杭区
{{visitAddress}}
</view>
</view>
<view class="visitorTime">
<view class="visitorTime">
<view class="visitorTimeTop">
<text class="visitorTimeTopIcon iconzhouzhiren iconfont"></text>
<text class="visitorTimeTopTitle">周知人员</text>
</view>
<view class="visitorTimeBottom">
<text>廖培培</text>
<text>廖培培</text>
<text>廖培培</text>
<text>廖培培</text>
<text>廖培培</text>
<text>廖培培</text>
<text a:for='{{participatorUserList}}' a:for-index="index" a:for-item="item">{{item.username}}</text>
</view>
</view>
</view>
<view class="staus" a:if="{{processStatus == '
cancel'|| processStatus == 'arrive'?false:true
}}">
<view class="noOverdue" a:if='
!overdue
'>
<view class="staus" a:if="{{processStatus == '
invite'
}}">
<view class="noOverdue" a:if='
{{!overdue}}
'>
<view class="cancel" onTap="cancel">取消访客</view>
<view class="reception" onTap="reception">接待访客</view>
</view>
...
...
This diff is collapsed.
Click to expand it.
pages/visitorsDetail/visitorsDetail.js
View file @
1eba81b5
...
...
@@ -2,44 +2,50 @@ const app = getApp()
import
$http
from
'./../../API/http'
Page
({
data
:
{
name
:
''
,
company
:
''
,
startTime
:
''
,
endTime
:
''
,
byVisitorName
:
''
,
purpose
:
''
,
visitorName
:
''
,
//访客的名字
company
:
''
,
// 到访者的公司
startTimeYear
:
''
,
// 开始时间的年月日
startHour
:
''
,
// 开始时间的小时
endHour
:
''
,
//结束时间的小时
endTimeYear
:
''
,
// 结束时间的年月日
byVisitorName
:
''
,
// 被访人
purpose
:
''
,
// 来访的目的
participatorUserList
:
''
,
// 周知人员
participator
:
''
,
endHour
:
''
,
startHour
:
''
,
phone
:
''
,
processStatus
:
''
,
overdue
:
''
phone
:
''
,
// 访客的手机号
processStatus
:
''
,
// 访客的状态
overdue
:
''
,
visitAddress
:
''
//到访的地址
},
onLoad
()
{
onLoad
(
event
)
{
console
.
log
(
JSON
.
parse
(
event
.
item
),
'query'
)
//由JSON字符串转换为JSON对象)
const
that
=
this
let
query
=
dd
.
getStorageSync
({
key
:
'item'
}).
data
let
query
=
JSON
.
parse
(
event
.
item
)
dd
.
setNavigationBar
({
title
:
"访客详情"
,
});
},
onReady
()
{
let
query
=
dd
.
getStorageSync
({
key
:
'item'
}).
data
this
.
setData
({
name
:
query
.
n
ame
,
visitorName
:
query
.
visitorN
ame
,
company
:
query
.
companyName
,
startTime
:
`
${
query
.
startTime
.
year
}
年
${
query
.
startTime
.
month
}
月
${
query
.
startTime
.
date
}
日`
,
endTime
:
`
${
query
.
endTime
.
year
}
年
${
query
.
endTime
.
month
}
月
${
query
.
endTime
.
date
}
日`
,
startHour
:
`
${
query
.
startTime
.
date
}
:
${
query
.
startTime
.
minute
}
`
,
endHour
:
`
${
query
.
endTime
.
date
}
:
${
query
.
endTime
.
minute
}
`
,
byVisitorName
:
''
,
purpose
:
''
,
startTimeYear
:
`
${
query
.
startTime
.
yearMonthDate
}
`
,
startHour
:
`
${
query
.
startTime
.
hourMinute
}
`
,
endTimeYear
:
`
${
query
.
endTime
.
yearMonthDate
}
`
,
endHour
:
`
${
query
.
endTime
.
hourMinute
}
`
,
byVisitorName
:
`
${
query
.
byVisitorName
}
`
,
purpose
:
query
.
purpose
,
visitAddress
:
query
.
visitAddress
,
participatorUserList
:
query
.
participatorUserList
,
participator
:
''
,
phone
:
query
.
mobile
,
processStatus
:
query
.
processStatus
,
overdue
:
query
.
overdue
,
recordId
:
query
.
recordId
recordId
:
query
.
recordId
})
},
onReady
()
{
},
cancel
()
{
dd
.
confirm
({
title
:
'确认取消访问'
,
...
...
@@ -47,12 +53,13 @@ Page({
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
success
:
(
result
)
=>
{
this
.
setData
({
processStatus
:
'cancel'
}
)
console
.
log
(
result
,
11111111111
)
let
data
=
{
recordId
:
this
.
data
.
recordId
}
$http
.
$http
(
'/admin/visitor/cancelVisit'
,
data
,
'post'
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
setData
({
processStatus
:
'cancel'
})
})
},
});
...
...
@@ -64,12 +71,12 @@ Page({
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
success
:
(
result
)
=>
{
this
.
setData
({
processStatus
:
'arrive'
})
let
data
=
{
recordId
:
this
.
data
.
recordId
}
$http
.
$http
(
'/admin/visitor/confirmVisit'
,
data
,
'post'
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
setData
({
processStatus
:
'arrive'
})
})
},
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment