Commit e4adeb6f authored by huangyuanyuan's avatar huangyuanyuan

冲突

parents b3b277b3 5fb170c7
{ {
"pages": [ "pages": [
"pages/GroupTour/GroupList/GroupList", "pages/GroupTour/GroupList/GroupList",
"pages/GroupTour/GroupTour", "pages/product/product",
"pages/Home/home",
"pages/visa/visa", "pages/visa/visa",
"pages/GroupTour/GroupTour",
"pages/Voucher/Voucher", "pages/Voucher/Voucher",
"pages/Voucher/rating/rating", "pages/Voucher/rating/rating",
"pages/Voucher/VoucherDetails/VoucherDetails", "pages/Voucher/VoucherDetails/VoucherDetails",
"pages/Voucher/write/write", "pages/Voucher/write/write",
"pages/freeTravel/free", "pages/freeTravel/free",
"pages/Home/home",
"pages/Ticket/Ticket", "pages/Ticket/Ticket",
"pages/local/localhome", "pages/local/localhome",
"pages/login/smsLogin/smsLogin", "pages/login/smsLogin/smsLogin",
"pages/login/revisePwd/revisePwd", "pages/login/revisePwd/revisePwd",
"pages/product/SametradeZW/prizelist/prizelist", "pages/product/SametradeZW/prizelist/prizelist",
"pages/product/SametradeZW/luckdraw/luckdraw", "pages/product/SametradeZW/luckdraw/luckdraw",
"pages/product/product",
"pages/product/productAll/productAll", "pages/product/productAll/productAll",
"pages/product/productCheck/productCheck", "pages/product/productCheck/productCheck",
"pages/product/productDetail/productDetail", "pages/product/productDetail/productDetail",
......
...@@ -41,6 +41,9 @@ Page({ ...@@ -41,6 +41,9 @@ Page({
ID: res.Id, ID: res.Id,
} }
}) })
this.setData({
orderId: res.OrderId
})
wx.navigateTo({ wx.navigateTo({
url: '/pages/Voucher/VoucherDetails/VoucherDetails?&orderId=' + _this.data.orderId + '&tcId=' + _this.data.tcId url: '/pages/Voucher/VoucherDetails/VoucherDetails?&orderId=' + _this.data.orderId + '&tcId=' + _this.data.tcId
}) })
...@@ -65,16 +68,9 @@ Page({ ...@@ -65,16 +68,9 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
if (options.finish) { let tcId = options.hasOwnProperty('tcId') ? options.tcId : '3037';
wx.navigateBack({
delta: 1
})
}
let tcId = options.hasOwnProperty('tcId') ? options.tcId : '3037',
orderId = options.hasOwnProperty('orderId') ? options.orderId : '20914';
this.setData({ this.setData({
tcId: tcId, tcId: tcId
orderId: orderId
}) })
//修改title //修改title
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
......
<view class='page-Voucher'> <view class='page-Voucher'>
<text class='text'>身份确认</text> <text class='text'>身份确认</text>
<input bindinput='TelPhone' placeholder='请输入手机号以确认身份'></input> <input bindinput='TelPhone' placeholder='请输入手机号以确认身份'></input>
<button class='next' type="default" size="mini" bindtap="Details">确认</button> <button class='next {{telPhone !== "" ? "active" : ""}}' type="default" size="mini" bindtap="Details">确认</button>
</view> </view>
\ No newline at end of file
...@@ -28,7 +28,7 @@ button.next{ ...@@ -28,7 +28,7 @@ button.next{
color: #666666; color: #666666;
font-size: 32rpx; font-size: 32rpx;
} }
button.next:active{ button.next.active{
background:rgba(238,68,84,1); background:rgba(238,68,84,1);
border-color: rgba(238,68,84,1); border-color: rgba(238,68,84,1);
color: white; color: white;
......
...@@ -21,7 +21,6 @@ Page({ ...@@ -21,7 +21,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
console.log(options)
let info = wx.getStorageSync('info'), let info = wx.getStorageSync('info'),
orderId = options.orderId, orderId = options.orderId,
tcId = options.tcId; tcId = options.tcId;
...@@ -42,6 +41,9 @@ Page({ ...@@ -42,6 +41,9 @@ Page({
}, },
// 保存数据 // 保存数据
saveMessage: function () { saveMessage: function () {
this.setData({
voucherData: this.data.voucherData
})
let data = JSON.parse(JSON.stringify(this.data.voucherData)), let data = JSON.parse(JSON.stringify(this.data.voucherData)),
showYouJi = true; showYouJi = true;
data.forEach(x=>{ data.forEach(x=>{
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<checkbox value="{{CItem.ID}}" checked="{{CItem.IsCheckS}}"/>{{CItem.OptionsName}} <checkbox value="{{CItem.ID}}" checked="{{CItem.IsCheckS}}"/>{{CItem.OptionsName}}
</label> </label>
</checkbox-group> </checkbox-group>
<textarea wx:elif="{{item.SurveyType === 4}}" bindinput='inputMessage' id="{{index}}" placeholder='点击输入'></textarea> <textarea wx:elif="{{item.SurveyType === 4 && !showYouJi}}" bindinput='inputMessage' id="{{index}}" placeholder='点击输入'></textarea>
</view> </view>
<view class='btn'> <view class='btn'>
<button class='next' type="default" size="mini" bindtap="saveMessage">确认</button> <button class='next' type="default" size="mini" bindtap="saveMessage">确认</button>
......
...@@ -52,14 +52,14 @@ page{ ...@@ -52,14 +52,14 @@ page{
} }
button.next{ button.next{
width: 350rpx; width: 350rpx;
height: 84rpx; height: 84rpx;
background-color: #DEDEDE;
line-height:84rpx; line-height:84rpx;
margin-top: 50rpx; margin-top: 50rpx;
border-color: #DEDEDE;
color: #666666;
font-size: 32rpx; font-size: 32rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
background:rgba(238,68,84,1);
border-color: rgba(238,68,84,1);
color: white;
} }
button.next:active{ button.next:active{
background:rgba(238,68,84,1); background:rgba(238,68,84,1);
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<text class='pingfen'>评分</text> <text class='pingfen'>评分</text>
<view class='rating-icon' wx:for='{{[1,2,3,4,5]}}' wx:key='*this' <view class='rating-icon' wx:for='{{[1,2,3,4,5]}}' wx:key='*this'
bindtap='_handleTap' data-num='{{item}}'> bindtap='_handleTap' data-num='{{item}}'>
<view class='rating-on' style='width:{{rating >= (max/5)*item ? 2 : rating < (max/5)*(item-1) ? 0 : (rating*20)%(max/5*20)/(max/5*20)}}em'> <view class='rating-on' style='width:{{rating >= (max/5)*item ? 1.5 : rating < (max/5)*(item-1) ? 0 : (rating*15)%(max/5*15)/(max/5*15)}}em'>
<image src='../../../images/voucher/rating_on_icon.png' mode='widthFix' style='width:2em' /> <image src='../../../images/voucher/rating_on_icon.png' mode='widthFix' style='width:1.5em' />
</view> </view>
<view class='rating-off' style='width:2em;'> <view class='rating-off' style='width:1.5em;'>
<image src='../../../images/voucher/rating_off_icon.png' mode='widthFix' style='width:2em' /> <image src='../../../images/voucher/rating_off_icon.png' mode='widthFix' style='width:1.5em' />
</view> </view>
</view> </view>
<view class='pingfen-tips'> <view class='pingfen-tips'>
......
...@@ -13,6 +13,7 @@ Page({ ...@@ -13,6 +13,7 @@ Page({
tag: [], tag: [],
infoMessage: '', infoMessage: '',
showBadYouJi: false, showBadYouJi: false,
tag2: [],
}, },
// 退出 // 退出
logOut: function () { logOut: function () {
...@@ -36,10 +37,14 @@ Page({ ...@@ -36,10 +37,14 @@ Page({
}) })
} }
this.data.tag.map(x=>{ this.data.tag.map(x=>{
console.log('x.Content', x.Content)
if (x.Content !== '') { if (x.Content !== '') {
msg.GuestTravelLableList.push(x) msg.GuestTravelLableList.push(x)
} }
}) })
this.setData({
tag: this.data.tag2
})
app.$api('survey_post_SetGuestTravelNotes', msg).then(res => { app.$api('survey_post_SetGuestTravelNotes', msg).then(res => {
this.setData({ this.setData({
showBadYouJi: true, showBadYouJi: true,
...@@ -85,7 +90,8 @@ Page({ ...@@ -85,7 +90,8 @@ Page({
}, },
// 选择图片 // 选择图片
chooseImage: function () { chooseImage: function () {
let _this = this; let _this = this,
path = '/Upload/DMC/';
wx.chooseImage({ wx.chooseImage({
count: 9, count: 9,
sizeType: ['original', 'compressed'], sizeType: ['original', 'compressed'],
...@@ -102,10 +108,21 @@ Page({ ...@@ -102,10 +108,21 @@ Page({
}) })
return return
} }
arr.push(x) wx.uploadFile({
}) url: 'http://upload.oytour.com/Upload?filePath=' + path, //仅为示例,非真实的接口地址
_this.setData({ filePath: x,
imgList: arr name: 'file',
formData: {
'user': x
},
success: function (res) {
var data = JSON.parse(res.data)
arr.push("http://imgfile.oytour.com"+data.FilePath)
_this.setData({
imgList: arr
})
}
})
}) })
} }
}) })
...@@ -140,7 +157,8 @@ Page({ ...@@ -140,7 +157,8 @@ Page({
) )
}) })
_this.setData({ _this.setData({
tag: arr tag: arr,
tag2: JSON.parse(JSON.stringify(arr))
}) })
console.log(this.data.tag) console.log(this.data.tag)
}).catch(err => { }).catch(err => {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<view class='no-list'> <view class='no-list'>
<textarea placeholder='我来说说在这里游玩的感受吧~' bindinput='inputMessage'></textarea> <textarea placeholder='我来说说在这里游玩的感受吧~' bindinput='inputMessage'></textarea>
</view> </view>
<view class='tag-item' wx:for="{{tag}}" wx:for-item="item" wx:for-index="index" wx:key="index" wx:if="{{item.click}}"> <view class='tag-item' wx:for="{{tag}}" wx:for-item="item" wx:for-index="index" wx:key="index" wx:if="{{item.click && !showBadYouJi}}">
<text class='lable'>{{item.Name}}:</text> <text class='lable'>{{item.Name}}:</text>
<textarea placeholder='请输入...' bindinput='inputItemMessage' id="{{index}}"></textarea> <textarea placeholder='请输入...' bindinput='inputItemMessage' id="{{index}}"></textarea>
</view> </view>
......
...@@ -9,7 +9,7 @@ page{ ...@@ -9,7 +9,7 @@ page{
min-height: 310rpx; min-height: 310rpx;
background: rgba(245,245,245,1); background: rgba(245,245,245,1);
box-sizing: border-box; box-sizing: border-box;
padding: 23rpx 20rpx 120rpx 20rpx; padding: 23rpx 20rpx 130rpx 20rpx;
position: relative; position: relative;
} }
.no-list{ .no-list{
...@@ -101,7 +101,7 @@ page{ ...@@ -101,7 +101,7 @@ page{
text-align: center; text-align: center;
} }
.tag-list{ .tag-list{
padding: 56rpx 38rpx; padding: 56rpx 38rpx 0 38rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -187,7 +187,8 @@ page{ ...@@ -187,7 +187,8 @@ page{
margin-top: 25rpx; margin-top: 25rpx;
} }
navigator{ navigator{
position: absolute;z-index: 2; position: absolute;
z-index: 2;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
\ No newline at end of file
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": 6, "current": 5,
"list": [ "list": [
{ {
"id": 0, "id": 0,
...@@ -79,10 +79,10 @@ ...@@ -79,10 +79,10 @@
"referrerInfo": {} "referrerInfo": {}
}, },
{ {
"id": -1, "id": 5,
"name": "写游记", "name": "写游记",
"pathName": "pages/Voucher/write/write", "pathName": "pages/Voucher/write/write",
"query": "", "query": "orderId='20914'&tcid='3037'",
"scene": null "scene": null
}, },
{ {
......
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