换系统

This commit is contained in:
pplokijuhyg 2020-01-14 09:56:18 +08:00
parent 73d560e0c6
commit 5f652d6183
9 changed files with 131 additions and 131 deletions

View File

@ -1,24 +1,24 @@
// components/orderconfirm/orderyf/orderyf.js // components/orderconfirm/orderyf/orderyf.js
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
title:String, title:String,
placeholder:String placeholder:String
}, },
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
} }
}) })

View File

@ -1,4 +1,4 @@
{ {
"component": true, "component": true,
"usingComponents": {} "usingComponents": {}
} }

View File

@ -1,21 +1,21 @@
.orderyf { .orderyf {
width: 690rpx; width: 690rpx;
height: 96rpx; height: 96rpx;
line-height: 96rpx; line-height: 96rpx;
display: flex; display: flex;
border-bottom: 2rpx solid #EAEAEA; border-bottom: 2rpx solid #EAEAEA;
margin: 0 auto; margin: 0 auto;
justify-content: space-between; justify-content: space-between;
font-size: 28rpx; font-size: 28rpx;
align-items: center; align-items: center;
.left { .left {
margin-left: 31rpx margin-left: 31rpx
} }
.right { .right {
margin-right: 20rpx; margin-right: 20rpx;
width: 450rpx; width: 450rpx;
height: 35rpx; height: 35rpx;
font-size: 25rpx; font-size: 25rpx;
text-align: right; text-align: right;
} }
} }

View File

@ -1,4 +1,4 @@
<view class="orderyf"> <view class="orderyf">
<view class="left">{{title}}</view> <view class="left">{{title}}</view>
<input class="right" placeholder="{{placeholder}}"></input> <input class="right" placeholder="{{placeholder}}"></input>
</view> </view>

View File

@ -1,39 +1,39 @@
// components/orderconfirm/orderyf/orderyf.js // components/orderconfirm/orderyf/orderyf.js
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
price: String price: String
}, },
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
date: "", date: "",
start:"" start:""
}, },
created(){ created(){
this.setData({ this.setData({
date:this.getCurTime(), date:this.getCurTime(),
start:this.getCurTime() start:this.getCurTime()
}) })
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
bindDateChange: function (e) { bindDateChange: function (e) {
console.log('picker发送选择改变携带值为', e.detail.value) console.log('picker发送选择改变携带值为', e.detail.value)
this.setData({ this.setData({
date: e.detail.value date: e.detail.value
}) })
}, },
getCurTime() { getCurTime() {
var date = new Date(); var date = new Date();
return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate(); return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
} }
} }
}) })

View File

@ -1,4 +1,4 @@
{ {
"component": true, "component": true,
"usingComponents": {} "usingComponents": {}
} }

View File

@ -1,17 +1,17 @@
.orderyf { .orderyf {
width: 690rpx; width: 690rpx;
height: 96rpx; height: 96rpx;
line-height: 96rpx; line-height: 96rpx;
display: flex; display: flex;
border-bottom: 2rpx solid #EAEAEA; border-bottom: 2rpx solid #EAEAEA;
margin: 0 auto; margin: 0 auto;
justify-content: space-between; justify-content: space-between;
font-size: 28rpx; font-size: 28rpx;
.left { .left {
margin-left: 31rpx margin-left: 31rpx
} }
.right { .right {
margin-right: 20rpx; margin-right: 20rpx;
; ;
} }
} }

View File

@ -1,6 +1,6 @@
<picker mode="date" value="{{date}}" bindchange="bindDateChange" start="{{start}}"> <picker mode="date" value="{{date}}" bindchange="bindDateChange" start="{{start}}">
<view class="orderyf"> <view class="orderyf">
<view class="left">收货时间</view> <view class="left">收货时间</view>
<view class="right">{{date == "" ? '请选择提货时间': date}}</view> <view class="right">{{date == "" ? '请选择提货时间': date}}</view>
</view> </view>
</picker> </picker>

View File

@ -1,18 +1,18 @@
.orderyf { .orderyf {
width: 690rpx; width: 690rpx;
height: 96rpx; height: 96rpx;
line-height: 96rpx; line-height: 96rpx;
display: flex; display: flex;
border-bottom: 2rpx solid #EAEAEA; border-bottom: 2rpx solid #EAEAEA;
margin: 0 auto; margin: 0 auto;
justify-content: space-between; justify-content: space-between;
font-size: 28rpx; font-size: 28rpx;
} }
.orderyf .left { .orderyf .left {
margin-left: 31rpx; margin-left: 31rpx;
} }
.orderyf .right { .orderyf .right {
margin-right: 20rpx; margin-right: 20rpx;
} }