|
|
@@ -269,12 +269,6 @@ export default {
|
|
|
ReaderInput
|
|
|
},
|
|
|
computed: {
|
|
|
- category () {
|
|
|
- return this.$route.meta.category || 'ticket'
|
|
|
- },
|
|
|
- isTeam () {
|
|
|
- return this.$route.meta.type === 'team'
|
|
|
- },
|
|
|
totalPrice () {
|
|
|
if (!this.currentTicket) {
|
|
|
return 0
|
|
|
@@ -306,7 +300,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
|
+ const category = this.$route.meta.category || 'ticket'
|
|
|
+ const type = this.$route.meta.type
|
|
|
+ console.log('category', category, type)
|
|
|
return {
|
|
|
+ category,
|
|
|
+ isTeam: type === 'team',
|
|
|
loading: false,
|
|
|
keyControl: 2, // 键盘控制:1,2,3标识选中顺序
|
|
|
isFocus: false, // 当前组件是否选中
|
|
|
@@ -315,17 +314,7 @@ export default {
|
|
|
pricePlan: [],
|
|
|
currentPrice: 0,
|
|
|
currentPlan: null,
|
|
|
- saleType: (() => {
|
|
|
- const category = this.$route.meta.category || 'ticket'
|
|
|
- const type = this.$route.meta.type
|
|
|
- if (category === 'batch') return 'batch'
|
|
|
- if (category === 'member') return 'member'
|
|
|
- if (type === 'team') return 'team'
|
|
|
- return 'single'
|
|
|
- })(),
|
|
|
retailLockCheckStyle: (() => {
|
|
|
- const category = this.$route.meta.category || 'ticket'
|
|
|
- const type = this.$route.meta.type
|
|
|
let prefix = 'single'
|
|
|
if (category === 'batch') prefix = 'batch'
|
|
|
else if (category === 'member') prefix = 'member'
|
|
|
@@ -333,15 +322,18 @@ export default {
|
|
|
return this.$localStore.get(`${prefix}_lockCheckStyle`) || false
|
|
|
})(),
|
|
|
identifyLockCheckStyle: (() => {
|
|
|
- const category = this.$route.meta.category || 'ticket'
|
|
|
- const type = this.$route.meta.type
|
|
|
let prefix = 'single'
|
|
|
if (category === 'batch') prefix = 'batch'
|
|
|
else if (category === 'member') prefix = 'member'
|
|
|
else if (type === 'team') prefix = 'team'
|
|
|
return this.$localStore.get(`${prefix}_identifyLockCheckStyle`) || false
|
|
|
})(),
|
|
|
-
|
|
|
+ saleType: (() => {
|
|
|
+ if (category === 'batch') return 'batch'
|
|
|
+ else if (category === 'member') return 'member'
|
|
|
+ else if (type === 'team') return 'team'
|
|
|
+ else return 'single'
|
|
|
+ })(),
|
|
|
touristList: [{
|
|
|
batchConfigId: randomString(),
|
|
|
guestName: '',
|
|
|
@@ -361,7 +353,7 @@ export default {
|
|
|
buyerIdentifyType: 0,
|
|
|
buyerPhone: '',
|
|
|
groupIndividual: 1,
|
|
|
- teamIndividual: 1,
|
|
|
+ teamIndividual: type === 'team' ? 2 : 1,
|
|
|
count: this.$localStore.get('initNum') === '空' ? undefined : 1,
|
|
|
payChannel: '现金',
|
|
|
playDateBegin: new Date(moment().startOf('day').valueOf()),
|
|
|
@@ -369,7 +361,7 @@ export default {
|
|
|
price: 0,
|
|
|
teamId: '',
|
|
|
guideId: '',
|
|
|
- checkWay: this.isTeam ? 2 : 1,
|
|
|
+ checkWay: type === 'team' ? 2 : 1,
|
|
|
actualMoney: 0 // 实付金额,不需要传给后台
|
|
|
},
|
|
|
Certificate: {
|