Commit 211d8234 authored by 黄媛媛's avatar 黄媛媛

update

parent f2716a2c
...@@ -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
...@@ -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 => { })
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
...@@ -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
...@@ -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 => { })
......
...@@ -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>
......
/**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;
......
...@@ -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 => { })
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
......
...@@ -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
...@@ -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 => { })
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
......
...@@ -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
...@@ -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 => { })
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment