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
Hide 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
...
...
@@ -80,4 +80,22 @@
height: 0;
clear: both;
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({
},
dataInfo
:{},
pathUrl
:
''
,
plList
:[],
},
/**
...
...
@@ -29,6 +30,7 @@ Page({
})
}
this
.
getData
();
this
.
getPinglunList
();
let
pathUrl
=
'/pages/index/hotelDetails/hotelDetails?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
this
.
setData
({
pathUrl
:
pathUrl
...
...
@@ -47,12 +49,25 @@ Page({
getData
(){
let
msg
=
this
.
data
.
msg
;
app
.
$api
(
'b2b_get_GetMXYToDayTourInfo'
,
msg
).
then
(
res
=>
{
console
.
log
(
"sfdasf"
,
res
)
this
.
setData
({
dataInfo
:
res
})
}).
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
...
...
@@ -2,7 +2,7 @@
<view class="item" style="padding: 0 30rpx;box-sizing: border-box;">
<!-- <view class="index f30 bold">景点一</view> -->
<view style="position:relative" class="f42 bold">{{dataInfo.Name}}
<view class="dkBtn">
<view class="dkBtn">
<text bindtap="DakaBtn" class="dk" wx:if="{{dataInfo.IsPunchCard==2}}">打卡</text>
<text class="wdk" wx:if="{{dataInfo.IsPunchCard==1}}">已打卡</text>
</view>
...
...
@@ -20,9 +20,27 @@
<view style="padding-bottom: 20rpx;" class="f28">
{{dataInfo.Descriptions}}
</view>
</view>
<!-- <view class="funView">
<image style="width:26rpx;height:26rpx" src="../../../images/index/jh.png"></image>
展开
</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,7 +67,55 @@ 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
(){
let
that
=
this
;
...
...
@@ -81,7 +129,6 @@ Page({
that
.
getData
();
},
DakaBtn
(
e
)
{
console
.
log
(
"e"
,
e
)
let
that
=
this
;
let
userInfo
=
(
wx
.
getStorageSync
(
'userInfo'
))
if
(
!
userInfo
)
{
...
...
@@ -105,7 +152,6 @@ Page({
return
;
}
let
info
=
e
.
currentTarget
.
dataset
.
item
;
console
.
log
(
"info"
,
info
)
let
Id
=
info
.
Id
;
let
GuestId
=
userInfo
.
GuestId
;
let
src
=
""
;
...
...
@@ -227,7 +273,6 @@ Page({
configId
:
res
.
configId
,
tcid
:
res
.
tcid
})
console
.
log
(
"dataInfo"
,
this
.
data
.
dataInfo
)
this
.
getToday
();
}).
catch
(
err
=>
{
})
},
...
...
@@ -247,7 +292,6 @@ Page({
this
.
setData
({
todayList
:
res
.
List
})
console
.
log
(
"todayList"
,
this
.
data
.
todayList
)
}
}).
catch
(
err
=>
{
})
...
...
pages/index/index.wxml
View file @
211d8234
...
...
@@ -21,7 +21,11 @@
<!-- hidden="{{loginState}}" -->
<view class="Index">
<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="qhd">
<text bindtap="goCard">去核对</text>
...
...
@@ -256,4 +260,4 @@
</view>
</view>
\ No newline at end of file
</view>
pages/index/index.wxss
View file @
211d8234
/**index.wxss**/
.dyView{
position: fixed;
top: 0;
width: 100%;
padding-top:100rpx;
}
.userinfo {
display: flex;
flex-direction: column;
...
...
pages/index/mealDetail/mealDetail.js
View file @
211d8234
...
...
@@ -13,6 +13,7 @@ Page({
},
dataInfo
:
{},
pathUrl
:
''
,
plList
:[],
},
/**
...
...
@@ -29,6 +30,7 @@ Page({
})
}
this
.
getData
();
this
.
getPinglunList
();
let
pathUrl
=
'/pages/index/mealDetail/mealDetail?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
this
.
setData
({
pathUrl
:
pathUrl
...
...
@@ -53,6 +55,19 @@ Page({
})
}).
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
...
...
@@ -29,4 +29,21 @@
<image style="width:26rpx;height:26rpx" src="../../../images/index/jh.png"></image>
展开
</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({
},
dataInfo
:
{},
pathUrl
:
''
,
plList
:[],
},
/**
...
...
@@ -33,6 +34,7 @@ Page({
pathUrl
:
pathUrl
})
this
.
getData
();
this
.
getPinglunList
();
},
DakaBtn
(
e
)
{
...
...
@@ -55,6 +57,19 @@ Page({
})
}).
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
...
...
@@ -27,4 +27,21 @@
<image style="width:26rpx;height:26rpx" src="../../../images/index/jh.png"></image>
展开
</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({
},
dataInfo
:
{},
pathUrl
:
''
,
plList
:
[],
},
/**
...
...
@@ -29,6 +30,7 @@ Page({
})
}
this
.
getData
();
this
.
getPinglunList
();
let
pathUrl
=
'/pages/index/strateDateil/strateDateil?GuestId='
+
msg
.
GuestId
+
'&Id='
+
msg
.
Id
;
this
.
setData
({
pathUrl
:
pathUrl
...
...
@@ -55,6 +57,19 @@ Page({
})
}).
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
...
...
@@ -27,4 +27,21 @@
<image style="width:26rpx;height:26rpx" src="../../../images/index/jh.png"></image>
展开
</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