File tree Expand file tree Collapse file tree 9 files changed +28
-6
lines changed Expand file tree Collapse file tree 9 files changed +28
-6
lines changed Original file line number Diff line number Diff line change
1
+
2
+ __history /ufrmMain.pas.~1~
3
+ __history /ufrmModal.pas.~1~
4
+ __history /ufrmModal.pas.~2~
5
+ __history /unConfig.pas.~1~
6
+ __history /unConfig.pas.~2~
7
+ __history /unConfig.pas.~3~
8
+ * .dcu
9
+ Win32 /debug /app /runtime /*
10
+ Win32 /debug /cache /*
11
+ niu_new.dproj.local
12
+ niu_new.identcache
13
+ __history /ufrmModal.pas.~4~
14
+ __history /ufrmModal.pas.~3~
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function audio1() {
21
21
}
22
22
23
23
function audio2 () {
24
- $ this ->redirect ('http://web .kugou.com/ ' );
24
+ $ this ->redirect ('http://www .kugou.com/song/70n9db.html?frombaidu#hash=089B020FBCCE50716835341067B91EAA&album_id=0 ' );
25
25
}
26
26
27
27
function video1 () {
Original file line number Diff line number Diff line change 8
8
<ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
9
9
<li class="layui-nav-item" data-url="<?= url ('index/audio1 ' ) ?> "><a href="javascript:;"> <i
10
10
class="icon icon-volume-up"></i> 音频播放1 </a></li>
11
- <li class="layui-nav-item layui-this" data-url="<?= url ( ' index/audio2 ' ) ?> "><a href="javascript:;"> <i
11
+ <li class="layui-nav-item layui-this" data-url="http://music.taihe.com/song/537201076?pst=sug "><a href="javascript:;"> <i
12
12
class="icon icon-volume-up"></i> 音频播放2 </a></li>
13
13
<li class="layui-nav-item" data-url="<?= url ('index/video1 ' ) ?> "><a href="javascript:;"> <i
14
14
class="icon icon-film"></i> 视频播放1 </a>
15
15
</li>
16
- <li class="layui-nav-item" data-url="<?= url ( ' index/video2 ' ) ?> "><a href="javascript:;"> <i
16
+ <li class="layui-nav-item" data-url="https://www.bilibili.com/video/av11539082/ "><a href="javascript:;"> <i
17
17
class="icon icon-film"></i> 视频播放2 </a>
18
18
</li>
19
19
<li class="layui-nav-item " data-url="<?= url ('index/link ' ) ?> "><a href="javascript:;"> <i
@@ -31,7 +31,7 @@ class="icon icon-copy"></i> 本地文件 </a></li>
31
31
</div>
32
32
33
33
<div class="frameCls">
34
- <iframe class="frameContent" src="<?= url ( ' index/audio2 ' ) ?> " frameborder="0"></iframe>
34
+ <iframe class="frameContent" src="http://music.taihe.com/song/537201076?pst=sug " frameborder="0"></iframe>
35
35
</div>
36
36
37
37
<script>
Original file line number Diff line number Diff line change 8
8
"web_port" : " 46150" ,
9
9
"database" :" database\\ Demos.abs" ,
10
10
"data_port" : " 46151" ,
11
- "skin" : " skin\\ niu.skn" ,
11
+ "skin" : " skin\\ niu.skn" ,
12
+ "icon" : " niu.icon" ,
12
13
"workerman" :{
13
14
"enable" :1 ,
14
15
"servers" :[
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ procedure TfrmMain.FormCreate(Sender: TObject);
55
55
begin
56
56
frmSplash := TfrmSplash.Create(nil );
57
57
try
58
+ if FileExists(unConfig.FIcon) then
59
+ Self.Icon.LoadFromFile(unConfig.FIcon);
58
60
frmSplash.Show;
59
61
60
62
Application.ProcessMessages;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ TfrmModal = class(TForm)
33
33
implementation
34
34
35
35
uses
36
- unMoudle, unChromeMessage;
36
+ unMoudle, unChromeMessage,unConfig ;
37
37
{ $R *.dfm}
38
38
{ TfrmModel }
39
39
@@ -56,6 +56,9 @@ procedure TfrmModal.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
56
56
57
57
procedure TfrmModal.FormCreate (Sender: TObject);
58
58
begin
59
+ if FileExists(unConfig.FIcon) then
60
+ Self.Icon.LoadFromFile(unConfig.FIcon);
61
+
59
62
// ×¢²á¼àÌý
60
63
// if Assigned(subject) then
61
64
// subject.attach(Self.Handle);
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ interface
41
41
FHost: string; // 监听IP
42
42
FDataPort: Integer; // 数据库端口
43
43
FWebPort: Integer; // web端口
44
+ FIcon: string; // 窗口icon
44
45
// FWsPort: Integer; // websocket服务端口
45
46
// FWsPHPUrl: string; // websocket服务处理PHP路径
46
47
@@ -120,6 +121,7 @@ function getWorkerman(): TDValue;
120
121
initialization
121
122
122
123
FAppPath := ExtractFilePath(Application.ExeName);
124
+ FIcon := FAppPath + unConfig.getValue(' icon' );
123
125
FSkinFile := FAppPath + unConfig.getValue(' skin' );
124
126
FDataBaseFile := FAppPath + unConfig.getValue(' database' );
125
127
FDebug := StrToIntDef(unConfig.getValue(' debug' ), 0 );
You can’t perform that action at this time.
0 commit comments