fixing bug 8.12
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user