|
@@ -107,7 +107,7 @@
|
|
</span>
|
|
</span>
|
|
|
|
|
|
<span class="o_ft" v-if="result.payMethod == '26'">
|
|
<span class="o_ft" v-if="result.payMethod == '26'">
|
|
- <del>原价:¥{{ con.marketPrice }}</del> 押金:¥800
|
|
|
|
|
|
+ <del>原价:¥{{ con.marketPrice }}</del> 押金:¥{{ amountType == 1 ? 800 : 1500 }}
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -192,11 +192,9 @@
|
|
import {instruments, baseInfo } from '../assets/front_instruments_config'
|
|
import {instruments, baseInfo } from '../assets/front_instruments_config'
|
|
import qs from 'qs'
|
|
import qs from 'qs'
|
|
import Protocol from './protocol'
|
|
import Protocol from './protocol'
|
|
-import OrderPay from './orderPay'
|
|
|
|
-import { Dialog, CountDown } from 'vant'
|
|
|
|
export default {
|
|
export default {
|
|
name: 'home',
|
|
name: 'home',
|
|
- components: { Protocol, Dialog, CountDown, OrderPay },
|
|
|
|
|
|
+ components: { Protocol },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
loadingOrderStatus: false, // 排队中状态
|
|
loadingOrderStatus: false, // 排队中状态
|
|
@@ -227,7 +225,8 @@ export default {
|
|
timestamp: '',
|
|
timestamp: '',
|
|
version: '',
|
|
version: '',
|
|
},
|
|
},
|
|
- isSingle: 1 // 是否是双乐器,默认是双乐器
|
|
|
|
|
|
+ isSingle: 1, // 是否是双乐器,默认是双乐器
|
|
|
|
+ amountType: 1
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -240,11 +239,12 @@ export default {
|
|
* 22 2.0
|
|
* 22 2.0
|
|
* 25 1.5
|
|
* 25 1.5
|
|
* 26 3.0 */
|
|
* 26 3.0 */
|
|
- axios.post('/user/getUserRegisterViewDetail', qs.stringify({
|
|
|
|
|
|
+ this.$axios.post('/user/getUserRegisterViewDetail', qs.stringify({
|
|
stuId: this.$route.query.stuId
|
|
stuId: this.$route.query.stuId
|
|
})).then((res) => {
|
|
})).then((res) => {
|
|
let r = res.data.data
|
|
let r = res.data.data
|
|
this.isSingle = r.is_single_
|
|
this.isSingle = r.is_single_
|
|
|
|
+ this.amountType = r.amount_type_
|
|
this.result = {
|
|
this.result = {
|
|
userId: r.id_, // 学生编号
|
|
userId: r.id_, // 学生编号
|
|
payMethod: r.fee_type_,
|
|
payMethod: r.fee_type_,
|
|
@@ -308,7 +308,7 @@ export default {
|
|
// 重新计算金额
|
|
// 重新计算金额
|
|
this.calcPrice()
|
|
this.calcPrice()
|
|
},
|
|
},
|
|
- instrumentF2(type, con) {
|
|
|
|
|
|
+ instrumentF2(type) {
|
|
// 1.5 3.0 才会显示协议
|
|
// 1.5 3.0 才会显示协议
|
|
// if((this.result.payMethod == 25 || this.result.payMethod == 26) && !con.checked && con.name != '自备') {
|
|
// if((this.result.payMethod == 25 || this.result.payMethod == 26) && !con.checked && con.name != '自备') {
|
|
// this.protocol()
|
|
// this.protocol()
|
|
@@ -386,7 +386,7 @@ export default {
|
|
}))
|
|
}))
|
|
|
|
|
|
if(!instrumentCount) {
|
|
if(!instrumentCount) {
|
|
- Dialog.alert({
|
|
|
|
|
|
+ this.$dialog.alert({
|
|
title: '提示',
|
|
title: '提示',
|
|
message: '请选择乐器准备方式',
|
|
message: '请选择乐器准备方式',
|
|
confirmButtonColor: '#269a93'
|
|
confirmButtonColor: '#269a93'
|
|
@@ -394,7 +394,7 @@ export default {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
this.resultParams = resultParams
|
|
this.resultParams = resultParams
|
|
- axios.post('/yqpay/toPay', qs.stringify(resultParams)).then((res) => {
|
|
|
|
|
|
+ this.$axios.post('/yqpay/toPay', qs.stringify(resultParams)).then((res) => {
|
|
let result = res.data
|
|
let result = res.data
|
|
this.clickBtnCount = true
|
|
this.clickBtnCount = true
|
|
if(result.code == 403) {
|
|
if(result.code == 403) {
|
|
@@ -402,7 +402,7 @@ export default {
|
|
this.loadingOrderText = result.msg
|
|
this.loadingOrderText = result.msg
|
|
this.paymentMethods()
|
|
this.paymentMethods()
|
|
} else if(result.code == 201) { // 0元购成功提示
|
|
} else if(result.code == 201) { // 0元购成功提示
|
|
- Dialog.alert({
|
|
|
|
|
|
+ this.$dialog.alert({
|
|
title: '提示',
|
|
title: '提示',
|
|
message: '报名成功',
|
|
message: '报名成功',
|
|
confirmButtonColor: '#269a93'
|
|
confirmButtonColor: '#269a93'
|
|
@@ -416,20 +416,20 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
} else if(result.code == 100) { // 订单已经存在继续支付
|
|
} else if(result.code == 100) { // 订单已经存在继续支付
|
|
- Dialog.confirm({
|
|
|
|
|
|
+ this.$dialog.confirm({
|
|
title: '提示',
|
|
title: '提示',
|
|
message: result.msg,
|
|
message: result.msg,
|
|
confirmButtonColor: '#269a93',
|
|
confirmButtonColor: '#269a93',
|
|
cancelButtonText: '已完成支付',
|
|
cancelButtonText: '已完成支付',
|
|
confirmButtonText: '重新下单支付'
|
|
confirmButtonText: '重新下单支付'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- axios.post('/yqpay/rePay', qs.stringify(resultParams)).then(repay => {
|
|
|
|
|
|
+ this.$axios.post('/yqpay/rePay', qs.stringify(resultParams)).then(repay => {
|
|
let repayResult = repay.data
|
|
let repayResult = repay.data
|
|
if(repayResult.code == 200) {
|
|
if(repayResult.code == 200) {
|
|
this.form = repayResult.data
|
|
this.form = repayResult.data
|
|
this.onSubmit()
|
|
this.onSubmit()
|
|
} else {
|
|
} else {
|
|
- Dialog.alert({
|
|
|
|
|
|
+ this.$dialog.alert({
|
|
title: '提示',
|
|
title: '提示',
|
|
message: repayResult.msg,
|
|
message: repayResult.msg,
|
|
confirmButtonColor: '#269a93'
|
|
confirmButtonColor: '#269a93'
|
|
@@ -437,14 +437,14 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
- Dialog.close()
|
|
|
|
|
|
+ this.$dialog.close()
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
if(result.data) {
|
|
if(result.data) {
|
|
this.form = result.data
|
|
this.form = result.data
|
|
this.onSubmit()
|
|
this.onSubmit()
|
|
} else {
|
|
} else {
|
|
- Dialog.alert({
|
|
|
|
|
|
+ this.$dialog.alert({
|
|
title: '提示',
|
|
title: '提示',
|
|
message: result.msg,
|
|
message: result.msg,
|
|
confirmButtonColor: '#269a93'
|
|
confirmButtonColor: '#269a93'
|
|
@@ -465,13 +465,13 @@ export default {
|
|
if(that.paymentPostCount >= 30) {
|
|
if(that.paymentPostCount >= 30) {
|
|
clearInterval(that.paymentTimers)
|
|
clearInterval(that.paymentTimers)
|
|
} else {
|
|
} else {
|
|
- axios.post('/yqpay/toPay', qs.stringify(resultParams)).then((res) => {
|
|
|
|
|
|
+ this.$axios.post('/yqpay/toPay', qs.stringify(resultParams)).then((res) => {
|
|
let result = res.data
|
|
let result = res.data
|
|
if(result.code == 403) {
|
|
if(result.code == 403) {
|
|
that.loadingOrderStatus = true
|
|
that.loadingOrderStatus = true
|
|
that.loadingOrderText = result.msg
|
|
that.loadingOrderText = result.msg
|
|
} else if(result.code == 201) {
|
|
} else if(result.code == 201) {
|
|
- Dialog.alert({
|
|
|
|
|
|
+ this.$dialog.alert({
|
|
title: '提示',
|
|
title: '提示',
|
|
message: '报名成功',
|
|
message: '报名成功',
|
|
confirmButtonColor: '#269a93'
|
|
confirmButtonColor: '#269a93'
|
|
@@ -492,7 +492,7 @@ export default {
|
|
that.form = result.data
|
|
that.form = result.data
|
|
this.onSubmit()
|
|
this.onSubmit()
|
|
} else {
|
|
} else {
|
|
- Dialog.alert({
|
|
|
|
|
|
+ this.$dialog.alert({
|
|
title: '提示',
|
|
title: '提示',
|
|
message: result.msg,
|
|
message: result.msg,
|
|
confirmButtonColor: '#269a93'
|
|
confirmButtonColor: '#269a93'
|
|
@@ -519,7 +519,6 @@ export default {
|
|
},
|
|
},
|
|
protocol() {
|
|
protocol() {
|
|
// 协议
|
|
// 协议
|
|
-
|
|
|
|
let r = this.result
|
|
let r = this.result
|
|
let protocol = {
|
|
let protocol = {
|
|
patriarchName: r.patriarchName,
|
|
patriarchName: r.patriarchName,
|
|
@@ -530,6 +529,7 @@ export default {
|
|
voicyPart: r.voicyPart,
|
|
voicyPart: r.voicyPart,
|
|
userId: r.userId,
|
|
userId: r.userId,
|
|
classAmount: r.classAmount,
|
|
classAmount: r.classAmount,
|
|
|
|
+ amountType: this.amountType,
|
|
payMethod: r.payMethod, // 缴费类型
|
|
payMethod: r.payMethod, // 缴费类型
|
|
isCopperPipe: r.isCopperPipe // 是否为铜管
|
|
isCopperPipe: r.isCopperPipe // 是否为铜管
|
|
}
|
|
}
|
|
@@ -612,7 +612,8 @@ export default {
|
|
instrumentIndex = 99
|
|
instrumentIndex = 99
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- amountSummary.rInstrument = version == 26 ? 800 : parseInt(config[i].referencePrice)
|
|
|
|
|
|
+ let amountt = this.amountType == 1 ? 800 : 1500
|
|
|
|
+ amountSummary.rInstrument = version == 26 ? amountt : parseInt(config[i].referencePrice)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -647,7 +648,7 @@ export default {
|
|
instrumentIndex: instrumentIndex
|
|
instrumentIndex: instrumentIndex
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onPopupClose(status) {
|
|
|
|
|
|
+ onPopupClose() {
|
|
document.querySelector('#protocolPopup').scroll(0, 0)
|
|
document.querySelector('#protocolPopup').scroll(0, 0)
|
|
this.popupStatus = false
|
|
this.popupStatus = false
|
|
|
|
|