Commit 7db24be0 authored by 黄媛媛's avatar 黄媛媛

update

parent 6b44c43e
......@@ -20,7 +20,6 @@
"pages/Clockin/Clockin",
"pages/validateForm/allPerson",
"pages/validateForm/yzCard/yzCard",
"pages/tripover/tripover",
"pages/comments/comments",
"pages/VoucherDetails/VoucherDetails"
],
......
......@@ -7,7 +7,7 @@ Page({
*/
data: {
msg: {
Id: '2162',
Id: '847',
Type: 2,
GuestId: '37284'
},
......@@ -30,6 +30,15 @@ Page({
this.getPinglunList();
},
modeImg(e) {
let img = e.currentTarget.dataset.item.ImgList;
wx.previewImage({
current: img[0],
urls: img,
success: function (res) {
}
})
},
getPinglunList() {
console.log(" this.data.msg", this.data.msg)
let msg = {};
......
......@@ -13,7 +13,7 @@
</view>
<view style="margin-top:10rpx" 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;border-radius:20rpx;" src="{{img}}"></image>
<image bindtap="modeImg" data-item="{{item}}" wx:for="{{item.ImgList}}" wx:for-item="img" wx:key="index" style="width:250rpx;height:250rpx;margin-right:24rpx;border-radius:20rpx;" src="{{img}}"></image>
</view>
</view>
</view>
......
......@@ -36,6 +36,15 @@ Page({
pathUrl: pathUrl
})
},
modeImg1(e) {
let img = e.currentTarget.dataset.item.ImgList;
wx.previewImage({
current: img[0],
urls: img,
success: function (res) {
}
})
},
modeImg(e) {
let img = [];
img[0] = e.currentTarget.dataset.img;
......
......@@ -40,7 +40,7 @@
</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>
<image bindtap="modeImg1" data-item="{{item}}" 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
......@@ -30,8 +30,8 @@ Page({
configId: '',
tcid: '',
pathUrl: '/pages/index/index',
optionTCID: '7003',
// 8705
optionTCID: '8705',
// 7003
getimg: true,
guidegrey: 5,
guidemsg: {
......@@ -41,6 +41,7 @@ Page({
Score: 0,
Description: '',
},
tripOver:false,
},
......@@ -103,6 +104,13 @@ Page({
}
},
goVoucher() {
let userInfo = (wx.getStorageSync('userInfo'))
if (!userInfo) {
util.showToast('text', '请先核对身份!', {
duration: 3000
})
return;
}
wx.navigateTo({
url: '/pages/VoucherDetails/VoucherDetails'
})
......@@ -154,6 +162,7 @@ Page({
this.setData({
contactState: true
})
this.getData();
}).catch(err => {})
},
......@@ -377,8 +386,8 @@ Page({
app.$api('b2b_get_GetMXYTravelIndexInfo', msg).then(res => {
wx.setStorageSync('tcid', res.tcid)
if (res.IsTravelEnd) {
// wx.navigateTo({
// url: '/pages/tripover/tripover'
// this.setData({
// tripOver:true
// })
}
if (res.CityList.length > 0) {
......
<view hidden="{{getimg}}" class="getUserInfo">
<view hidden="{{tripOver}}">
<view hidden="{{getimg}}" class="getUserInfo">
<view class="userinfo">
<button open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 应用授权 </button>
</view>
</view>
<!-- -->
<view wx:if="{{dataInfo.IsCanOpinionaire}}" class="yjdc">
</view>
<!-- -->
<view wx:if="{{dataInfo.IsCanOpinionaire}}" class="yjdc">
<view bindtap="goVoucher" class="f26">
<image style="width:24rpx;height:26rpx" src="../../images/index/wr.png"></image>
意见调查</view>
</view>
</view>
<view class="Index">
<view class="Index">
<view class="titleContent">
<view class="f40" style="font-weight:600">{{dataInfo.LtName}}
<view hidden="{{loginState}}" style="float:right;position:relative;top:8rpx" bindtap="dYBtn">
......@@ -199,9 +200,15 @@
</view>
</view>
</view> -->
</view>
</view>
<!-- 行程结束 -->
<view hidden="{{!tripOver}}" class="tripover">
<view style="text-align:center;margin-top:250rpx">
<image style="width:611rpx;height:669rpx" src="../../images/index/trip.png"></image>
</view>
</view>
<!-- 弹窗 -->
<!---->
<view hidden="{{contactState}}" catchtap="closeState" data-self="self" class="ContactTc">
<view catchtap="noThing" data-self="no" class="contentView">
<image wx:if="{{contactInfo.LdPhoto && contactInfo.LdPhoto!=''}}" class="photo" src="{{contactInfo.LdPhoto}}"></image>
......@@ -237,7 +244,7 @@
{{contactInfo.Description}}
</view>
<view wx:else class="noDes" >
<view wx:else class="noDes">
暂无
</view>
</view>
......
/**index.wxss**/
.tripover{
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: #fff;
}
.getUserInfo{
position: fixed;
width: 100%;
......@@ -347,6 +355,7 @@
border-radius:20rpx;
margin: 0 auto;
margin-top: 30rpx;
}
.ContactTc .contentView .lxView{
width:440rpx;
......@@ -382,7 +391,9 @@
}
.ContactTc .noDes{
font-size: 26rpx;
padding: 20rpx 0;
padding: 20rpx;
box-sizing: border-box;
text-align: left;
}
.ContactTc .noDes textarea{
height: 200rpx;
......
......@@ -36,6 +36,15 @@ Page({
pathUrl: pathUrl
})
},
modeImg1(e) {
let img = e.currentTarget.dataset.item.ImgList;
wx.previewImage({
current: img[0],
urls: img,
success: function (res) {
}
})
},
modeImg(e) {
let img = [];
img[0] = e.currentTarget.dataset.img;
......
......@@ -43,7 +43,7 @@
</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>
<image bindtap="modeImg1" data-item="{{item}}" 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
......@@ -37,6 +37,15 @@ Page({
this.getPinglunList();
},
modeImg1(e) {
let img = e.currentTarget.dataset.item.ImgList;
wx.previewImage({
current: img[0],
urls: img,
success: function (res) {
}
})
},
modeImg(e){
let img=[];
img[0] = e.currentTarget.dataset.img;
......
......@@ -41,7 +41,7 @@
</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>
<image bindtap="modeImg1" data-item="{{item}}" 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
......@@ -36,6 +36,15 @@ Page({
pathUrl: pathUrl
})
},
modeImg1(e) {
let img = e.currentTarget.dataset.item.ImgList;
wx.previewImage({
current: img[0],
urls: img,
success: function (res) {
}
})
},
modeImg(e) {
let img = [];
img[0] = e.currentTarget.dataset.img;
......
......@@ -41,7 +41,7 @@
</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>
<image bindtap="modeImg1" data-item="{{item}}" 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/tripover/tripover.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "行程结束",
"navigationStyle": "default"
}
\ No newline at end of file
<view class="tripover">
<view style="text-align:center;margin-top:250rpx">
<image style="width:611rpx;height:669rpx" src="../../images/index/trip.png"></image>
</view>
</view>
\ No newline at end of file
/* pages/tripover/tripover.wxss */
.tripover{
position: absolute;
width: 100%;
height: 100%;
}
\ 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