|
@@ -1,7 +1,7 @@ |
|
|
<!-- |
|
|
<!-- |
|
|
* @Date: 2023-03-14 09:32:37 |
|
|
* @Date: 2023-03-14 09:32:37 |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditTime: 2023-04-27 14:34:26 |
|
|
|
|
|
|
|
|
* @LastEditTime: 2023-04-28 16:42:01 |
|
|
* @FilePath: \TelpoH5FrontendWeb\src\views\package-buy\index.vue |
|
|
* @FilePath: \TelpoH5FrontendWeb\src\views\package-buy\index.vue |
|
|
* @description: |
|
|
* @description: |
|
|
--> |
|
|
--> |
|
@@ -254,18 +254,18 @@ export default { |
|
|
console.log("基础包", data); |
|
|
console.log("基础包", data); |
|
|
this.price = data.packagesPrice; |
|
|
this.price = data.packagesPrice; |
|
|
let payTypeToPackAgeId = data.payTypeList; |
|
|
let payTypeToPackAgeId = data.payTypeList; |
|
|
if (this.payType === '2') { |
|
|
|
|
|
|
|
|
if (this.payType == '2') { |
|
|
// 全额 |
|
|
// 全额 |
|
|
this.payProductId = payTypeToPackAgeId.filter(item => { |
|
|
this.payProductId = payTypeToPackAgeId.filter(item => { |
|
|
return item.payType === '2' |
|
|
|
|
|
|
|
|
return item.payType == '2' |
|
|
})[0].productId; |
|
|
})[0].productId; |
|
|
this.packageIssue = 0; |
|
|
this.packageIssue = 0; |
|
|
console.log("this.payProductId", this.payProductId); |
|
|
console.log("this.payProductId", this.payProductId); |
|
|
this.aliPay(data); |
|
|
this.aliPay(data); |
|
|
} else if (this.payType === '3') { |
|
|
|
|
|
|
|
|
} else if (this.payType == '3') { |
|
|
// 分期 |
|
|
// 分期 |
|
|
this.payProductId = payTypeToPackAgeId.filter(item => { |
|
|
this.payProductId = payTypeToPackAgeId.filter(item => { |
|
|
return item.payType === '3' |
|
|
|
|
|
|
|
|
return item.payType == '3' |
|
|
})[0].productId; |
|
|
})[0].productId; |
|
|
this.packageIssue = 12; |
|
|
this.packageIssue = 12; |
|
|
this.payType = '2'; |
|
|
this.payType = '2'; |
|
@@ -275,7 +275,7 @@ export default { |
|
|
// 微信 |
|
|
// 微信 |
|
|
let openId = this.$store.getters.openId; |
|
|
let openId = this.$store.getters.openId; |
|
|
this.payProductId = payTypeToPackAgeId.filter(item => { |
|
|
this.payProductId = payTypeToPackAgeId.filter(item => { |
|
|
return item.payType === '1' |
|
|
|
|
|
|
|
|
return item.payType == '1' |
|
|
})[0].productId; |
|
|
})[0].productId; |
|
|
this.packageIssue = 0; |
|
|
this.packageIssue = 0; |
|
|
console.log("this.payProductId3", this.payProductId); |
|
|
console.log("this.payProductId3", this.payProductId); |
|
@@ -321,7 +321,7 @@ export default { |
|
|
}, 1000); |
|
|
}, 1000); |
|
|
} else if ( res.data.code !== 0){ |
|
|
} else if ( res.data.code !== 0){ |
|
|
return this.$dialog.confirm({ |
|
|
return this.$dialog.confirm({ |
|
|
message: `请反馈给一线人员,\n${res.data.message}`, |
|
|
|
|
|
|
|
|
message: `请反馈给一线人员,\n${res.data.message},或者请您重新进入`, |
|
|
showCancelButton: false |
|
|
showCancelButton: false |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|