Skip to content

Commit

Permalink
增加基础功能
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Jun 28, 2024
1 parent 250737c commit 8ebbf75
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions js/dist/284.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/dist/284.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/src/admin/components/StoreModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class StoreModal extends Modal {
)} 
{Button.component(
{
className: 'Button decorationButton--gray',
className: 'Button storeButton--gray',
loading: this.loading,
onclick: () => {
this.hide();
Expand Down
7 changes: 7 additions & 0 deletions less/admin.less
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@
margin-left: 10px;
margin-bottom: 10px;
}


.storeButton--gray {background-color:#ddd;color:var(--button-color);padding-left:20px;padding-right:20px;}
.storeButton--gray:focus {background-color:#ddd;color:var(--button-color)}
.storeButton--gray:hover {background-color:#c6c6c6;}
.storeButton--gray:active {background-color:#c6c6c6;}
.storeButton--gray:disabled {background-color:#eee;}
2 changes: 1 addition & 1 deletion src/Controller/PutStoreController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function data(ServerRequestInterface $request, Document $document) {
$params['uri'] = $commodity->uri;
$params['pop_up'] = $commodity->pop_up;
$params['updated_at'] = Carbon::now();

$result = StoreModel::query()->where('id', $parseBody['id'])->update($params);

return $result;
Expand Down

0 comments on commit 8ebbf75

Please sign in to comment.