diff --git a/components/orderconfirm/input/input.js b/components/orderconfirm/input/input.js index 0256367..2e1273e 100644 --- a/components/orderconfirm/input/input.js +++ b/components/orderconfirm/input/input.js @@ -1,24 +1,24 @@ -// components/orderconfirm/orderyf/orderyf.js -Component({ - /** - * 组件的属性列表 - */ - properties: { - title:String, - placeholder:String - }, - - /** - * 组件的初始数据 - */ - data: { - - }, - - /** - * 组件的方法列表 - */ - methods: { - - } -}) +// components/orderconfirm/orderyf/orderyf.js +Component({ + /** + * 组件的属性列表 + */ + properties: { + title:String, + placeholder:String + }, + + /** + * 组件的初始数据 + */ + data: { + + }, + + /** + * 组件的方法列表 + */ + methods: { + + } +}) diff --git a/components/orderconfirm/input/input.json b/components/orderconfirm/input/input.json index e8cfaaf..011372e 100644 --- a/components/orderconfirm/input/input.json +++ b/components/orderconfirm/input/input.json @@ -1,4 +1,4 @@ -{ - "component": true, - "usingComponents": {} +{ + "component": true, + "usingComponents": {} } \ No newline at end of file diff --git a/components/orderconfirm/input/input.scss b/components/orderconfirm/input/input.scss index 78ad6b8..fbb686d 100644 --- a/components/orderconfirm/input/input.scss +++ b/components/orderconfirm/input/input.scss @@ -1,21 +1,21 @@ -.orderyf { - width: 690rpx; - height: 96rpx; - line-height: 96rpx; - display: flex; - border-bottom: 2rpx solid #EAEAEA; - margin: 0 auto; - justify-content: space-between; - font-size: 28rpx; - align-items: center; - .left { - margin-left: 31rpx - } - .right { - margin-right: 20rpx; - width: 450rpx; - height: 35rpx; - font-size: 25rpx; - text-align: right; - } +.orderyf { + width: 690rpx; + height: 96rpx; + line-height: 96rpx; + display: flex; + border-bottom: 2rpx solid #EAEAEA; + margin: 0 auto; + justify-content: space-between; + font-size: 28rpx; + align-items: center; + .left { + margin-left: 31rpx + } + .right { + margin-right: 20rpx; + width: 450rpx; + height: 35rpx; + font-size: 25rpx; + text-align: right; + } } \ No newline at end of file diff --git a/components/orderconfirm/input/input.wxml b/components/orderconfirm/input/input.wxml index a82edc9..b5c6b94 100644 --- a/components/orderconfirm/input/input.wxml +++ b/components/orderconfirm/input/input.wxml @@ -1,4 +1,4 @@ - - {{title}} - + + {{title}} + \ No newline at end of file diff --git a/components/orderconfirm/time/time.js b/components/orderconfirm/time/time.js index 506dc48..54d629c 100644 --- a/components/orderconfirm/time/time.js +++ b/components/orderconfirm/time/time.js @@ -1,39 +1,39 @@ -// components/orderconfirm/orderyf/orderyf.js -Component({ - /** - * 组件的属性列表 - */ - properties: { - price: String - }, - - /** - * 组件的初始数据 - */ - data: { - date: "", - start:"" - }, - created(){ - this.setData({ - date:this.getCurTime(), - start:this.getCurTime() - }) - }, - /** - * 组件的方法列表 - */ - methods: { - bindDateChange: function (e) { - console.log('picker发送选择改变,携带值为', e.detail.value) - this.setData({ - date: e.detail.value - }) - }, - getCurTime() { - var date = new Date(); - return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate(); - - } - } -}) +// components/orderconfirm/orderyf/orderyf.js +Component({ + /** + * 组件的属性列表 + */ + properties: { + price: String + }, + + /** + * 组件的初始数据 + */ + data: { + date: "", + start:"" + }, + created(){ + this.setData({ + date:this.getCurTime(), + start:this.getCurTime() + }) + }, + /** + * 组件的方法列表 + */ + methods: { + bindDateChange: function (e) { + console.log('picker发送选择改变,携带值为', e.detail.value) + this.setData({ + date: e.detail.value + }) + }, + getCurTime() { + var date = new Date(); + return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate(); + + } + } +}) diff --git a/components/orderconfirm/time/time.json b/components/orderconfirm/time/time.json index e8cfaaf..011372e 100644 --- a/components/orderconfirm/time/time.json +++ b/components/orderconfirm/time/time.json @@ -1,4 +1,4 @@ -{ - "component": true, - "usingComponents": {} +{ + "component": true, + "usingComponents": {} } \ No newline at end of file diff --git a/components/orderconfirm/time/time.scss b/components/orderconfirm/time/time.scss index 95c2833..5e3c2af 100644 --- a/components/orderconfirm/time/time.scss +++ b/components/orderconfirm/time/time.scss @@ -1,17 +1,17 @@ -.orderyf { - width: 690rpx; - height: 96rpx; - line-height: 96rpx; - display: flex; - border-bottom: 2rpx solid #EAEAEA; - margin: 0 auto; - justify-content: space-between; - font-size: 28rpx; - .left { - margin-left: 31rpx - } - .right { - margin-right: 20rpx; - ; - } +.orderyf { + width: 690rpx; + height: 96rpx; + line-height: 96rpx; + display: flex; + border-bottom: 2rpx solid #EAEAEA; + margin: 0 auto; + justify-content: space-between; + font-size: 28rpx; + .left { + margin-left: 31rpx + } + .right { + margin-right: 20rpx; + ; + } } \ No newline at end of file diff --git a/components/orderconfirm/time/time.wxml b/components/orderconfirm/time/time.wxml index c4337f0..cea9741 100644 --- a/components/orderconfirm/time/time.wxml +++ b/components/orderconfirm/time/time.wxml @@ -1,6 +1,6 @@ - - - 收货时间 - {{date == "" ? '请选择提货时间': date}} - + + + 收货时间 + {{date == "" ? '请选择提货时间': date}} + \ No newline at end of file diff --git a/components/orderconfirm/time/time.wxss b/components/orderconfirm/time/time.wxss index a63eeb0..fd167e0 100644 --- a/components/orderconfirm/time/time.wxss +++ b/components/orderconfirm/time/time.wxss @@ -1,18 +1,18 @@ -.orderyf { - width: 690rpx; - height: 96rpx; - line-height: 96rpx; - display: flex; - border-bottom: 2rpx solid #EAEAEA; - margin: 0 auto; - justify-content: space-between; - font-size: 28rpx; -} - -.orderyf .left { - margin-left: 31rpx; -} - -.orderyf .right { - margin-right: 20rpx; -} +.orderyf { + width: 690rpx; + height: 96rpx; + line-height: 96rpx; + display: flex; + border-bottom: 2rpx solid #EAEAEA; + margin: 0 auto; + justify-content: space-between; + font-size: 28rpx; +} + +.orderyf .left { + margin-left: 31rpx; +} + +.orderyf .right { + margin-right: 20rpx; +}