fixing bug 8.12

This commit is contained in:
2020-08-12 18:38:14 +08:00
parent eb1dce5d6b
commit c03fff99e0
9 changed files with 46 additions and 35 deletions

View File

@@ -488,7 +488,7 @@ export default {
* @params {Number} num 数量
* @params {Number} ifcart 结算方式 1:购物车 0:直接结算(立即购买/拼团/秒杀)
**/
settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) {
async settlementOrder({type, num = this.goodsNumber, ifcart = 0} = {}) {
if(type != 'involvement') {
if(!this.showSpec) {
this.showSpec = true;
@@ -517,14 +517,14 @@ export default {
if(this.type == 2) {
if(type == 'involvement') {
// 验证能否拼团
let status = this.pintuanVerify({
const whether = await this.pintuanVerify({
pintuan_id: this.pintuan_id,
pintuangroup_headid: this.involvemenGroupInfo[0].user_id
}).then(status => {
if(status != 0) return true;
else return false;
})
// console.log(status);
if(status) return false;
if(whether) return false;
this.$store.commit('setGroupHeadId', this.involvemenGroupInfo[0].user_id);
Object.assign(params, {
pintuan_id: this.pintuan_id,