提交 84d102b5 编写于 作者: B bayanxing

codecheck问题修改

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 4a43856b
......@@ -6,17 +6,17 @@
</option>
</select>
<picker id="picker0" type="text" value="{{textvalue}}" selected="{{textselect}}" range="{{rangetext}}" onchange="textonchange"
oncancel="textoncancel" class="pickertext"></picker>
oncancel="textOnCancel" class="pickertext"></picker>
<picker id="picker1" type="date" value="{{datevalue}}" start="2002-2-5" end="2030-6-5" selected="{{dateselect}}" lunarswitch="true"
onchange="dateonchange" oncancel="dateoncancel" class="pickerdate" show="true"></picker>
onchange="dateOnchange" oncancel="dateOnCancel" class="pickerdate" show="true"></picker>
<picker id="picker2" type="time" value="{{timevalue}}" containsecond="{{containsecond}}" selected="{{timeselect}}" hours="12"
onchange="timeonchange" oncancel="timeoncancel" class="pickertime" show="true"></picker>
onchange="timeOnchange" oncancel="timeOnCancel" class="pickertime" show="true"></picker>
<picker id="picker3" type="datetime" value="{{datetimevalue}}" selected="{{datetimeselect}}" hours="24" lunarswitch="true"
onchange="datetimeonchange" oncancel="datetimeoncancel" class="pickerdatetime" show="true"></picker>
onchange="datetimeOnchange" oncancel="datetimeOnCancel" class="pickerdatetime" show="true"></picker>
<picker id="picker4" type="multi-text" value="{{multitextvalue}}" columns="3" range="{{multitext}}" selected="{{multitextselect}}"
onchange="multitextonchange" oncancel="multitextoncancel" class="pickermuitl" show="true"></picker>
onchange="multiTextOnchange" oncancel="multiTextOnCancel" class="pickermuitl" show="true"></picker>
</div>
\ No newline at end of file
......@@ -42,17 +42,17 @@ export default {
this.textvalue = e.newValue;
prompt.showToast({ message:"text:"+e.newValue+",newSelected:"+e.newSelected })
},
textoncancel(e) {
prompt.showToast({ message:"text: textoncancel" })
textOnCancel(e) {
prompt.showToast({ message:"text: textOnCancel" })
},
dateonchange(e) {
dateOnchange(e) {
this.datevalue = e.year + "-" + e.month + "-" + e.day;
prompt.showToast({ message:"date:"+e.year+"-"+(e.month+1)+"-"+e.day })
},
dateoncancel() {
prompt.showToast({ message:"date: dateoncancel" })
dateOnCancel() {
prompt.showToast({ message:"date: dateOnCancel" })
},
timeonchange(e) {
timeOnchange(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 })
}},
timeoncancel() {
prompt.showToast({ message:"timeoncancel" })
timeOnCancel() {
prompt.showToast({ message:"timeOnCancel" })
},
datetimeonchange(e) {
datetimeOnchange(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 })
},
datetimeoncancel() {
prompt.showToast({ message:"datetimeoncancel" })
datetimeOnCancel() {
prompt.showToast({ message:"datetimeOnCancel" })
},
multitextonchange(e) {
multiTextOnchange(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
<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="{{qrValue}}" type="{{qrType}}"
style="color: {{qrCol}};background-color: {{qrBCol}};width: {{qrSize}};height: {{qrSize}};margin-bottom: 70px;"></qrcode>
<text class="txt">Type</text>
<switch showtext="true" checked="true" texton="rect" textoff="circle" onchange="settype"></switch>
<switch showtext="true" checked="true" texton="rect" textoff="circle" onchange="setType"></switch>
<text class="txt">Color</text>
<select onchange="setcol">
<option for="{{col_List}}" value="{{$item}}">{{$item}}</option>
<select onchange="setCol">
<option for="{{colList}}" value="{{$item}}">{{$item}}</option>
</select>
<text class="txt">Background Color</text>
<select onchange="setbcol">
<option for="{{bCol_List}}" value="{{$item}}">{{$item}}</option>
<select onchange="setBCol">
<option for="{{bColList}}" value="{{$item}}">{{$item}}</option>
</select>
</div>
/**
* 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']
},
settype(e) {
setType(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
},
setcol(e) {
this.qr_Col = e.newValue
setCol(e) {
this.qrCol = e.newValue
},
setbcol(e) {
this.qr_BCol = e.newValue
setBCol(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.
先完成此消息的编辑!
想要评论请 注册