Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TripFriend
Project
Project
Details
Activity
Releases
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
viitto
TripFriend
Commits
e27d5638
Commit
e27d5638
authored
Feb 19, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
16a377ee
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
465 additions
and
94 deletions
+465
-94
app.js
app.js
+48
-2
app.json
app.json
+3
-3
index.js
pages/index/index.js
+132
-23
index.wxml
pages/index/index.wxml
+103
-41
index.wxss
pages/index/index.wxss
+81
-10
index.json
pages/msg/index/index.json
+2
-1
validate.json
pages/validateForm/validate/validate.json
+1
-1
validate.wxml
pages/validateForm/validate/validate.wxml
+2
-2
validateEnd.js
pages/validateForm/validateEnd/validateEnd.js
+36
-2
validateEnd.wxml
pages/validateForm/validateEnd/validateEnd.wxml
+5
-5
validateEnd.wxss
pages/validateForm/validateEnd/validateEnd.wxss
+1
-1
project.config.json
project.config.json
+39
-2
util.js
utils/util.js
+12
-1
No files found.
app.js
View file @
e27d5638
...
@@ -46,7 +46,8 @@ import PAGE_CONFIG from './config/pageConfig.js'
...
@@ -46,7 +46,8 @@ import PAGE_CONFIG from './config/pageConfig.js'
const
{
Provider
}
=
WeAppRedux
;
const
{
Provider
}
=
WeAppRedux
;
const
store
=
createStore
(
reducer
)
// redux store
const
store
=
createStore
(
reducer
)
// redux store
let
md5
=
require
(
'utils/md5.js'
)
let
netUrl
=
'http://testapi.oytour.com/api/common/post'
;
App
(
App
(
Provider
(
store
)(
Provider
(
store
)(
{
{
...
@@ -85,7 +86,52 @@ App(
...
@@ -85,7 +86,52 @@ App(
height
:
systemInfo
.
windowHeight
height
:
systemInfo
.
windowHeight
}
}
this
.
globalData
.
isPushBeCallPage
=
false
this
.
globalData
.
isPushBeCallPage
=
false
}
},
token
:
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9'
,
// 请求接口
$api
:
function
(
url
,
data
)
{
var
promise
=
new
Promise
((
resolve
,
reject
)
=>
{
wx
.
showLoading
({
title
:
'加载中'
,
});
let
timestamp
=
(
new
Date
()).
valueOf
()
let
sign
=
md5
(
'cmd='
+
url
+
'&'
+
'msg='
+
encodeURIComponent
(
data
).
toLowerCase
()
+
'&'
+
'timestamp='
+
timestamp
+
'&'
+
'token='
+
""
+
'&'
+
'key='
+
''
)
wx
.
request
({
url
:
netUrl
,
method
:
'POST'
,
data
:
{
cmd
:
url
,
msg
:
data
,
timestamp
:
timestamp
,
token
:
""
,
sign
:
sign
},
success
(
res
)
{
wx
.
hideLoading
()
if
(
res
.
data
.
resultCode
===
1
)
{
resolve
(
res
.
data
.
data
);
}
else
if
(
res
.
data
.
resultCode
===
10000
||
res
.
data
.
resultCode
===
10001
)
{
// wx.navigateTo({
// url: '/pages/login/login'
// })
wx
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
'none'
,
duration
:
1000
})
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
'none'
,
duration
:
1000
})
reject
(
res
.
data
)
}
}
})
})
return
promise
;
},
}
}
)
)
)
)
app.json
View file @
e27d5638
{
{
"pages"
:
[
"pages"
:
[
"pages/msg/index/index"
,
"pages/index/index"
,
"pages/index/index"
,
"pages/msg/index/index"
,
"pages/welcome/welcome"
,
"pages/welcome/welcome"
,
"pages/validateForm/validate/validate"
,
"pages/validateForm/validate/validate"
,
"pages/validateForm/validateEnd/validateEnd"
,
"pages/validateForm/validateEnd/validateEnd"
,
"pages/logs/logs"
,
"pages/logs/logs"
,
"pages/me/index"
,
"pages/me/index"
,
"pages/video/index"
,
"pages/
video/index
"
"pages/
webview/webview
"
],
],
"window"
:
{
"window"
:
{
"backgroundTextStyle"
:
"light"
,
"backgroundTextStyle"
:
"light"
,
...
...
pages/index/index.js
View file @
e27d5638
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
//index.js
//index.js
//获取应用实例
//获取应用实例
const
app
=
getApp
()
const
app
=
getApp
()
var
util
=
require
(
'../../utils/util.js'
)
Page
({
Page
({
data
:
{
data
:
{
...
@@ -13,7 +14,19 @@ Page({
...
@@ -13,7 +14,19 @@ Page({
vertical
:
false
,
vertical
:
false
,
autoplay
:
false
,
autoplay
:
false
,
interval
:
2000
,
interval
:
2000
,
duration
:
500
duration
:
500
,
loginState
:
true
,
dataInfo
:{},
todayMsg
:{
ConfigId
:
0
,
TCID
:
''
,
// Date: util.YYMMDD(new Date()),
Date
:
'2019-11 - 02'
,
},
todayList
:[],
contactState
:
true
,
contactInfo
:{},
},
},
//事件处理函数
//事件处理函数
bindViewTap
:
function
()
{
bindViewTap
:
function
()
{
...
@@ -22,35 +35,131 @@ Page({
...
@@ -22,35 +35,131 @@ Page({
// })
// })
},
},
onLoad
:
function
()
{
onLoad
:
function
()
{
if
(
app
.
globalData
.
userInfo
)
{
// if (app.globalData.userInfo) {
// this.setData({
// userInfo: app.globalData.userInfo,
// hasUserInfo: true
// })
// } else if (this.data.canIUse){
// // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
// // 所以此处加入 callback 以防止这种情况
// app.userInfoReadyCallback = res => {
// this.setData({
// userInfo: res.userInfo,
// hasUserInfo: true
// })
// }
// } else {
// // 在没有 open-type=getUserInfo 版本的兼容处理
// wx.getUserInfo({
// success: res => {
// app.globalData.userInfo = res.userInfo
// this.setData({
// userInfo: res.userInfo,
// hasUserInfo: true
// })
// }
// })
// }
let
that
=
this
;
let
userInfo
=
(
wx
.
getStorageSync
(
'userInfo'
))
if
(
userInfo
){
that
.
setData
({
userInfo
:
userInfo
,
loginState
:
false
})
}
that
.
getData
();
},
closeState
(
e
){
this
.
setData
({
contactState
:
true
,
})
},
noThing
(
e
){
},
goWeb
(
e
){
let
info
=
e
.
currentTarget
.
dataset
.
item
;
let
name
=
info
.
Name
;
wx
.
navigateTo
({
url
:
'/pages/webview/webview?name='
+
name
})
},
getContact
(
e
){
let
info
=
e
.
currentTarget
.
dataset
.
item
;
let
type
=
e
.
currentTarget
.
dataset
.
type
;
let
contactInfo
=
this
.
data
.
contactInfo
;
contactInfo
.
type
=
type
;
if
(
type
==
1
){
contactInfo
.
Name
=
info
.
Surname
+
info
.
Name
;
contactInfo
.
MobilePhone
=
info
.
MobilePhone
;
contactInfo
.
LdNum
=
info
.
LdNum
;
contactInfo
.
LdPhoto
=
info
.
LdPhoto
;
}
if
(
type
==
2
)
{
contactInfo
.
Name
=
info
.
Surname
+
info
.
Name
;
contactInfo
.
MobilePhone
=
info
.
MobilePhone
;
contactInfo
.
DyNum
=
info
.
DyNum
;
contactInfo
.
LdPhoto
=
info
.
DyPhoto
;
}
if
(
type
==
3
)
{
contactInfo
.
Name
=
info
.
Contact
;
contactInfo
.
MobilePhone
=
info
.
ContactNumber
;
contactInfo
.
DyNum
=
info
.
CustomerNum
;
contactInfo
.
LdPhoto
=
info
.
CustomerPhoto
;
}
this
.
setData
({
contactState
:
false
,
contactInfo
:
contactInfo
,
})
},
getData
(){
let
userInfo
=
this
.
data
.
userInfo
;
let
msg
=
{
ConfigId
:
0
,
TCID
:
'7003'
,
OrderId
:
userInfo
.
OrderId
?
userInfo
.
OrderId
:
''
,
CityId
:
userInfo
.
DepartureCityId
?
userInfo
.
DepartureCityId
:
''
};
app
.
$api
(
'b2b_get_GetMXYTravelIndexInfo'
,
msg
).
then
(
res
=>
{
if
(
res
.
CityList
.
length
>
0
){
res
.
CityList
.
forEach
(
item
=>
{
item
.
all
=
parseInt
(
item
.
Score
);
item
.
grey
=
5
-
parseInt
(
item
.
Score
);
})
}
let
todayMsg
=
this
.
data
.
todayMsg
;
todayMsg
.
ConfigId
=
res
.
configId
;
todayMsg
.
TCID
=
res
.
tcid
;
this
.
setData
({
this
.
setData
({
userInfo
:
app
.
globalData
.
userInfo
,
dataInfo
:
res
,
hasUserInfo
:
true
todayMsg
:
todayMsg
})
})
}
else
if
(
this
.
data
.
canIUse
){
this
.
getToday
();
// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
}).
catch
(
err
=>
{
})
// 所以此处加入 callback 以防止这种情况
},
app
.
userInfoReadyCallback
=
res
=>
{
getToday
(){
let
todayMsg
=
this
.
data
.
todayMsg
;
app
.
$api
(
'b2b_get_GetMXYToDayTourList'
,
todayMsg
).
then
(
res
=>
{
if
(
res
.
Status
==
1
){
this
.
setData
({
this
.
setData
({
userInfo
:
res
.
userInfo
,
todayList
:
res
.
List
hasUserInfo
:
true
})
})
}
}
}
else
{
// 在没有 open-type=getUserInfo 版本的兼容处理
}).
catch
(
err
=>
{
})
wx
.
getUserInfo
({
},
success
:
res
=>
{
goCard
(){
app
.
globalData
.
userInfo
=
res
.
userInfo
wx
.
navigateTo
({
this
.
setData
({
url
:
'/pages/validateForm/validate/validate'
userInfo
:
res
.
userInfo
,
})
hasUserInfo
:
true
})
}
})
}
},
},
getUserInfo
:
function
(
e
)
{
getUserInfo
:
function
(
e
)
{
console
.
log
(
e
)
app
.
globalData
.
userInfo
=
e
.
detail
.
userInfo
app
.
globalData
.
userInfo
=
e
.
detail
.
userInfo
this
.
setData
({
this
.
setData
({
userInfo
:
e
.
detail
.
userInfo
,
userInfo
:
e
.
detail
.
userInfo
,
...
...
pages/index/index.wxml
View file @
e27d5638
...
@@ -12,25 +12,39 @@
...
@@ -12,25 +12,39 @@
</view>
</view>
</view> -->
</view> -->
<!-- // -->
<!-- // -->
<!-- <view hidden="{{!loginState}}" class="titleContent">
<view class="f40" style="font-weight:600">尊敬的客户您好,请进行您的身份识别</view>
<view class="qhd">
<text bindtap="goCard">去核对</text>
</view>
</view> -->
<!-- hidden="{{loginState}}" -->
<view class="Index">
<view class="Index">
<view class="titleContent">
<view class="titleContent">
<view class="f40" style="font-weight:600">京东北海道新系列</view>
<view class="f40" style="font-weight:600">{{dataInfo.LtName}} </view>
<view class="f20">尊敬的客户您好,请进行您的身份识别</view>
<view hidden="{{!loginState}}" class="f24">尊敬的客户您好,请进行您的身份识别</view>
<text class="qhd">去核对</text>
<view hidden="{{!loginState}}" class="qhd">
<text bindtap="goCard">去核对</text>
</view>
</view>
</view>
<view class="headView">
<view class="headView">
<scroll-view scroll-x class="scroll-header">
<scroll-view scroll-x class="scroll-header">
<view class="scroll-view-item">
<view bindtap="goWeb" data-item="{{item}}" wx:for="{{dataInfo.CityList}}" wx:key="index" class="scroll-view-item">
<image wx:if="{{item.Images && item.Images!=''}}" class="image" src="{{item.Images}}"></image>
<image wx:else class="image" src="../../images/index/default.png"></image>
<view class="cityView">
<view class="cityView">
<view style="font-size:30rpx">
日本
</view>
<view style="font-size:30rpx">
{{item.Name}}
</view>
<view style="font-size:26rpx">
<view style="font-size:26rpx">
<image src="../../images/index/all.png"></image>
<block wx:key="index" wx:for="{{item.all}}">
5分
<image src="../../images/index/all.png"></image>
</block>
<block wx:key="index" wx:for="{{item.grey}}">
<image src="../../images/index/grey.png"></image>
</block>
{{item.Score}}分
</view>
</view>
</view>
</view>
</view>
</view>
<view id="red" class="scroll-view-item bc_red"></view>
<view id="yellow" class="scroll-view-item bc_yellow"></view>
</scroll-view>
</scroll-view>
</view>
</view>
<view class="timeView">
<view class="timeView">
...
@@ -42,17 +56,17 @@
...
@@ -42,17 +56,17 @@
<view class="itemView">
<view class="itemView">
<image style="width:44rpx;height:44rpx" src="../../images/index/time.png"></image>
<image style="width:44rpx;height:44rpx" src="../../images/index/time.png"></image>
<text class="title">集合时间</text>
<text class="title">集合时间</text>
<text class="right">
2020-03-15 09:00
</text>
<text class="right">
{{dataInfo.GatherTime}}
</text>
</view>
</view>
<view class="itemView">
<view class="itemView">
<image style="width:44rpx;height:44rpx" src="../../images/index/hb.png"></image>
<image style="width:44rpx;height:44rpx" src="../../images/index/hb.png"></image>
<text class="title">
航班信息
</text>
<text class="title">
启程航班号
</text>
<text class="right">
2020-03-15 09:00
</text>
<text class="right">
{{dataInfo.FlightNumStart}}
</text>
</view>
</view>
<view class="itemView">
<view class="itemView">
<image style="width:44rpx;height:44rpx" src="../../images/index/hbsj.png"></image>
<image style="width:44rpx;height:44rpx" src="../../images/index/hbsj.png"></image>
<text class="title">航班时间</text>
<text class="title">
启程
航班时间</text>
<text class="right">
2020-03-15 09:00
</text>
<text class="right">
{{dataInfo.FlightStartTime}}
</text>
</view>
</view>
</view>
</view>
</swiper-item>
</swiper-item>
...
@@ -60,20 +74,20 @@
...
@@ -60,20 +74,20 @@
<block>
<block>
<swiper-item>
<swiper-item>
<view class="item">
<view class="item">
<view class="itemView">
<
!-- <
view class="itemView">
<image style="width:44rpx;height:44rpx" src="../../images/index/time.png"></image>
<image style="width:44rpx;height:44rpx" src="../../images/index/time.png"></image>
<text class="title">集合时间</text>
<text class="title">集合时间</text>
<text class="right">2020-03-15 09:00</text>
<text class="right">2020-03-15 09:00</text>
</view>
</view>
-->
<view class="itemView">
<view class="itemView">
<image style="width:44rpx;height:44rpx" src="../../images/index/hb.png"></image>
<image style="width:44rpx;height:44rpx" src="../../images/index/hb.png"></image>
<text class="title">
航班信息
</text>
<text class="title">
返程航班号
</text>
<text class="right">
2020-03-15 09:00
</text>
<text class="right">
{{dataInfo.FlightNumBack}}
</text>
</view>
</view>
<view class="itemView">
<view class="itemView">
<image style="width:44rpx;height:44rpx" src="../../images/index/hbsj.png"></image>
<image style="width:44rpx;height:44rpx" src="../../images/index/hbsj.png"></image>
<text class="title">
航
班时间</text>
<text class="title">
返程航班
班时间</text>
<text class="right">
2020-03-15 09:00
</text>
<text class="right">
{{dataInfo.FlightBackTime}}
</text>
</view>
</view>
</view>
</view>
</swiper-item>
</swiper-item>
...
@@ -83,52 +97,71 @@
...
@@ -83,52 +97,71 @@
<view class="ContactView">
<view class="ContactView">
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">重要联系人</view>
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">重要联系人</view>
<scroll-view scroll-x class="scroll-header">
<scroll-view scroll-x class="scroll-header">
<view class="scroll-view-item">
<view
bindtap="getContact" data-item="{{dataInfo.LeaderModel}}" data-type="{{1}}"
class="scroll-view-item">
<view>
<view>
<image src="../../images/index/hb.png"></image>
<image wx:if="{{dataInfo.LeaderModel.LdPhoto && dataInfo.LeaderModel.LdPhoto!=''}}" src="{{dataInfo.LeaderModel.LdPhoto}}"></image>
<image wx:else src="../../images/index/default.png"></image>
</view>
</view>
<view class="f24 c11">
黄媛媛
</view>
<view class="f24 c11">
{{dataInfo.LeaderModel.Surname}}{{dataInfo.LeaderModel.Name}}
</view>
<view style="padding:15rpx 0" class="f22 c99">领队</view>
<view style="padding:15rpx 0" class="f22 c99">领队</view>
<view class="fgView"></view>
<view class="fgView"></view>
</view>
</view>
<view bindtap="getContact" data-item="{{dataInfo.GuideModel}}" data-type="{{2}}" class="scroll-view-item">
<view>
<image wx:if="{{dataInfo.GuideModel.DyPhoto && dataInfo.GuideModel.DyPhoto!=''}}" src="{{dataInfo.GuideModel.DyPhoto}}"></image>
<image wx:else src="../../images/index/default.png"></image>
</view>
<view class="f24 c11">{{dataInfo.GuideModel.Surname}}{{dataInfo.GuideModel.Name}}</view>
<view style="padding:15rpx 0" class="f22 c99">导游</view>
<view class="fgView"></view>
</view>
<view bindtap="getContact" data-item="{{dataInfo.CustomerModel}}" data-type="{{3}}" class="scroll-view-item">
<view>
<image wx:if="{{dataInfo.CustomerModel.CustomerPhoto && dataInfo.CustomerModel.CustomerPhoto!=''}}" src="{{dataInfo.CustomerModel.CustomerPhoto}}"></image>
<image wx:else src="../../images/index/default.png"></image>
</view>
<view class="f24 c11">{{dataInfo.CustomerModel.Contact}}</view>
<view style="padding:15rpx 0" class="f22 c99">销售顾问</view>
<view class="fgView"></view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
<view class="XcView">
<view class="XcView">
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">行程概览</view>
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">行程概览</view>
<scroll-view scroll-x class="scroll-header">
<scroll-view scroll-x class="scroll-header">
<view class="scroll-view-item">
<view wx:for="{{dataInfo.JourneyDayImgList}}" wx:key="index" class="scroll-view-item">
<view>
<image class="img" wx:if="{{item.Images.Url && item.Images.Url!=''}}" src="{{item.Images.Url}}"></image>
<image src="../../images/index/hb.png"></image>
<image wx:else src="../../images/index/default.png"></image>
</view>
<text style="color:#fff;font-size:36rpx;font-weight:700">Day{{item.DayNum}}</text>
<view class="f24 c11">黄媛媛</view>
<view style="padding:15rpx 0" class="f22 c99">领队</view>
<view class="fgView"></view>
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
<!-- 今日游玩 -->
<!-- 今日游玩 -->
<view class="toDayView">
<view class="toDayView">
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">今日游玩</view>
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">今日游玩</view>
<view class="ListItem">
<view
wx:for="{{todayList}}" wx:key="index"
class="ListItem">
<view class="imgLeft">
<view class="imgLeft">
<image src="../../images/index/hb.png"></image>
<image wx:if="{{item.ImgCover && item.ImgCover!=''}}" src="{{item.ImgCover}}"></image>
<image wx:else src="../../images/index/default1.png"></image>
</view>
</view>
<view class="right">
<view class="right">
<view
class="text2 c11 f30">今日游玩的城市介绍都在这里啦!
</view>
<view
style="margin-top:10rpx" class="text2 c11 f30">{{item.Name}}
</view>
<view style="margin:15rpx 0" class="text
1 c99 f24">打卡京东、京都、名古屋、秋叶,打卡京东、京都、名古屋、秋叶
</view>
<view style="margin:15rpx 0" class="text
2 c99 f24">{{item.Address}}
</view>
<view style="text-align:right;margin-top:20rpx">
<view style="text-align:right;margin-top:20rpx">
<text class="daka">打卡</text>
<text
wx:if="{{item.IsPunchCard==2}}"
class="daka">打卡</text>
<text class="yidaka">已打卡</text>
<text
wx:if="{{item.IsPunchCard==1}}"
class="yidaka">已打卡</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 商品推荐 -->
<!-- 商品推荐 -->
<view class="toDayView" style="margin-top:20rpx">
<
!-- <
view class="toDayView" style="margin-top:20rpx">
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">商品推荐</view>
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">商品推荐</view>
<view class="ListItem">
<view class="ListItem">
<view class="imgLeft">
<view class="imgLeft">
...
@@ -148,7 +181,36 @@
...
@@ -148,7 +181,36 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view> -->
</view>
<!-- 弹窗 -->
<view catchtap="closeState" data-self="self" hidden="{{contactState}}" class="ContactTc">
<view catchtap="noThing" data-self="no" class="contentView">
<image wx:if="{{contactInfo.LdPhoto && contactInfo.LdPhoto!=''}}" class="photo" src="{{contactInfo.LdPhoto}}"></image>
<image wx:else class="photo" src="../../images/index/default.png"></image>
<view style="padding-top:85rpx">
<view class="c11 f32">
<text class="bold">{{contactInfo.Name}}</text>
<text class="typeView" wx:if="{{contactInfo.type==1}}">领队</text>
<text class="typeView" wx:if="{{contactInfo.type==2}}">导游</text>
<text class="typeView" wx:if="{{contactInfo.type==3}}">销售顾问</text>
</view>
<view style="margin:30rpx 0 30rpx 0" class="f24 c99">
<image style="width:22rpx;height:22rpx" src="../../images/index/phone.png"></image>
{{contactInfo.MobilePhone}}
</view>
<view style="color:#E2E2E2">————
<text class="c11 f22">收客信息</text> ————
</view>
</view>
<view style="margin:30rpx 0 30rpx 0" class="f32 bold">30</view>
<view wx:if="{{contactInfo.type==3}}" class="f22">报名数量</view>
<view wx:else class="f22">带团次数</view>
<view class="lxView">
<image style="width:30rpx;height:30rpx;position: relative;top:4rpx" src="../../images/index/lx.png"></image>
联系他
</view>
</view>
</view>
<view>
</view>
</view>
</view>
\ No newline at end of file
pages/index/index.wxss
View file @
e27d5638
...
@@ -29,18 +29,22 @@
...
@@ -29,18 +29,22 @@
margin-top:150rpx;
margin-top:150rpx;
}
}
.titleContent .qhd{
.titleContent .qhd{
position: absolute;
text-align: center;
border: 2rpx solid #FF3166;
color: #FF3166;
right: 30rpx;
top: 15rpx;
display: inline-block;
width:128rpx;
height:60rpx;
line-height:60rpx;
line-height:60rpx;
border-radius:30rpx;
border-radius:30rpx;
text-align: center;
font-size: 24rpx;
font-size: 24rpx;
margin-top: 30rpx;
position: absolute;
right: 20rpx;
top: -8rpx;
}
.titleContent .qhd text{
width:128rpx;
height:60rpx;
display: inline-block;
border: 2rpx solid #FF3166;
color: #FF3166;
border-radius: 40rpx;
}
}
.Index .titleView {
.Index .titleView {
font-size: 34rpx;
font-size: 34rpx;
...
@@ -57,10 +61,14 @@
...
@@ -57,10 +61,14 @@
.headView .scroll-header .scroll-view-item {
.headView .scroll-header .scroll-view-item {
height: 390rpx;
height: 390rpx;
width:604rpx;
width:604rpx;
border: 1px solid red;
display: inline-block;
display: inline-block;
position: relative;
position: relative;
margin-right: 30rpx;
margin-right: 30rpx;
overflow: hidden;
}
.headView .scroll-header .scroll-view-item .image{
max-width: 100%;
min-height:100%;
}
}
.headView .scroll-header .scroll-view-item:last-child{
.headView .scroll-header .scroll-view-item:last-child{
margin-right: 0;
margin-right: 0;
...
@@ -174,6 +182,16 @@
...
@@ -174,6 +182,16 @@
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
flex-direction: column;
flex-direction: column;
overflow: hidden;
}
.XcView .scroll-header .scroll-view-item image{
min-height: 100%;
width: 100%;
position: absolute;
}
.XcView .scroll-header .scroll-view-item text{
position: relative;
z-index: 100;
}
}
.XcView .scroll-header .scroll-view-item:last-child{
.XcView .scroll-header .scroll-view-item:last-child{
margin-right: 0;
margin-right: 0;
...
@@ -233,4 +251,57 @@
...
@@ -233,4 +251,57 @@
background: #F5F5F5;
background: #F5F5F5;
border-radius:20rpx;
border-radius:20rpx;
}
}
.ContactTc{
position: fixed;
z-index: 100;
background:rgba(0,0,0,0.5);
width: 100%;
height:100%;
top: 0;
left: 0;
}
.ContactTc .contentView{
width:560rpx;
height:640rpx;
background:rgba(255,255,255,1);
border-radius:20rpx;
margin: 0 auto;
margin-top: 290rpx;
position: relative;
text-align: center;
}
.ContactTc .contentView .photo{
width:150rpx;
height:150rpx;
border-radius:50%;
top: -75rpx;
position: absolute;
left: 200rpx;
}
.ContactTc .contentView .lxView{
width:440rpx;
height:90rpx;
line-height:90rpx;
background:rgba(255,49,102,1);
border-radius:45rpx;
text-align: center;
display: inline-block;
font-size: 30rpx;
margin-top: 80rpx;
color:#fff;
position: relative;
}
.ContactTc .contentView .typeView{
width:60rpx;
height:32rpx;
line-height:32rpx;
background:rgba(255,49,102,0.3);
border-radius:16rpx;
color:#FF3166;
font-size: 20rpx;
text-align: center;
display: inline-block;
margin-left: 15rpx;
}
pages/msg/index/index.json
View file @
e27d5638
{
{
"usingComponents"
:
{}
"usingComponents"
:
{},
"navigationStyle"
:
"custom"
}
}
\ No newline at end of file
pages/validateForm/validate/validate.json
View file @
e27d5638
{
{
"
usingComponents"
:
{}
"
navigationStyle"
:
"custom"
}
}
\ No newline at end of file
pages/validateForm/validate/validate.wxml
View file @
e27d5638
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
<text class="h1">选择身份核对</text>
<text class="h1">选择身份核对</text>
<text class="h3">尊敬的客人,为保障您能获取到真实的团队信息</text>
<text class="h3">尊敬的客人,为保障您能获取到真实的团队信息</text>
</view>
</view>
<view class="ci idcard {{chosenType==
0?'active':''}}" bindtap="changeChosenType" data-type="0
">
<view class="ci idcard {{chosenType==
1?'active':''}}" bindtap="changeChosenType" data-type="1
">
<text class="h2">身份证</text>
<text class="h2">身份证</text>
<text class="h6">ID CARD</text>
<text class="h6">ID CARD</text>
</view>
</view>
<view class="ci parpt {{chosenType==
1?'active':''}}" bindtap="changeChosenType" data-type="1
">
<view class="ci parpt {{chosenType==
2?'active':''}}" bindtap="changeChosenType" data-type="2
">
<text class="h2">护照</text>
<text class="h2">护照</text>
<text class="h6">PASSPORT</text>
<text class="h6">PASSPORT</text>
</view>
</view>
...
...
pages/validateForm/validateEnd/validateEnd.js
View file @
e27d5638
// pages/validateForm/validateEnd/validateEnd.js
// pages/validateForm/validateEnd/validateEnd.js
let
app
=
getApp
();
Page
({
Page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
type
:
0
type
:
0
,
info
:{
type
:
1
,
TCID
:
'7003'
,
Number
:
'51010219540703436X'
,
},
},
},
/**
/**
...
@@ -13,8 +20,11 @@ Page({
...
@@ -13,8 +20,11 @@ Page({
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
if
(
options
.
type
){
if
(
options
.
type
){
let
info
=
this
.
data
.
info
;
info
.
type
=
options
.
type
;
this
.
setData
({
this
.
setData
({
type
:
options
.
type
type
:
options
.
type
,
info
:
info
});
});
}
}
},
},
...
@@ -31,6 +41,30 @@ Page({
...
@@ -31,6 +41,30 @@ Page({
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
},
numberInput
(
e
){
let
val
=
e
.
detail
.
value
;
let
info
=
this
.
data
.
info
;
info
.
Number
=
val
;
this
.
setData
({
info
:
info
,
})
},
getInfo
(){
let
info
=
this
.
data
.
info
;
console
.
log
(
"info"
,
info
)
app
.
$api
(
'b2b_get_GetMXYTravelOrderInfo'
,
info
).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
if
(
res
.
IsOK
==
1
){
let
userInfo
=
res
.
Info
wx
.
setStorageSync
(
'userInfo'
,
userInfo
)
wx
.
navigateTo
({
url
:
'/pages/index/index'
})
}
}).
catch
(
err
=>
{
})
},
},
/**
/**
...
...
pages/validateForm/validateEnd/validateEnd.wxml
View file @
e27d5638
<view class="container">
<view class="container">
<view class="ci idcard active" wx:if="{{type==
0
}}">
<view class="ci idcard active" wx:if="{{type==
1
}}">
<text class="h2">身份证</text>
<text class="h2">身份证</text>
<text class="h6">ID CARD</text>
<text class="h6">ID CARD</text>
</view>
</view>
...
@@ -12,13 +12,13 @@
...
@@ -12,13 +12,13 @@
<text>{{type==0?'身份证':'护照'}}</text>
<text>{{type==0?'身份证':'护照'}}</text>
</view>
</view>
<view class="input-box">
<view class="input-box">
<input type="idcard"></input>
<input type="idcard"
bindinput="numberInput" value="{{info.Number}}"
></input>
</view>
</view>
<view class="ul">
<
!-- <
view class="ul">
<view class="li">
<view class="li">
<text>210723********0779</text>
<text>210723********0779</text>
</view>
</view>
</view>
</view>
-->
</view>
</view>
</view>
</view>
<view class="btn bg"></view>
<view bindtap="getInfo" class="btn bg"></view>
\ No newline at end of file
\ No newline at end of file
pages/validateForm/validateEnd/validateEnd.wxss
View file @
e27d5638
...
@@ -44,7 +44,7 @@ page{
...
@@ -44,7 +44,7 @@ page{
background: url('http://imgfile.oytour.com/New/Upload/Cloud/2020-02/20200213050648312.png') no-repeat;
background: url('http://imgfile.oytour.com/New/Upload/Cloud/2020-02/20200213050648312.png') no-repeat;
background-size: 100%;
background-size: 100%;
}
}
.container .
ci.parpt.active
{
.container .
parpt
{
background: url('http://imgfile.oytour.com/New/Upload/Cloud/2020-02/20200213050856296.png') no-repeat;
background: url('http://imgfile.oytour.com/New/Upload/Cloud/2020-02/20200213050856296.png') no-repeat;
background-size: 100%;
background-size: 100%;
}
}
...
...
project.config.json
View file @
e27d5638
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
}
}
},
},
"compileType"
:
"miniprogram"
,
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.
0.4
"
,
"libVersion"
:
"2.
10.1
"
,
"appid"
:
"wxcf0727a7c78b501e"
,
"appid"
:
"wxcf0727a7c78b501e"
,
"projectname"
:
"termina"
,
"projectname"
:
"termina"
,
"debugOptions"
:
{
"debugOptions"
:
{
...
@@ -41,13 +41,50 @@
...
@@ -41,13 +41,50 @@
"current"
:
-1
,
"current"
:
-1
,
"list"
:
[]
"list"
:
[]
},
},
"plugin"
:
{
"current"
:
-1
,
"list"
:
[]
},
"game"
:
{
"game"
:
{
"currentL"
:
-1
,
"currentL"
:
-1
,
"list"
:
[]
"list"
:
[]
},
},
"
miniprogram
"
:
{
"
gamePlugin
"
:
{
"current"
:
-1
,
"current"
:
-1
,
"list"
:
[]
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
-1
,
"list"
:
[
{
"id"
:
-1
,
"name"
:
"首页"
,
"pathName"
:
"pages/index/index"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
1
,
"name"
:
"身份验证1"
,
"pathName"
:
"pages/validateForm/validate/validate"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
2
,
"name"
:
"身份验证2"
,
"pathName"
:
"pages/validateForm/validateEnd/validateEnd"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"baidu "
,
"pathName"
:
"pages/webview/webview"
,
"query"
:
""
,
"scene"
:
null
}
]
}
}
}
}
}
}
\ No newline at end of file
utils/util.js
View file @
e27d5638
...
@@ -28,7 +28,17 @@ function formatNumber(n) {
...
@@ -28,7 +28,17 @@ function formatNumber(n) {
n
=
n
.
toString
()
n
=
n
.
toString
()
return
n
[
1
]
?
n
:
'0'
+
n
return
n
[
1
]
?
n
:
'0'
+
n
}
}
// 获取今天日期
const
YYMMDD
=
date
=>
{
const
year
=
date
.
getFullYear
()
const
month
=
date
.
getMonth
()
+
1
const
day
=
date
.
getDate
()
const
hour
=
date
.
getHours
()
const
minute
=
date
.
getMinutes
()
const
second
=
date
.
getSeconds
()
return
[
year
,
month
,
day
].
map
(
formatNumber
).
join
(
'-'
)
}
/**
/**
* 验证数据长度有效性
* 验证数据长度有效性
*/
*/
...
@@ -934,5 +944,6 @@ module.exports = {
...
@@ -934,5 +944,6 @@ module.exports = {
generateBigEmojiImageFile
,
generateBigEmojiImageFile
,
generateImageNode
,
generateImageNode
,
getFormatFriendList
,
getFormatFriendList
,
dealMsg
dealMsg
,
YYMMDD
}
}
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