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
211d8234
Commit
211d8234
authored
Feb 25, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f2716a2c
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
210 additions
and
10 deletions
+210
-10
app.wxss
app.wxss
+18
-0
hotelDetails.js
pages/index/hotelDetails/hotelDetails.js
+16
-1
hotelDetails.wxml
pages/index/hotelDetails/hotelDetails.wxml
+19
-1
index.js
pages/index/index.js
+49
-5
index.wxml
pages/index/index.wxml
+6
-2
index.wxss
pages/index/index.wxss
+6
-1
mealDetail.js
pages/index/mealDetail/mealDetail.js
+15
-0
mealDetail.wxml
pages/index/mealDetail/mealDetail.wxml
+17
-0
sceneDetail.js
pages/index/sceneDetail/sceneDetail.js
+15
-0
sceneDetail.wxml
pages/index/sceneDetail/sceneDetail.wxml
+17
-0
strateDateil.js
pages/index/strateDateil/strateDateil.js
+15
-0
strateDateil.wxml
pages/index/strateDateil/strateDateil.wxml
+17
-0
No files found.
app.wxss
View file @
211d8234
...
@@ -81,3 +81,21 @@
...
@@ -81,3 +81,21 @@
clear: both;
clear: both;
content: '';
content: '';
}
}
.plHr{
width:100%;
height:30rpx;
background:rgba(250,250,250,1);
}
.pinglun{
background: #fff;
}
.pinglunItem{
padding: 0 30rpx ;
box-sizing: border-box;
border-bottom:1px solid #eee;
padding-top:30rpx;
}
.pinglunItem:last-child{
border:none;
}
\ No newline at end of file
pages/index/hotelDetails/hotelDetails.js
View file @
211d8234
...
@@ -13,6 +13,7 @@ Page({
...
@@ -13,6 +13,7 @@ Page({
},
},
dataInfo
:{},
dataInfo
:{},
pathUrl
:
''
,
pathUrl
:
''
,
plList
:[],
},
},
/**
/**
...
@@ -29,6 +30,7 @@ Page({
...
@@ -29,6 +30,7 @@ Page({
})
})
}
}
this
.
getData
();
this
.
getData
();
this
.
getPinglunList
();
let
pathUrl
=
'/pages/index/hotelDetails/hotelDetails?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
let
pathUrl
=
'/pages/index/hotelDetails/hotelDetails?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
this
.
setData
({
this
.
setData
({
pathUrl
:
pathUrl
pathUrl
:
pathUrl
...
@@ -47,12 +49,25 @@ Page({
...
@@ -47,12 +49,25 @@ Page({
getData
(){
getData
(){
let
msg
=
this
.
data
.
msg
;
let
msg
=
this
.
data
.
msg
;
app
.
$api
(
'b2b_get_GetMXYToDayTourInfo'
,
msg
).
then
(
res
=>
{
app
.
$api
(
'b2b_get_GetMXYToDayTourInfo'
,
msg
).
then
(
res
=>
{
console
.
log
(
"sfdasf"
,
res
)
this
.
setData
({
this
.
setData
({
dataInfo
:
res
dataInfo
:
res
})
})
}).
catch
(
err
=>
{
})
}).
catch
(
err
=>
{
})
},
},
getPinglunList
()
{
console
.
log
(
"444"
);
let
msg
=
{};
msg
.
pageIndex
=
1
;
msg
.
pageSize
=
100
;
msg
.
SourceId
=
this
.
data
.
msg
.
Id
;
msg
.
Type
=
this
.
data
.
msg
.
Type
;
app
.
$api
(
'b2b_get_GetMXYPunchCardPageList'
,
msg
).
then
(
res
=>
{
console
.
log
(
"sfdasf"
,
res
)
this
.
setData
({
plList
:
res
.
pageData
})
}).
catch
(
err
=>
{
})
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
...
...
pages/index/hotelDetails/hotelDetails.wxml
View file @
211d8234
...
@@ -20,9 +20,27 @@
...
@@ -20,9 +20,27 @@
<view style="padding-bottom: 20rpx;" class="f28">
<view style="padding-bottom: 20rpx;" class="f28">
{{dataInfo.Descriptions}}
{{dataInfo.Descriptions}}
</view>
</view>
</view>
</view>
<!-- <view class="funView">
<!-- <view class="funView">
<image style="width:26rpx;height:26rpx" src="../../../images/index/jh.png"></image>
<image style="width:26rpx;height:26rpx" src="../../../images/index/jh.png"></image>
展开
展开
</view> -->
</view> -->
</view>
</view>
<view wx:if="{{plList.length>0}}" class="pinglun" style="padding-bottom:15rpx">
<view class="plHr"></view>
<view class="pinglunItem" wx:for="{{plList}}" wx:key="index">
<view class="f30 red">{{item.GuestName}}
<view style="float:right" class="f26 c99">{{item.CreateTime}}</view>
</view>
<view style="padding:15rpx 0" class="f24 c99">
<text style="position:relative;top:-6rpx">评分:</text>
<image wx:for="{{item.Score}}" wx:key="index" style="width:30rpx;height:30rpx" src="../../../images/index/all.png"></image>
<image wx:for="{{5-item.Score}}" wx:key="index" style="width:30rpx;height:30rpx" src="../../../images/index/grey.png"></image>
</view>
<view class="f28">{{item.Description}}</view>
<view style="margin-top:20rpx">
<image wx:for="{{item.ImgList}}" wx:for-item="img" wx:key="index" style="width:250rpx;height:250rpx;margin-right:24rpx" src="{{img}}"></image>
</view>
</view>
</view>
\ No newline at end of file
pages/index/index.js
View file @
211d8234
...
@@ -67,8 +67,56 @@ Page({
...
@@ -67,8 +67,56 @@ Page({
// }
// }
// })
// })
// }
// }
let
that
=
this
;
let
openId
=
(
wx
.
getStorageSync
(
'openId'
))
if
(
!
openId
)
{
wx
.
login
({
success
(
res
)
{
console
.
log
(
"ressdfasf"
,
res
)
if
(
res
.
code
)
{
//发起网络请求
let
msg
=
{
code
:
res
.
code
,
type
:
2
}
app
.
$api
(
'miniProgram_customer_HelpByLoginByOpenId'
,
msg
).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
wx
.
setStorageSync
(
'openId'
,
res
)
that
.
setData
({
openId
:
res
})
that
.
login
(
res
);
}).
catch
(
err
=>
{
})
}
else
{
}
}
})
}
},
dYBtn
(){
let
userInfo
=
(
wx
.
getStorageSync
(
'userInfo'
))
let
openId
=
(
wx
.
getStorageSync
(
'openId'
))
let
msg
=
{
OpenId
:
openId
,
TempleteIdList
:[],
GuestId
:
userInfo
.
GuestId
,
};
msg
.
TempleteIdList
=
[
'h0wT8WWk0N2bMQTD8lDm3xC_8ns0MiH1QGYkL7oNNx8'
];
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'h0wT8WWk0N2bMQTD8lDm3xC_8ns0MiH1QGYkL7oNNx8'
],
success
(
res
)
{
if
(
res
.
errMsg
==
"requestSubscribeMessage:ok"
&&
res
.
h0wT8WWk0N2bMQTD8lDm3xC_8ns0MiH1QGYkL7oNNx8
==
"accept"
){
app
.
$api
(
'b2b_set_SetLXYGuestSubscribe'
,
msg
).
then
(
res
=>
{
}).
catch
(
err
=>
{
})
}
},
fail
(
res
)
{
},
},
})
},
onShow
:
function
(){
onShow
:
function
(){
let
that
=
this
;
let
that
=
this
;
let
userInfo
=
(
wx
.
getStorageSync
(
'userInfo'
))
let
userInfo
=
(
wx
.
getStorageSync
(
'userInfo'
))
...
@@ -81,7 +129,6 @@ Page({
...
@@ -81,7 +129,6 @@ Page({
that
.
getData
();
that
.
getData
();
},
},
DakaBtn
(
e
)
{
DakaBtn
(
e
)
{
console
.
log
(
"e"
,
e
)
let
that
=
this
;
let
that
=
this
;
let
userInfo
=
(
wx
.
getStorageSync
(
'userInfo'
))
let
userInfo
=
(
wx
.
getStorageSync
(
'userInfo'
))
if
(
!
userInfo
)
{
if
(
!
userInfo
)
{
...
@@ -105,7 +152,6 @@ Page({
...
@@ -105,7 +152,6 @@ Page({
return
;
return
;
}
}
let
info
=
e
.
currentTarget
.
dataset
.
item
;
let
info
=
e
.
currentTarget
.
dataset
.
item
;
console
.
log
(
"info"
,
info
)
let
Id
=
info
.
Id
;
let
Id
=
info
.
Id
;
let
GuestId
=
userInfo
.
GuestId
;
let
GuestId
=
userInfo
.
GuestId
;
let
src
=
""
;
let
src
=
""
;
...
@@ -227,7 +273,6 @@ Page({
...
@@ -227,7 +273,6 @@ Page({
configId
:
res
.
configId
,
configId
:
res
.
configId
,
tcid
:
res
.
tcid
tcid
:
res
.
tcid
})
})
console
.
log
(
"dataInfo"
,
this
.
data
.
dataInfo
)
this
.
getToday
();
this
.
getToday
();
}).
catch
(
err
=>
{
})
}).
catch
(
err
=>
{
})
},
},
...
@@ -247,7 +292,6 @@ Page({
...
@@ -247,7 +292,6 @@ Page({
this
.
setData
({
this
.
setData
({
todayList
:
res
.
List
todayList
:
res
.
List
})
})
console
.
log
(
"todayList"
,
this
.
data
.
todayList
)
}
}
}).
catch
(
err
=>
{
})
}).
catch
(
err
=>
{
})
...
...
pages/index/index.wxml
View file @
211d8234
...
@@ -21,7 +21,11 @@
...
@@ -21,7 +21,11 @@
<!-- hidden="{{loginState}}" -->
<!-- hidden="{{loginState}}" -->
<view class="Index">
<view class="Index">
<view class="titleContent">
<view class="titleContent">
<view class="f40" style="font-weight:600">{{dataInfo.LtName}} </view>
<view class="f40" style="font-weight:600">{{dataInfo.LtName}}
<view style="float:right;position:relative;top:8rpx" bindtap="dYBtn">
<image style="width:50rpx;height:50rpx" src="../../images/more.png"></image>
</view>
</view>
<view hidden="{{!loginState}}" class="f24">尊敬的客户您好,请进行您的身份识别</view>
<view hidden="{{!loginState}}" class="f24">尊敬的客户您好,请进行您的身份识别</view>
<view hidden="{{!loginState}}" class="qhd">
<view hidden="{{!loginState}}" class="qhd">
<text bindtap="goCard">去核对</text>
<text bindtap="goCard">去核对</text>
...
...
pages/index/index.wxss
View file @
211d8234
/**index.wxss**/
/**index.wxss**/
.dyView{
position: fixed;
top: 0;
width: 100%;
padding-top:100rpx;
}
.userinfo {
.userinfo {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
...
...
pages/index/mealDetail/mealDetail.js
View file @
211d8234
...
@@ -13,6 +13,7 @@ Page({
...
@@ -13,6 +13,7 @@ Page({
},
},
dataInfo
:
{},
dataInfo
:
{},
pathUrl
:
''
,
pathUrl
:
''
,
plList
:[],
},
},
/**
/**
...
@@ -29,6 +30,7 @@ Page({
...
@@ -29,6 +30,7 @@ Page({
})
})
}
}
this
.
getData
();
this
.
getData
();
this
.
getPinglunList
();
let
pathUrl
=
'/pages/index/mealDetail/mealDetail?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
let
pathUrl
=
'/pages/index/mealDetail/mealDetail?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
this
.
setData
({
this
.
setData
({
pathUrl
:
pathUrl
pathUrl
:
pathUrl
...
@@ -53,6 +55,19 @@ Page({
...
@@ -53,6 +55,19 @@ Page({
})
})
}).
catch
(
err
=>
{
})
}).
catch
(
err
=>
{
})
},
},
getPinglunList
()
{
let
msg
=
{};
msg
.
pageIndex
=
1
;
msg
.
pageSize
=
100
;
msg
.
SourceId
=
this
.
data
.
msg
.
Id
;
msg
.
Type
=
this
.
data
.
msg
.
Type
;
app
.
$api
(
'b2b_get_GetMXYPunchCardPageList'
,
msg
).
then
(
res
=>
{
console
.
log
(
"sfdasf"
,
res
)
this
.
setData
({
plList
:
res
.
pageData
})
}).
catch
(
err
=>
{
})
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
...
...
pages/index/mealDetail/mealDetail.wxml
View file @
211d8234
...
@@ -30,3 +30,20 @@
...
@@ -30,3 +30,20 @@
展开
展开
</view> -->
</view> -->
</view>
</view>
<view wx:if="{{plList.length>0}}" class="pinglun" style="padding-bottom:15rpx">
<view class="plHr"></view>
<view class="pinglunItem" wx:for="{{plList}}" wx:key="index">
<view class="f30 red">{{item.GuestName}}
<view style="float:right" class="f26 c99">{{item.CreateTime}}</view>
</view>
<view style="padding:15rpx 0" class="f24 c99">
<text style="position:relative;top:-6rpx">评分:</text>
<image wx:for="{{item.Score}}" wx:key="index" style="width:30rpx;height:30rpx" src="../../../images/index/all.png"></image>
<image wx:for="{{5-item.Score}}" wx:key="index" style="width:30rpx;height:30rpx" src="../../../images/index/grey.png"></image>
</view>
<view class="f28">{{item.Description}}</view>
<view style="margin-top:20rpx">
<image wx:for="{{item.ImgList}}" wx:for-item="img" wx:key="index" style="width:250rpx;height:250rpx;margin-right:24rpx" src="{{img}}"></image>
</view>
</view>
</view>
\ No newline at end of file
pages/index/sceneDetail/sceneDetail.js
View file @
211d8234
...
@@ -13,6 +13,7 @@ Page({
...
@@ -13,6 +13,7 @@ Page({
},
},
dataInfo
:
{},
dataInfo
:
{},
pathUrl
:
''
,
pathUrl
:
''
,
plList
:[],
},
},
/**
/**
...
@@ -33,6 +34,7 @@ Page({
...
@@ -33,6 +34,7 @@ Page({
pathUrl
:
pathUrl
pathUrl
:
pathUrl
})
})
this
.
getData
();
this
.
getData
();
this
.
getPinglunList
();
},
},
DakaBtn
(
e
)
{
DakaBtn
(
e
)
{
...
@@ -55,6 +57,19 @@ Page({
...
@@ -55,6 +57,19 @@ Page({
})
})
}).
catch
(
err
=>
{
})
}).
catch
(
err
=>
{
})
},
},
getPinglunList
()
{
let
msg
=
{};
msg
.
pageIndex
=
1
;
msg
.
pageSize
=
100
;
msg
.
SourceId
=
this
.
data
.
msg
.
Id
;
msg
.
Type
=
this
.
data
.
msg
.
Type
;
app
.
$api
(
'b2b_get_GetMXYPunchCardPageList'
,
msg
).
then
(
res
=>
{
console
.
log
(
"sfdasf"
,
res
)
this
.
setData
({
plList
:
res
.
pageData
})
}).
catch
(
err
=>
{
})
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
...
...
pages/index/sceneDetail/sceneDetail.wxml
View file @
211d8234
...
@@ -28,3 +28,20 @@
...
@@ -28,3 +28,20 @@
展开
展开
</view> -->
</view> -->
</view>
</view>
<view wx:if="{{plList.length>0}}" class="pinglun" style="padding-bottom:15rpx">
<view class="plHr"></view>
<view class="pinglunItem" wx:for="{{plList}}" wx:key="index">
<view class="f30 red">{{item.GuestName}}
<view style="float:right" class="f26 c99">{{item.CreateTime}}</view>
</view>
<view style="padding:15rpx 0" class="f24 c99">
<text style="position:relative;top:-6rpx">评分:</text>
<image wx:for="{{item.Score}}" wx:key="index" style="width:30rpx;height:30rpx" src="../../../images/index/all.png"></image>
<image wx:for="{{5-item.Score}}" wx:key="index" style="width:30rpx;height:30rpx" src="../../../images/index/grey.png"></image>
</view>
<view class="f28">{{item.Description}}</view>
<view style="margin-top:20rpx">
<image wx:for="{{item.ImgList}}" wx:for-item="img" wx:key="index" style="width:250rpx;height:250rpx;margin-right:24rpx" src="{{img}}"></image>
</view>
</view>
</view>
\ No newline at end of file
pages/index/strateDateil/strateDateil.js
View file @
211d8234
...
@@ -13,6 +13,7 @@ Page({
...
@@ -13,6 +13,7 @@ Page({
},
},
dataInfo
:
{},
dataInfo
:
{},
pathUrl
:
''
,
pathUrl
:
''
,
plList
:
[],
},
},
/**
/**
...
@@ -29,6 +30,7 @@ Page({
...
@@ -29,6 +30,7 @@ Page({
})
})
}
}
this
.
getData
();
this
.
getData
();
this
.
getPinglunList
();
let
pathUrl
=
'/pages/index/strateDateil/strateDateil?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
let
pathUrl
=
'/pages/index/strateDateil/strateDateil?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
this
.
setData
({
this
.
setData
({
pathUrl
:
pathUrl
pathUrl
:
pathUrl
...
@@ -55,6 +57,19 @@ Page({
...
@@ -55,6 +57,19 @@ Page({
})
})
}).
catch
(
err
=>
{
})
}).
catch
(
err
=>
{
})
},
},
getPinglunList
()
{
let
msg
=
{};
msg
.
pageIndex
=
1
;
msg
.
pageSize
=
100
;
msg
.
SourceId
=
this
.
data
.
msg
.
Id
;
msg
.
Type
=
this
.
data
.
msg
.
Type
;
app
.
$api
(
'b2b_get_GetMXYPunchCardPageList'
,
msg
).
then
(
res
=>
{
console
.
log
(
"sfdasf"
,
res
)
this
.
setData
({
plList
:
res
.
pageData
})
}).
catch
(
err
=>
{
})
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
...
...
pages/index/strateDateil/strateDateil.wxml
View file @
211d8234
...
@@ -28,3 +28,20 @@
...
@@ -28,3 +28,20 @@
展开
展开
</view> -->
</view> -->
</view>
</view>
<view wx:if="{{plList.length>0}}" class="pinglun" style="padding-bottom:15rpx">
<view class="plHr"></view>
<view class="pinglunItem" wx:for="{{plList}}" wx:key="index">
<view class="f30 red">{{item.GuestName}}
<view style="float:right" class="f26 c99">{{item.CreateTime}}</view>
</view>
<view style="padding:15rpx 0" class="f24 c99">
<text style="position:relative;top:-6rpx">评分:</text>
<image wx:for="{{item.Score}}" wx:key="index" style="width:30rpx;height:30rpx" src="../../../images/index/all.png"></image>
<image wx:for="{{5-item.Score}}" wx:key="index" style="width:30rpx;height:30rpx" src="../../../images/index/grey.png"></image>
</view>
<view class="f28">{{item.Description}}</view>
<view style="margin-top:20rpx">
<image wx:for="{{item.ImgList}}" wx:for-item="img" wx:key="index" style="width:250rpx;height:250rpx;margin-right:24rpx" src="{{img}}"></image>
</view>
</view>
</view>
\ No newline at end of file
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