Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
84d102b5
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
84d102b5
编写于
2月 08, 2022
作者:
B
bayanxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
codecheck问题修改
Signed-off-by:
N
bayanxing
<
bayanxing@kaihongdigi.com
>
上级
4a43856b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
55 addition
and
43 deletion
+55
-43
ace/ace_standard/src/main/js/default/pages/picker/index.hml
ace/ace_standard/src/main/js/default/pages/picker/index.hml
+5
-5
ace/ace_standard/src/main/js/default/pages/picker/index.js
ace/ace_standard/src/main/js/default/pages/picker/index.js
+14
-17
ace/ace_standard/src/main/js/default/pages/qrcode/index.hml
ace/ace_standard/src/main/js/default/pages/qrcode/index.hml
+7
-7
ace/ace_standard/src/main/js/default/pages/qrcode/index.js
ace/ace_standard/src/main/js/default/pages/qrcode/index.js
+29
-14
未找到文件。
ace/ace_standard/src/main/js/default/pages/picker/index.hml
浏览文件 @
84d102b5
...
...
@@ -6,17 +6,17 @@
</option>
</select>
<picker id="picker0" type="text" value="{{textvalue}}" selected="{{textselect}}" range="{{rangetext}}" onchange="textonchange"
oncancel="text
onc
ancel" class="pickertext"></picker>
oncancel="text
OnC
ancel" class="pickertext"></picker>
<picker id="picker1" type="date" value="{{datevalue}}" start="2002-2-5" end="2030-6-5" selected="{{dateselect}}" lunarswitch="true"
onchange="date
onchange" oncancel="dateonc
ancel" class="pickerdate" show="true"></picker>
onchange="date
Onchange" oncancel="dateOnC
ancel" class="pickerdate" show="true"></picker>
<picker id="picker2" type="time" value="{{timevalue}}" containsecond="{{containsecond}}" selected="{{timeselect}}" hours="12"
onchange="time
onchange" oncancel="timeonc
ancel" class="pickertime" show="true"></picker>
onchange="time
Onchange" oncancel="timeOnC
ancel" class="pickertime" show="true"></picker>
<picker id="picker3" type="datetime" value="{{datetimevalue}}" selected="{{datetimeselect}}" hours="24" lunarswitch="true"
onchange="datetime
onchange" oncancel="datetimeonc
ancel" class="pickerdatetime" show="true"></picker>
onchange="datetime
Onchange" oncancel="datetimeOnC
ancel" class="pickerdatetime" show="true"></picker>
<picker id="picker4" type="multi-text" value="{{multitextvalue}}" columns="3" range="{{multitext}}" selected="{{multitextselect}}"
onchange="multi
textonchange" oncancel="multitextonc
ancel" class="pickermuitl" show="true"></picker>
onchange="multi
TextOnchange" oncancel="multiTextOnC
ancel" class="pickermuitl" show="true"></picker>
</div>
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/picker/index.js
浏览文件 @
84d102b5
...
...
@@ -42,17 +42,17 @@ export default {
this
.
textvalue
=
e
.
newValue
;
prompt
.
showToast
({
message
:
"
text:
"
+
e
.
newValue
+
"
,newSelected:
"
+
e
.
newSelected
})
},
text
onc
ancel
(
e
)
{
prompt
.
showToast
({
message
:
"
text: text
onc
ancel
"
})
text
OnC
ancel
(
e
)
{
prompt
.
showToast
({
message
:
"
text: text
OnC
ancel
"
})
},
date
o
nchange
(
e
)
{
date
O
nchange
(
e
)
{
this
.
datevalue
=
e
.
year
+
"
-
"
+
e
.
month
+
"
-
"
+
e
.
day
;
prompt
.
showToast
({
message
:
"
date:
"
+
e
.
year
+
"
-
"
+
(
e
.
month
+
1
)
+
"
-
"
+
e
.
day
})
},
date
onc
ancel
()
{
prompt
.
showToast
({
message
:
"
date: date
onc
ancel
"
})
date
OnC
ancel
()
{
prompt
.
showToast
({
message
:
"
date: date
OnC
ancel
"
})
},
time
o
nchange
(
e
)
{
time
O
nchange
(
e
)
{
if
(
this
.
containsecond
){
this
.
timevalue
=
e
.
hour
+
"
:
"
+
e
.
minute
+
"
:
"
+
e
.
second
;
prompt
.
showToast
({
message
:
"
Time:
"
+
e
.
hour
+
"
:
"
+
e
.
minute
+
"
:
"
+
e
.
second
})
...
...
@@ -60,24 +60,21 @@ export default {
this
.
timevalue
=
e
.
hour
+
"
:
"
+
e
.
minute
;
prompt
.
showToast
({
message
:
"
Time:
"
+
e
.
hour
+
"
:
"
+
e
.
minute
})
}},
time
onc
ancel
()
{
prompt
.
showToast
({
message
:
"
time
onc
ancel
"
})
time
OnC
ancel
()
{
prompt
.
showToast
({
message
:
"
time
OnC
ancel
"
})
},
datetime
o
nchange
(
e
)
{
datetime
O
nchange
(
e
)
{
this
.
datetimevalue
=
e
.
year
+
"
-
"
+
e
.
month
+
"
-
"
+
e
.
day
+
"
"
+
e
.
hour
+
"
:
"
+
e
.
minute
;
prompt
.
showToast
({
message
:
"
Time:
"
+
(
e
.
month
+
1
)
+
"
-
"
+
e
.
day
+
"
"
+
e
.
hour
+
"
:
"
+
e
.
minute
})
},
datetime
onc
ancel
()
{
prompt
.
showToast
({
message
:
"
datetime
onc
ancel
"
})
datetime
OnC
ancel
()
{
prompt
.
showToast
({
message
:
"
datetime
OnC
ancel
"
})
},
multi
texto
nchange
(
e
)
{
multi
TextO
nchange
(
e
)
{
this
.
multitextvalue
=
e
.
newValue
;
prompt
.
showToast
({
message
:
"
Multi-column text change
"
+
e
.
newValue
})
},
multitextoncancel
()
{
prompt
.
showToast
({
message
:
"
multitextoncancel
"
})
},
popup_picker
()
{
this
.
$element
(
"
picker_text
"
).
show
();
multiTextOnCancel
()
{
prompt
.
showToast
({
message
:
"
multiTextOnCancel
"
})
},
}
\ No newline at end of file
ace/ace_standard/src/main/js/default/pages/qrcode/index.hml
浏览文件 @
84d102b5
<div class="container">
<qrcode value="{{qr
_Value}}" type="{{qr_
Type}}"
style="color: {{qr
_Col}};background-color: {{qr_BCol}};width: {{qr_Size}};height: {{qr_
Size}};margin-bottom: 70px;"></qrcode>
<qrcode value="{{qr
Value}}" type="{{qr
Type}}"
style="color: {{qr
Col}};background-color: {{qrBCol}};width: {{qrSize}};height: {{qr
Size}};margin-bottom: 70px;"></qrcode>
<text class="txt">Type</text>
<switch showtext="true" checked="true" texton="rect" textoff="circle" onchange="set
t
ype"></switch>
<switch showtext="true" checked="true" texton="rect" textoff="circle" onchange="set
T
ype"></switch>
<text class="txt">Color</text>
<select onchange="set
c
ol">
<option for="{{col
_
List}}" value="{{$item}}">{{$item}}</option>
<select onchange="set
C
ol">
<option for="{{colList}}" value="{{$item}}">{{$item}}</option>
</select>
<text class="txt">Background Color</text>
<select onchange="set
bc
ol">
<option for="{{bCol
_
List}}" value="{{$item}}">{{$item}}</option>
<select onchange="set
BC
ol">
<option for="{{bColList}}" value="{{$item}}">{{$item}}</option>
</select>
</div>
ace/ace_standard/src/main/js/default/pages/qrcode/index.js
浏览文件 @
84d102b5
/**
* Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export
default
{
data
:
{
qr
_
Type
:
'
rect
'
,
qr
_
Size
:
'
300px
'
,
qr
_
Col
:
'
#87ceeb
'
,
col
_
List
:
[
'
#87ceeb
'
,
'
#fa8072
'
,
'
#da70d6
'
,
'
#80ff00ff
'
,
'
#00ff00ff
'
],
qr
_
BCol
:
'
#f0ffff
'
,
bCol
_
List
:
[
'
#f0ffff
'
,
'
#ffffe0
'
,
'
#d8bfd8
'
]
qrType
:
'
rect
'
,
qrSize
:
'
300px
'
,
qrCol
:
'
#87ceeb
'
,
colList
:
[
'
#87ceeb
'
,
'
#fa8072
'
,
'
#da70d6
'
,
'
#80ff00ff
'
,
'
#00ff00ff
'
],
qrBCol
:
'
#f0ffff
'
,
bColList
:
[
'
#f0ffff
'
,
'
#ffffe0
'
,
'
#d8bfd8
'
]
},
set
t
ype
(
e
)
{
set
T
ype
(
e
)
{
if
(
e
.
checked
)
{
this
.
qr
_
Type
=
'
rect
'
this
.
qrType
=
'
rect
'
}
else
{
this
.
qr
_
Type
=
'
circle
'
this
.
qrType
=
'
circle
'
}
},
setvalue
(
e
)
{
this
.
qr
_
Value
=
e
.
newValue
this
.
qrValue
=
e
.
newValue
},
set
c
ol
(
e
)
{
this
.
qr
_
Col
=
e
.
newValue
set
C
ol
(
e
)
{
this
.
qrCol
=
e
.
newValue
},
set
bc
ol
(
e
)
{
this
.
qr
_
BCol
=
e
.
newValue
set
BC
ol
(
e
)
{
this
.
qrBCol
=
e
.
newValue
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录