Skip to content

Commit 94fe40a

Browse files
committed
add mini program management
1 parent 5b68555 commit 94fe40a

9 files changed

Lines changed: 45 additions & 918 deletions

File tree

src/controller/Manage/MiniProgram/Manage_MiniProgram_AddController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ protected function doRequest()
2626
$loadingType = $_POST['loadingType'];
2727
$permissionType = $_POST['permissionType'];
2828
$openSecretKey = $_POST['secretKey'];
29+
$management = $_POST['management'];
2930

3031
$data = [
3132
'name' => $name,
@@ -36,7 +37,8 @@ protected function doRequest()
3637
'usageType' => $usageType,
3738
'permissionType' => $permissionType,
3839
'addTime' => $this->ctx->ZalyHelper->getMsectime(),
39-
'authKey' => ""
40+
'authKey' => "",
41+
'management' => $management,
4042
];
4143

4244
if ($loadingType) {

src/model/SitePluginTable.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class SitePluginTable extends BaseTable
2525
"loadingType",
2626
"permissionType",
2727
"authKey",
28-
"addTime"
28+
"addTime",
29+
"management",
2930
];
3031

3132
private $queryColumns;
@@ -51,6 +52,7 @@ public function insertMiniProgram($miniProgramProfile)
5152
usageType,
5253
loadingType,
5354
permissionType,
55+
management,
5456
authKey,
5557
addTime)
5658
values
@@ -63,6 +65,7 @@ public function insertMiniProgram($miniProgramProfile)
6365
:usageType,
6466
:loadingType,
6567
:permissionType,
68+
:management,
6669
:authKey,
6770
:addTime);
6871
';
@@ -79,6 +82,7 @@ public function insertMiniProgram($miniProgramProfile)
7982
$prepare->bindValue(":usageType", $miniProgramProfile["usageType"], PDO::PARAM_INT);
8083
$prepare->bindValue(":loadingType", $miniProgramProfile["loadingType"], PDO::PARAM_INT);
8184
$prepare->bindValue(":permissionType", $miniProgramProfile["permissionType"], PDO::PARAM_INT);
85+
$prepare->bindValue(":management", $miniProgramProfile["management"]);
8286
$prepare->bindValue(":authKey", $miniProgramProfile["authKey"]);
8387
$prepare->bindValue(":addTime", $miniProgramProfile["addTime"]);
8488
$flag = $prepare->execute();

src/model/database-sql/site_mysql.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ CREATE TABLE sitePlugin(
196196
permissionType INTEGER , /*使用权限*/
197197
authKey VARCHAR(32) NOT NULL,
198198
addTime BIGINT,
199+
management TEXT,
199200
UNIQUE(pluginId,usageType))DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;
200201

201202
ALTER TABLE sitePlugin CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

src/model/database-sql/site_sqlite.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ CREATE TABLE sitePlugin(
179179
permissionType INTEGER , /*使用权限*/
180180
authKey VARCHAR(32) NOT NULL,
181181
addTime BIGINT,
182+
management TEXT,
182183
UNIQUE(pluginId,usageType));
183184

184185
CREATE INDEX IF NOT EXISTS indexSitePluginSort ON sitePlugin(sort);

src/public/manage/config.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,16 @@ html, body {
9292
cursor: pointer;
9393
}
9494

95+
.site-image {
96+
margin-top: 7px;
97+
width: 30px;
98+
height: 30px;
99+
/*margin-top: 5px;*/
100+
/*margin-bottom: 7px;*/
101+
/*border-radius: 50%;*/
102+
cursor: pointer;
103+
}
104+
95105
.item-body {
96106
width: 100%;
97107
height: 44px;
@@ -221,7 +231,7 @@ html, body {
221231
/*margin-left: 10rem;*/
222232
padding: 0.5rem;
223233
width: 200px;
224-
height: 5px;
234+
height: 20px;
225235
overflow: hidden;
226236
text-align: right;
227237
}

src/views/manage/group/profile.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
.site-image {
1717
width: 30px;
1818
height: 30px;
19-
/*margin-top: 5px;*/
20-
margin-bottom: 7px;
21-
/*border-radius: 50%;*/
19+
margin-top: 12px;
20+
border-radius: 50%;
2221
cursor: pointer;
2322
}
2423

0 commit comments

Comments
 (0)