拼团问题优化

This commit is contained in:
evoxwht 2023-06-19 14:59:26 +08:00
parent 927d993419
commit 049ceb4fbc
4 changed files with 5 additions and 4 deletions

View File

@ -132,7 +132,7 @@ class StorePinkDao extends BaseDao
public function successList(int $uid)
{
return $this->search(['status' => 2, 'is_refund' => 0])
->where('uid', '<>', $uid)
// ->where('uid', '<>', $uid)
->select()->toArray();
}

View File

@ -393,11 +393,11 @@ class StoreCombinationServices extends BaseServices
/** @var StorePinkServices $pinkService */
$pinkService = app()->make(StorePinkServices::class);
list($pink, $pindAll) = $pinkService->getPinkList($id, true);//拼团列表
list($pink, $pinkAll) = $pinkService->getPinkList($id, true);//拼团列表
$data['pink_ok_list'] = $pinkService->getPinkOkList($uid);
$data['pink_ok_sum'] = $pinkService->getPinkOkSumTotalNum();
$data['pink'] = $pink;
$data['pindAll'] = $pindAll;
$data['pinkAll'] = $pinkAll;
/** @var StoreOrderServices $storeOrderServices */
$storeOrderServices = app()->make(StoreOrderServices::class);

View File

@ -157,6 +157,7 @@ class StorePinkServices extends BaseServices
$where['cid'] = $id;
$where['k_id'] = 0;
$where['is_refund'] = 0;
$where['status'] = 1;
$pinkList = $this->dao->pinkList($where);
$ids = array_column($pinkList, 'id');
$orderIdKey = array_column($pinkList, 'order_id_key');

View File

@ -618,7 +618,7 @@
'<img style="max-width:100%;height:auto;float:left;display:block" ');
that.attribute.productSelect.num = res.data.storeInfo.num;
that.pink = res.data.pink;
that.pindAll = res.data.pindAll;
that.pinkAll = res.data.pinkAll;
that.reply = res.data.reply ? [res.data.reply] : [];
that.replyCount = res.data.replyCount;
that.itemNew = res.data.pink_ok_list;