Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘小敏
loveisland
Commits
99f15e6b
Commit
99f15e6b
authored
Jun 11, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
技术工艺改输入框类型;AI试戴去掉视频预加载
parent
f6eeb658
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
122 deletions
+17
-122
add.html
application/admin/view/shopro/ai_try_on/add.html
+0
-59
edit.html
application/admin/view/shopro/ai_try_on/edit.html
+0
-59
add.html
application/admin/view/shopro/company/technology/add.html
+1
-1
edit.html
application/admin/view/shopro/company/technology/edit.html
+1
-1
aityron.js
public/assets/js/backend/shopro/aityron.js
+15
-2
No files found.
application/admin/view/shopro/ai_try_on/add.html
deleted
100644 → 0
View file @
f6eeb658
<form
id=
"add-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('User_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-user_id"
data-rule=
"required"
data-source=
"user/user/index"
data-field=
"nickname"
class=
"form-control selectpage"
name=
"row[user_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Url')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-url"
class=
"form-control"
name=
"row[url]"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-goods_id"
data-rule=
"required"
data-source=
"goods/index"
class=
"form-control selectpage"
name=
"row[goods_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_sku_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-goods_sku_id"
data-rule=
"required"
data-source=
"goods/sku/index"
class=
"form-control selectpage"
name=
"row[goods_sku_id]"
type=
"text"
value=
""
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_title')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-goods_title"
class=
"form-control"
name=
"row[goods_title]"
type=
"text"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_image')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"input-group"
>
<input
id=
"c-goods_image"
class=
"form-control"
size=
"50"
name=
"row[goods_image]"
type=
"text"
>
<div
class=
"input-group-addon no-border no-padding"
>
<span><button
type=
"button"
id=
"faupload-goods_image"
class=
"btn btn-danger faupload"
data-input-id=
"c-goods_image"
data-mimetype=
"image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
data-multiple=
"false"
data-preview-id=
"p-goods_image"
><i
class=
"fa fa-upload"
></i>
{:__('Upload')}
</button></span>
<span><button
type=
"button"
id=
"fachoose-goods_image"
class=
"btn btn-primary fachoose"
data-input-id=
"c-goods_image"
data-mimetype=
"image/*"
data-multiple=
"false"
><i
class=
"fa fa-list"
></i>
{:__('Choose')}
</button></span>
</div>
<span
class=
"msg-box n-right"
for=
"c-goods_image"
></span>
</div>
<ul
class=
"row list-inline faupload-preview"
id=
"p-goods_image"
></ul>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_sku_name')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-goods_sku_name"
class=
"form-control"
name=
"row[goods_sku_name]"
type=
"text"
>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-primary btn-embossed disabled"
>
{:__('OK')}
</button>
</div>
</div>
</form>
application/admin/view/shopro/ai_try_on/edit.html
deleted
100644 → 0
View file @
f6eeb658
<form
id=
"edit-form"
class=
"form-horizontal"
role=
"form"
data-toggle=
"validator"
method=
"POST"
action=
""
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('User_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-user_id"
data-rule=
"required"
data-source=
"user/user/index"
data-field=
"nickname"
class=
"form-control selectpage"
name=
"row[user_id]"
type=
"text"
value=
"{$row.user_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Url')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-url"
class=
"form-control"
name=
"row[url]"
type=
"text"
value=
"{$row.url|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-goods_id"
data-rule=
"required"
data-source=
"goods/index"
class=
"form-control selectpage"
name=
"row[goods_id]"
type=
"text"
value=
"{$row.goods_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_sku_id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-goods_sku_id"
data-rule=
"required"
data-source=
"goods/sku/index"
class=
"form-control selectpage"
name=
"row[goods_sku_id]"
type=
"text"
value=
"{$row.goods_sku_id|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_title')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-goods_title"
class=
"form-control"
name=
"row[goods_title]"
type=
"text"
value=
"{$row.goods_title|htmlentities}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_image')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"input-group"
>
<input
id=
"c-goods_image"
class=
"form-control"
size=
"50"
name=
"row[goods_image]"
type=
"text"
value=
"{$row.goods_image|htmlentities}"
>
<div
class=
"input-group-addon no-border no-padding"
>
<span><button
type=
"button"
id=
"faupload-goods_image"
class=
"btn btn-danger faupload"
data-input-id=
"c-goods_image"
data-mimetype=
"image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
data-multiple=
"false"
data-preview-id=
"p-goods_image"
><i
class=
"fa fa-upload"
></i>
{:__('Upload')}
</button></span>
<span><button
type=
"button"
id=
"fachoose-goods_image"
class=
"btn btn-primary fachoose"
data-input-id=
"c-goods_image"
data-mimetype=
"image/*"
data-multiple=
"false"
><i
class=
"fa fa-list"
></i>
{:__('Choose')}
</button></span>
</div>
<span
class=
"msg-box n-right"
for=
"c-goods_image"
></span>
</div>
<ul
class=
"row list-inline faupload-preview"
id=
"p-goods_image"
></ul>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Goods_sku_name')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-goods_sku_name"
class=
"form-control"
name=
"row[goods_sku_name]"
type=
"text"
value=
"{$row.goods_sku_name|htmlentities}"
>
</div>
</div>
<div
class=
"form-group layer-footer"
>
<label
class=
"control-label col-xs-12 col-sm-2"
></label>
<div
class=
"col-xs-12 col-sm-8"
>
<button
type=
"submit"
class=
"btn btn-primary btn-embossed disabled"
>
{:__('OK')}
</button>
</div>
</div>
</form>
application/admin/view/shopro/company/technology/add.html
View file @
99f15e6b
...
...
@@ -22,7 +22,7 @@
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Tech_desc')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<
input
id=
"c-tech_desc"
data-rule=
"required"
class=
"form-control"
name=
"row[tech_desc]"
type=
"text"
value=
""
>
<
textarea
id=
"c-tech_desc"
data-rule=
"required"
class=
"form-control"
name=
"row[tech_desc]"
rows=
"5"
></textarea
>
</div>
</div>
<div
class=
"form-group"
>
...
...
application/admin/view/shopro/company/technology/edit.html
View file @
99f15e6b
...
...
@@ -22,7 +22,7 @@
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('Tech_desc')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<
input
id=
"c-tech_desc"
data-rule=
"required"
class=
"form-control"
name=
"row[tech_desc]"
type=
"text"
value=
"{$row.tech_desc|htmlentities}"
>
<
textarea
id=
"c-tech_desc"
data-rule=
"required"
class=
"form-control"
name=
"row[tech_desc]"
rows=
"5"
>
{$row.tech_desc|htmlentities}
</textarea
>
</div>
</div>
<div
class=
"form-group"
>
...
...
public/assets/js/backend/shopro/aityron.js
View file @
99f15e6b
...
...
@@ -32,7 +32,14 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'bootstrap-daterangep
}
if
(
parseInt
(
row
.
ai_type
,
10
)
===
1
)
{
return
'<video src="'
+
value
+
'" controls style="width:140px;max-height:90px;border-radius:6px;"></video>'
;
// 视频:默认不预加载,点击后播放
return
'<div style="position:relative;width:140px;height:90px;border-radius:6px;overflow:hidden;background:#000;">'
+
'<video src="'
+
value
+
'" controls preload="none" style="width:100%;height:100%;" onclick="this.play()">'
+
'</video>'
+
'<div style="position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;">'
+
'<span style="color:#fff;font-size:12px;">点击播放</span>'
+
'</div>'
+
'</div>'
;
}
return
renderImage
(
value
);
...
...
@@ -341,7 +348,13 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'bootstrap-daterangep
html
+=
'<tr><th>人物图片</th><td><a href="'
+
data
.
person_image
+
'" target="_blank"><img src="'
+
data
.
person_image
+
'" style="max-width:300px;max-height:300px;"></a></td></tr>'
;
html
+=
'<tr><th>商品图片</th><td><a href="'
+
data
.
goods_image
+
'" target="_blank"><img src="'
+
data
.
goods_image
+
'" style="max-width:300px;max-height:300px;"></a></td></tr>'
;
if
(
data
.
ai_url
)
{
html
+=
'<tr><th>AI 生成视频</th><td><video src="'
+
data
.
ai_url
+
'" controls style="max-width:600px;max-height:400px;"></video></td></tr>'
;
html
+=
'<tr><th>AI 生成视频</th><td><div style="position:relative;max-width:600px;max-height:400px;border-radius:6px;overflow:hidden;background:#000;">'
+
'<video src="'
+
data
.
ai_url
+
'" controls preload="none" style="width:100%;height:100%;" onclick="this.play()">'
+
'</video>'
+
'<div style="position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;">'
+
'<span style="color:#fff;font-size:14px;">点击播放</span>'
+
'</div>'
+
'</div></td></tr>'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment