|
|
@@ -255,39 +255,7 @@ export default {
|
|
|
|
|
|
//提交订单
|
|
|
commitOrder() {
|
|
|
- this.$api.commonGeneralOrder({
|
|
|
- orderType: 1,
|
|
|
- serviceObjectId: 1,
|
|
|
- serviceAttribute: 2,
|
|
|
- serviceStoreId: 1,
|
|
|
- serviceTypeId: 1,
|
|
|
- serviceDate: 1,
|
|
|
- serviceUserId: 1,
|
|
|
- serviceStartTime: 1,
|
|
|
- timeRangeId: 1,
|
|
|
- remark: 1
|
|
|
- }).then(res => {
|
|
|
- this.orderNo = res.data.data.orderNo
|
|
|
- this.subOrderNo = res.data.data.subOrderNo
|
|
|
- if (res.data.data.subOrderNo === null) {
|
|
|
- uni.switchTab({
|
|
|
- url: '/pages/order/index'
|
|
|
- })
|
|
|
- } else {
|
|
|
- if (this.curServiceTab === 1) {
|
|
|
- //开启余额支付密码框
|
|
|
- // this.$refs.passwordPopup.open()
|
|
|
-
|
|
|
- this.balancePay()
|
|
|
-
|
|
|
- }
|
|
|
- if (this.curServiceTab === 2) {
|
|
|
- //调微信支付
|
|
|
- this.wechatPay()
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- })
|
|
|
if(!this.selectIcon){
|
|
|
uni.$u.toast('请阅读并同意《预约需知》')
|
|
|
return;
|