Commit 2acf81a6 authored by 刘用法's avatar 刘用法

输入框

parent 1567f586
...@@ -27,9 +27,12 @@ ...@@ -27,9 +27,12 @@
}, },
computed: { computed: {
type() { type() {
if (this.item && this.item.fieldsType == 'password' || this.item.fieldsType == 'textarea') { let ty = this.item.fieldsType.toLocaleLowerCase()
if (this.item && ty == 'password') {
return this.item.fieldsType return this.item.fieldsType
} else { }else if (this.item && ty == 'text') {
return 'textarea'
}else {
return 'text' return 'text'
} }
}, },
......
...@@ -416,6 +416,8 @@ ...@@ -416,6 +416,8 @@
type = type.toLocaleLowerCase() type = type.toLocaleLowerCase()
switch (type) { switch (type) {
case 'text': case 'text':
formType = 'input'
break
case 'password': case 'password':
case 'textarea': case 'textarea':
case 'number': case 'number':
......
...@@ -119,15 +119,17 @@ ...@@ -119,15 +119,17 @@
<view v-if="showCenterBtn" @click="handleBtn" class="button" :class="['center-button-view', btnClass]"> <view v-if="showCenterBtn" @click="handleBtn" class="button" :class="['center-button-view', btnClass]">
<text>{{ centerButtonText }}</text> <text>{{ centerButtonText }}</text>
<view v-if="order.currentOverTime > 0" class="time-view"> <view v-if="order.currentOverTime > 0" class="time-view">
<text>{{order.currentOverTime * 1000 > new Date().getTime()?'剩':'超'}}</text> <text style="margin-right: 8rpx;">{{order.currentOverTime * 1000 > new Date().getTime()?'剩':'超'}}</text>
<u-count-down <u-count-down
:timestamp="timestampDiff(order.currentOverTime)" :timestamp="3600 * 100 || timestampDiff(order.currentOverTime)"
font-size="20" font-size="20"
color="#FFFFFF" color="#FFFFFF"
bg-color="transparent" bg-color="transparent"
separator-color="#FFFFFF" separator-color="#FFFFFF"
separator-size="20" separator-size="20"
:ref="'uCountDown'" :ref="'uCountDown'"
height="20"
:show-days="false"
@change="timeOutChange(order.currentOverTime)" > @change="timeOutChange(order.currentOverTime)" >
</u-count-down> </u-count-down>
</view> </view>
......
src/static/tab/xuexi-0@3x.png

3.75 KB | W: | H:

src/static/tab/xuexi-0@3x.png

2.6 KB | W: | H:

src/static/tab/xuexi-0@3x.png
src/static/tab/xuexi-0@3x.png
src/static/tab/xuexi-0@3x.png
src/static/tab/xuexi-0@3x.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment