diff --git a/app/common/dao/user/UserDao.php b/app/common/dao/user/UserDao.php index 955fa16..f5660c8 100755 --- a/app/common/dao/user/UserDao.php +++ b/app/common/dao/user/UserDao.php @@ -89,6 +89,8 @@ class UserDao extends BaseDao return $query->where('User.user_type', $where['user_type']); })->when(isset($where['is_lottery']) && $where['is_lottery'] !== '', function (BaseQuery $query) use ($where) { return $query->where('User.is_lottery', $where['is_lottery']); + })->when(isset($where['is_hot']) && $where['is_hot'] !== '', function (BaseQuery $query) use ($where) { + return $query->where('User.is_hot', $where['is_hot']); })->when(isset($where['uid']) && $where['uid'] !== '', function (BaseQuery $query) use ($where) { return $query->where('User.uid', $where['uid']); })->when(isset($where['status']) && $where['status'] !== '', function (BaseQuery $query) use ($where) { diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index defdaef..af13c39 100755 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -168,7 +168,7 @@ class ProductRepository extends BaseRepository Elm::number('hot_integral_rate', '爆单区返佣比例:')->placeholder('请输入爆单区返佣比例') ->max(100)->min(0)->required(), Elm::number('hot_integral_total', '爆单区返佣积分:')->placeholder('请输入爆单区返佣积分') - ->max(100)->min(0)->required(), + ->min(0)->required(), // Elm::number('order_sum', '营业额:')->placeholder('请输入营业额')->min(0)->required(), diff --git a/app/common/repositories/user/UserAssetsLogRepository.php b/app/common/repositories/user/UserAssetsLogRepository.php index 7a4800a..4bc07ce 100644 --- a/app/common/repositories/user/UserAssetsLogRepository.php +++ b/app/common/repositories/user/UserAssetsLogRepository.php @@ -356,6 +356,8 @@ class UserAssetsLogRepository extends BaseRepository continue; } + $this->userRepository->update($order['uid'], array('is_hot' => 1)); + $item = $hotRepository->getWhere(['uid' => $order['uid']]); if ($item) { $item['total'] += $product['hot_integral_total'] * $productItem['product_num']; diff --git a/app/common/repositories/user/UserRepository.php b/app/common/repositories/user/UserRepository.php index 368e47a..0e762d9 100755 --- a/app/common/repositories/user/UserRepository.php +++ b/app/common/repositories/user/UserRepository.php @@ -19,6 +19,7 @@ use app\common\model\user\User; use app\common\model\wechat\WechatUser; use app\common\repositories\BaseRepository; use app\common\repositories\community\CommunityRepository; +use app\common\repositories\store\order\StoreOrderHotRepository; use app\common\repositories\store\order\StoreOrderRepository; use app\common\repositories\store\service\StoreServiceRepository; use app\common\repositories\system\attachment\AttachmentRepository; @@ -1623,6 +1624,8 @@ class UserRepository extends BaseRepository // 添加用户扩展信息 $info['extend_info'] = app()->make(UserFieldsRepository::class)->info((int)$uid, false)['extend_info']; $info['assets'] = app()->make(UserAssetsRepository::class)->assets($uid); + $hot = app(StoreOrderHotRepository::class)->getWhere(['uid' => $uid]); + $info['hot']= $hot ? $hot->toArray(): array('total' => 0, 'current' => 0); return $info; } diff --git a/app/controller/admin/user/User.php b/app/controller/admin/user/User.php index 52f1386..1ca2918 100755 --- a/app/controller/admin/user/User.php +++ b/app/controller/admin/user/User.php @@ -100,7 +100,8 @@ class User extends BaseController 'member_level', 'keyword', 'birthday', - 'is_lottery' + 'is_lottery', + 'is_hot' ]); [$page, $limit] = $this->getPage(); return app('json')->success($this->repository->getList($where, $page, $limit)); diff --git a/view/admin/src/router/modules/user.js b/view/admin/src/router/modules/user.js index d9c68ca..d53ebb0 100644 --- a/view/admin/src/router/modules/user.js +++ b/view/admin/src/router/modules/user.js @@ -49,6 +49,12 @@ const userRouter = name: 'deposit', meta: { title: '预存管理', noCache: true } }, + { + path: 'deposit/list', + component: () => import('@/views/user/list'), + name: 'depositList', + meta: { title: '预存列表', noCache: true } + }, { path: 'label', component: () => import('@/views/user/group'), diff --git a/view/admin/src/views/merchant/list/handle/merEditForm.vue b/view/admin/src/views/merchant/list/handle/merEditForm.vue index 6ab715e..8b28696 100644 --- a/view/admin/src/views/merchant/list/handle/merEditForm.vue +++ b/view/admin/src/views/merchant/list/handle/merEditForm.vue @@ -260,24 +260,6 @@ -