|
@@ -1161,13 +1161,13 @@ class StoreOrder extends AuthController
|
|
|
$attrs = [];
|
|
|
$products = StoreExchange::where('is_del', 0)->where('status', 1)->order('sort DESC,add_time DESC')
|
|
|
->select();
|
|
|
+ var_dump($products);
|
|
|
foreach ($products as $v) {
|
|
|
$list = StoreProductAttrValue::where('type', 5)->where('product_id', $v['id']);
|
|
|
foreach ($list as $vv) {
|
|
|
$attrs[] = ['value' => $v['id'] . '|' . $v['product_id'] . '|' . $vv['unique'], 'label' => $v['title'] . '[' . $vv['suk'] . ']' . ':¥' . $vv['price']];
|
|
|
}
|
|
|
}
|
|
|
- var_dump($attrs);
|
|
|
$f[] = Form::select('product', '赠送商品')->setOptions($attrs)->filterable(true);
|
|
|
$f[] = Form::number('num', '赠送个数')->required()->step(1)->min(1);
|
|
|
$f[] = Form::select('uid', '赠送会员')->setOptions(function () {
|