Browse Source

下单逻辑调整

master
shaojing 2 years ago
parent
commit
a5f26413bc
  1. 2
      app.js
  2. 13
      pages/index/index.js
  3. 5
      pages/list/six/index.js
  4. 451
      pages/order/components/contact/index.js
  5. 30
      pages/order/components/contact/index.wxml
  6. 22
      pages/order/components/contact/index.wxss
  7. 1
      pages/order/components/date/index.wxss
  8. 10
      pages/order/scene/index.js
  9. 15
      pages/user/order/museumOrderInfo/index.js
  10. 17
      pages/user/order/museumOrderInfo/index.wxml
  11. 8
      pages/user/order/museumOrderInfo/index.wxss
  12. 2
      pages/user/order/sceneOrderInfo/index.wxml

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx"
}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest128? true : false;
data.isTest = data.isTest129? true : false;
this.globalData.configJson = data
}).then(() => {
// 获取ui配置文件

13
pages/index/index.js

@ -17,8 +17,7 @@ Page({
fourProduct: [],
hotIndex: 0,
indexHot: [],
area_ids: [ "changshu", "gongyeyuanqu", "kunshan", "taicang", "wujiang", "gusu", "gaoxin", "wuzhong", "xiangcheng", "zhangjiagang"
],
area_ids: [ "changshu", "taicang", "kunshan", "wujiang", "gongyeyuanqu", "zhangjiagang", "wuzhong", "xiangcheng", "gusu", "gaoxin"],
month: "",
months: ['JAN', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'oct', 'nov', 'dec'],
date: "",
@ -50,15 +49,15 @@ Page({
djsTime: null,
sqjNew: [
'https://static.ticket.sz-trip.com/uploads/20240617/3acf736c1dc9c7af08d3363833669896.png',// 常熟
'https://static.ticket.sz-trip.com/uploads/20240617/fc20f4d0582ac8611dc9ce7a933deda3.png',// 工业园区
'https://static.ticket.sz-trip.com/uploads/20240617/7c62e1438242fc6db47f96cff8a43e9b.png',// 昆山
'https://static.ticket.sz-trip.com/uploads/20240617/4f33191399b2ec1b6b8af77a9d976389.png',// 太仓
'https://static.ticket.sz-trip.com/uploads/20240617/7c62e1438242fc6db47f96cff8a43e9b.png',// 昆山
'https://static.ticket.sz-trip.com/uploads/20240617/4ac7bd7e59edef07d5079bb802dae99b.png',// 吴江
'https://static.ticket.sz-trip.com/uploads/20240617/d83cb13156ad76bb8051dbc2b60126af.png',// 姑苏
'https://static.ticket.sz-trip.com/uploads/20240617/b28afa0861eb54f5f3d483a7c08fdbda.png',// 高新区
'https://static.ticket.sz-trip.com/uploads/20240617/fc20f4d0582ac8611dc9ce7a933deda3.png',// 工业园区
'https://static.ticket.sz-trip.com/uploads/20240617/09325c6e6d94e1b23c1019f95ec05f3f.png',// 张家港
'https://static.ticket.sz-trip.com/uploads/20240617/56ccaab57aaf050bb6feccc3a70983bb.png',// 吴中
'https://static.ticket.sz-trip.com/uploads/20240617/fbb3b7bdaa0cafed88015aa3f8d3da96.png',// 相城
'https://static.ticket.sz-trip.com/uploads/20240617/09325c6e6d94e1b23c1019f95ec05f3f.png',// 张家港
'https://static.ticket.sz-trip.com/uploads/20240617/d83cb13156ad76bb8051dbc2b60126af.png',// 姑苏
'https://static.ticket.sz-trip.com/uploads/20240617/b28afa0861eb54f5f3d483a7c08fdbda.png',// 高新区
],
viewHeight: "0px",
isMuted: true,

5
pages/list/six/index.js

@ -54,6 +54,11 @@ Page({
appId: 'wx8888a3fd0862b4c8',
path: 'pages/index/index'
})
}else if (e.currentTarget.dataset.event.area_key == 'changshu') {
wx.navigateToMiniProgram({
appId: 'wx4df5fd9a6a5ea123',
path: 'pages/index'
})
}
},
goH5(e){

451
pages/order/components/contact/index.js

@ -24,11 +24,14 @@ Component({
type:Number,
value:1,
observer(nv, ov, path) {
if (nv) {
if (nv) {
let num = nv-this.data.selectLinkman.length
this.setData({
showNum:num
})
if (nv<ov) {
this.delMan()
}
}
}
},
@ -52,6 +55,7 @@ Component({
editId:null,
isGroup:null,
showManList:[],
stagingManList:[], // 暂存用户信息
showNum:0,
showAdd:false,
formData:{},
@ -61,9 +65,23 @@ Component({
personId:null,
r:[],
phone:null,//非实名时需要传的电话
manList:[],
seldManList:[],
keyboardHeight: 0
},
lifetimes: {
attached: function() {
wx.onKeyboardHeightChange(res => {
if (res.height > 0) {
this.setData({
keyboardHeight: res.height
});
} else {
this.setData({
keyboardHeight: 0
});
}
});
// 在组件实例进入页面节点树时执行
console.log(this.properties.productNum);
console.log(this.properties.is_real_name);
@ -84,27 +102,28 @@ Component({
})
}
// 获取默认联系人
commonApi.user_post("token/check").then(res=>{
this.setData({
isGroup:app.globalData.product.isGroup
})
if(res.code==1){
userApi.user_post("user/getDefaultContact",{
contactType:"CONTACT"
}).then(res=>{
if(res.data){
let length =[res.data].length
this.setData({
selectLinkman:[res.data],
showNum:this.data.showNum-length,
showManList:[res.data]
})
this.triggerEvent("setLinkman",[res.data])
}
this.getLinkmanList()
})
}
})
// commonApi.user_post("token/check").then(res=>{
// this.setData({
// isGroup:app.globalData.product.isGroup
// })
// if(res.code==1){
// userApi.user_post("user/getDefaultContact",{
// contactType:"CONTACT"
// }).then(res=>{
// if(res.data){
// let length =[res.data].length
// this.setData({
// selectLinkman:[res.data],
// showNum:this.data.showNum-length,
// showManList:[res.data]
// })
// this.triggerEvent("setLinkman",[res.data])
// }
// this.getLinkmanList()
// })
// }
// })
this.getLinkmanList()
// 获取证件列表
userApi.user_post("user/getCardTypeList", {}).then(r => {
console.log(r)
@ -205,8 +224,20 @@ Component({
this.showAddMask()
},
showLinkman:function(){
// console.log(this.data.linkmanList);
let linkmanList = this.data.linkmanList,seldManList = this.data.seldManList
linkmanList.map(linkman=>{
linkman.selected = 0;
seldManList.map(item=>{
if(item.id==linkman.id){
linkman.selected = 1;
}
})
})
this.setData({
showMask:!this.data.showMask
showMask:!this.data.showMask,
linkmanList,
seldManList
})
},
showAddMask:function(){
@ -215,6 +246,11 @@ Component({
showMask:!this.data.showMask
})
},
addMask:function(){
this.setData({
showAdd:!this.data.showAdd
})
},
cancel:function(){
let selectLinkman = this.data.selectLinkman,linkmanList = this.data.linkmanList;
linkmanList.map(linkman=>{
@ -292,7 +328,9 @@ Component({
}
})
this.setData({
showAdd:!this.data.showAdd
showAdd:!this.data.showAdd,
formData:{},
editId:null
})
this.getLinkmanList()
}
@ -301,6 +339,7 @@ Component({
//取消添加出行人
del:function(){
this.setData({
editId:null,
formData:{},
showAdd:!this.data.showAdd
})
@ -343,11 +382,28 @@ Component({
},
confirm:function(){
let linkmanList = this.data.linkmanList,selectLinkman = [];
linkmanList.map(linkman=>{
if(linkman.selected==1){
selectLinkman.push(linkman);
console.log(linkmanList);
// 2. 将选中的出行人展示到页面中
let newManlist = []
let manList = this.data.manList
let newSeldManList = []
linkmanList.map((item,index) => {
if (item.selected === 1) {
newManlist.push(item)
newSeldManList.push(item)
}
})
manList.map(item => {
if (!newManlist.some(s => s.id === item.id)) {
if (newManlist.length < 3) {
newManlist.push({...item, selected: 0})
}
}
})
console.log('-----',newManlist);
// 需要 改成 根据父组件的购买数量
let showNum = this.properties.productNum
// let showNum = this.data.showNum
@ -361,12 +417,14 @@ Component({
// })
// return;
// }
this.triggerEvent("setLinkman",newSeldManList)
this.setData({
selectLinkman:selectLinkman,
manList:newManlist,
seldManList:newSeldManList,
showManList:showManList,
showNum:showNum
})
this.triggerEvent("setLinkman",selectLinkman)
this.showLinkman()
},
getLinkmanList:function(){
@ -377,68 +435,225 @@ Component({
limit:1000
}).then(res=>{
let list = res.data;
list.map(item=>{
this.data.selectLinkman.map(linkman=>{
if(linkman.id==item.id){
item.selected = 1;
}
})
// list.map(item=>{
// this.data.selectLinkman.map(linkman=>{
// if(linkman.id==item.id){
// item.selected = 1;
// }
// })
// })
// 这里不和默认出行人匹配,直接截取前三个
list.map((item,index)=> {
if (index== 0) {
item.selected = 1
}else {
item.selected = 0
}
})
let manList = list.slice(0,3)
let seldManList = []
list.map((item,index)=> {
if (item.selected == 1) {
seldManList.push(item)
}
})
this.triggerEvent("setLinkman",seldManList)
this.setData({
linkmanList:list
linkmanList:list,
manList,
selectLinkman:list,
seldManList:seldManList
})
})
},
setDefault:function(e){
let item = e.currentTarget.dataset.item,linkmanList = this.data.linkmanList;
userApi.user_post("user/setDefaultContact",{
contactId:item.id
}).then(res=>{
if(res.code==1){
wx.showToast({
title: '设置成功',
icon: 'success'
})
linkmanList.map(linkman=>{
if(linkman.id==item.id){
linkman.is_default=1;
}
else {
linkman.is_default = 0;
}
})
this.setData({
linkmanList:linkmanList
})
}
delMan() {
let seldManList = this.data.seldManList,selectLinkman = this.data.selectLinkman,manList=this.data.manList,linkmanList=this.data.linkmanList
let newManlist = JSON.parse(JSON.stringify(manList))
let newSeldManList =JSON.parse(JSON.stringify(seldManList))
// 3.减少时 选择的用户信息跟着修改
if (seldManList.length === this.properties.productNum +1) {
newSeldManList.pop()
newManlist.forEach(f => {
if(newSeldManList.some(s => s.id === f.id)) {
f.selected = 1
} else {
f.selected = 0
}
})
}
this.triggerEvent("setLinkman",newSeldManList)
this.setData({
// seldManList,
selectLinkman,
manList: newManlist,
seldManList: newSeldManList
})
},
// setDefault:function(e){
// let item = e.currentTarget.dataset.item,linkmanList = this.data.linkmanList;
// userApi.user_post("user/setDefaultContact",{
// contactId:item.id
// }).then(res=>{
// if(res.code==1){
// wx.showToast({
// title: '设置成功',
// icon: 'success'
// })
// linkmanList.map(linkman=>{
// if(linkman.id==item.id){
// linkman.is_default=1;
// }
// else {
// linkman.is_default = 0;
// }
// })
// this.setData({
// linkmanList:linkmanList
// })
// }
// })
// },
delLinkman:function(e){
// if (seldManList.length === 1) return
wx.showLoading({
title: '加载中',
})
let index = e.currentTarget.dataset.index,selectLinkman = this.data.selectLinkman,showManList = this.data.showManList;
let index = e.currentTarget.dataset.index,selectLinkman = this.data.selectLinkman,showManList = this.data.showManList,linkmanList=JSON.parse(JSON.stringify(this.data.linkmanList)),manList = this.data.manList,seldManList= this.data.seldManList;
selectLinkman.splice(index,1);
let item = e.currentTarget.dataset.item
seldManList = seldManList.filter(f => f.id !== item.id)
manList.forEach(f => {
if(f.id === item.id) {
f.selected = 0
}
})
// debugger
linkmanList.forEach(linkman=> {
if (linkman.id === item.id) {
linkman.selected =0
}
})
showManList.splice(index,1);
this.triggerEvent("setLinkman",selectLinkman)
this.setData({
selectLinkman:selectLinkman,
showManList:showManList,
showNum:selectLinkman.length>0?this.data.showNum+1:1
showNum:selectLinkman.length>0?this.data.showNum+1:1,
linkmanList,
seldManList,
manList
})
wx.hideLoading()
},
select:function(e) {
console.log(e);
let item = e.target.dataset.item
if (this.properties.is_real_name == '1') { // 一证一票
this.selectIt(item)
} else {
this.selectOne(item)
select:function(e) {
// debugger
let item = e.target.dataset.item,seldManList = [],manList = this.data.manList,linkmanList = this.data.linkmanList,list = []
if (this.properties.productNum > linkmanList.filter(f=> f.selected === 1).length ) {
// 票数大于信息数 继续勾选
if (this.properties.is_real_name == '1' && this.properties.productNum != 1) { // 一证一票
// this.selectIt(item)
// 一证一票 且 票数大于1
// 1. 当选择的出行人小于购票数量时,才能继续添加出行人
if (linkmanList.filter(f => f.selected === 1).length < this.properties.productNum || item.selected === 1) {
linkmanList.forEach(linkman=> {
if (linkman.id == item.id) {
linkman.selected = linkman.selected === 1 ? 0 : 1
}
})
}
} else {
// let flag = manList.some(obj => obj.id === item.id)
// if (flag) {
manList.map(man=> {
if (man.id == item.id) {
man.selected =1
}else {
man.selected =0
}
})
linkmanList.map(linkman=> {
if (linkman.id == item.id) {
linkman.selected =1
}else {
linkman.selected =0
}
})
// }
}
}else if( (this.properties.productNum == 1 && this.properties.productNum == linkmanList.filter(f=> f.selected === 1).length)) {
// debugger
// 票数为1,切换选择:如果在manList内,就直接切换,不在则将出行人放入manList内
let flag = manList.some(obj => obj.id === item.id)
if (flag) {
manList.map(man=> {
if (man.id == item.id) {
man.selected =1
}else {
man.selected =0
}
})
linkmanList.map(linkman=> {
if (linkman.id == item.id) {
linkman.selected =1
}else {
linkman.selected =0
}
})
console.log(manList,linkmanList);
}else {
item.selected = 1
manList.unshift(item)
manList = manList.slice(0,3)
manList.map(man=> {
if (man.id == item.id) {
man.selected =1
}else {
man.selected =0
}
})
linkmanList.map(linkman=> {
if (linkman.id == item.id) {
linkman.selected =1
}else {
linkman.selected =0
}
})
}
}else {
// debugger
if (item.selected === 1) {
linkmanList.forEach(f => {
if(f.id === item.id) {
f.selected = 0
}
})
} else {
wx.showToast({
title: '您只需选择'+this.properties.productNum+'位游客',
icon: "none"
});
return
}
}
// this.triggerEvent("setLinkman",seldManList)
this.setData({
// manList,
linkmanList,
// seldManList,
selectLinkman:manList
})
// if (this.properties.is_real_name == '1') { // 一证一票
// this.selectIt(item)
// } else {
// this.selectOne(item)
// }
},
// 一证一票不让他多选
selectOne:function(e) {
// debugger
console.log(e);
let item = e,linkmanList = this.data.linkmanList,num = 0
linkmanList.map(linkman=>{
@ -462,12 +677,12 @@ Component({
},
// 可多选
selectIt:function(e){
console.log(e,app.globalData.product)
console.log(e);
// let item = e.currentTarget.dataset.item,linkmanList = this.data.linkmanList,num = 0,traveller_limit_num = this.properties.maxNum!=-1?this.properties.maxNum:(app.globalData.product.sku.sku_model && app.globalData.product.sku.sku_model.limit_type!=0?app.globalData.product.sku.sku_model.traveller_limit_num:-1);
let item = e,linkmanList = this.data.linkmanList,num = 0,traveller_limit_num = this.properties.maxNum!=-1?this.properties.maxNum:(app.globalData.product.sku.sku_model && app.globalData.product.sku.sku_model.limit_type!=0?app.globalData.product.sku.sku_model.traveller_limit_num:-1);
// 先计算出全部选中的出行人
console.log(111)
linkmanList.map(linkman=>{
if(linkman.selected==1){
num++;
@ -508,8 +723,108 @@ Component({
linkman.selected = linkman.selected==1?0:1;
}
})
// let manList = linkmanList.slice(0,3)
this.setData({
linkmanList:linkmanList
linkmanList:linkmanList,
// manList,
})
},
// 勾选展示
selcetFrame(e) {
let item = e.currentTarget.dataset.item
let index = e.currentTarget.dataset.index
let manList = this.data.manList,seldManList = this.data.seldManList,linkmanList = this.data.linkmanList
if (this.properties.productNum !== 1 && this.properties.productNum === seldManList) {
wx.showToast({
title: '您只需选择'+this.properties.productNum+'位游客',
icon: "none"
});
return // 出行人和购票数量相同的情况就return
}
if (this.properties.is_real_name == '1') { // 一证一票
// this.selectIt(item)
let count = 0
manList.forEach(people=> {
if (people.selected == 1) {
count++
}
})
if (count< this.properties.productNum) { // 选中的出行人数量小于票数
manList.map(man=>{
if(item.id==man.id){
man.selected = man.selected==1?0:1;
}
})
if(seldManList.length < this.properties.productNum && item.selected === 0) {
seldManList.push(item)
} else {
seldManList = seldManList.filter(f => f.id !== item.id)
}
}else { // 否则换掉
if ( this.properties.productNum == 1) {
if (item.selected == 1) {
manList.forEach(man=>{
if (man.id === item.id) {
man.selected = 0
}
})
seldManList = []
} else {
manList.forEach(man=>{
if (man.id === item.id) {
man.selected = 1
}else {
man.selected = 0
}
})
seldManList = [item]
}
// manList.map((item)=> {
// if (item.selected == 1) {
// seldManList.push(item)
// }
// })
}else {
// return
if(item.selected === 1) {
manList.forEach(f => {
if(f.id === item.id) {
f.selected = 0
}
})
seldManList = seldManList.filter(f => f.id !== item.id)
}
}
}
}else {
if (item.selected == 1) {
manList.forEach(man=>{
if (man.id === item.id) {
man.selected = 0
}
})
seldManList = []
} else {
manList.forEach(man=>{
if (man.id === item.id) {
man.selected = 1
}else {
man.selected = 0
}
})
seldManList = [item]
}
}
this.triggerEvent("setLinkman",seldManList)
this.setData({
manList,
seldManList,
linkmanList
})
}
}

30
pages/order/components/contact/index.wxml

@ -4,6 +4,7 @@
<!-- <view wx:if="{{isGroup==1}}">{{isGroup==1?'发起人信息':'添加出行人'}}</view> -->
<view wx:if="{{isGroup==1}}">发起人信息</view>
<view wx:elif="{{is_authentication == '0'}}">出行人信息</view>
<view wx:elif="{{is_real_name == '0'}}">仅需填1位出行人</view>
<view wx:else>需填{{productNum}}位出行人</view>
<view wx:if="{{isGroup==1}}" class="group-tip-text">(*预约发起后前往个人中心-团体预约订单中查看详情)</view>
</view>
@ -37,19 +38,24 @@
<view bindtap="showLinkman" class="add-btn1"><text class="iconfont icon-add-select"></text>添加</view>
<view style="height:25rpx"></view> -->
<view class="contacts-list" wx:else>
<view wx:if="{{showManList.length>0}}" style="display: flex;position: relative;">
<view style="width: 550rpx;display: flex;overflow-x: scroll;">
<view class="name-box" wx:for="{{showManList}}">
<!-- <view> <text>manList</text></view> -->
<view wx:if="{{manList.length>0}}" style="display: flex;position: relative;margin-bottom: 40rpx;">
<view style="width: 550rpx;display: flex;">
<view class="{{item.selected == 1 ?'name-box':'frame'}}" wx:for="{{manList}}" bindtap="selcetFrame" data-index="{{index}}" wx-if="{{index < 3}}" data-item="{{item}}">
<text>{{item.name}}</text>
<image class="name-selected-icon" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicNew/dui.png" mode=""/>
<image wx:if="{{item.selected == 1}}" class="name-selected-icon" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicNew/dui.png" mode=""/>
</view>
</view>
<view class="more" bindtap="showLinkman">
更多>
</view>
</view>
<view class="contact-item" wx:for="{{selectLinkman}}" wx:if="{{selectLinkman.length>0}}">
<view class="iconfont icon-jian" bindtap="delLinkman" data-index="{{index}}"></view>
<!-- <text>seldManList</text>
<text>{{seldManList.length}}</text> -->
<view class="contact-item" wx:for="{{seldManList}}" wx:if="{{seldManList.length>0}}">
<view class="iconfont icon-jian" bindtap="delLinkman" data-index="{{index}}" data-item="{{item}}"></view>
<view class="contact-info">
<view class="contact-name">{{item.name}}</view>
<view class="contact-other" style="margin-bottom:10rpx"><text>手机号</text>{{item.tel}}</view>
@ -59,7 +65,8 @@
<!-- <navigator bindtap="gotoEdit" data-item="{{item}}" url="/pages/user/linkman/add/index?id={{item.id}}&from=order" class="iconfont icon-bianji1"></navigator> -->
</view>
<view wx:if="{{is_real_name=='1'}}">
<view class="text1" bindtap="showLinkman" wx:for="{{selectLinkman.length?(productNum-selectLinkman.length+1) :showNum}}" wx:for-index="index" wx:if="{{showNum>0 &&index+1>selectLinkman.length}}">
<view class="text1" bindtap="addMask" wx:for="{{productNum}}" wx:for-index="index" wx:if="{{index > (seldManList.length -1)}}">
<view style="display: flex;align-items: center;">
<image style="width: 43.33rpx;height: 46rpx;margin-right: 28rpx;" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicNew/add.png" mode=""/>
<!-- <view style="margin-right: 36rpx;" wx:if="{{selectLinkman.length>0}}">出行人{{selectLinkman.length+1}}</view> -->
@ -69,8 +76,8 @@
<image style="width: 12rpx;height: 19.33rpx;" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicNew/rightIcon.png" mode=""/>
</view>
</view>
<view wx:if="{{is_real_name=='0' && selectLinkman.length==0}}">
<view class="text1" bindtap="showLinkman">
<view wx:if="{{is_real_name=='0' && seldManList.length==0}}">
<view class="text1" bindtap="addMask">
<view style="display: flex;align-items: center;">
<image style="width: 43.33rpx;height: 46rpx;margin-right: 28rpx;" src="https://static.ticket.sz-trip.com/jundaosuzhou/images/scenicNew/add.png" mode=""/>
<view style="margin-right: 36rpx;">出行人1</view>
@ -101,6 +108,7 @@
</view>
<!-- <navigator url="/pages/user/linkman/add/index" class="add-btn">添加出行人</navigator> -->
<view class="add-btn" bindtap="showAddMask">添加出行人</view>
<!-- <text>linkmanList</text> -->
<view class="linkmanlist-item" wx:for="{{linkmanList}}">
<view class="linkmanlist-item-top">
<!-- <navigator bindtap="gotoEdit" data-item="{{item}}" url="/pages/user/linkman/add/index?id={{item.id}}&from=order" class="iconfont icon-bianji1"></navigator> -->
@ -119,7 +127,7 @@
<view wx:if="{{showAdd}}" class="mask">
<view class="mask-bg"></view>
<view style="position: fixed;bottom: 0;">
<view class="mask-content1">
<view class="mask-content1" style="padding-bottom: {{keyboardHeight+20}}px;">
<view class="btns1">
<view bindtap="del">取消</view>
<view>{{editId?'编辑':'添加'}}出行人</view>
@ -128,7 +136,7 @@
<view class="input-box" style="margin:0;padding: 0 24.67rpx;">
<view class="input-item">
<text class="input-label">姓名</text>
<input bindinput="nameInput" value="{{formData.username}}" class="weui-input" auto-focus placeholder="请输入姓名" />
<input bindinput="nameInput" value="{{formData.username}}" class="weui-input" auto-focus placeholder="请输入姓名" focus="inputFocus"/>
</view>
<view class="input-item">
<text class="input-label">证件类型</text>

22
pages/order/components/contact/index.wxss

@ -92,14 +92,17 @@
padding: 0 25rpx;
overflow-y: auto;
background: #F7F7F7;
max-height: 50%;
min-height: 800rpx;
/* max-height: 50%; */
}
.mask-content1 {
width: 700rpx;
padding: 50rpx 20rpx 112rpx;
overflow-y: auto;
background: #F7F7F7;
max-height: 50%;
padding-bottom: 100rpx;
/* min-height: 500rpx; */
/* max-height: 50%; */
}
.linkmanlist-item {
background: white;
@ -259,4 +262,19 @@
align-items: center;
border-top: 1rpx solid #ccc;
padding-right: 50rpx;
}
.frame {
position: relative;
width: 167rpx;
height: 73rpx;
background: #F1F1F1;
border-radius: 11rpx;
text-align: center;
line-height: 73rpx;
margin-right: 16.67rpx;
font-weight: 400;
font-size: 29rpx;
color: #000000;
flex-shrink: 0;
}

1
pages/order/components/date/index.wxss

@ -92,4 +92,5 @@
left: 0;
right: 0;
bottom: 0;
padding-bottom: 50rpx;
}

10
pages/order/scene/index.js

@ -154,12 +154,12 @@ Page({
// coupon: null
// })
}
let productNum = linkmanList.length == 0 ? 1 : this.data.productNum < linkmanList.length ? linkmanList.length : this.data.productNum;
if (this.data.gp_id) {
productNum = app.globalData.product.maxNum;
}
// let productNum = linkmanList.length == 0 ? 1 : this.data.productNum < linkmanList.length ? linkmanList.length : this.data.productNum;
// if (this.data.gp_id) {
// productNum = app.globalData.product.maxNum;
// }
this.setData({
productNum: productNum,
// productNum: productNum,
linkmanList: linkmanList
})
// this.changePrice()

15
pages/user/order/museumOrderInfo/index.js

@ -34,6 +34,21 @@ Page({
})
},
openMap(e) {
let title = this.data.info.order_product_list[0].scene_detail.title,lon=this.data.info.order_product_list[0].scene_detail.lon,lat=this.data.info.order_product_list[0].scene_detail.lat,address=this.data.info.order_product_list[0].address;
wx.getLocation({
type: 'gcj02', // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标
success: function (res) {
wx.openLocation({
latitude:Number(lat),
longitude:Number(lon), // 经度
name:title,
address:address,
scale: 18, // 缩放比例
})
}
})
},
getCodeImg:function(){
let that = this,sys =wx.getSystemInfoSync(),radio = sys.screenWidth / 750,qrcode=this.data.info.order_product_list[0].qrcode,codeImgs=[];
qrcode.map((item,index)=>{

17
pages/user/order/museumOrderInfo/index.wxml

@ -66,7 +66,13 @@
<text>时段:{{info.order_product_list[0].start_time}} ~ {{info.order_product_list[0].end_time}}</text>
</view>
<view class="detail-item">
<text>地址:{{info.order_product_list[0].scene_detail.address}}</text>
<view>
<text>地址:{{info.order_product_list[0].scene_detail.address}}</text>
</view>
<view style="display: flex;align-items: center;" bindtap="openMap">
<image style="width: 36rpx;height: 36rpx;margin-right: 13.33rpx;" src="https://static.ticket.sz-trip.com/uploads/20240710/c915f86073571a724afdb03524d05887.png" mode=""/>
<text style="font-weight: 500;font-size: 24rpx;color: #0B898E;">导航</text>
</view>
</view>
</view>
<view class="box" wx:if="{{info}}">
@ -105,6 +111,15 @@
<text>支付方式:{{pay_methods[info.pay_method]}}</text>
</view>
</view>
<view class="box">
<view class="box-title">交通推荐</view>
<view class="box-bg" bindtap="openMap">
<image style="width:37.33rpx;height:52.67rpx;margin-left: 37.33rpx;margin-right: 30rpx;" src="https://static.ticket.sz-trip.com/uploads/20240710/a04ab4996e17d5d801afee00547d08d4.png" mode=""/>
<view style="font-family: PingFang SC;font-weight: 500;font-size: 32rpx;color: #111111;">
{{info.order_product_list[0].product_title}}>
</view>
</view>
</view>
<navigator url="/pages/user/service/index" class="bottom-btn">
<image src="https://static.ticket.sz-trip.com/xcxImages/index/service.png" mode="widthFix"></image>联系客服
</navigator>

8
pages/user/order/museumOrderInfo/index.wxss

@ -281,4 +281,12 @@ page {
font-size: 24rpx;
color: #999;
margin-top: 30rpx;
}
.box-bg {
width: 646.67rpx;
height: 200rpx;
background: url('https://static.ticket.sz-trip.com/uploads/20240710/950358218f65d01ee9d0f4e055b6cbd7.png');
background-size: 100% 100%;
display: flex;
align-items: center;
}

2
pages/user/order/sceneOrderInfo/index.wxml

@ -76,7 +76,7 @@
</view>
<view class="row" wx:if="{{item.product_model == 'ticket' && !item.order_advance.id}}">
<view>出行日期:</view>
<view>{{item.use_date}} {{ item.start_time }}-{{ item.end_time }}</view>
<view>{{item.use_date}} <text wx:if="{{item.start_time && item.end_time}}">{{ item.start_time }}-{{ item.end_time }}</text> </view>
</view>
<view class="row" wx:if="{{item.product_model == 'ticket' && item.order_advance.id}}">

Loading…
Cancel
Save